Register

From BZFlagWiki
Revision as of 04:51, 19 October 2011 by Sigonasr2 (Talk | contribs) (Add Register() API Function page. Include an example.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

void Register() (bz_eEventType eventType)


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


Example

void SAMPLE_PLUGIN::Init ( const char* /*commandLine*/ )
{
	Register(bz_ePlayerUpdateEvent);
}

More information on this function can be found on the BZFS_API_2.4_Upgrade page.