public AgentStatistics(AgentStatistics factoryStats) { this.stats = new Dictionary<AgentStatistic, AgentStatisticValue>(); foreach ( AgentStatistic stat in Enum.GetValues(typeof(AgentStatistic)) ) { var val = (factoryStats == null) ? new AgentStatisticValue(stat, 0) : factoryStats[stat].Clone(); this.stats.Add(stat, val); } }
public Agent(Corporation employer) { Employer = employer; Stats = new AgentStatistics(); }