|
handler_i_d | sub (int event, luabridge::lua_ref func) |
|
void | unsub (int event, handler_i_d handlerId) |
|
Global event system
Definition at line 45 of file EventSystem.h.
◆ sub()
handler_i_d event_system::sub |
( |
int | event, |
|
|
luabridge::lua_ref | func ) |
Add callback for event
- Parameters
-
event | Event type |
func | Callback function |
- Returns
- Subscription handle for unsubscription
◆ unsub()
void event_system::unsub |
( |
int | event, |
|
|
handler_i_d | handlerId ) |
Remove callback from event
- Parameters
-
event | Event type |
handlerId | Subscription handle |