mirror of
https://github.com/Ale32bit/Capy64.git
synced 2025-01-18 18:46:43 +00:00
Added summary to function. not sure how to explain better
This commit is contained in:
parent
1eb2edd179
commit
e2665118b5
1 changed files with 7 additions and 0 deletions
|
@ -70,6 +70,13 @@ public class Runtime
|
|||
eventQueue.Enqueue(ev);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Push a new event to the event queue.
|
||||
/// </summary>
|
||||
/// <param name="name">Event name</param>
|
||||
/// <param name="handler">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.
|
||||
/// </param>
|
||||
public void PushEvent(string name, Func<Lua, int> handler)
|
||||
{
|
||||
eventQueue.Enqueue(new LuaDelegateEvent {
|
||||
|
|
Loading…
Reference in a new issue