示例#1
0
 public ClonesProducedUnits(ActorInitializer init, ClonesProducedUnitsInfo info)
 {
     this.info        = info;
     productionTraits = init.Self.TraitsImplementing <Production>().ToArray();
 }
示例#2
0
 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;
 }