From dbbe8aa7ac2bc4cec10917060e758c9eed611a94 Mon Sep 17 00:00:00 2001 From: plague006 Date: Sun, 3 Feb 2019 16:37:57 -0500 Subject: [PATCH] Fix param names in event (nobody ever reads the doc) --- utils/event.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/event.lua b/utils/event.lua index dccd0da3..27348704 100644 --- a/utils/event.lua +++ b/utils/event.lua @@ -297,7 +297,7 @@ end --- Register a token handler for the nth tick that can be safely added and removed at runtime. -- Do NOT call this method during on_load. -- See documentation at top of file for details on using events. --- @param event_name +-- @param tick -- @param token function Event.add_removable_nth_tick(tick, token) if type(token) ~= 'number' then @@ -320,7 +320,7 @@ end --- Removes a token handler for the nth tick. -- Do NOT call this method during on_load. -- See documentation at top of file for details on using events. --- @param event_name +-- @param tick -- @param token function Event.remove_removable_nth_tick(tick, token) local tokens = token_nth_tick_handlers[tick] @@ -344,7 +344,7 @@ end -- The handler must not be a closure, as that is a desync risk. -- Do NOT call this method during on_load. -- See documentation at top of file for details on using events. --- @param event_name +-- @param tick -- @param func function Event.add_removable_nth_tick_function(tick, func) if type(func) ~= 'function' then @@ -373,7 +373,7 @@ end --- Removes a handler for the nth tick. -- Do NOT call this method during on_load. -- See documentation at top of file for details on using events. --- @param event_name +-- @param tick -- @param func function Event.remove_removable_nth_tick_function(tick, func) local funcs = function_nth_tick_handlers[tick]