Exemplo n.º 1
0
 public DockData(string dockName, DockID dockID)
 {
     this.dockName = dockName;
     dockState     = DockState.Locked;
     this.dockID   = dockID;
     ship          = null;
 }
Exemplo n.º 2
0
    public DockData(Dock dock)
    {
        dockName    = dock.dockName;
        dockState   = dock.DockState;
        dockID      = dock.DockID;
        ship        = dock.Ship;
        destination = dock.Destination;

        if (dock.Ship != null && dock.Ship.resourcesModule != null)
        {
            resourcesInShip = dock.Ship.resourcesModule.resources;
        }

        if (dock.TripClock != null)
        {
            buildTimeLeft = dock.TripClock.TimeLeft();
        }
    }