diff options
author | Haru <haru@dotalux.com> | 2013-09-28 18:15:23 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2013-09-29 01:45:34 +0200 |
commit | 5697031dce0f02a55044504077775b909a42982d (patch) | |
tree | aef805d4d5f4eb9bc4da0282e84322369c26ed3b /src/map/map.h | |
parent | fe624087b2495fb258afd9177c6299139a1f914d (diff) | |
download | hercules-5697031dce0f02a55044504077775b909a42982d.tar.gz hercules-5697031dce0f02a55044504077775b909a42982d.tar.bz2 hercules-5697031dce0f02a55044504077775b909a42982d.tar.xz hercules-5697031dce0f02a55044504077775b909a42982d.zip |
Provided argument-list equivalent for several variadic functions
This is necessary for the upcoming HPM hooking system
Diffstat (limited to 'src/map/map.h')
-rw-r--r-- | src/map/map.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/map/map.h b/src/map/map.h index f3a74ed2e..69152ec57 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -841,21 +841,36 @@ struct map_interface { const char* (*charid2nick) (int charid); struct map_session_data* (*charid2sd) (int charid); + void (*vmap_foreachpc) (int (*func)(struct map_session_data* sd, va_list args), va_list args); void (*map_foreachpc) (int (*func)(struct map_session_data* sd, va_list args), ...); + void (*vmap_foreachmob) (int (*func)(struct mob_data* md, va_list args), va_list args); void (*map_foreachmob) (int (*func)(struct mob_data* md, va_list args), ...); + void (*vmap_foreachnpc) (int (*func)(struct npc_data* nd, va_list args), va_list args); void (*map_foreachnpc) (int (*func)(struct npc_data* nd, va_list args), ...); + void (*vmap_foreachregen) (int (*func)(struct block_list* bl, va_list args), va_list args); void (*map_foreachregen) (int (*func)(struct block_list* bl, va_list args), ...); + void (*vmap_foreachiddb) (int (*func)(struct block_list* bl, va_list args), va_list args); void (*map_foreachiddb) (int (*func)(struct block_list* bl, va_list args), ...); + int (*vforeachinrange) (int (*func)(struct block_list*,va_list), struct block_list* center, int16 range, int type, va_list ap); int (*foreachinrange) (int (*func)(struct block_list*,va_list), struct block_list* center, int16 range, int type, ...); + int (*vforeachinshootrange) (int (*func)(struct block_list*,va_list), struct block_list* center, int16 range, int type, va_list ap); int (*foreachinshootrange) (int (*func)(struct block_list*,va_list), struct block_list* center, int16 range, int type, ...); + int (*vforeachinarea) (int (*func)(struct block_list*,va_list), int16 m, int16 x0, int16 y0, int16 x1, int16 y1, int type, va_list ap); int (*foreachinarea) (int (*func)(struct block_list*,va_list), int16 m, int16 x0, int16 y0, int16 x1, int16 y1, int type, ...); + int (*vforcountinrange) (int (*func)(struct block_list*,va_list), struct block_list* center, int16 range, int count, int type, va_list ap); int (*forcountinrange) (int (*func)(struct block_list*,va_list), struct block_list* center, int16 range, int count, int type, ...); + int (*vforcountinarea) (int (*func)(struct block_list*,va_list), int16 m, int16 x0, int16 y0, int16 x1, int16 y1, int count, int type, va_list ap); int (*forcountinarea) (int (*func)(struct block_list*,va_list), int16 m, int16 x0, int16 y0, int16 x1, int16 y1, int count, int type, ...); + int (*vforeachinmovearea) (int (*func)(struct block_list*,va_list), struct block_list* center, int16 range, int16 dx, int16 dy, int type, va_list ap); int (*foreachinmovearea) (int (*func)(struct block_list*,va_list), struct block_list* center, int16 range, int16 dx, int16 dy, int type, ...); + int (*vforeachincell) (int (*func)(struct block_list*,va_list), int16 m, int16 x, int16 y, int type, va_list ap); int (*foreachincell) (int (*func)(struct block_list*,va_list), int16 m, int16 x, int16 y, int type, ...); + int (*vforeachinpath) (int (*func)(struct block_list*,va_list), int16 m, int16 x0, int16 y0, int16 x1, int16 y1, int16 range, int length, int type, va_list ap); int (*foreachinpath) (int (*func)(struct block_list*,va_list), int16 m, int16 x0, int16 y0, int16 x1, int16 y1, int16 range, int length, int type, ...); + int (*vforeachinmap) (int (*func)(struct block_list*,va_list), int16 m, int type, va_list args); int (*foreachinmap) (int (*func)(struct block_list*,va_list), int16 m, int type, ...); + int (*vforeachininstance)(int (*func)(struct block_list*,va_list), int16 instance_id, int type, va_list ap); int (*foreachininstance)(int (*func)(struct block_list*,va_list), int16 instance_id, int type,...); struct map_session_data * (*id2sd) (int id); |