engine: client: add support for new PARMs

Reorganize internal engine structs, carefully check structs compatibility before casting types
This commit is contained in:
Alibek Omarov
2023-12-30 16:36:13 +03:00
parent 632264809f
commit a3c9538d12
4 changed files with 62 additions and 17 deletions
+4 -2
View File
@@ -302,8 +302,12 @@ typedef struct host_parm_s
int argc;
char **argv;
// ==== shared through RefAPI's ref_host_t
double realtime; // host.curtime
double frametime; // time between engine frames
uint features; // custom features that enables by mod-maker request
// ==== shared through RefAPI's ref_host_t
double realframetime; // for some system events, e.g. console animations
uint framecount; // global framecount
@@ -344,8 +348,6 @@ typedef struct host_parm_s
poolhandle_t imagepool; // imagelib mempool
poolhandle_t soundpool; // soundlib mempool
uint features; // custom features that enables by mod-maker request
// for IN_MouseMove() easy access
int window_center_x;
int window_center_y;