Exemplo n.º 1
0
 protected override void InitTriggers()
 {
     RegisterTrigger(GameEvent.DoPlayer, new DoPlayerTrigger());
     RegisterTrigger(GameEvent.Shuffle, new ShuffleTrigger());
     RegisterTrigger(GameEvent.GameStart, new Pk1v1GameRuleTrigger());
     RegisterTrigger(GameEvent.PhaseProceedEvents[TurnPhase.Judge], new PlayerJudgeStageTrigger());
     RegisterTrigger(GameEvent.PhaseProceedEvents[TurnPhase.Play], new Pk1v1PlayerActionTrigger());
     RegisterTrigger(GameEvent.PhaseProceedEvents[TurnPhase.Draw], new PlayerDealStageTrigger() { Priority = -1 });
     RegisterTrigger(GameEvent.PhaseProceedEvents[TurnPhase.Discard], new PlayerDiscardStageTrigger() { Priority = -1 });
     RegisterTrigger(GameEvent.CommitActionToTargets, new CommitActionToTargetsTrigger());
     RegisterTrigger(GameEvent.AfterHealthChanged, new PlayerHpChanged());
     RegisterTrigger(GameEvent.GameProcessPlayerIsDead, new PlayerIsDead() { Priority = int.MinValue });
     RegisterTrigger(GameEvent.CardUsageBeforeEffected, new DeadManStopper() { Priority = int.MaxValue });
     RegisterTrigger(GameEvent.CardUsageBeforeEffected, new DeadManStopper() { Priority = int.MinValue });
     RegisterTrigger(GameEvent.PlayerSkillSetChanged, cleanupSquad);
     var trigger = new InitialDealAdjustment() { Priority = int.MaxValue };
     RegisterTrigger(GameEvent.PhaseProceedEvents[TurnPhase.Draw], trigger);
     RegisterTrigger(GameEvent.PhasePostEnd, new InitialDealAdjustmentUnregister(trigger));
 }
Exemplo n.º 2
0
        protected override void InitTriggers()
        {
            RegisterTrigger(GameEvent.DoPlayer, new DoPlayerTrigger());
            RegisterTrigger(GameEvent.Shuffle, new ShuffleTrigger());
            RegisterTrigger(GameEvent.GameStart, new Pk1v1GameRuleTrigger());
            RegisterTrigger(GameEvent.PhaseProceedEvents[TurnPhase.Judge], new PlayerJudgeStageTrigger());
            RegisterTrigger(GameEvent.PhaseProceedEvents[TurnPhase.Play], new Pk1v1PlayerActionTrigger());
            RegisterTrigger(GameEvent.PhaseProceedEvents[TurnPhase.Draw], new PlayerDealStageTrigger()
            {
                Priority = -1
            });
            RegisterTrigger(GameEvent.PhaseProceedEvents[TurnPhase.Discard], new PlayerDiscardStageTrigger()
            {
                Priority = -1
            });
            RegisterTrigger(GameEvent.CommitActionToTargets, new CommitActionToTargetsTrigger());
            RegisterTrigger(GameEvent.AfterHealthChanged, new PlayerHpChanged());
            RegisterTrigger(GameEvent.GameProcessPlayerIsDead, new PlayerIsDead()
            {
                Priority = int.MinValue
            });
            RegisterTrigger(GameEvent.CardUsageBeforeEffected, new DeadManStopper()
            {
                Priority = int.MaxValue
            });
            RegisterTrigger(GameEvent.CardUsageBeforeEffected, new DeadManStopper()
            {
                Priority = int.MinValue
            });
            RegisterTrigger(GameEvent.PlayerSkillSetChanged, cleanupSquad);
            var trigger = new InitialDealAdjustment()
            {
                Priority = int.MaxValue
            };

            RegisterTrigger(GameEvent.PhaseProceedEvents[TurnPhase.Draw], trigger);
            RegisterTrigger(GameEvent.PhasePostEnd, new InitialDealAdjustmentUnregister(trigger));
        }
Exemplo n.º 3
0
 public InitialDealAdjustmentUnregister(InitialDealAdjustment trigger)
 {
     theTrigger = trigger;
 }
Exemplo n.º 4
0
 public InitialDealAdjustmentUnregister(InitialDealAdjustment trigger)
 {
     theTrigger = trigger;
 }