Beispiel #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();
        }
Beispiel #2
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();
        }