public Upgrade(UpgradeTemplate template) { Template = template; }
public ProductionJob(UpgradeTemplate definition) { UpgradeDefinition = definition; Type = ProductionJobType.Upgrade; _duration = (int)(definition.BuildTime * 1000.0f); }
public ProductionJob(UpgradeTemplate definition) { UpgradeDefinition = definition; Type = ProductionJobType.Upgrade; _duration = definition.BuildTime.Value; }