[Structs] Update dvar

This commit is contained in:
Diavolo 2022-08-30 20:28:03 +02:00 committed by Maurice Heumann
parent f4f90c7f73
commit 0a1c1209bb

View File

@ -3600,19 +3600,21 @@ namespace Game
unsigned char color[4]; unsigned char color[4];
}; };
struct $BFBB53559BEAC4289F32B924847E59CB static_assert(sizeof(DvarValue) == 0x10);
struct enum_limit
{ {
int stringCount; int stringCount;
const char** strings; const char** strings;
}; };
struct $9CA192F9DB66A3CB7E01DE78A0DEA53D struct int_limit
{ {
int min; int min;
int max; int max;
}; };
struct $251C2428A496074035CACA7AAF3D55BD struct float_limit
{ {
float min; float min;
float max; float max;
@ -3620,12 +3622,14 @@ namespace Game
union DvarLimits union DvarLimits
{ {
$BFBB53559BEAC4289F32B924847E59CB enumeration; enum_limit enumeration;
$9CA192F9DB66A3CB7E01DE78A0DEA53D integer; int_limit integer;
$251C2428A496074035CACA7AAF3D55BD value; float_limit value;
$251C2428A496074035CACA7AAF3D55BD vector; float_limit vector;
}; };
static_assert(sizeof(DvarLimits) == 0x8);
struct dvar_t struct dvar_t
{ {
const char* name; const char* name;
@ -3641,6 +3645,8 @@ namespace Game
dvar_t* hashNext; dvar_t* hashNext;
}; };
static_assert(sizeof(dvar_t) == 0x50);
struct StaticDvar struct StaticDvar
{ {
dvar_t* dvar; dvar_t* dvar;