Beispiel #1
0
 private void TriggerPlayerCastsSpell(string arguments, Creature player, CastedSpell spell)
 {
     if (Name == "WildMagicSurge")
     {
         //System.Diagnostics.Debugger.Break();
     }
     if (player.NeedToBreakBeforeFiringEvent(EventType.FeatureEvents, Name))
     {
         Debugger.Break();
     }
     if (!string.IsNullOrWhiteSpace(OnPlayerCastsSpell))
     {
         Expressions.Do(DndUtils.InjectParameters(OnPlayerCastsSpell, Parameters, arguments), player, null, spell);
     }
 }
        private void DndAlarm_AlarmFired(object sender, DndTimeEventArgs ea)
        {
            string functionToCall = (string)ea.Alarm.Data;

            Expressions.Do(functionToCall, ea.Alarm.Player);
        }
Beispiel #3
0
 void ExecuteCommand(string command, Character player)
 {
     Expressions.Do(command, player);
 }
Beispiel #4
0
 public void TriggerPlayerHitsTarget(Character player, Creature target, CastedSpell castedSpell)
 {
     Expressions.Do(OnPlayerHitsTarget, player, target, castedSpell);
 }
Beispiel #5
0
 public void TriggerDispel(Character player, Creature targetCreature, CastedSpell castedSpell)
 {
     Expressions.Do(OnDispel, player, targetCreature, castedSpell);
 }
Beispiel #6
0
 public void TriggerOnCasting(Character player, Creature targetCreature, CastedSpell castedSpell)
 {
     Expressions.Do(OnCasting, player, targetCreature, castedSpell);
 }