Esempio n. 1
0
 public void TriggerPlayerHitsTarget(Character player, Target target, CastedSpell castedSpell)
 {
     if (player.NeedToBreakBeforeFiringEvent(EventType.SpellEvents, Name))
     {
         Debugger.Break();
     }
     Expressions.Do(OnPlayerHitsTarget, player, target, castedSpell);
 }
Esempio n. 2
0
 public void TriggerDieRollStopped(Character player, Target target, CastedSpell castedSpell, DiceStoppedRollingData dice)
 {
     if (player.NeedToBreakBeforeFiringEvent(EventType.SpellEvents, Name))
     {
         Debugger.Break();
     }
     Expressions.Do(OnDieRollStopped, player, target, castedSpell, dice);
 }
Esempio n. 3
0
 public void TriggerTargetSaves(Character player, Target target, CastedSpell castedSpell, object customData = null)
 {
     if (player.NeedToBreakBeforeFiringEvent(EventType.SpellEvents, Name))
     {
         Debugger.Break();
     }
     Expressions.Do(OnTargetSaves, player, target, castedSpell, null, customData);
 }
Esempio n. 4
0
 public void TriggerPlayerAttacks(Character player, Creature targetCreature, CastedSpell castedSpell)
 {
     if (player.NeedToBreakBeforeFiringEvent(EventType.SpellEvents, Name))
     {
         Debugger.Break();
     }
     Expressions.Do(OnPlayerAttacks, player, targetCreature, castedSpell);
 }
Esempio n. 5
0
 private void TriggerRollComplete(string arguments, Character player)
 {
     if (player.NeedToBreakBeforeFiringEvent(EventType.FeatureEvents, Name))
     {
         Debugger.Break();
     }
     if (!string.IsNullOrWhiteSpace(OnRollComplete))
     {
         Expressions.Do(DndUtils.InjectParameters(OnRollComplete, Parameters, arguments), player);
     }
 }
Esempio n. 6
0
 private void TriggerAfterPlayerSwingsWeapon(string arguments, Character player)
 {
     if (player.NeedToBreakBeforeFiringEvent(EventType.FeatureEvents, Name))
     {
         Debugger.Break();
     }
     if (!string.IsNullOrWhiteSpace(AfterPlayerSwingsWeapon))
     {
         Expressions.Do(DndUtils.InjectParameters(AfterPlayerSwingsWeapon, Parameters, arguments), player);
     }
 }
Esempio n. 7
0
 private void TriggerPlayerCastsSpell(string arguments, Character player, CastedSpell spell)
 {
     if (player.NeedToBreakBeforeFiringEvent(EventType.FeatureEvents, Name))
     {
         Debugger.Break();
     }
     if (!string.IsNullOrWhiteSpace(OnPlayerCastsSpell))
     {
         Expressions.Do(DndUtils.InjectParameters(OnPlayerCastsSpell, Parameters, arguments), player, null, spell);
     }
 }