Inheritance: ITraitInfo
Ejemplo n.º 1
0
 public Transforms(ActorInitializer init, TransformsInfo info)
 {
     self         = init.Self;
     this.info    = info;
     buildingInfo = self.World.Map.Rules.Actors[info.IntoActor].Traits.GetOrDefault <BuildingInfo>();
     race         = init.Contains <RaceInit>() ? init.Get <RaceInit, string>() : self.Owner.Faction.InternalName;
 }
Ejemplo n.º 2
0
 public Transforms(ActorInitializer init, TransformsInfo info)
 {
     self = init.Self;
     this.info = info;
     buildingInfo = self.World.Map.Rules.Actors[info.IntoActor].TraitInfoOrDefault<BuildingInfo>();
     faction = init.Contains<FactionInit>() ? init.Get<FactionInit, string>() : self.Owner.Faction.InternalName;
 }
Ejemplo n.º 3
0
 public Transforms(ActorInitializer init, TransformsInfo info)
 {
     self = init.Self;
     this.info = info;
     buildingInfo = self.World.Map.Rules.Actors[info.IntoActor].Traits.GetOrDefault<BuildingInfo>();
     race = init.Contains<RaceInit>() ? init.Get<RaceInit, string>() : self.Owner.Country.Race;
 }