Skip to content
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

breaking: ClientObjectManager #438

Merged
merged 20 commits into from
Oct 28, 2020
Merged

breaking: ClientObjectManager #438

merged 20 commits into from
Oct 28, 2020

Conversation

uweeby
Copy link
Member

@uweeby uweeby commented Oct 26, 2020

This addresses the cognitive complexity warning for the NetworkClient class. As you can see its serving a dual purpose of providing access to the Transport and Messaging but also full control of all object spawning. This creates some dependency layer overlap.

All tests passed locally. Verified with Tanks and ChangeScene example in Host and Client/Server mode.

Ignoring all of the scene and test LOC changes. This adds about 60 lines overall of basically boiler plate levels of code to make the new class function correctly with unity/mirror lifecycle.

There are no changes to how spawning functions. Its mostly a cut/paste into a new class. Then fix the wiring issues.

BREAKING CHANGE: NetworkClient no longer spawns objects, add a ClientObjectManager for that

@uweeby uweeby changed the title breaking: NetworkObjectManager - client side breaking: ClientObjectManager Oct 28, 2020
@sonarcloud
Copy link

sonarcloud bot commented Oct 28, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 4 Code Smells

82.6% 82.6% Coverage
0.0% 0.0% Duplication

@uweeby uweeby merged commit fce2904 into master Oct 28, 2020
@uweeby uweeby deleted the clientObjectManager branch October 28, 2020 14:35
paulpach pushed a commit that referenced this pull request Oct 29, 2020
server side companion to #438.

BREAKING CHANGE: NetworkServer no longer spawns objects, add a ServerObjectManager for that
github-actions bot pushed a commit that referenced this pull request Oct 29, 2020
# [56.0.0](v55.0.1...v56.0.0) (2020-10-29)

### breaking

* add ServerObjectManager for object spawning ([#443](#443)) ([7abf355](7abf355)), closes [#438](#438)

### BREAKING CHANGES

* NetworkServer no longer spawns objects, add a ServerObjectManager for that
@github-actions
Copy link
Contributor

🎉 This PR is included in version 56.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant