Example #1
0
 internal void Update(kcsapi_ndock rawData)
 {
     this.Id = rawData.api_id;
     this.State = (RepairingDockState)rawData.api_state;
     this.ShipId = rawData.api_ship_id;
     this.Ship = this.State == RepairingDockState.Repairing ? this.homeport.Ships[this.ShipId] : null;
     this.CompleteTime = this.State == RepairingDockState.Repairing
         ? (DateTimeOffset?)Definitions.UnixEpoch.AddMilliseconds(rawData.api_complete_time)
         : null;
 }
Example #2
0
 internal void Finish()
 {
     this.State = RepairingDockState.Unlocked;
     this.ShipId = -1;
     this.Ship = null;
     this.CompleteTime = null;
 }