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.
Bz Load: Difference between revisions
Jump to navigation
Jump to search
wrote page for bz_load |
m fixed typo |
||
| Line 13: | Line 13: | ||
===Deprecation=== | ===Deprecation=== | ||
All calls to [[bz_Load]] have been deprecated as of 2.4 and will | All calls to [[bz_Load]] have been deprecated as of 2.4 and will be replaced with: | ||
# '''virtual void Init ( const char* config);''' | # '''virtual void Init ( const char* config);''' | ||
More information on this function can be found on the [[BZFS_API_2.4_Upgrade]] page. | More information on this function can be found on the [[BZFS_API_2.4_Upgrade]] page. | ||
Revision as of 05:04, 15 June 2011
Code Example
BZF_PLUGIN_CALL int bz_Load ( const char* /*commandLine*/ ) {
bz_debugMessage(4,"SAMPLE_PLUGIN plugin loaded");
return 0;
}
Functions
The bz_Load function is required for all plugins. In this function all debug messages, events, map objects, and slash commands are registered. Available functions for this are as follows:
Deprecation
All calls to bz_Load have been deprecated as of 2.4 and will be replaced with:
# virtual void Init ( const char* config);
More information on this function can be found on the BZFS_API_2.4_Upgrade page.