Connection & Loading Process
- Create a lobby
- Lobby contains
LobbyKeys (e.g. scenario/campaign) and MemberKeys (e.g. Team ID/Fleet ID) - Start lobby, switch to Connecting scene
CreateNetworkManager creates NetworkManager and calls host/connect- When connected, auto switch to scenario scene
NetworkScenarioLoader controls process:WaitForNetworkSpawn waits for connection to server and spawns a player object (PlayerDataEntity)- On each client
PlayerDataEntity is created and in turn creates an Entity representing this player - Everyone retrieves the scenario from the server, then loads the planets specified in the scenario
- Wait for everyone to finish loading planets
- Switch gamemode to "spawning"