Esempio n. 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>();
 }
Esempio n. 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>();
 }
Esempio n. 3
0
 public void Created(Actor self)
 {
     attack = self.TraitOrDefault <AttackTurreted>();
     facing = self.TraitOrDefault <IFacing>();
     body   = self.Trait <BodyOrientation>();
 }
Esempio n. 4
0
 public void Created(Actor self)
 {
     attack = self.TraitOrDefault <AttackTurreted>();
     facing = self.TraitOrDefault <IFacing>();
 }