示例#1
0
        public void Stop()
        {
            this.active = false;
            WorldObjectsHolder worldObjects = Find.WorldObjects;

            for (int i = 0; i < this.waypoints.Count; i++)
            {
                worldObjects.Remove(this.waypoints[i]);
            }
            this.waypoints.Clear();
            this.cachedTicksToWaypoint.Clear();
            this.caravanPawnsFromFormCaravanDialog.Clear();
            this.currentFormCaravanDialog = null;
            this.cantRemoveFirstWaypoint  = false;
            this.ReleasePaths();
        }
示例#2
0
 public void ConstructComponents()
 {
     worldObjects         = new WorldObjectsHolder();
     factionManager       = new FactionManager();
     worldPawns           = new WorldPawns();
     gameConditionManager = new GameConditionManager(this);
     storyState           = new StoryState(this);
     renderer             = new WorldRenderer();
     UI                 = new WorldInterface();
     debugDrawer        = new WorldDebugDrawer();
     dynamicDrawManager = new WorldDynamicDrawManager();
     pathFinder         = new WorldPathFinder();
     pathPool           = new WorldPathPool();
     reachability       = new WorldReachability();
     floodFiller        = new WorldFloodFiller();
     ticksAbsCache      = new ConfiguredTicksAbsAtGameStartCache();
     components.Clear();
     FillComponents();
 }
示例#3
0
        public void Stop()
        {
            this.active = false;
            WorldObjectsHolder worldObjects = Find.WorldObjects;

            for (int i = 0; i < this.waypoints.Count; i++)
            {
                worldObjects.Remove(this.waypoints[i]);
            }
            this.waypoints.Clear();
            this.cachedTicksToWaypoint.Clear();
            if (this.currentFormCaravanDialog != null)
            {
                this.currentFormCaravanDialog.Notify_NoLongerChoosingRoute();
            }
            this.caravanInfoFromFormCaravanDialog = null;
            this.currentFormCaravanDialog         = null;
            this.cantRemoveFirstWaypoint          = false;
            this.ReleasePaths();
        }
示例#4
0
 public void ConstructComponents()
 {
     this.worldObjects         = new WorldObjectsHolder();
     this.factionManager       = new FactionManager();
     this.uniqueIDsManager     = new UniqueIDsManager();
     this.worldPawns           = new WorldPawns();
     this.settings             = new WorldSettings();
     this.gameConditionManager = new GameConditionManager(null);
     this.storyState           = new StoryState(this);
     this.renderer             = new WorldRenderer();
     this.UI                 = new WorldInterface();
     this.debugDrawer        = new WorldDebugDrawer();
     this.dynamicDrawManager = new WorldDynamicDrawManager();
     this.pathFinder         = new WorldPathFinder();
     this.pathPool           = new WorldPathPool();
     this.reachability       = new WorldReachability();
     this.floodFiller        = new WorldFloodFiller();
     this.ticksAbsCache      = new ConfiguredTicksAbsAtGameStartCache();
     this.components.Clear();
     this.FillComponents();
 }