|
Crossfire Server, Branch 1.12
R12190
|

Go to the source code of this file.
Functions | |
| CF_PLUGIN int | closePlugin (void) |
| Close the plugin. | |
| CF_PLUGIN void * | eventListener (int *type,...) |
| Handles an object-related event. | |
| CF_PLUGIN void * | getPluginProperty (int *type,...) |
| Gets a plugin property. | |
| CF_PLUGIN void * | globalEventListener (int *type,...) |
| void | initContextStack (void) |
| CF_PLUGIN int | initPlugin (const char *iversion, f_plug_api gethooksptr) |
| Plugin initialisation function. | |
| CFPContext * | popContext (void) |
| CF_PLUGIN int | postInitPlugin (void) |
| Plugin was initialized, now to finish. | |
| 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 143 of file plugin_template.c.
References _cfpcontext::activator, 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, pl::ob, popContext(), pushContext(), _cfpcontext::returnvalue, _cfpcontext::third, and _cfpcontext::who.

| void initContextStack | ( | void | ) |
Definition at line 43 of file plugin_template.c.
Referenced by postInitPlugin().

| CFPContext* popContext | ( | void | ) |
Definition at line 60 of file plugin_template.c.
References current_context, and _cfpcontext::down.
Referenced by eventListener(), and globalEventListener().

| void pushContext | ( | CFPContext * | context | ) |
Definition at line 48 of file plugin_template.c.
References current_context, and _cfpcontext::down.
Referenced by eventListener(), and globalEventListener().

| CF_PLUGIN int runPluginCommand | ( | object * | op, |
| char * | params | ||
| ) |
Definition at line 115 of file plugin_template.c.
Definition at line 37 of file plugin_template.c.
int current_command = -999 [static] |
Definition at line 41 of file plugin_template.c.
Definition at line 39 of file plugin_template.c.
1.7.6.1