![]() |
Crossfire Server, Trunk
1.75.0
|
Go to the source code of this file.
Functions | |
CF_PLUGIN int | closePlugin (void) |
called before the plugin gets unloaded from memory. More... | |
CF_PLUGIN void * | eventListener (int *type,...) |
Handles an object-related event. More... | |
CF_PLUGIN void * | getPluginProperty (int *type,...) |
The server calls this function to get information about the plugin, notably the name and version. More... | |
CF_PLUGIN void * | globalEventListener (int *type,...) |
void | initContextStack (void) |
CF_PLUGIN int | initPlugin (const char *iversion, f_plug_api gethooksptr) |
The server calls this function after loading the plugin. More... | |
CFPContext * | popContext (void) |
CF_PLUGIN int | postInitPlugin (void) |
The server calls this function to actually initialize the plugin here, after object handlers are registered. More... | |
void | pushContext (CFPContext *context) |
CF_PLUGIN int | runPluginCommand (object *op, char *params) |
Variables | |
CFPContext * | context_stack |
static int | current_command = -999 |
CFPContext * | current_context |
CF_PLUGIN void* globalEventListener | ( | int * | type, |
... | |||
) |
Definition at line 141 of file plugin_template.cpp.
References CFPContext::activator, buf, cf_log(), CFPContext::event, EVENT_BORN, EVENT_CLOCK, CFPContext::event_code, EVENT_CRASH, EVENT_GKILL, EVENT_KICK, EVENT_LOGIN, EVENT_LOGOUT, EVENT_MAPENTER, EVENT_MAPLEAVE, EVENT_MAPRESET, EVENT_MUZZLE, EVENT_PLAYER_DEATH, EVENT_REMOVE, EVENT_SHOUT, EVENT_TELL, llevDebug, CFPContext::message, player::ob, popContext(), pushContext(), CFPContext::returnvalue, CFPContext::third, is_valid_types_gen::type, and CFPContext::who.
void initContextStack | ( | void | ) |
Definition at line 41 of file plugin_template.cpp.
References context_stack, and current_context.
Referenced by postInitPlugin().
CFPContext* popContext | ( | void | ) |
Definition at line 58 of file plugin_template.cpp.
References current_context, and CFPContext::down.
Referenced by eventListener(), and globalEventListener().
void pushContext | ( | CFPContext * | context | ) |
Definition at line 46 of file plugin_template.cpp.
References context_stack, current_context, and CFPContext::down.
Referenced by eventListener(), and globalEventListener().
Definition at line 113 of file plugin_template.cpp.
CFPContext* context_stack |
Definition at line 35 of file plugin_template.cpp.
Referenced by initContextStack(), and pushContext().
|
static |
Definition at line 39 of file plugin_template.cpp.
CFPContext* current_context |
Definition at line 37 of file plugin_template.cpp.
Referenced by initContextStack(), popContext(), and pushContext().