This wiki is archived and useful information is being migrated to the main bzflag.org website
Editing BZFS API 2.4 Upgrade
Warning: The database has been locked for maintenance, so you will not be able to save your edits right now. You may wish to copy and paste your text into a text file and save it for later.
The administrator who locked it offered this explanation: Archived wiki
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 95: | Line 95: | ||
* Open the main file for the plug-in and remove the call to '''BZ_GET_PLUGIN_VERSION''' | * Open the main file for the plug-in and remove the call to '''BZ_GET_PLUGIN_VERSION''' | ||
− | * Find the main event handler class and derive it from | + | * Find the main event handler class and derive it from bz_Plugin instead of bz_EventHandler. If there is more then one event handler class, pick one to be the main class and delete the other classes. |
− | * Change the '''process | + | * Change the '''process'' method in your event handler to '''Event''', the calling parameters are identical. |
* Add the following methods to your plug-in class | * Add the following methods to your plug-in class | ||
virtual const char* Name (){return "NAME";} | virtual const char* Name (){return "NAME";} |