예제 #1
0
 public WebConstructionData(IConstructionStructureModel structureModel)
 {
     CurrentConstructionPoints = structureModel.CurrentConstructionPoints;
     FullConstructionPoints    = structureModel.FullConstructionPoints;
     TimeRemaining             = (FullConstructionPoints - CurrentConstructionPoints) / structureModel.ConstructionRate;//Units might be f****d up here, I didn't check what units the rate was in
     StructureInfo             = new WebStructureInfo(structureModel);
 }
 public WebStructureOverviewData(IStructureModel structureModel)
 {
     DisplayName   = structureModel.StructureType.ToString();
     IsEnabled     = structureModel.Enabled;
     CurrentHealth = structureModel.CurrentHealth;
     StructureInfo = new WebStructureInfo(structureModel);
 }