]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - progsvm.h
make DP compile with C++ again
[xonotic/darkplaces.git] / progsvm.h
index ce900af775355dc28c343485a8c1d20c03ca84ff..edad32a5c92270889432b4ea0e92452c45794243 100644 (file)
--- a/progsvm.h
+++ b/progsvm.h
@@ -67,7 +67,7 @@ typedef struct prvm_edict_private_s
 {
        qboolean free;
        float freetime;
-       qboolean marked;
+       int mark;
        const char *allocation_origin;
 } prvm_edict_private_t;
 
@@ -128,7 +128,8 @@ typedef struct prvm_prog_fieldoffsets_s
 {
        // server and client use a lot of similar fields, so this is combined
        int SendEntity; // ssqc
-       int Version; // ssqc
+       int SendFlags; // ssqc
+       int Version; // ssqc (legacy)
        int alpha; // ssqc / csqc
        int ammo_cells1; // ssqc - Dissolution of Eternity mission pack
        int ammo_lava_nails; // ssqc - Dissolution of Eternity mission pack
@@ -217,6 +218,7 @@ typedef struct prvm_prog_fieldoffsets_s
        int viewzoom; // ssqc
        int yaw_speed; // ssqc / csqc
        int clientcamera; // ssqc
+       int clientstatus; // ssqc
 }
 prvm_prog_fieldoffsets_t;
 
@@ -240,6 +242,7 @@ typedef struct prvm_prog_globaloffsets_s
        int trace_plane_normal; // ssqc / csqc
        int trace_plane_dist; // ssqc / csqc
        int trace_ent; // ssqc / csqc
+       int trace_networkentity; // csqc
        int trace_dphitcontents; // ssqc / csqc
        int trace_dphitq3surfaceflags; // ssqc / csqc
        int trace_dphittexturename; // ssqc / csqc
@@ -253,6 +256,10 @@ typedef struct prvm_prog_globaloffsets_s
        int sb_showscores; // csqc
        int drawfont; // csqc / menu
        int require_spawnfunc_prefix; // ssqc
+       int worldstatus; // ssqc
+       int servertime; // csqc
+       int serverprevtime; // csqc
+       int serverdeltatime; // csqc
 }
 prvm_prog_globaloffsets_t;
 
@@ -280,9 +287,12 @@ typedef struct prvm_prog_funcoffsets_s
        func_t SV_ChangeTeam; // ssqc
        func_t SV_ParseClientCommand; // ssqc
        func_t SV_PlayerPhysics; // ssqc
+       func_t SV_OnEntityPreSpawnFunction; // ssqc
        func_t SV_OnEntityNoSpawnFunction; // ssqc
+       func_t SV_OnEntityPostSpawnFunction; // ssqc
        func_t GameCommand; // any
        func_t SV_Shutdown; // ssqc
+       func_t URI_Get_Callback; // any
 
        // menu qc only uses some functions, nothing else
        func_t m_draw; // mqc