Exemplo n.º 1
0
 public FlyAttack(Actor self, Target target)
 {
     this.target    = target;
     attackPlane    = self.TraitOrDefault <AttackPlane>();
     ammoPools      = self.TraitsImplementing <AmmoPool>().ToArray();
     ticksUntilTurn = attackPlane.AttackPlaneInfo.AttackTurnDelay;
 }
Exemplo n.º 2
0
 public FlyAttack(Actor self, Target target)
 {
     this.target = target;
     attackPlane = self.TraitOrDefault<AttackPlane>();
     ammoPools = self.TraitsImplementing<AmmoPool>().ToArray();
     ticksUntilTurn = attackPlane.AttackPlaneInfo.AttackTurnDelay;
 }
Exemplo n.º 3
0
 public FlyAttack(Actor self, Target target)
 {
     this.target    = target;
     aircraft       = self.Trait <Aircraft>();
     attackPlane    = self.TraitOrDefault <AttackPlane>();
     ticksUntilTurn = attackPlane.AttackPlaneInfo.AttackTurnDelay;
     autoReloads    = self.TraitsImplementing <AmmoPool>().All(p => p.AutoReloads);
 }