-
Notifications
You must be signed in to change notification settings - Fork 450
refactor!: NetworkSceneManager is no longer static #738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
bf2a69f
refactor: InternalMessageHandler is no longer static
TwoTenPvP b74d51b
Merge branch 'develop' into singleton-removal-message-handler
TwoTenPvP 9cbc9fc
Merge
TwoTenPvP e9e3f89
Added tests
TwoTenPvP de31f81
Minor style fix
TwoTenPvP 2802651
Merge branch 'develop' into singleton-removal-message-handler
TwoTenPvP 12c4dbd
renamed test file
TwoTenPvP 708018e
Merge branch 'develop' into singleton-removal-message-handler
TwoTenPvP 12054c5
Added NetworkManager field
TwoTenPvP f9b27f2
Fix assignment when overriden
TwoTenPvP 18f8fc8
refactor!: CustomMessageManager is no longer static
TwoTenPvP 49c9a1c
refactor!: NetworkSceneManager is no longer static
TwoTenPvP 3ab6a12
add tests
TwoTenPvP a6c6d43
Fixed missing conversion
TwoTenPvP 4ec2368
Merge branch 'singleton-removal-custom-message-manager' into singleto…
TwoTenPvP a4f6e6a
Merge branch 'develop' into singleton-removal-scene-manager
TwoTenPvP eed6f7a
Updated tests
TwoTenPvP 6f0be0b
Fixed test setup
TwoTenPvP c3aecd8
Now uses instance
TwoTenPvP 553979c
Progress uses instance
TwoTenPvP e995df1
Merge branch 'develop' into singleton-removal-scene-manager
TwoTenPvP dd0d039
Merge branch 'develop' into singleton-removal-scene-manager
TwoTenPvP aeff873
Merge branch 'develop' into singleton-removal-scene-manager
TwoTenPvP File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume we no longer need this because, even if we call Init() multiple times (e.g. call StartServer again after stopping) we are creating a new NetworkSceneManager, and the old one will be out of scope and be freed
Still, is there value in, if there already is a NetworkSceneManager, that we call perhaps a cleanup function on it that would do things like the code that was removed? And then ditto for the others here (CustomMessagingManager, BufferManager, etc)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This way we do it currently fully cleans it up though. (Lists etc are actually thrown out instead of their Count being set to 0 and their underlying array still being present).