Content:MirLua/NamedEvents/Definitions: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
{{#hashdefine: | {{#hashdefine: | ||
CreateHookableEvent | example={{Content:MirLua/Example|code= | CreateHookableEvent | example={{Content:MirLua/Example|code=local hEvent = m.CreateHookableEvent('MyEvent')}};; | ;; | = | ||
}}{{#hashdefine: | }}{{#hashdefine: | ||
HookEvent | example={{Content:MirLua/Example|code= | HookEvent | example={{Content:MirLua/Example|code=local hHook = m.HookEvent('MyEvent', function(w, l) | ||
print('MyEvent is raised!') | |||
end) | |||
}};; | ;; | = | |||
}}{{#hashdefine: | }}{{#hashdefine: | ||
UnhookEvent | example={{Content:MirLua/Example|code= | UnhookEvent | example={{Content:MirLua/Example|code=m.UnhookEvent(hHook)}};; | ;; | = | ||
}}{{#hashdefine: | }}{{#hashdefine: | ||
NotifyEventHooks | example={{Content:MirLua/Example|code= | NotifyEventHooks | example={{Content:MirLua/Example|code=m.NotifyEventHooks(hEvent)}};; | ;; | = | ||
}}{{#hashdefine: | }}{{#hashdefine: | ||
DestroyHookableEvent | example={{Content:MirLua/Example|code= | DestroyHookableEvent | example={{Content:MirLua/Example|code=m.DestroyHookableEvent(hEvent)}};; | ;; | = | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
[[Category:Content pages]] | [[Category:Content pages]] | ||
</noinclude> | </noinclude> |
Revision as of 22:16, 12 November 2015