Crossfire Server, Trunk
cfanim_proto.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

CF_PLUGIN int cfanim_globalEventListener (int *type,...)
 
CF_PLUGIN anim_move_result cfanim_runPluginCommand (object *op, char *params)
 
CF_PLUGIN int closePlugin (void)
 
CF_PLUGIN int eventListener (int *type,...)
 
CF_PLUGIN void * getPluginProperty (int *type,...)
 
CF_PLUGIN int initPlugin (const char *iversion, f_plug_api gethooksptr)
 
CF_PLUGIN int postInitPlugin (void)
 

Function Documentation

◆ cfanim_globalEventListener()

CF_PLUGIN int cfanim_globalEventListener ( int *  type,
  ... 
)

Definition at line 1260 of file cfanim.cpp.

References animate(), make_face_from_files::args, EVENT_CLOCK, 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:

◆ cfanim_runPluginCommand()

CF_PLUGIN anim_move_result cfanim_runPluginCommand ( object op,
char *  params 
)

Definition at line 1245 of file cfanim.cpp.

References mr_finished, give::op, roll-o-matic::params, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ closePlugin()

CF_PLUGIN int closePlugin ( void  )

Close the plugin.

Closes the sqlite database.

Returns
0.

Definition at line 1324 of file cfanim.cpp.

◆ eventListener()

CF_PLUGIN 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

Definition at line 1277 of file cfanim.cpp.

◆ getPluginProperty()

CF_PLUGIN 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()

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

Definition at line 1208 of file cfanim.cpp.

◆ postInitPlugin()

CF_PLUGIN int postInitPlugin ( void  )

Plugin was initialized, now to finish.

Registers events, initializes the database.

Returns
0.

Definition at line 1252 of file cfanim.cpp.