Exemplo n.º 1
0
 public MechanicDataDiff(int id, MechanicJsonData first, MechanicJsonData second)
 {
     Id = id;
     PriceForFirstMechanicDiff          = first.priceForFirstMechanic - second.priceForFirstMechanic;
     PriceIncreasingForNextMechanicDiff = first.priceIncreasingForNextMechanic - second.priceIncreasingForNextMechanic;
     UnitCountServiceDiff                 = first.unitCountService - second.unitCountService;
     FatigueUnitsPercentPerHourDiff       = first.fatigueUnitsPercentPerHour - second.fatigueUnitsPercentPerHour;
     ServiceUnitsRestoredPer10SecondsDiff = first.serviceUnitsRestoredPer10Seconds - second.serviceUnitsRestoredPer10Seconds;
     ServiceCashPriceDiff                 = first.serviceCashPrice - second.serviceCashPrice;
 }
Exemplo n.º 2
0
 public void Load(MechanicJsonData data)
 {
     this.PlanetId = data.planetId;
     this.PriceForFirstMechanic          = data.priceForFirstMechanic;
     this.PriceIncreasingForNextMechanic = data.priceIncreasingForNextMechanic;
     this.UnitCountService                 = data.unitCountService;
     this.FatigueUntisPercentPerHour       = data.fatigueUnitsPercentPerHour;
     this.ServiceUnitsRestoredPer10Seconds = data.serviceUnitsRestoredPer10Seconds;
     this.ServiceCashPrice                 = data.serviceCashPrice;
 }
Exemplo n.º 3
0
 public MechanicDataDiff GetDifference(MechanicJsonData other)
 {
     return(new MechanicDataDiff(planetId, this, other));
 }
Exemplo n.º 4
0
 public MechanicData(MechanicJsonData jsonData)
 {
     Load(jsonData);
 }