This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.
Register: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
 Add Register() API Function page. Include an example.  | 
			
(No difference) 
 | 
Revision as of 04:51, 19 October 2011
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.