diff options
-rw-r--r-- | scripts/toy.groovy | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/scripts/toy.groovy b/scripts/toy.groovy index 1cb9672..9e26632 100644 --- a/scripts/toy.groovy +++ b/scripts/toy.groovy @@ -207,7 +207,7 @@ def execEvents = { rt -> events.remove(e.key); saveEvents(events); if (f) { - f(e.value.arg, e.value.time, rt); + f(e.key, e.value.arg, e.value.time, rt); } }) }; @@ -1330,10 +1330,9 @@ def beginPlan = { plan -> }; // Initial - basic checks and defaults namedEvents = [ - // name: func(arg, schedTime rt) - play: { arg, schedTime, rt -> playEvent(rt, arg) }, - redress: { arg, schedTime, rt -> redress(rt) }, - permit: { arg, schedTime, rt -> givePermission(arg) } + play: { name, arg, schedTime, rt -> playEvent(rt, arg) }, + redress: { name, arg, schedTime, rt -> redress(rt) }, + permit: { name, arg, schedTime, rt -> givePermission(arg) } ]; def setupInitial = { if (loadInteger("toy.version") == null) { |