Crossfire Server, Trunk
cflogger_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 cflogger_globalEventListener (int *type,...)
 
int cflogger_runPluginCommand (object *op, char *params)
 
int closePlugin (void)
 
int eventListener (int *type,...)
 
void * getPluginProperty (int *type,...)
 
int initPlugin (const char *iversion, f_plug_api gethooksptr)
 
int postInitPlugin (void)
 

Function Documentation

◆ cflogger_globalEventListener()

int cflogger_globalEventListener ( int *  type,
  ... 
)

Handles a global event.

Parameters
typeignored.
Returns
0

Definition at line 626 of file cflogger.cpp.

References add_death(), add_map_event(), add_player_event(), make_face_from_files::args, EVENT_BORN, EVENT_CLOCK, 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, sword_of_souls::killer, disinfect::map, give::op, altar_valkyrie::pl, store_time(), and is_valid_types_gen::type.

Referenced by postInitPlugin().

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

◆ cflogger_runPluginCommand()

int cflogger_runPluginCommand ( object op,
char *  params 
)

Runs a plugin command. Doesn't do anything.

Parameters
opignored.
paramsignored.
Returns
-1.

Definition at line 602 of file cflogger.cpp.

◆ closePlugin()

int closePlugin ( void  )

Close the plugin.

Closes the sqlite database.

Returns
0.

Definition at line 1324 of file cfanim.cpp.

◆ eventListener()

int eventListener ( int *  type,
  ... 
)

Handles an object-related event. Doesn't do anything.

Parameters
typeignored.
Returns
0.
Todo:
build from current map's path, probably
Todo:
build from current map's path, probably
Todo:
build from current map's path, probably
Todo:
build from current map's path, probably
Todo:
build from current map's path, probably

Definition at line 1277 of file cfanim.cpp.

◆ 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.

◆ 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.

◆ postInitPlugin()

int postInitPlugin ( void  )

Plugin was initialized, now to finish.

Registers events, initializes the database.

Returns
0.

Definition at line 1252 of file cfanim.cpp.