version 1.70 | | version 1.71 |
---|
| | |
/* | | /* |
* static char *rcsid_plugins_c = | | * static char *rcsid_plugins_c = |
* "$Id: plugins.c,v 1.70 2006/04/06 21:18:35 tchize Exp $"; | | * "$Id: plugins.c,v 1.71 2006/05/05 08:52:44 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/*****************************************************************************/ | | /*****************************************************************************/ |
| | |
#include <sproto.h> | | #include <sproto.h> |
#endif | | #endif |
| | |
#define NR_OF_HOOKS 74 | | #define NR_OF_HOOKS 75 |
| | |
static const hook_entry plug_hooks[NR_OF_HOOKS] = | | static const hook_entry plug_hooks[NR_OF_HOOKS] = |
{ | | { |
| | |
{cfapi_archetype_get_property, 71, "cfapi_archetype_get_property"}, | | {cfapi_archetype_get_property, 71, "cfapi_archetype_get_property"}, |
{cfapi_party_get_property, 72, "cfapi_party_get_property"}, | | {cfapi_party_get_property, 72, "cfapi_party_get_property"}, |
{cfapi_region_get_property, 73, "cfapi_region_get_property"}, | | {cfapi_region_get_property, 73, "cfapi_region_get_property"}, |
| | {cfapi_player_can_pay, 74, "cfapi_player_can_pay"}, |
}; | | }; |
int plugin_number = 0; | | int plugin_number = 0; |
crossfire_plugin* plugins_list = NULL; | | crossfire_plugin* plugins_list = NULL; |
| | |
return NULL; | | return NULL; |
} | | } |
| | |
| | void *cfapi_player_can_pay(int *type, ...) |
| | { |
| | va_list args; |
| | static int rv; |
| | object* pl; |
| | |
| | va_start(args, type); |
| | pl = va_arg(args, object*); |
| | rv = can_pay(pl); |
| | *type = CFAPI_INT; |
| | return &rv; |
| | } |
| | |
void* cfapi_object_teleport(int *type, ...) | | void* cfapi_object_teleport(int *type, ...) |
{ | | { |
mapstruct* map; | | mapstruct* map; |