OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
mem32instances.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4//#include "mem32.h"
5
6namespace Compatibility {
7
8using ptr32_t = uint32_t;
9
10struct zString {
11 int32_t _VTBL;
12 int32_t _ALLOCATER;
14 int32_t len;
15 int32_t RES;
16 };
17
18struct zCArray {
20 int32_t numAlloc = 0;
21 int32_t numInArray = 0;
22 };
23
26 int32_t numAlloc = 0;
27 int32_t numInArray = 0;
29 };
30
31struct zCList {
34 };
35
41
42struct zCParser {
43 int32_t msgfunc;
44
45 int32_t file_array; //0x0004 zCPar_File**
46 int32_t file_numAlloc; //0x0008 int
47 int32_t file_numInArray; //0x000C int
48
49 int32_t symtab_preAllocatedSymbols; //0x0010 zCPar_Symbol*
50 int32_t symtab_nextPreAllocated; //0x0014 int
51
52 zCArray symtab_table; // array of pointers
54
55 int32_t lastsym; //0x0034 zCPar_Symbol*
56 int32_t firstsym; //0x0038 zCPar_Symbol*
57
61
62 //zCPar_Stack stack;
67
68 //zCPar_DataStack datastack;
69 int32_t datastack_stack[2048];
71
72 //NOTE: incomplete
73 };
74
78
79 int32_t content;
80 int32_t offset;
81
82 int32_t bitfield;
83 int32_t filenr;
84 int32_t line;
85 int32_t line_anz;
86 int32_t pos_beg;
87 int32_t pos_anz;
88
90 };
91
92struct oGame {
93 int32_t _VTBL;
100 int32_t CLIPRANGE;
101 int32_t FOGRANGE;
109 int32_t GAME_TEXT;
110 int32_t LOAD_SCREEN;
111 int32_t SAVE_SCREEN;
133 int32_t STARTPOS[3];
134 int32_t GAMEINFO;
135 int32_t PL_LIGHT;
136 int32_t PL_LIGHTVAL;
138 int32_t TIMESTEP;
139 int32_t SINGLESTEP;
140 int32_t GUILDS;
141 int32_t INFOMAN;
142 int32_t NEWSMAN;
143 int32_t SVMMAN;
144 int32_t TRADEMAN;
145 int32_t PORTALMAN;
146 int32_t SPAWNMAN;
147 int32_t MUSIC_DELAY;
148 int32_t WATCHNPC;
163 int32_t PROGRESSBAR;
167 };
168
169struct oWorld {
170 int32_t _VTBL;
180 int32_t FOUNDHIT;
181 int32_t FOUNDVOB;
182 int32_t FOUNDPOLY;
184 int32_t FOUNDPOLYNORMAL[3];
185 int32_t FOUNDVERTEX;
187 int32_t CSPLAYER;
189 int32_t COMPILED;
196 int32_t VOBFARCLIPZ;
205 int32_t SHOWWAYNET;
207 int32_t PROGRESSBAR;
256 int32_t CBSPTREE;
297 int32_t VOBHASHTABLESTART[2048];
298 int32_t VOBHASHTABLEMIDDLE[2048];
299 int32_t VOBHASHTABLEEND[2048];
302 int32_t VOBLIST;
305 };
306
307struct GameMgr {
308 };
309
310struct zError {
311 int32_t _VTBL;
312 int32_t ONEXIT;
314 int32_t FILTER_FLAG;
316 int32_t TARGET;
317 int32_t ACK_TYPE;
318 int32_t LOG_FILE;
320 int32_t SPYHANDLE;
321 int32_t SPYMUTEX;
322 };
323
336
337struct zCView {
338 int32_t _VTBL;
340 int32_t M_BFILLZ;
341 int32_t NEXT;
342 int32_t VIEWID;
343 int32_t FLAGS;
344 int32_t INTFLAGS;
345 int32_t ONDESK;
346 int32_t ALPHAFUNC;
347 int32_t COLOR;
348 int32_t ALPHA;
351 int32_t CHILDS_LAST;
353 int32_t OWNER;
354 int32_t BACKTEX;
355 int32_t VPOSX;
356 int32_t VPOSY;
357 int32_t VSIZEX;
358 int32_t VSIZEY;
359 int32_t PPOSX;
360 int32_t PPOSY;
361 float PSIZEX;
362 float PSIZEY;
363 int32_t FONT;
364 int32_t FONTCOLOR;
365 int32_t PX1;
366 int32_t PY1;
367 int32_t PX2;
368 int32_t PY2;
369 int32_t WINX;
370 int32_t WINY;
374 int32_t SCROLLTIMER;
375 int32_t FXOPEN;
376 int32_t FXCLOSE;
377 int32_t TIMEDIALOG;
378 int32_t TIMEOPEN;
379 int32_t TIMECLOSE;
380 int32_t SPEEDOPEN;
381 int32_t SPEEDCLOSE;
382 int32_t ISOPEN;
383 int32_t ISCLOSED;
390 int32_t POSCURRENT_0[2];
391 int32_t POSCURRENT_1[2];
392 int32_t POSOPENCLOSE_0[2];
393 int32_t POSOPENCLOSE_1[2];
394 };
395
410
413
414 int32_t posx;
415 int32_t posy;
416
418 int32_t font;
419 int32_t timer;
420 int32_t inPrintWin;
421
422 int32_t color; //zCOLOR
423 int32_t timed;
424 int32_t colored;
425 };
426
427struct zCFontMan {
428 };
429}
uint32_t ptr32_t
int32_t ARRAY_VIEW_ENABLED[6]
int32_t ARRAY_VIEW_VISIBLE[6]
int32_t BSPTREE_RENDERLIGHTLIST_NUMALLOC
int32_t ZONEACTIVEHANDLE_ACTIVELIST_ARRAY
int32_t ZONEBOXSORTER_NODELIST0_NUMINARRAY
int32_t ZONEBOXSORTER_NODELIST1_COMPARE
int32_t ZONEACTIVEHANDLE_INDEXBEGIN[3]
int32_t ZONEBOXSORTER_NODELIST0_NUMALLOC
int32_t ZONEBOXSORTER_NODELIST1_NUMALLOC
int32_t ZONEACTIVEHANDLE_ACTIVELIST_NUMALLOC
int32_t ZONEBOXSORTER_NODELIST2_COMPARE
int32_t TRACERAYTEMPIGNOREVOBLIST_ARRAY
int32_t ZONEACTIVEHANDLE_MAXS[3]
int32_t VOBHASHTABLESTART[2048]
int32_t ZONEBOXSORTER_NODELIST2_NUMINARRAY
int32_t BSPTREE_RENDERLIGHTLIST_NUMINARRAY
int32_t ZONEBOXSORTER_HANDLES_NUMINARRAY
int32_t BSPTREE_RENDERLIGHTLIST_ARRAY
int32_t ZONEBOXSORTER_HANDLES_NUMALLOC
int32_t ZONEBOXSORTER_NODELIST0_COMPARE
int32_t ZONEBOXSORTER_NODELIST1_ARRAY
int32_t TRACERAYTEMPIGNOREVOBLIST_NUMALLOC
int32_t TRACERAYTEMPIGNOREVOBLIST_NUMINARRAY
int32_t ZONEBOXSORTER_NODELIST2_ARRAY
int32_t ZONEBOXSORTER_NODELIST2_NUMALLOC
int32_t BSPTREE_RENDERVOBLIST_NUMINARRAY
int32_t PERFRAMECALLBACKLIST_NUMALLOC
int32_t BSPTREE_SECTORLIST_NUMINARRAY
int32_t BSPTREE_RENDERVOBLIST_NUMALLOC
int32_t VOBHASHTABLEEND[2048]
int32_t PERFRAMECALLBACKLIST_NUMINARRAY
int32_t ZONEACTIVEHANDLE_MINS[3]
int32_t BSPTREE_PORTALLIST_NUMINARRAY
int32_t ZONEACTIVEHANDLE_ACTIVELIST_NUMINARRAY
int32_t ZONEBOXSORTER_NODELIST0_ARRAY
int32_t VOBHASHTABLEMIDDLE[2048]
int32_t ZONEACTIVEHANDLE_INDEXEND[3]
int32_t ZONEBOXSORTER_NODELIST1_NUMINARRAY
int32_t datastack_stack[2048]
zCArraySort sorted_symtab_table