]> 4ch.mooo.com Git - 16.git/blob - 16/v2/source/verge/ENGINE/VC.H
00906cebeda609dde3986dd90433b45f8746e18d
[16.git] / 16 / v2 / source / verge / ENGINE / VC.H
1 /*\r
2 Copyright (C) 1998 BJ Eirich (aka vecna)\r
3 This program is free software; you can redistribute it and/or\r
4 modify it under the terms of the GNU General Public License\r
5 as published by the Free Software Foundation; either version 2\r
6 of the License, or (at your option) any later version.\r
7 This program is distributed in the hope that it will be useful,\r
8 but WITHOUT ANY WARRANTY; without even the implied warranty of\r
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\r
10 See the GNU General Public Lic\r
11 See the GNU General Public License for more details.\r
12 You should have received a copy of the GNU General Public License\r
13 along with this program; if not, write to the Free Software\r
14 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.\r
15 */\r
16 \r
17 #ifndef VC_H\r
18 #define VC_H\r
19 \r
20 typedef struct\r
21 {\r
22   char fname[40];\r
23   char argtype[12];\r
24   int numargs;\r
25   int returntype;\r
26   int syscodeofs;\r
27 } funcdecl;\r
28 \r
29 extern funcdecl funcs[100];\r
30 extern int numfuncs, mapevents;\r
31 extern int hookretrace, hooktimer;\r
32 \r
33 typedef struct\r
34 {\r
35   char vname[40];\r
36   int varstartofs;\r
37   int arraylen;\r
38 } vardecl;\r
39 \r
40 extern vardecl vars[100];\r
41 extern int numvars, invc;\r
42 extern char *mapvc, kill;\r
43 extern char *vcsp, *vcstack;\r
44 \r
45 void LoadSystemVC();\r
46 void LoadMapVC(VFILE *f);\r
47 void ReadVCVar();\r
48 void WriteVCVar();\r
49 void ExecuteEvent(int);\r
50 void ExecuteUserFunc(int);\r
51 \r
52 void HookRetrace();\r
53 void HookTimer();\r
54 void HookKey(int script);\r
55 \r
56 #endif\r