/// <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; }
/// <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; }