API RegisterEvent: Difference between revisions
From Vendetta Lua
Jump to navigationJump to search
split |
No edit summary |
||
Line 1: | Line 1: | ||
=== RegisterEvent === | === RegisterEvent === | ||
'''Definition:''' | '''Definition:''' | ||
RegisterEvent( | RegisterEvent(object eventhandler, string eventtype) -> nil | ||
<br> | <br> | ||
'''Description:'''<br> | '''Description:'''<br> | ||
Hook up object to event. The object is a function or a table with a method called OnEvent or the name of the event. See [[Eventtype#Introduction|Event Intro]] | |||
<br> | <br> | ||
'''Arguments:'''<br> | '''Arguments:'''<br> | ||
''' | ''eventhandler'' object to register with event<br> | ||
''eventtype'' [[eventtype]] | ''eventtype'' [[eventtype]] | ||
<br> | <br> | ||
'''Example:'''<br> | '''Example:'''<br> | ||
see [[Eventtype#Introduction|Event Intro]] | |||
<br> | <br> |
Revision as of 05:56, 17 February 2009
RegisterEvent
Definition:
RegisterEvent(object eventhandler, string eventtype) -> nil
Description:
Hook up object to event. The object is a function or a table with a method called OnEvent or the name of the event. See Event Intro
Arguments:
eventhandler object to register with event
eventtype eventtype
Example:
see Event Intro