diff options
author | Dennis Friis <peavey@placid.dk> | 2008-04-02 15:09:18 +0000 |
---|---|---|
committer | Dennis Friis <peavey@placid.dk> | 2008-04-02 15:09:18 +0000 |
commit | 97bb21a79949779df76269b087f3bce7ef8179ee (patch) | |
tree | 08b3bdee2f3596581dd8d8f051afd37ee648cee7 /misc/src/map/script.h | |
parent | dafdbbe9f1db3e6943003a79a6e23c00da2f2fe1 (diff) | |
download | tmwa-97bb21a79949779df76269b087f3bce7ef8179ee.tar.gz tmwa-97bb21a79949779df76269b087f3bce7ef8179ee.tar.bz2 tmwa-97bb21a79949779df76269b087f3bce7ef8179ee.tar.xz tmwa-97bb21a79949779df76269b087f3bce7ef8179ee.zip |
initial checkin
Diffstat (limited to 'misc/src/map/script.h')
-rw-r--r-- | misc/src/map/script.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/misc/src/map/script.h b/misc/src/map/script.h new file mode 100644 index 0000000..b50c466 --- /dev/null +++ b/misc/src/map/script.h @@ -0,0 +1,39 @@ +// $Id: script.h,v 1.2 2004/09/25 05:32:19 MouseJstr Exp $ +#ifndef _SCRIPT_H_ +#define _SCRIPT_H_ + +struct script_data { + int type; + union { + int num; + char *str; + } u; +}; + +struct script_stack { + int sp,sp_max; + struct script_data *stack_data; +}; +struct script_state { + struct script_stack *stack; + int start,end; + int pos,state; + int rid,oid; + char *script,*new_script; + int defsp,new_pos,new_defsp; +}; + +unsigned char * parse_script(unsigned char *,int); +int run_script(unsigned char *,int,int,int); + +struct dbt* script_get_label_db(); +struct dbt* script_get_userfunc_db(); + +int script_config_read(char *cfgName); +int do_init_script(); +int do_final_script(); + +extern char mapreg_txt[]; + +#endif + |