public DockData(string dockName, DockID dockID) { this.dockName = dockName; dockState = DockState.Locked; this.dockID = dockID; ship = null; }
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(); } }