public WithTurretAimAnimation(ActorInitializer init, WithTurretAimAnimationInfo info) : base(info) { attack = init.Self.Trait <AttackBase>(); wst = init.Self.TraitsImplementing <WithSpriteTurret>() .Single(st => st.Info.Turret == info.Turret); }
public WithTurretAttackAnimation(ActorInitializer init, WithTurretAttackAnimationInfo info) : base(info) { armament = init.Self.TraitsImplementing <Armament>() .Single(a => a.Info.Name == info.Armament); wst = init.Self.TraitsImplementing <WithSpriteTurret>() .Single(st => st.Info.Turret == info.Turret); }
public WithTurretedAttackAnimation(ActorInitializer init, WithTurretedAttackAnimationInfo info) { this.info = info; attack = init.Self.Trait <AttackBase>(); armament = init.Self.TraitsImplementing <Armament>() .Single(a => a.Info.Name == info.Armament); wst = init.Self.TraitsImplementing <WithSpriteTurret>() .Single(st => st.Info.Turret == info.Turret); }