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 {