void Client_EntitySystemService_WorldCreateBegin(EntitySystemClientNetworkService sender, WorldType worldType, string mapVirtualFileName) { //show map loading window EControl mapLoadingWindow = ControlDeclarationManager.Instance.CreateControl( "Gui\\MapLoadingWindow.gui"); if (mapLoadingWindow != null) { mapLoadingWindow.Text = mapVirtualFileName; controlManager.Controls.Add(mapLoadingWindow); } RenderScene(); DeleteAllGameWindows(); MapSystemWorld.MapDestroy(); if (!EntitySystemWorld.Instance.WorldCreate(WorldSimulationTypes.ClientOnly, worldType, sender.NetworkingInterface)) { Log.Fatal("GameEngineApp: Client_EntitySystemService_WorldCreateBegin: " + "EntitySystemWorld.WorldCreate failed."); } }
void Client_EntitySystemService_WorldCreateBegin(EntitySystemClientNetworkService sender, WorldType worldType, string mapVirtualFileName) { MapSystemWorld.MapDestroy(); if (!EntitySystemWorld.Instance.WorldCreate(WorldSimulationTypes.ClientOnly, worldType, sender.NetworkingInterface)) { Log.Fatal("GameEngineApp: Client_EntitySystemService_WorldCreateBegin: " + "EntitySystemWorld.WorldCreate failed."); } }
void Client_EntitySystemService_WorldCreateEnd(EntitySystemClientNetworkService sender) { //dynamic created map example if (string.IsNullOrEmpty(Map.Instance.VirtualFileName)) { DynamicCreatedMapExample.Client_CreateEntities(); } //play music if (GameMap.Instance != null) { GameMusic.MusicPlay(GameMap.Instance.GameMusic, true); } CreateGameWindowForMap(); }
void Client_EntitySystemService_WorldDestroy(EntitySystemClientNetworkService sender, bool newMapWillBeLoaded) { WinFormsAppWorld.WorldDestroy(); }
void Client_EntitySystemService_WorldCreateEnd(EntitySystemClientNetworkService sender) { }