Exemple #1
0
 private MiningCampState CreateState(IMinigCampInfo info)
 {
     return(new MiningCampState
     {
         Base = StateUtils.CreateBuildingState(info),
         MiningSpeed = info.MiningSpeed
     });
 }
 private BuildingTemplateState CreateState(IBuildingTemplateInfo info)
 {
     return(new BuildingTemplateState
     {
         Base = StateUtils.CreateBuildingState(info),
         AttachedWorkers = info.AttachedWorkers,
         Progress = info.Progress
     });
 }