Originally Posted by Garkin
I believe that event manager works the same way as callback object. It uses registry with structure similar to:
Lua Code:
eventRegistry = { [event1] = { [identifier1] = callback1, [identifier2] = callback2, }, [event2] = { [identifier1] = callback3, }, }
|
It does not work this way. There is no identifier for your "Registered Callback" the same way you have to specify one for your Event Registering - you have (<Event>, <Callback>) instead of
(<ID of Event handler registation>, <Event>, <Callback>). Maybe RegsiterCallback returns some value (like an int index).
Does anybody know how one could unregister a callback from a Callback Manager? Anything RegisterCallback Returns? Maybe you just give the callback again during unregister?