Crossfire Server, Trunk
cfpython_proto.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int cfpython_globalEventListener (int *type,...)
 
void cfpython_runPluginCommand (object *op, const char *params)
 
int closePlugin (void)
 
PyObject * Crossfire_Archetype_wrap (archetype *what)
 
PyObject * Crossfire_Map_wrap (mapstruct *what)
 
PyObject * Crossfire_Object_wrap (object *what)
 
PyObject * Crossfire_Party_wrap (partylist *what)
 
PyObject * Crossfire_Region_wrap (region *what)
 
int eventListener (int *type,...)
 
void * getPluginProperty (int *type,...)
 
void Handle_Map_Unload_Hook (Crossfire_Map *map)
 
int initPlugin (const char *iversion, f_plug_api gethooksptr)
 
int postInitPlugin (void)
 

Function Documentation

◆ cfpython_globalEventListener()

◆ cfpython_runPluginCommand()

void cfpython_runPluginCommand ( object op,
const char *  params 
)

◆ closePlugin()

int closePlugin ( void  )

Close the plugin.

Closes the sqlite database.

Returns
0.

Definition at line 1324 of file cfanim.cpp.

References c, cf_free_string(), cf_log(), cf_system_unregister_command(), database, mad_mage_user::file, llevDebug, llevInfo, logger_database, MAX_COMMANDS, newspaper_database, PLUGIN_VERSION, pycode_cache, PYTHON_CACHE_SIZE, and registered_commands.

+ Here is the call graph for this function:

◆ Crossfire_Archetype_wrap()

PyObject* Crossfire_Archetype_wrap ( archetype what)

◆ Crossfire_Map_wrap()

PyObject* Crossfire_Map_wrap ( mapstruct what)

Definition at line 435 of file cfpython_map.cpp.

References add_map_assoc(), Crossfire_MapType, find_assoc_pymap(), Crossfire_Map::map, and Crossfire_Map::valid.

Referenced by cfpython_globalEventListener(), createMap(), getMapHasBeenLoaded(), getMaps(), Map_Next(), Object_GetMap(), and readyMap().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Crossfire_Object_wrap()

◆ Crossfire_Party_wrap()

PyObject* Crossfire_Party_wrap ( partylist what)

Definition at line 61 of file cfpython_party.cpp.

References Crossfire_PartyType, and Crossfire_Party::party.

Referenced by Crossfire_Party_GetNext(), getParties(), and Player_GetParty().

+ Here is the caller graph for this function:

◆ Crossfire_Region_wrap()

PyObject* Crossfire_Region_wrap ( region what)

Definition at line 72 of file cfpython_region.cpp.

◆ eventListener()

◆ getPluginProperty()

void* getPluginProperty ( int *  type,
  ... 
)

Gets a plugin property.

Parameters
typeignored.
Returns
  • the name, if asked for 'Identification'.
  • the version, if asked for 'FullName'.
  • NULL else.

Check if plugin handles custom command

Definition at line 1218 of file cfanim.cpp.

References make_face_from_files::args, buf, PLUGIN_NAME, PLUGIN_VERSION, and is_valid_types_gen::type.

◆ Handle_Map_Unload_Hook()

void Handle_Map_Unload_Hook ( Crossfire_Map map)

Definition at line 430 of file cfpython_map.cpp.

References free_map_assoc(), and disinfect::map.

Referenced by cfpython_globalEventListener().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initPlugin()

int initPlugin ( const char *  iversion,
f_plug_api  gethooksptr 
)

Plugin initialisation function.

Parameters
iversionserver version.
gethooksptrfunction to get the hooks.
Returns
0

Main plugin entry point.

Parameters
iversionserver version.
gethooksptrfunction to get hooks from.
Returns
always 0.

Plugin initialisation function.

Parameters
iversionserver version.
gethooksptrfunction to get the hooks.
Returns
0

Main plugin entry point.

Parameters
iversionserver version.
gethooksptrfunction to get hooks from.
Returns
always 0.

Definition at line 1208 of file cfanim.cpp.

References c, catcher, cf_init_plugin(), cf_log(), cfpython_init_types(), initConstants(), llevDebug, llevInfo, m, MAX_COMMANDS, PLUGIN_VERSION, private_data, PyInit_cjson(), PyInit_Crossfire(), registered_commands, shared_data, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ postInitPlugin()