diff options
author | Haru <haru@dotalux.com> | 2015-11-03 15:33:10 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-11-12 00:01:32 +0100 |
commit | d0bc38acd10a05bfdc8116b316a6b6eb62b9b580 (patch) | |
tree | da7c06fb135e124c1deb8a5a0f7680718f37a6ec /src/map/npc.h | |
parent | 57f09704aaa62295a9a967726a0dbabda40770c4 (diff) | |
download | hercules-d0bc38acd10a05bfdc8116b316a6b6eb62b9b580.tar.gz hercules-d0bc38acd10a05bfdc8116b316a6b6eb62b9b580.tar.bz2 hercules-d0bc38acd10a05bfdc8116b316a6b6eb62b9b580.tar.xz hercules-d0bc38acd10a05bfdc8116b316a6b6eb62b9b580.zip |
Split frequently repeated code to add/register new NPCs to its own function
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/npc.h')
-rw-r--r-- | src/map/npc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/npc.h b/src/map/npc.h index bec17fd8d..57000f1d6 100644 --- a/src/map/npc.h +++ b/src/map/npc.h @@ -239,6 +239,7 @@ struct npc_interface { void (*convertlabel_db) (struct npc_label_list *label_list, const char *filepath); 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_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); |