branchsbox/networked-scene-loadcancel
7 Commits over 0 Days - ∞cph!
OnChangingLevelMsg -> OnSceneLoadMsg
Separate scene loading & finished loading, broadcast to clients as soon as we start loading a new scene
Move SceneLoadOptions into Sandbox.Engine, forward to Sandbox.Game
Send SceneLoadOptions over network
We only need to worry about ShowLoadingScreen - both IsAdditive and
DeleteEverything would be handled by the host and then applied to the
fresh snapshot that we send over, so we shouldn't have to worry about
those
Remove auto-added using
protocol++
Cut all this down some more so we're not changing things for no reason
Register handler instead of using internal message type (same as before)
Make it clear that all of this is called after the scene has loaded, clean up
Enable lingering on TCP channel
Reload scene data on clients rather than disconnecting and rejoining when calling `Scene.Load` on a networked game