Crossfire Server  1.75.0
cfpython_proto.h
Go to the documentation of this file.
1 /* cfpython.c */
2 extern "C" int initPlugin(const char *iversion, f_plug_api gethooksptr);
3 extern "C" void *getPluginProperty(int *type, ...);
4 extern "C" void cfpython_runPluginCommand(object *op, const char *params);
5 extern "C" int postInitPlugin(void);
6 extern "C" int cfpython_globalEventListener(int *type, ...);
7 extern "C" int eventListener(int *type, ...);
8 extern "C" int closePlugin(void);
9 /* cfpython_archetype.c */
10 PyObject *Crossfire_Archetype_wrap(archetype *what);
11 /* cfpython_object.c */
12 PyObject *Crossfire_Object_wrap(object *what);
13 /* cfpython_party.c */
14 PyObject *Crossfire_Party_wrap(partylist *what);
15 /* cfpython_region.c */
16 PyObject *Crossfire_Region_wrap(region *what);
17 /* cfpython_map.c */
19 PyObject *Crossfire_Map_wrap(mapstruct *what);
int initPlugin(const char *iversion, f_plug_api gethooksptr)
The server calls this function after loading the plugin.
Definition: cfanim.cpp:1202
void cfpython_runPluginCommand(object *op, const char *params)
int postInitPlugin(void)
The server calls this function to actually initialize the plugin here, after object handlers are regi...
Definition: cfanim.cpp:1246
int cfpython_globalEventListener(int *type,...)
Definition: cfpython.cpp:1705
int eventListener(int *type,...)
Handles an object-related event.
Definition: cfanim.cpp:1271
One party.
Definition: party.h:10
The archetype structure is a set of rules on how to generate and manipulate objects which point to ar...
Definition: object.h:483
int closePlugin(void)
called before the plugin gets unloaded from memory.
Definition: cfanim.cpp:1318
This is a game-map.
Definition: map.h:320
PyObject * Crossfire_Map_wrap(mapstruct *what)
void Handle_Map_Unload_Hook(Crossfire_Map *map)
PyObject * Crossfire_Region_wrap(region *what)
void * getPluginProperty(int *type,...)
The server calls this function to get information about the plugin, notably the name and version...
Definition: cfanim.cpp:1212
PyObject * Crossfire_Party_wrap(partylist *what)
This is a game region.
Definition: map.h:279
void(* f_plug_api)(int *type,...)
General API function.
Definition: plugin.h:79
PyObject * Crossfire_Archetype_wrap(archetype *what)
PyObject * Crossfire_Object_wrap(object *what)
Python initialized.