示例#1
0
 protected override void Created(Actor self)
 {
     body = self.TraitOrDefault <BodyOrientation>();
     base.Created(self);
 }
 public NukePower(Actor self, NukePowerInfo info)
     : base(self, info)
 {
     body      = self.Trait <BodyOrientation>();
     this.info = info;
 }
示例#3
0
 public void Created(Actor self)
 {
     attack = self.TraitOrDefault <AttackTurreted>();
     facing = self.TraitOrDefault <IFacing>();
     body   = self.Trait <BodyOrientation>();
 }
示例#4
0
 public SmokeTrailWhenDamaged(Actor self, SmokeTrailWhenDamagedInfo info)
 {
     this.info = info;
     body      = self.Trait <BodyOrientation>();
 }
示例#5
0
 void INotifyCreated.Created(Actor self)
 {
     attack = self.TraitsImplementing <AttackTurreted>().SingleOrDefault(at => ((AttackTurretedInfo)at.Info).Turrets.Contains(Info.Turret));
     facing = self.TraitOrDefault <IFacing>();
     body   = self.Trait <BodyOrientation>();
 }