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

feat: (DONT SQUASH) adding event for when player has finished loading scene #919

Merged
merged 25 commits into from
Sep 8, 2021

Conversation

James-Frowen
Copy link
Member

@James-Frowen James-Frowen commented Sep 6, 2021

  • adding OnPlayerFinishedSceneChange to NetworkSceneManager

BREAKING CHANGE:

  • methods moved from SceneObjectManager to NetworkSceneManager
    • Moving SceneObjectManager.SetAllClientsNotReady to NetworkSceneManager
    • Moving SceneObjectManager.SetClientNotReady to NetworkSceneManager
  • Network Player RemoveObservers renamed to RemoveAllVisibleObjects
  • Renaming NotReadyMessage to SceneNotReadyMessage
  • Removing ReadyMessage, Use SceneReadyMessage instead
  • Renaming SceneObjectManager.SetClientReady to SceneObjectManager.SpawnVisibleObjects

@James-Frowen James-Frowen force-pushed the player-ready branch 3 times, most recently from 68680da to a467e64 Compare September 6, 2021 17:28
@James-Frowen James-Frowen changed the title feat: adding event for when player has finished loading scene feat: (DONT SQUASH) adding event for when player has finished loading scene Sep 6, 2021
BREAKING CHANGE: NetworkPlayer.RemoveObservers renamed to RemoveAllVisibleObjects
BREAKING CHANGE: Renaming NotReadyMessage to SceneNotReadyMessage
BREAKING CHANGE: Removing ReadyMessage, Use SceneReadyMessage instead
BREAKING CHANGE: Renaming SceneObjectManager.SetClientReady to SpawnVisibleObjects
BREAKING CHANGE: moving SetAllClientsNotReady and SetClientNotReady from ServerObjectManager to NetworkSceneManager
Adding event that is called when a client replies with Scene Ready
adding property that checks if Identity is set on networkplayer
Would throw null ref is previousCharacter was null.
now throw InvalidOperationException with helpful message instead
When a player first connects it is now assumed that they are in a ready scene. NetworkSceneManager will set them to not ready if it has any scenes to load.

Spawning Visible objects will still wait for a character to be added before spawning.

BREAKING CHANGE: NetworkPlayer.SceneIsReady now default to true
BREAKING CHANGE: NetworkServerManager.OnServerAuthenticated is now protected instead of public
@sonarcloud
Copy link

sonarcloud bot commented Sep 8, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

93.8% 93.8% Coverage
0.0% 0.0% Duplication

@dragonslaya84 dragonslaya84 merged commit c0a9241 into master Sep 8, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Sep 8, 2021

🎉 This PR is included in version 104.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@James-Frowen James-Frowen deleted the player-ready branch September 8, 2021 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants