summaryrefslogtreecommitdiff
path: root/src/map/npc.h
diff options
context:
space:
mode:
authorHaruna <haru@dotalux.com>2014-12-02 10:23:05 +0100
committerHaruna <haru@dotalux.com>2014-12-02 10:23:05 +0100
commit15a1e42cb2a8513e61d5c0039a86ee964976325b (patch)
tree6dfc1d594c15a6e66ce01b5d4fe91cc62c12844f /src/map/npc.h
parent6c38023bcc6d095a88e095f1f23a97d25817adba (diff)
parent147b4a940387abb9cb5e0f1c13124168036968d7 (diff)
downloadhercules-15a1e42cb2a8513e61d5c0039a86ee964976325b.tar.gz
hercules-15a1e42cb2a8513e61d5c0039a86ee964976325b.tar.bz2
hercules-15a1e42cb2a8513e61d5c0039a86ee964976325b.tar.xz
hercules-15a1e42cb2a8513e61d5c0039a86ee964976325b.zip
Merge pull request #392 from 4144/npcext
Add functions for report/parse unknown map flags and script objects + sepate function for create npc
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 9c497ffe9..fba14d485 100644
--- a/src/map/npc.h
+++ b/src/map/npc.h
@@ -231,9 +231,11 @@ struct npc_interface {
void (*parsename) (struct npc_data *nd, const char *name, const char *start, const char *buffer, const char *filepath);
int (*parseview) (const char *w4, const char *start, const char *buffer, const char *filepath);
bool (*viewisid) (const char *viewid);
+ struct npc_data* (*create_npc) (int m, int x, int y);
struct npc_data* (*add_warp) (char *name, short from_mapid, short from_x, short from_y, short xs, short ys, unsigned short to_mapindex, short to_x, short to_y);
const char* (*parse_warp) (char *w1, char *w2, char *w3, char *w4, const char *start, const char *buffer, const char *filepath, int *retval);
const char* (*parse_shop) (char *w1, char *w2, char *w3, char *w4, const char *start, const char *buffer, const char *filepath, int *retval);
+ const char* (*parse_unknown_object) (char *w1, char *w2, char *w3, char *w4, const char *start, const char *buffer, const char *filepath, int *retval);
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);
@@ -250,6 +252,7 @@ struct npc_interface {
void (*parse_mob2) (struct spawn_data *mobspawn);
const char* (*parse_mob) (char *w1, char *w2, char *w3, char *w4, const char *start, const char *buffer, const char *filepath, int *retval);
const char* (*parse_mapflag) (char *w1, char *w2, char *w3, char *w4, const char *start, const char *buffer, const char *filepath, int *retval);
+ void (*parse_unknown_mapflag) (const char *name, char *w3, char *w4, const char *start, const char *buffer, const char *filepath, int *retval);
int (*parsesrcfile) (const char *filepath, bool runOnInit);
int (*script_event) (struct map_session_data *sd, enum npce_event type);
void (*read_event_script) (void);