From d0bc38acd10a05bfdc8116b316a6b6eb62b9b580 Mon Sep 17 00:00:00 2001 From: Haru Date: Tue, 3 Nov 2015 15:33:10 +0100 Subject: Split frequently repeated code to add/register new NPCs to its own function Signed-off-by: Haru --- src/map/npc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/map/npc.h') 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); -- cgit v1.2.3-60-g2f50