示例#1
0
        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);
        }
示例#2
0
 public static void OnGetRollRequest(object sender, GetRollEventArgs ea)
 {
     GetRollRequest?.Invoke(sender, ea);
 }