public ClonesProducedUnits(ActorInitializer init, ClonesProducedUnitsInfo info) { this.info = info; productionTraits = init.Self.TraitsImplementing <Production>().ToArray(); }
public ClonesProducedUnits(ActorInitializer init, ClonesProducedUnitsInfo info) { this.info = info; production = init.Self.Trait <Production>(); faction = init.Contains <FactionInit>() ? init.Get <FactionInit, string>() : init.Self.Owner.Faction.InternalName; }