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; }
public void Created(Actor self) { attack = self.TraitOrDefault <AttackTurreted>(); facing = self.TraitOrDefault <IFacing>(); body = self.Trait <BodyOrientation>(); }
public SmokeTrailWhenDamaged(Actor self, SmokeTrailWhenDamagedInfo info) { this.info = info; body = self.Trait <BodyOrientation>(); }
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>(); }