diff options
author | gumi <mekolat@users.noreply.github.com> | 2017-04-12 15:43:08 -0400 |
---|---|---|
committer | gumi <mekolat@users.noreply.github.com> | 2017-04-12 17:52:16 -0400 |
commit | 1ee4274fa962eb55be13ac6bf447c85bd064736e (patch) | |
tree | 2261805e069eac20ffc5bb090675f9ef7605ad12 /src/map/script.h | |
parent | 7b44f8704e57ee430b1cde8b1c8c85d8961eb9d0 (diff) | |
download | hercules-1ee4274fa962eb55be13ac6bf447c85bd064736e.tar.gz hercules-1ee4274fa962eb55be13ac6bf447c85bd064736e.tar.bz2 hercules-1ee4274fa962eb55be13ac6bf447c85bd064736e.tar.xz hercules-1ee4274fa962eb55be13ac6bf447c85bd064736e.zip |
fix a16fbb3 "allow character and account variables to reference another registry"
Diffstat (limited to 'src/map/script.h')
-rw-r--r-- | src/map/script.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/script.h b/src/map/script.h index a69000991..0c967a94e 100644 --- a/src/map/script.h +++ b/src/map/script.h @@ -672,10 +672,12 @@ struct script_interface { struct script_data* (*push_val)(struct script_stack* stack, enum c_op type, int64 val, struct reg_db *ref); struct script_data *(*get_val) (struct script_state* st, struct script_data* data); char* (*get_val_ref_str) (struct script_state* st, struct reg_db *n, struct script_data* data); + char* (*get_val_pc_ref_str) (struct script_state* st, struct reg_db *n, struct script_data* data); char* (*get_val_scope_str) (struct script_state* st, struct reg_db *n, struct script_data* data); char* (*get_val_npc_str) (struct script_state* st, struct reg_db *n, struct script_data* data); char* (*get_val_instance_str) (struct script_state* st, const char* name, struct script_data* data); int (*get_val_ref_num) (struct script_state* st, struct reg_db *n, struct script_data* data); + int (*get_val_pc_ref_num) (struct script_state* st, struct reg_db *n, struct script_data* data); int (*get_val_scope_num) (struct script_state* st, struct reg_db *n, struct script_data* data); int (*get_val_npc_num) (struct script_state* st, struct reg_db *n, struct script_data* data); int (*get_val_instance_num) (struct script_state* st, const char* name, struct script_data* data); @@ -755,10 +757,12 @@ struct script_interface { void (*errorwarning_sub) (StringBuf *buf, const char *src, const char *file, int start_line, const char *error_msg, const char *error_pos); int (*set_reg) (struct script_state *st, struct map_session_data *sd, int64 num, const char *name, const void *value, struct reg_db *ref); void (*set_reg_ref_str) (struct script_state* st, struct reg_db *n, int64 num, const char* name, const char *str); + void (*set_reg_pc_ref_str) (struct script_state* st, struct reg_db *n, int64 num, const char* name, const char *str); void (*set_reg_scope_str) (struct script_state* st, struct reg_db *n, int64 num, const char* name, const char *str); void (*set_reg_npc_str) (struct script_state* st, struct reg_db *n, int64 num, const char* name, const char *str); void (*set_reg_instance_str) (struct script_state* st, int64 num, const char* name, const char *str); void (*set_reg_ref_num) (struct script_state* st, struct reg_db *n, int64 num, const char* name, int val); + void (*set_reg_pc_ref_num) (struct script_state* st, struct reg_db *n, int64 num, const char* name, int val); void (*set_reg_scope_num) (struct script_state* st, struct reg_db *n, int64 num, const char* name, int val); void (*set_reg_npc_num) (struct script_state* st, struct reg_db *n, int64 num, const char* name, int val); void (*set_reg_instance_num) (struct script_state* st, int64 num, const char* name, int val); |