diff options
author | gumi <git@gumi.ca> | 2018-07-22 23:37:10 -0400 |
---|---|---|
committer | gumi <git@gumi.ca> | 2020-05-03 11:46:22 -0400 |
commit | 06e65c769bbb66045e0d51da6a321a4c4ef1ff42 (patch) | |
tree | 8584118f3956ef75fbf0e22734b2cc3db2a2e98b /src/map/script.h | |
parent | f40cc839413cc82aed445d39cc3aa204dce87780 (diff) | |
download | hercules-06e65c769bbb66045e0d51da6a321a4c4ef1ff42.tar.gz hercules-06e65c769bbb66045e0d51da6a321a4c4ef1ff42.tar.bz2 hercules-06e65c769bbb66045e0d51da6a321a4c4ef1ff42.tar.xz hercules-06e65c769bbb66045e0d51da6a321a4c4ef1ff42.zip |
allow local NPC functions to be public or private
Diffstat (limited to 'src/map/script.h')
-rw-r--r-- | src/map/script.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/map/script.h b/src/map/script.h index 511497a66..044bcdc42 100644 --- a/src/map/script.h +++ b/src/map/script.h @@ -726,7 +726,9 @@ struct str_data_struct { }; struct script_label_entry { - int key,pos; + int key; + int pos; + enum script_label_flags flags; }; struct script_syntax_data { @@ -917,7 +919,7 @@ struct script_interface { void (*set_constant) (const char *name, int value, bool is_parameter, bool is_deprecated); void (*set_constant2) (const char *name, int value, bool is_parameter, bool is_deprecated); bool (*get_constant) (const char* name, int* value); - void (*label_add)(int key, int pos); + void (*label_add)(int key, int pos, enum script_label_flags flags); void (*run) (struct script_code *rootscript, int pos, int rid, int oid); void (*run_npc) (struct script_code *rootscript, int pos, int rid, int oid); void (*run_pet) (struct script_code *rootscript, int pos, int rid, int oid); @@ -948,10 +950,11 @@ struct script_interface { int (*queue_create) (void); bool (*queue_clear) (int idx); /* */ - const char * (*parse_curly_close) (const char *p); - const char * (*parse_syntax_close) (const char *p); - const char * (*parse_syntax_close_sub) (const char *p, int *flag); - const char * (*parse_syntax) (const char *p); + const char *(*parse_curly_close) (const char *p); + const char *(*parse_syntax_close) (const char *p); + const char *(*parse_syntax_close_sub) (const char *p, int *flag); + const char *(*parse_syntax) (const char *p); + const char *(*parse_syntax_function) (const char *p, bool is_public); c_op (*get_com) (const struct script_buf *scriptbuf, int *pos); int (*get_num) (const struct script_buf *scriptbuf, int *pos); const char* (*op2name) (int op); |