This wiki is archived and useful information is being migrated to the main bzflag.org website
bz_registerEvent
From BZFlagWiki
bool bz_registerEvent (bz_eEventType eventType, bz_EventHandler* eventHandler)
Registers a new event handler. This event handler will receive events of the event type specified.
Parameters:
eventType - The type of event to listen for
eventHandler - The listener that will be called when events of the specified type occur
Returns:
Whether or not the event was registered successfully.
Deprecation[edit]
All calls to bz_registerEvent have been deprecated as of 2.4 and will be replaced with:
# Register(bz_eEventType eventType)
More information on this function can be found on the BZFS_API_2.4_Upgrade page.