public override object Evaluate(List <string> args, ExpressionEvaluator evaluator, Creature player, Target target, CastedSpell spell, DiceStoppedRollingData dice = null) { ExpectingArguments(args, 1); GetRollEventArgs ea = new GetRollEventArgs((string)args[0]); OnGetRollRequest(this, ea); return(ea.Result); }
public static void OnGetRollRequest(object sender, GetRollEventArgs ea) { GetRollRequest?.Invoke(sender, ea); }