summaryrefslogtreecommitdiff
path: root/src/map/npc.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-11-03 15:39:17 +0100
committerHaru <haru@dotalux.com>2015-11-12 00:01:32 +0100
commit8be9ef957862e249a3a2e4f810be2cada31a4e94 (patch)
treeb38c07f9aa0848c914f18b78dbd52b486795be96 /src/map/npc.h
parentd0bc38acd10a05bfdc8116b316a6b6eb62b9b580 (diff)
downloadhercules-8be9ef957862e249a3a2e4f810be2cada31a4e94.tar.gz
hercules-8be9ef957862e249a3a2e4f810be2cada31a4e94.tar.bz2
hercules-8be9ef957862e249a3a2e4f810be2cada31a4e94.tar.xz
hercules-8be9ef957862e249a3a2e4f810be2cada31a4e94.zip
Split npc_duplicate_sub into separate functions based on subtypes
- For plugin overriding purposes. Thanks to Andrei Karas for the idea. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/npc.h')
-rw-r--r--src/map/npc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/npc.h b/src/map/npc.h
index 57000f1d6..de403fe76 100644
--- a/src/map/npc.h
+++ b/src/map/npc.h
@@ -240,6 +240,9 @@ struct npc_interface {
const char* (*skip_script) (const char *start, const char *buffer, const char *filepath, int *retval);
const char* (*parse_script) (char *w1, char *w2, char *w3, char *w4, const char *start, const char *buffer, const char *filepath, int options, int *retval);
void (*add_to_location) (struct npc_data *nd);
+ bool (*duplicate_script_sub) (struct npc_data *nd, const struct npc_data *snd, int xs, int ys, int options);
+ bool (*duplicate_shop_sub) (struct npc_data *nd, const struct npc_data *snd, int xs, int ys, int options);
+ bool (*duplicate_warp_sub) (struct npc_data *nd, const struct npc_data *snd, int xs, int ys, int options);
bool (*duplicate_sub) (struct npc_data *nd, const struct npc_data *snd, int xs, int ys, int options);
const char* (*parse_duplicate) (char* w1, char* w2, char* w3, char* w4, const char* start, const char* buffer, const char* filepath, int options, int *retval);
int (*duplicate4instance) (struct npc_data *snd, int16 m);