Crossfire Server, Trunk
|
#include <cfpython.h>
#include <fcntl.h>
#include <stdarg.h>
#include <node.h>
#include <svnversion.h>
Go to the source code of this file.
Data Structures | |
struct | pycode_cache_entry |
Macros | |
#define | MAX_COMMANDS 1024 |
#define | PYTHON_CACHE_SIZE 256 |
#define | PYTHON_DEBUG |
Functions | |
static void | addConstants (PyObject *module, const char *name, const CFConstant *constants) |
static PyObject * | addReply (PyObject *self, PyObject *args) |
static void | addSimpleConstants (PyObject *module, const char *name, const CFConstant *constants) |
CF_PLUGIN int | cfpython_globalEventListener (int *type,...) |
static void | cfpython_init_types (PyObject *m) |
static PyObject * | cfpython_openpyfile (char *filename) |
static FILE * | cfpython_pyfile_asfile (PyObject *obj) |
CF_PLUGIN int | closePlugin (void) |
static PyCodeObject * | compilePython (char *filename) |
static PyObject * | costStringFromValue (PyObject *self, PyObject *args) |
static PyObject * | createCFObject (PyObject *self, PyObject *args) |
static PyObject * | createCFObjectByName (PyObject *self, PyObject *args) |
static PyObject * | createMap (PyObject *self, PyObject *args) |
static PyObject * | destroyTimer (PyObject *self, PyObject *args) |
static int | do_script (CFPContext *context) |
CF_PLUGIN int | eventListener (int *type,...) |
static PyObject * | findAnimation (PyObject *self, PyObject *args) |
static PyObject * | findFace (PyObject *self, PyObject *args) |
static PyObject * | findPlayer (PyObject *self, PyObject *args) |
static void | freeContext (CFPContext *context) |
static void | freeEventFiles (char **eventFiles) |
static PyObject * | getArchetypes (PyObject *self, PyObject *args) |
static PyObject * | getCFPythonVersion (PyObject *self, PyObject *args) |
static PyObject * | getConfigDirectory (PyObject *self, PyObject *args) |
static PyObject * | getDataDirectory (PyObject *self, PyObject *args) |
static PyObject * | getEvent (PyObject *self, PyObject *args) |
static char ** | getEventFiles (CFPContext *context) |
static PyObject * | getFriendlyList (PyObject *self, PyObject *args) |
static const char * | getGlobalEventPath (int code) |
static PyObject * | getLocalDirectory (PyObject *self, PyObject *args) |
static PyObject * | getMapDirectory (PyObject *self, PyObject *args) |
static PyObject * | getMapHasBeenLoaded (PyObject *self, PyObject *args) |
static PyObject * | getMaps (PyObject *self, PyObject *args) |
static PyObject * | getMonthName (PyObject *self, PyObject *args) |
static PyObject * | getParties (PyObject *self, PyObject *args) |
static PyObject * | getPeriodofdayName (PyObject *self, PyObject *args) |
static PyObject * | getPlayerDirectory (PyObject *self, PyObject *args) |
static PyObject * | getPlayers (PyObject *self, PyObject *args) |
CF_PLUGIN void * | getPluginProperty (int *type,...) |
static PyObject * | getPrivateDictionary (PyObject *self, PyObject *args) |
static PyObject * | getRegions (PyObject *self, PyObject *args) |
static PyObject * | getReturnValue (PyObject *self, PyObject *args) |
static PyObject * | getScriptName (PyObject *self, PyObject *args) |
static PyObject * | getScriptParameters (PyObject *self, PyObject *args) |
static PyObject * | getSeasonName (PyObject *self, PyObject *args) |
static PyObject * | getSharedDictionary (PyObject *self, PyObject *args) |
static PyObject * | getTempDirectory (PyObject *self, PyObject *args) |
static PyObject * | getTime (PyObject *self, PyObject *args) |
static PyObject * | getUniqueDirectory (PyObject *self, PyObject *args) |
static PyObject * | getWeekdayName (PyObject *self, PyObject *args) |
static PyObject * | getWhatIsMessage (PyObject *self, PyObject *args) |
static PyObject * | getWhoAmI (PyObject *self, PyObject *args) |
static PyObject * | getWhoIsActivator (PyObject *self, PyObject *args) |
static PyObject * | getWhoIsThird (PyObject *self, PyObject *args) |
static void | initConstants (PyObject *module) |
static void | initContextStack (void) |
CF_PLUGIN int | initPlugin (const char *iversion, f_plug_api gethooksptr) |
static PyObject * | log_message (PyObject *self, PyObject *args) |
static void | log_python_error (void) |
static PyObject * | matchString (PyObject *self, PyObject *args) |
static PyObject * | npcSay (PyObject *self, PyObject *args) |
static CFPContext * | popContext (void) |
CF_PLUGIN int | postInitPlugin (void) |
static void | pushContext (CFPContext *context) |
PyObject * | PyInit_cjson (void) |
static PyObject * | PyInit_Crossfire (void) |
static void | python_command_function (object *op, const char *params, const char *script) |
static PyObject * | readyMap (PyObject *self, PyObject *args) |
static PyObject * | registerCommand (PyObject *self, PyObject *args) |
static PyObject * | registerGEvent (PyObject *self, PyObject *args) |
static void | set_exception (const char *fmt,...) |
static PyObject * | setPlayerMessage (PyObject *self, PyObject *args) |
static PyObject * | setReturnValue (PyObject *self, PyObject *args) |
static PyObject * | unregisterGEvent (PyObject *self, PyObject *args) |
Variables | |
static PyObject * | catcher = NULL |
static PyObject * | CFPythonError |
PyMethodDef | CFPythonMethods [] |
CFPContext * | context_stack |
static PyModuleDef | CrossfireModule |
const CFConstant | cstAttackMovement [] |
const CFConstant | cstAttackType [] |
const CFConstant | cstAttackTypeNumber [] |
const CFConstant | cstDirection [] |
const CFConstant | cstEventType [] |
const CFConstant | cstMessageFlag [] |
const CFConstant | cstMove [] |
const CFConstant | cstReplyTypes [] |
const CFConstant | cstTime [] |
const CFConstant | cstType [] |
CFPContext * | current_context |
static int | GECodes [] |
static const char * | GEPaths [] |
static PyObject * | private_data = NULL |
static pycode_cache_entry | pycode_cache [PYTHON_CACHE_SIZE] |
static command_registration | registered_commands [MAX_COMMANDS] |
static PyObject * | shared_data = NULL |
CF_PLUGIN char | SvnRevPlugin [] = SVN_REV |
#define MAX_COMMANDS 1024 |
Definition at line 84 of file cfpython.c.
#define PYTHON_CACHE_SIZE 256 |
Number of python scripts to store the bytecode of at a time.
Definition at line 72 of file cfpython.c.
#define PYTHON_DEBUG |
Give us some general infos out.
Definition at line 71 of file cfpython.c.
|
static |
Add constants and a reverse dictionary to get the name from the value. The reverse dictionary will be named '{name}Name'.
module | where to add the constants to. |
name | enum name containing the constants. |
constants | constants to add, the last item must have its values all NULL. |
Definition at line 1066 of file cfpython.c.
References autojail::dict, give::name, Ice::tmp, and autojail::value.
Referenced by initConstants().
|
static |
Definition at line 675 of file cfpython.c.
References make_face_from_files::args, cf_add_string(), current_context, MAX_REPLIES, talk_info::replies, talk_info::replies_count, talk_info::replies_words, say::reply, set_exception(), _cfpcontext::talk, and nlohmann::detail::void().
Referenced by CREPlayerRepliesPanel::CREPlayerRepliesPanel().
|
static |
Do half the job of addConstants. It only sets constants, but not a hashtable to get constant names from values. To be used for collections of constants which are not unique but still are useful for scripts.
module | where to add the constants to. |
name | enum name containing the constants. |
constants | constants to add, the last item must have its values all NULL. |
Definition at line 1098 of file cfpython.c.
References give::name, Ice::tmp, and autojail::value.
Referenced by initConstants().
CF_PLUGIN int cfpython_globalEventListener | ( | int * | type, |
... | |||
) |
Definition at line 1705 of file cfpython.c.
References _cfpcontext::activator, make_face_from_files::args, buf, cf_log(), Crossfire_Map_wrap(), Crossfire_Object_wrap(), do_script(), _cfpcontext::event, EVENT_BORN, EVENT_CLOCK, _cfpcontext::event_code, EVENT_CRASH, EVENT_GKILL, EVENT_KICK, EVENT_LOGIN, EVENT_LOGOUT, EVENT_MAPENTER, EVENT_MAPLEAVE, EVENT_MAPLOAD, EVENT_MAPRESET, EVENT_MAPUNLOAD, EVENT_MUZZLE, EVENT_PLAYER_DEATH, EVENT_REMOVE, EVENT_SHOUT, EVENT_TELL, mad_mage_user::file, freeContext(), freeEventFiles(), getEventFiles(), getGlobalEventPath(), Handle_Map_Unload_Hook(), death_message::hitter, llevDebug, _cfpcontext::message, pl::ob, give::op, _cfpcontext::options, altar_valkyrie::pl, popContext(), _cfpcontext::returnvalue, _cfpcontext::script, _cfpcontext::talk, _cfpcontext::third, is_valid_types_gen::type, and _cfpcontext::who.
Referenced by postInitPlugin(), and registerGEvent().
|
static |
Set up the various types (map, object, archetype and so on) as well as some constants, and Crossfire.error.
Definition at line 1434 of file cfpython.c.
References CFPythonError, Crossfire_ArchetypeType, Crossfire_MapType, Crossfire_ObjectType, Crossfire_PartyType, Crossfire_PlayerType, Crossfire_RegionType, llevDebug, llevError, llevInfo, llevMonster, and m.
Referenced by initPlugin().
|
static |
Open a file in the way we need it for compilePython() and postInitPlugin().
Definition at line 859 of file cfpython.c.
References npc_dialog::filename, and CFBank::open().
Referenced by compilePython(), and postInitPlugin().
|
static |
Return a file object from a Python file (as needed for compilePython() and postInitPlugin())
Definition at line 873 of file cfpython.c.
Referenced by compilePython(), and postInitPlugin().
CF_PLUGIN int closePlugin | ( | void | ) |
Close the plugin.
Closes the sqlite database.
Definition at line 1917 of file cfpython.c.
References c, cf_free_string(), cf_log(), cf_system_unregister_command(), mad_mage_user::file, llevDebug, MAX_COMMANDS, pycode_cache, PYTHON_CACHE_SIZE, and registered_commands.
|
static |
Outputs the compiled bytecode for a given python file, using in-memory caching of bytecode
Definition at line 917 of file cfpython.c.
References cf_add_string(), cf_free_string(), cf_log(), cfpython_openpyfile(), cfpython_pyfile_asfile(), mad_mage_user::file, npc_dialog::filename, llevDebug, llevError, log_python_error(), pycode_cache, PYTHON_CACHE_SIZE, replace(), sstring, and nlohmann::detail::void().
Referenced by do_script().
|
static |
Definition at line 756 of file cfpython.c.
References make_face_from_files::args, buf, cf_cost_string_from_value(), autojail::value, and nlohmann::detail::void().
|
static |
Definition at line 142 of file cfpython.c.
References make_face_from_files::args, cf_create_object(), Crossfire_Object_wrap(), give::op, and nlohmann::detail::void().
|
static |
Definition at line 152 of file cfpython.c.
References make_face_from_files::args, cf_create_object_by_name(), Crossfire_Object_wrap(), give::op, and nlohmann::detail::void().
|
static |
Definition at line 238 of file cfpython.c.
References make_face_from_files::args, cf_get_empty_map(), Crossfire_Map_wrap(), disinfect::map, and nlohmann::detail::void().
|
static |
Definition at line 566 of file cfpython.c.
References make_face_from_files::args, cf_timer_destroy(), diamondslots::id, and nlohmann::detail::void().
|
static |
Definition at line 1036 of file cfpython.c.
References cf_log(), compilePython(), autojail::dict, llevDebug, log_python_error(), pushContext(), and _cfpcontext::script.
Referenced by cfpython_globalEventListener(), eventListener(), and python_command_function().
CF_PLUGIN int eventListener | ( | int * | type, |
... | |||
) |
Handles an object-related event. Doesn't do anything.
type | ignored. |
Definition at line 1876 of file cfpython.c.
References _cfpcontext::activator, make_face_from_files::args, buf, cf_get_maps_directory(), Crossfire_Object_wrap(), do_script(), animate::event, _cfpcontext::event, _cfpcontext::event_code, freeContext(), _cfpcontext::message, _cfpcontext::options, popContext(), _cfpcontext::returnvalue, _cfpcontext::script, _cfpcontext::talk, _cfpcontext::third, is_valid_types_gen::type, and _cfpcontext::who.
|
static |
Definition at line 630 of file cfpython.c.
References make_face_from_files::args, cf_find_animation(), give::name, and nlohmann::detail::void().
|
static |
Definition at line 584 of file cfpython.c.
References make_face_from_files::args, cf_find_face(), give::name, and nlohmann::detail::void().
|
static |
Definition at line 206 of file cfpython.c.
References make_face_from_files::args, cf_player_find(), Crossfire_Object_wrap(), pl::ob, and nlohmann::detail::void().
|
static |
Definition at line 848 of file cfpython.c.
References _cfpcontext::activator, _cfpcontext::event, _cfpcontext::third, and _cfpcontext::who.
Referenced by cfpython_globalEventListener(), eventListener(), and python_command_function().
|
static |
Clear the list of event files.
eventFiles | list as returned by getEventFiles(), will be invalid after this function call. |
Definition at line 1613 of file cfpython.c.
Referenced by cfpython_globalEventListener().
|
static |
Definition at line 384 of file cfpython.c.
References archininventory::arch, make_face_from_files::args, cf_archetype_get_first(), cf_archetype_get_next(), Crossfire_Archetype_wrap(), guildoracle::list, and nlohmann::detail::void().
|
static |
Definition at line 165 of file cfpython.c.
References make_face_from_files::args, and nlohmann::detail::void().
|
static |
Definition at line 269 of file cfpython.c.
References make_face_from_files::args, cf_get_directory(), and nlohmann::detail::void().
|
static |
Definition at line 287 of file cfpython.c.
References make_face_from_files::args, cf_get_directory(), and nlohmann::detail::void().
|
static |
Definition at line 351 of file cfpython.c.
References make_face_from_files::args, current_context, _cfpcontext::event, and nlohmann::detail::void().
|
static |
Get the list of script files to run for the specified global event context.
context | event context, must have its options field correctly filled. |
Definition at line 1626 of file cfpython.c.
References cf_get_maps_directory(), cf_log(), closedir(), replace::current, dirent, llevInfo, give::name, NAME_MAX, opendir(), _cfpcontext::options, python_init::path, readdir(), and nlohmann::detail::void().
Referenced by cfpython_globalEventListener().
|
static |
Definition at line 459 of file cfpython.c.
References make_face_from_files::args, cf_friendlylist_get_first(), cf_friendlylist_get_next(), Crossfire_Object_wrap(), guildoracle::list, guildjoin::ob, and nlohmann::detail::void().
|
static |
Definition at line 1697 of file cfpython.c.
References GECodes, and GEPaths.
Referenced by cfpython_globalEventListener().
|
static |
Definition at line 275 of file cfpython.c.
References make_face_from_files::args, cf_get_directory(), and nlohmann::detail::void().
|
static |
Definition at line 251 of file cfpython.c.
References make_face_from_files::args, cf_get_directory(), and nlohmann::detail::void().
|
static |
Definition at line 575 of file cfpython.c.
References make_face_from_files::args, cf_map_has_been_loaded(), Crossfire_Map_wrap(), give::name, and nlohmann::detail::void().
|
static |
Definition at line 414 of file cfpython.c.
References make_face_from_files::args, cf_map_get_first(), cf_map_get_map_property(), CFAPI_MAP_PROP_NEXT, Crossfire_Map_wrap(), guildoracle::list, disinfect::map, and nlohmann::detail::void().
|
static |
Definition at line 648 of file cfpython.c.
References make_face_from_files::args, cf_get_month_name(), and nlohmann::detail::void().
|
static |
Definition at line 429 of file cfpython.c.
References make_face_from_files::args, cf_party_get_first(), cf_party_get_next(), Crossfire_Party_wrap(), guildoracle::list, and nlohmann::detail::void().
|
static |
Definition at line 666 of file cfpython.c.
References make_face_from_files::args, cf_get_periodofday_name(), and nlohmann::detail::void().
|
static |
Definition at line 281 of file cfpython.c.
References make_face_from_files::args, cf_get_directory(), and nlohmann::detail::void().
|
static |
Definition at line 399 of file cfpython.c.
References make_face_from_files::args, cf_object_get_object_property(), CFAPI_PLAYER_PROP_NEXT, Crossfire_Object_wrap(), guildoracle::list, altar_valkyrie::pl, and nlohmann::detail::void().
CF_PLUGIN void* getPluginProperty | ( | int * | type, |
... | |||
) |
Gets a plugin property.
type | ignored. |
Definition at line 1541 of file cfpython.c.
References make_face_from_files::args, buf, PLUGIN_NAME, PLUGIN_VERSION, and is_valid_types_gen::type.
|
static |
Definition at line 362 of file cfpython.c.
References make_face_from_files::args, current_context, navar-midane_time::data, private_data, _cfpcontext::script, and nlohmann::detail::void().
|
static |
Definition at line 444 of file cfpython.c.
References make_face_from_files::args, cf_region_get_first(), cf_region_get_next(), Crossfire_Region_wrap(), guildoracle::list, and nlohmann::detail::void().
|
static |
Definition at line 173 of file cfpython.c.
References make_face_from_files::args, current_context, _cfpcontext::returnvalue, and nlohmann::detail::void().
|
static |
Definition at line 335 of file cfpython.c.
References make_face_from_files::args, current_context, _cfpcontext::script, and nlohmann::detail::void().
|
static |
Definition at line 341 of file cfpython.c.
References make_face_from_files::args, current_context, _cfpcontext::options, and nlohmann::detail::void().
|
static |
Definition at line 639 of file cfpython.c.
References make_face_from_files::args, cf_get_season_name(), and nlohmann::detail::void().
|
static |
Definition at line 377 of file cfpython.c.
References make_face_from_files::args, shared_data, and nlohmann::detail::void().
|
static |
Definition at line 263 of file cfpython.c.
References make_face_from_files::args, cf_get_directory(), and nlohmann::detail::void().
|
static |
Definition at line 544 of file cfpython.c.
References make_face_from_files::args, cf_get_time(), _timeofday::day, _timeofday::dayofweek, _timeofday::hour, guildoracle::list, _timeofday::minute, _timeofday::month, _timeofday::periodofday, _timeofday::season, nlohmann::detail::void(), _timeofday::weekofmonth, and _timeofday::year.
|
static |
Definition at line 257 of file cfpython.c.
References make_face_from_files::args, cf_get_directory(), and nlohmann::detail::void().
|
static |
Definition at line 657 of file cfpython.c.
References make_face_from_files::args, cf_get_weekday_name(), and nlohmann::detail::void().
|
static |
Definition at line 326 of file cfpython.c.
References make_face_from_files::args, current_context, _cfpcontext::message, and nlohmann::detail::void().
|
static |
Definition at line 293 of file cfpython.c.
References make_face_from_files::args, current_context, nlohmann::detail::void(), and _cfpcontext::who.
|
static |
Definition at line 304 of file cfpython.c.
References _cfpcontext::activator, make_face_from_files::args, current_context, and nlohmann::detail::void().
|
static |
Definition at line 315 of file cfpython.c.
References make_face_from_files::args, current_context, _cfpcontext::third, and nlohmann::detail::void().
|
static |
Definition at line 1413 of file cfpython.c.
References addConstants(), addSimpleConstants(), cstAttackMovement, cstAttackType, cstAttackTypeNumber, cstDirection, cstEventType, cstMessageFlag, cstMove, cstReplyTypes, cstTime, and cstType.
Referenced by initPlugin().
|
static |
Definition at line 821 of file cfpython.c.
References context_stack, and current_context.
Referenced by postInitPlugin().
CF_PLUGIN int initPlugin | ( | const char * | iversion, |
f_plug_api | gethooksptr | ||
) |
Plugin initialisation function.
iversion | server version. |
gethooksptr | function to get the hooks. |
Main plugin entry point.
iversion | server version. |
gethooksptr | function to get hooks from. |
Definition at line 1494 of file cfpython.c.
References c, catcher, cf_init_plugin(), cf_log(), cfpython_init_types(), init_map_assoc_table(), init_object_assoc_table(), initConstants(), llevDebug, m, MAX_COMMANDS, private_data, PyInit_cjson(), PyInit_Crossfire(), registered_commands, shared_data, and nlohmann::detail::void().
|
static |
Definition at line 593 of file cfpython.c.
References make_face_from_files::args, cf_log(), level, llevDebug, llevError, llevInfo, llevMonster, diamondslots::message, and nlohmann::detail::void().
|
static |
Trace a Python error to the Crossfire log. This uses code from: http://stackoverflow.com/questions/4307187/how-to-catch-python-stdout-in-c-code See also in initPlugin() the parts about stdOutErr.
Definition at line 897 of file cfpython.c.
References catcher, cf_log_plain(), and llevError.
Referenced by compilePython(), and do_script().
|
static |
Definition at line 190 of file cfpython.c.
References make_face_from_files::args, cf_re_cmp(), rotate-tower::result, and nlohmann::detail::void().
|
static |
Definition at line 726 of file cfpython.c.
References make_face_from_files::args, buf, cf_add_string(), cf_log(), Crossfire_ObjectType, current_context, llevError, MAX_NPC, diamondslots::message, npc_dialog::npc, talk_info::npc_msg_count, talk_info::npc_msgs, set_exception(), _cfpcontext::talk, and nlohmann::detail::void().
|
static |
Definition at line 836 of file cfpython.c.
References current_context, and _cfpcontext::down.
Referenced by cfpython_globalEventListener(), eventListener(), and python_command_function().
CF_PLUGIN int postInitPlugin | ( | void | ) |
Plugin was initialized, now to finish.
Registers events, initializes the database.
Definition at line 1670 of file cfpython.c.
References pycode_cache_entry::cached_time, cf_get_maps_directory(), cf_log(), cf_system_register_global_event(), cfpython_globalEventListener(), cfpython_openpyfile(), cfpython_pyfile_asfile(), pycode_cache_entry::code, pycode_cache_entry::file, GECodes, initContextStack(), llevDebug, python_init::path, PLUGIN_NAME, pycode_cache, PYTHON_CACHE_SIZE, and pycode_cache_entry::used_time.
|
static |
Definition at line 826 of file cfpython.c.
References context_stack, current_context, and _cfpcontext::down.
Referenced by do_script().
PyObject* PyInit_cjson | ( | void | ) |
Definition at line 1185 of file cjson.c.
References cjsonModule, initcjson_shared(), and m.
Referenced by initPlugin().
|
static |
Definition at line 1487 of file cfpython.c.
References CrossfireModule, and m.
Referenced by initPlugin().
|
static |
Definition at line 474 of file cfpython.c.
References _cfpcontext::activator, buf, cf_get_maps_directory(), Crossfire_Object_wrap(), do_script(), _cfpcontext::event, freeContext(), _cfpcontext::message, give::op, _cfpcontext::options, roll-o-matic::params, python_init::path, popContext(), _cfpcontext::returnvalue, _cfpcontext::script, _cfpcontext::third, and _cfpcontext::who.
Referenced by registerCommand().
|
static |
Definition at line 224 of file cfpython.c.
References make_face_from_files::args, cf_map_get_map(), Crossfire_Map_wrap(), flags, disinfect::map, guild_questpoints_apply::mapname, and nlohmann::detail::void().
|
static |
Definition at line 504 of file cfpython.c.
References make_face_from_files::args, cf_system_register_command_extra(), COMMAND_TYPE_NORMAL, COMMAND_TYPE_WIZARD, npc_dialog::index, MAX_COMMANDS, python_command_function(), registered_commands, set_exception(), is_valid_types_gen::type, and nlohmann::detail::void().
|
static |
Definition at line 116 of file cfpython.c.
References make_face_from_files::args, cf_system_register_global_event(), cfpython_globalEventListener(), PLUGIN_NAME, and nlohmann::detail::void().
|
static |
Set up an Python exception object.
Definition at line 93 of file cfpython.c.
References buf.
Referenced by addReply(), npcSay(), registerCommand(), and setPlayerMessage().
|
static |
Definition at line 703 of file cfpython.c.
References make_face_from_files::args, cf_add_string(), cf_free_string(), current_context, talk_info::message, diamondslots::message, talk_info::message_type, rt_reply, set_exception(), _cfpcontext::talk, is_valid_types_gen::type, and nlohmann::detail::void().
|
static |
Definition at line 179 of file cfpython.c.
References make_face_from_files::args, current_context, _cfpcontext::returnvalue, and nlohmann::detail::void().
|
static |
Definition at line 129 of file cfpython.c.
References make_face_from_files::args, cf_system_unregister_global_event(), EVENT_TELL, PLUGIN_NAME, and nlohmann::detail::void().
|
static |
A Python object receiving the contents of Python's stderr, and used to output to the Crossfire log instead of stderr.
Definition at line 881 of file cfpython.c.
Referenced by initPlugin(), and log_python_error().
|
static |
Definition at line 90 of file cfpython.c.
Referenced by cfpython_init_types().
PyMethodDef CFPythonMethods[] |
Definition at line 769 of file cfpython.c.
Referenced by main().
CFPContext* context_stack |
Definition at line 104 of file cfpython.c.
Referenced by initContextStack(), and pushContext().
|
static |
Definition at line 1475 of file cfpython.c.
Referenced by PyInit_Crossfire().
const CFConstant cstAttackMovement[] |
Definition at line 1392 of file cfpython.c.
Referenced by initConstants(), and main().
const CFConstant cstAttackType[] |
Definition at line 1273 of file cfpython.c.
Referenced by initConstants(), and main().
const CFConstant cstAttackTypeNumber[] |
Definition at line 1303 of file cfpython.c.
Referenced by initConstants(), and main().
const CFConstant cstDirection[] |
Definition at line 1114 of file cfpython.c.
Referenced by initConstants(), and main().
const CFConstant cstEventType[] |
Definition at line 1333 of file cfpython.c.
Referenced by initConstants(), and main().
const CFConstant cstMessageFlag[] |
Definition at line 1253 of file cfpython.c.
Referenced by initConstants(), and main().
const CFConstant cstMove[] |
Definition at line 1242 of file cfpython.c.
Referenced by initConstants(), and main().
const CFConstant cstReplyTypes[] |
Definition at line 1385 of file cfpython.c.
Referenced by initConstants(), and main().
const CFConstant cstTime[] |
Definition at line 1375 of file cfpython.c.
Referenced by initConstants(), and main().
const CFConstant cstType[] |
Definition at line 1126 of file cfpython.c.
Referenced by initConstants(), and main().
CFPContext* current_context |
Definition at line 106 of file cfpython.c.
Referenced by addReply(), Crossfire_Object_Remove(), Crossfire_Object_Say(), getEvent(), getPrivateDictionary(), getReturnValue(), getScriptName(), getScriptParameters(), getWhatIsMessage(), getWhoAmI(), getWhoIsActivator(), getWhoIsThird(), initContextStack(), npcSay(), popContext(), pushContext(), setPlayerMessage(), and setReturnValue().
|
static |
Definition at line 1566 of file cfpython.c.
Referenced by getGlobalEventPath(), and postInitPlugin().
|
static |
Definition at line 1587 of file cfpython.c.
Referenced by getGlobalEventPath().
|
static |
Definition at line 110 of file cfpython.c.
Referenced by getPrivateDictionary(), and initPlugin().
|
static |
Cached compiled scripts.
Definition at line 88 of file cfpython.c.
Referenced by closePlugin(), compilePython(), and postInitPlugin().
|
static |
Definition at line 85 of file cfpython.c.
Referenced by closePlugin(), initPlugin(), and registerCommand().
|
static |
Definition at line 108 of file cfpython.c.
Referenced by getSharedDictionary(), and initPlugin().
Definition at line 69 of file cfpython.c.