Registers the EventClass with the event type.
| <EventClass>.callback( | |
| event | |
| function | |
| priority = 0 |
)
event
The event ID to register the callback for
function
The function to register with the callback
priority = 0
The priority to register the function with
To unregister the event class with an event, pass 0 as the function value. Only one function can be registered per event per event class.
None