Ejemplo n.º 1
0
        public void CollectTargetsForEMPEffectInNonTeamBattle(NodeAddedEvent e, EMPEffectNode emp, [JoinByTank] SelfTankNonTeamNode selfTank, [JoinByBattle] NonTeamBattleNode battle, [JoinByBattle] ICollection <RemoteTankNode> otherTanks)
        {
            CollectTargetsInRadius eventInstance = new CollectTargetsInRadius {
                Radius = emp.empEffect.Radius
            };

            Node[] nodes = new Node[] { emp, selfTank, battle };
            base.NewEvent(eventInstance).AttachAll(nodes).Schedule();
        }
Ejemplo n.º 2
0
 public void CollectTargetsForEMPEffectInNonTeamBattle(CollectTargetsInRadius e, EffectNode any, SelfTankNonTeamNode selfTank, NonTeamBattleNode battle, [JoinByBattle] ICollection <RemoteTankNode> otherTanks)
 {
     this.CollectTargetsForEMP(e, selfTank, otherTanks);
 }
        public void CollectTargetsInNonTeamBattle(NodeAddedEvent e, ExplosiveMassEffectNode effect, [JoinByTank] SelfTankNonTeamNode selfTank, [JoinByBattle] NonTeamBattleNode battle, [JoinByBattle] ICollection <RemoteTankNode> otherTanks)
        {
            CollectTargetsInRadius eventInstance = new CollectTargetsInRadius {
                Radius = effect.explosiveMassEffect.Radius
            };

            Node[] nodes = new Node[] { effect, selfTank, battle };
            base.NewEvent(eventInstance).AttachAll(nodes).ScheduleDelayed(((float)effect.explosiveMassEffect.Delay) / 1000f);
        }