Crossfire Server, Trunk
cfnewspaper_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 cfnewspaper_globalEventListener (int *type,...)
 
int cfnewspaper_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

◆ cfnewspaper_globalEventListener()

int cfnewspaper_globalEventListener ( int *  type,
  ... 
)

Definition at line 137 of file cfnewspaper.cpp.

References make_face_from_files::args, and is_valid_types_gen::type.

◆ cfnewspaper_runPluginCommand()

int cfnewspaper_runPluginCommand ( object op,
char *  params 
)

Definition at line 133 of file cfnewspaper.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.