Ejemplo n.º 1
0
 private void Arrive()
 {
     this._worldShip.Arrive(this._destinationCell, _arrivalAction, _mapArrivalMode);
     this.status = WorldShipPatherStatus.Standby;
     this.moving = false;
     this.worldPath.Dispose();
 }
Ejemplo n.º 2
0
 public void SetDestination(int destTile, IntVec3 destinationCell, ShipArrivalAction arrivalAction, PawnsArrivalModeDef pawnsArrivalMode)
 {
     if (this.worldPath != null)
     {
         this.worldPath.Dispose();
     }
     this._destinationTile = destTile;
     this._destinationCell = destinationCell;
     this._startTile       = this._worldShip.Tile;
     this.drawTileStart    = this._startTile;
     this.worldPath        = DropShipUtility.CurrentShipTracker.WorldShipPathFinder.FindPath(_startTile, _destinationTile, this._worldShip, (int)this.MinTicksPerTile);
     this.status           = WorldShipPatherStatus.Travelling;
     this.moving           = true;
     this._arrivalAction   = arrivalAction;
     this._mapArrivalMode  = pawnsArrivalMode;
     this.currentTileTraversalTicksLeft = this.MinTicksPerTile;
     this._worldShip.IsTargeting        = false;
 }
Ejemplo n.º 3
0
 public void Halt()
 {
     this.status = WorldShipPatherStatus.Standby;
     this.moving = false;
     this.worldPath.Dispose();
 }