示例#1
0
        public CarriesFlag(Actor self, CarriesFlagInfo info)
        {
            this.info = info;
            Flag      = null;

            spawner           = self.World.WorldActor.Trait <SpawnSSUnit>();
            multiplierManager = self.TraitOrDefault <SSMultiplierManager>();
        }
示例#2
0
        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;
 }
示例#4
0
 void INotifyCreated.Created(Actor self)
 {
     Spawner = self.TraitOrDefault <SpawnSSUnit>();
     worldNotifySelection = self.TraitsImplementing <INotifySelection>().ToArray();
     world = self.World;
 }