Event Manager
Caffeine has a comprehensive event manager system that is designed to efficiently manage event based actions for both the framework and developer needs.
Bastion EventManager Methods
These methods are here from the orignal port of Bastion to use with Caffeine. These will be eventually depracated in favor of the methods outlined in this page.
RegisterEvent(event, handler)
This method is to register for non WoW events.
RegisterWoWEvent(event, handler)
This method is to register for WoW events.
Caffeine EventManager Methods
RegisterForCaffeineEvent(Handler, …)
Caffeine.EventManager:RegisterForEvent(
function()
<some function>
end,
"CAFFEINE_LOADED"
)