Ejemplo n.º 1
0
        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.");
            }
        }
Ejemplo n.º 2
0
        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.");
            }
        }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
 void Client_EntitySystemService_WorldDestroy(EntitySystemClientNetworkService sender,
                                              bool newMapWillBeLoaded)
 {
     WinFormsAppWorld.WorldDestroy();
 }
Ejemplo n.º 5
0
 void Client_EntitySystemService_WorldCreateEnd(EntitySystemClientNetworkService sender)
 {
 }