Ejemplo n.º 1
0
        /// <summary>
        /// Initiates loading for world.
        /// </summary>
        public void InitWorld()
        {
            LoadProgress = ContentLoadingProgress.InitObjects;
            if (TS1)
            {
                ((TS1ObjectProvider)WorldObjects).Init();
                WorldObjectGlobals.Init();
                LoadProgress = ContentLoadingProgress.InitArch;

                WorldWalls.InitTS1();
                WorldFloors.InitTS1();
            }
            else
            {
                ((WorldObjectProvider)WorldObjects).Init((_device != null));
                ((WorldObjectCatalog)WorldCatalog).Init(this);
                WorldObjectGlobals.Init();
                LoadProgress = ContentLoadingProgress.InitArch;

                WorldWalls.Init();
                WorldFloors.Init();
            }
            WorldRoofs.Init();
            LoadProgress = ContentLoadingProgress.Done;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initiates loading for world.
        /// </summary>
        public void InitWorld()
        {
            LoadProgress = ContentLoadingProgress.InitObjects;
            if (TS1)
            {
                WorldObjectGlobals.Init();
                ((TS1ObjectProvider)WorldObjects).Init();
                LoadProgress = ContentLoadingProgress.InitArch;

                WorldWalls.InitTS1();
                WorldFloors.InitTS1();
            }
            else
            {
                WorldObjectGlobals.Init();
                ((WorldObjectProvider)WorldObjects).Init((Device != null));
                ((WorldObjectCatalog)WorldCatalog).Init(this);
                LoadProgress = ContentLoadingProgress.InitArch;

                WorldWalls.Init();
                WorldFloors.Init();
                Upgrades.Init();
                if (Mode == ContentMode.SERVER)
                {
                    Upgrades.LoadJSONTuning();
                }
            }
            WorldRoofs.Init();
            LoadProgress = ContentLoadingProgress.Done;
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Initiates loading for world.
 /// </summary>
 public void InitWorld()
 {
     WorldObjects.Init((Device != null));
     WorldObjectGlobals.Init();
     WorldWalls.Init();
     WorldFloors.Init();
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initiates loading for world.
 /// </summary>
 public void InitWorld()
 {
     WorldObjects.Init((Device != null));
     WorldObjectGlobals.Init();
     WorldWalls.Init();
     WorldFloors.Init();
     WorldCatalog.Init(this);
     WorldRoofs.Init();
 }
Ejemplo n.º 5
0
        /// <summary>
        /// Initiates loading for world.
        /// </summary>
        public void InitWorld()
        {
            if (TS1)
            {
                ((TS1ObjectProvider)WorldObjects).Init();
            }
            else
            {
                ((WorldObjectProvider)WorldObjects).Init((Device != null));
                ((WorldObjectCatalog)WorldCatalog).Init(this);
            }

            WorldObjectGlobals.Init();
            WorldWalls.Init();
            WorldFloors.Init();
            WorldRoofs.Init();
        }