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 |
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) |
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.cpp.
#define PYTHON_CACHE_SIZE 256 |
Number of python scripts to store the bytecode of at a time.
Definition at line 72 of file cfpython.cpp.
|
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 1064 of file cfpython.cpp.
References autojail::dict, give::name, Ice::tmp, and autojail::value.
Referenced by initConstants().
|
static |
Definition at line 671 of file cfpython.cpp.
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 1096 of file cfpython.cpp.
References give::name, Ice::tmp, and autojail::value.
Referenced by initConstants().
CF_PLUGIN int cfpython_globalEventListener | ( | int * | type, |
... | |||
) |
Definition at line 1700 of file cfpython.cpp.
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, give::op, CFPContext::options, altar_valkyrie::pl, popContext(), CFPContext::returnvalue, CFPContext::script, 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 1432 of file cfpython.cpp.
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 855 of file cfpython.cpp.
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 869 of file cfpython.cpp.
References altar_valkyrie::obj.
Referenced by compilePython(), and postInitPlugin().
CF_PLUGIN int closePlugin | ( | void | ) |
Close the plugin.
Closes the sqlite database.
Definition at line 1909 of file cfpython.cpp.
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 913 of file cfpython.cpp.
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 752 of file cfpython.cpp.
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.cpp.
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.cpp.
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.cpp.
References make_face_from_files::args, cf_get_empty_map(), Crossfire_Map_wrap(), disinfect::map, and nlohmann::detail::void().
|
static |
Definition at line 562 of file cfpython.cpp.
References make_face_from_files::args, cf_timer_destroy(), diamondslots::id, and nlohmann::detail::void().
|
static |
Definition at line 1032 of file cfpython.cpp.
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 1868 of file cfpython.cpp.
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 626 of file cfpython.cpp.
References make_face_from_files::args, cf_find_animation(), give::name, and nlohmann::detail::void().
|
static |
Definition at line 580 of file cfpython.cpp.
References make_face_from_files::args, cf_find_face(), give::name, and nlohmann::detail::void().
|
static |
Definition at line 206 of file cfpython.cpp.
References make_face_from_files::args, cf_player_find(), Crossfire_Object_wrap(), player::ob, and nlohmann::detail::void().
|
static |
Definition at line 844 of file cfpython.cpp.
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 1609 of file cfpython.cpp.
Referenced by cfpython_globalEventListener().
|
static |
Definition at line 384 of file cfpython.cpp.
References archininventory::arch, make_face_from_files::args, cf_system_get_archetype_vector(), CFAPI_SYSTEM_ARCHETYPES, Crossfire_Archetype_wrap(), guildoracle::list, and nlohmann::detail::void().
|
static |
Definition at line 165 of file cfpython.cpp.
References make_face_from_files::args, and nlohmann::detail::void().
|
static |
Definition at line 269 of file cfpython.cpp.
References make_face_from_files::args, cf_get_directory(), and nlohmann::detail::void().
|
static |
Definition at line 287 of file cfpython.cpp.
References make_face_from_files::args, cf_get_directory(), and nlohmann::detail::void().
|
static |
Definition at line 351 of file cfpython.cpp.
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 1622 of file cfpython.cpp.
References cf_get_maps_directory(), closedir(), replace::current, HUGE_BUF, give::name, NAME_MAX, opendir(), CFPContext::options, python_init::path, readdir(), and nlohmann::detail::void().
Referenced by cfpython_globalEventListener().
|
static |
Definition at line 456 of file cfpython.cpp.
References make_face_from_files::args, cf_system_get_object_vector(), CFAPI_SYSTEM_FRIENDLY_LIST, Crossfire_Object_wrap(), friends, guildoracle::list, guildjoin::ob, and nlohmann::detail::void().
|
static |
Definition at line 1692 of file cfpython.cpp.
References GECodes, and GEPaths.
Referenced by cfpython_globalEventListener().
|
static |
Definition at line 275 of file cfpython.cpp.
References make_face_from_files::args, cf_get_directory(), and nlohmann::detail::void().
|
static |
Definition at line 251 of file cfpython.cpp.
References make_face_from_files::args, cf_get_directory(), and nlohmann::detail::void().
|
static |
Definition at line 571 of file cfpython.cpp.
References make_face_from_files::args, cf_map_has_been_loaded(), Crossfire_Map_wrap(), give::name, and nlohmann::detail::void().
|
static |
Definition at line 413 of file cfpython.cpp.
References make_face_from_files::args, cf_system_get_map_vector(), CFAPI_SYSTEM_MAPS, Crossfire_Map_wrap(), guildoracle::list, disinfect::map, maps, and nlohmann::detail::void().
|
static |
Definition at line 644 of file cfpython.cpp.
References make_face_from_files::args, cf_get_month_name(), and nlohmann::detail::void().
|
static |
Definition at line 428 of file cfpython.cpp.
References make_face_from_files::args, cf_system_get_party_vector(), CFAPI_SYSTEM_PARTIES, Crossfire_Party_wrap(), guildoracle::list, and nlohmann::detail::void().
|
static |
Definition at line 662 of file cfpython.cpp.
References make_face_from_files::args, cf_get_periodofday_name(), and nlohmann::detail::void().
|
static |
Definition at line 281 of file cfpython.cpp.
References make_face_from_files::args, cf_get_directory(), and nlohmann::detail::void().
|
static |
Definition at line 398 of file cfpython.cpp.
References make_face_from_files::args, cf_system_get_object_vector(), CFAPI_SYSTEM_PLAYERS, Crossfire_Object_wrap(), guildoracle::list, altar_valkyrie::pl, players, and nlohmann::detail::void().
CF_PLUGIN void* getPluginProperty | ( | int * | type, |
... | |||
) |
Gets a plugin property.
type | ignored. |
Definition at line 1537 of file cfpython.cpp.
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.cpp.
References make_face_from_files::args, current_context, navar-midane_time::data, private_data, CFPContext::script, and nlohmann::detail::void().
|
static |
Definition at line 442 of file cfpython.cpp.
References make_face_from_files::args, cf_system_get_region_vector(), CFAPI_SYSTEM_REGIONS, Crossfire_Region_wrap(), guildoracle::list, regions, and nlohmann::detail::void().
|
static |
Definition at line 173 of file cfpython.cpp.
References make_face_from_files::args, current_context, CFPContext::returnvalue, and nlohmann::detail::void().
|
static |
Definition at line 335 of file cfpython.cpp.
References make_face_from_files::args, current_context, CFPContext::script, and nlohmann::detail::void().
|
static |
Definition at line 341 of file cfpython.cpp.
References make_face_from_files::args, current_context, CFPContext::options, and nlohmann::detail::void().
|
static |
Definition at line 635 of file cfpython.cpp.
References make_face_from_files::args, cf_get_season_name(), and nlohmann::detail::void().
|
static |
Definition at line 377 of file cfpython.cpp.
References make_face_from_files::args, shared_data, and nlohmann::detail::void().
|
static |
Definition at line 263 of file cfpython.cpp.
References make_face_from_files::args, cf_get_directory(), and nlohmann::detail::void().
|
static |
Definition at line 540 of file cfpython.cpp.
References make_face_from_files::args, cf_get_time(), timeofday_t::day, timeofday_t::dayofweek, timeofday_t::hour, guildoracle::list, timeofday_t::minute, timeofday_t::month, timeofday_t::periodofday, timeofday_t::season, nlohmann::detail::void(), timeofday_t::weekofmonth, and timeofday_t::year.
|
static |
Definition at line 257 of file cfpython.cpp.
References make_face_from_files::args, cf_get_directory(), and nlohmann::detail::void().
|
static |
Definition at line 653 of file cfpython.cpp.
References make_face_from_files::args, cf_get_weekday_name(), and nlohmann::detail::void().
|
static |
Definition at line 326 of file cfpython.cpp.
References make_face_from_files::args, current_context, CFPContext::message, and nlohmann::detail::void().
|
static |
Definition at line 293 of file cfpython.cpp.
References make_face_from_files::args, current_context, nlohmann::detail::void(), and CFPContext::who.
|
static |
Definition at line 304 of file cfpython.cpp.
References CFPContext::activator, make_face_from_files::args, current_context, and nlohmann::detail::void().
|
static |
Definition at line 315 of file cfpython.cpp.
References make_face_from_files::args, current_context, CFPContext::third, and nlohmann::detail::void().
|
static |
Definition at line 1411 of file cfpython.cpp.
References addConstants(), addSimpleConstants(), cstAttackMovement, cstAttackType, cstAttackTypeNumber, cstDirection, cstEventType, cstMessageFlag, cstMove, cstReplyTypes, cstTime, and cstType.
Referenced by initPlugin().
|
static |
Definition at line 817 of file cfpython.cpp.
References context_stack, and current_context.
Referenced by postInitPlugin().
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 1493 of file cfpython.cpp.
References c, catcher, cf_init_plugin(), cf_log(), cfpython_init_types(), initConstants(), llevDebug, m, MAX_COMMANDS, private_data, PyInit_cjson(), PyInit_Crossfire(), registered_commands, shared_data, and nlohmann::detail::void().
|
static |
Definition at line 589 of file cfpython.cpp.
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 893 of file cfpython.cpp.
References catcher, cf_log_plain(), empty, and llevError.
Referenced by compilePython(), and do_script().
|
static |
Definition at line 190 of file cfpython.cpp.
References make_face_from_files::args, cf_re_cmp(), rotate-tower::result, and nlohmann::detail::void().
|
static |
Definition at line 722 of file cfpython.cpp.
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 832 of file cfpython.cpp.
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 1665 of file cfpython.cpp.
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 822 of file cfpython.cpp.
References context_stack, current_context, and CFPContext::down.
Referenced by do_script().
PyObject* PyInit_cjson | ( | void | ) |
Definition at line 1165 of file cjson.cpp.
References cjsonModule, initcjson_shared(), and m.
Referenced by initPlugin().
|
static |
Definition at line 1485 of file cfpython.cpp.
References CrossfireModule, and m.
Referenced by initPlugin().
|
static |
Definition at line 470 of file cfpython.cpp.
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.cpp.
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 500 of file cfpython.cpp.
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.cpp.
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.cpp.
References buf.
Referenced by addReply(), npcSay(), registerCommand(), and setPlayerMessage().
|
static |
Definition at line 699 of file cfpython.cpp.
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.cpp.
References make_face_from_files::args, current_context, CFPContext::returnvalue, and nlohmann::detail::void().
|
static |
Definition at line 129 of file cfpython.cpp.
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 877 of file cfpython.cpp.
Referenced by initPlugin(), and log_python_error().
|
static |
Definition at line 90 of file cfpython.cpp.
Referenced by cfpython_init_types().
PyMethodDef CFPythonMethods[] |
Definition at line 765 of file cfpython.cpp.
Referenced by main().
CFPContext* context_stack |
Definition at line 104 of file cfpython.cpp.
Referenced by initContextStack(), and pushContext().
|
static |
Definition at line 1473 of file cfpython.cpp.
Referenced by PyInit_Crossfire().
const CFConstant cstAttackMovement[] |
Definition at line 1390 of file cfpython.cpp.
Referenced by initConstants(), and main().
const CFConstant cstAttackType[] |
Definition at line 1271 of file cfpython.cpp.
Referenced by initConstants(), and main().
const CFConstant cstAttackTypeNumber[] |
Definition at line 1301 of file cfpython.cpp.
Referenced by initConstants(), and main().
const CFConstant cstDirection[] |
Definition at line 1112 of file cfpython.cpp.
Referenced by initConstants(), and main().
const CFConstant cstEventType[] |
Definition at line 1331 of file cfpython.cpp.
Referenced by initConstants(), and main().
const CFConstant cstMessageFlag[] |
Definition at line 1251 of file cfpython.cpp.
Referenced by initConstants(), and main().
const CFConstant cstMove[] |
Definition at line 1240 of file cfpython.cpp.
Referenced by initConstants(), and main().
const CFConstant cstReplyTypes[] |
Definition at line 1383 of file cfpython.cpp.
Referenced by initConstants(), and main().
const CFConstant cstTime[] |
Definition at line 1373 of file cfpython.cpp.
Referenced by initConstants(), and main().
const CFConstant cstType[] |
Definition at line 1124 of file cfpython.cpp.
Referenced by initConstants(), and main().
CFPContext* current_context |
Definition at line 106 of file cfpython.cpp.
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 1562 of file cfpython.cpp.
Referenced by getGlobalEventPath(), and postInitPlugin().
|
static |
Definition at line 1583 of file cfpython.cpp.
Referenced by getGlobalEventPath().
|
static |
Definition at line 110 of file cfpython.cpp.
Referenced by getPrivateDictionary(), and initPlugin().
|
static |
Cached compiled scripts.
Definition at line 88 of file cfpython.cpp.
Referenced by closePlugin(), compilePython(), and postInitPlugin().
|
static |
Definition at line 85 of file cfpython.cpp.
Referenced by closePlugin(), initPlugin(), and registerCommand().
|
static |
Definition at line 108 of file cfpython.cpp.
Referenced by getSharedDictionary(), and initPlugin().
Definition at line 69 of file cfpython.cpp.