Difference for doc/Developers/plugins from version 1.2 to 1.3


version 1.2 version 1.3
Line 1
 
Line 1
   Plugin support
   ==============
   
   Crossfire can be extended through plugins. It's basically a library file, that gets loaded
   at server initialization.
   A plugin can be hooked to different events, either related to an object or global ones.
   (see list later on).
   
   File include/plugin.h contains all definitions a plugin needs to hook to the server.
   This should be enough to write plugins.
   The best way to find what you need to write is to check this file. You can also check the
   Python plugin (plugin/plugin_python.c) which is the most advanced one.
   
   All functions the plugin can access are defined as HOOK_xxx, events are EVENT_xxx.
   Check CFW* functions in server/plugins.c for all exported functions and what they do.
   
   Important: a plugin should *never* directly call malloc, free, or any function
   manipulating memory if the memory needs to be given to server. This breaks Windows
   compatibility. Hooks are provided in case of need.
   
 List of supported events.  List of supported events.
 =========================  =========================
   


Legend:
line(s) removed in v.1.2 
line(s) changed
 line(s) added in v.1.3

File made using version 1.98 of cvs2html by leaf at 2011-07-21 19:41