public CarriesFlag(Actor self, CarriesFlagInfo info) { this.info = info; Flag = null; spawner = self.World.WorldActor.Trait <SpawnSSUnit>(); multiplierManager = self.TraitOrDefault <SSMultiplierManager>(); }
public Flag(ActorInitializer init, FlagInfo info) { self = init.Self; this.info = info; spawner = self.World.WorldActor.Trait <SpawnSSUnit>(); var locationInit = init.GetOrDefault <LocationInit>(info); if (locationInit != null) { SetPosition(self, locationInit.Value); } }
public TeamLeaderColorModifier(Actor self, TeamLeaderColorModifierInfo info) { this.info = info; spawner = self.World.WorldActor.Trait <SpawnSSUnit>(); leader = spawner.TeamLeaders.ContainsKey(self.Owner) ? spawner.TeamLeaders[self.Owner] : null; }
void INotifyCreated.Created(Actor self) { Spawner = self.TraitOrDefault <SpawnSSUnit>(); worldNotifySelection = self.TraitsImplementing <INotifySelection>().ToArray(); world = self.World; }