Beispiel #1
0
 protected override void Created(Actor self)
 {
     base.Created(self);
     attack = self.TraitsImplementing <AttackTurreted>().SingleOrDefault(at => ((AttackTurretedInfo)at.Info).Turrets.Contains(Info.Turret));
     facing = self.TraitOrDefault <IFacing>();
     body   = self.Trait <BodyOrientation>();
 }
Beispiel #2
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>();
 }
Beispiel #3
0
 public void Created(Actor self)
 {
     attack = self.TraitOrDefault <AttackTurreted>();
     facing = self.TraitOrDefault <IFacing>();
     body   = self.Trait <BodyOrientation>();
 }
Beispiel #4
0
 public void Created(Actor self)
 {
     attack = self.TraitOrDefault <AttackTurreted>();
     facing = self.TraitOrDefault <IFacing>();
 }