From e2665118b58e234121e1ab6ced30132c10018d48 Mon Sep 17 00:00:00 2001 From: Alessandro Proto Date: Tue, 10 Jan 2023 23:28:11 +0100 Subject: [PATCH] Added summary to function. not sure how to explain better --- Capy64/LuaRuntime/Runtime.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Capy64/LuaRuntime/Runtime.cs b/Capy64/LuaRuntime/Runtime.cs index 0936c76..d66723d 100644 --- a/Capy64/LuaRuntime/Runtime.cs +++ b/Capy64/LuaRuntime/Runtime.cs @@ -70,6 +70,13 @@ public class Runtime eventQueue.Enqueue(ev); } + /// + /// Push a new event to the event queue. + /// + /// Event name + /// Event handler. Push any needed parameter from here. Return n as amount of parameters pushed, minus event name. + /// For example: I push an event with 3 parameters, then I return 3. + /// public void PushEvent(string name, Func handler) { eventQueue.Enqueue(new LuaDelegateEvent {