Struct fixes
This commit is contained in:
parent
a44675aa68
commit
282d5e97a3
@ -689,6 +689,7 @@ namespace game
|
|||||||
byte color[4];
|
byte color[4];
|
||||||
const dvar_t* indirect[3];
|
const dvar_t* indirect[3];
|
||||||
} value;
|
} value;
|
||||||
|
|
||||||
uint64_t encryptedValue;
|
uint64_t encryptedValue;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -699,26 +700,31 @@ namespace game
|
|||||||
int stringCount;
|
int stringCount;
|
||||||
const char** strings;
|
const char** strings;
|
||||||
} enumeration;
|
} enumeration;
|
||||||
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
int min;
|
int min;
|
||||||
int max;
|
int max;
|
||||||
} integer;
|
} integer;
|
||||||
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
int64_t min;
|
int64_t min;
|
||||||
int64_t max;
|
int64_t max;
|
||||||
} integer64;
|
} integer64;
|
||||||
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
uint64_t min;
|
uint64_t min;
|
||||||
uint64_t max;
|
uint64_t max;
|
||||||
} unsignedInt64;
|
} unsignedInt64;
|
||||||
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
float min;
|
float min;
|
||||||
float max;
|
float max;
|
||||||
} value;
|
} value;
|
||||||
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
vec_t min;
|
vec_t min;
|
||||||
@ -1028,7 +1034,7 @@ namespace game
|
|||||||
JoinResult joinResult;
|
JoinResult joinResult;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
namespace hks
|
namespace hks
|
||||||
{
|
{
|
||||||
struct lua_State;
|
struct lua_State;
|
||||||
@ -1051,7 +1057,7 @@ namespace game
|
|||||||
|
|
||||||
typedef size_t hksSize;
|
typedef size_t hksSize;
|
||||||
typedef void* (*lua_Alloc)(void*, void*, size_t, size_t);
|
typedef void* (*lua_Alloc)(void*, void*, size_t, size_t);
|
||||||
typedef hksInt32(*lua_CFunction)(lua_State*);
|
typedef hksInt32 (*lua_CFunction)(lua_State*);
|
||||||
|
|
||||||
struct GenericChunkHeader
|
struct GenericChunkHeader
|
||||||
{
|
{
|
||||||
@ -1108,11 +1114,14 @@ namespace game
|
|||||||
TNUMBER = 0x3,
|
TNUMBER = 0x3,
|
||||||
TSTRING = 0x4,
|
TSTRING = 0x4,
|
||||||
TTABLE = 0x5,
|
TTABLE = 0x5,
|
||||||
TFUNCTION = 0x6, // idk
|
TFUNCTION = 0x6,
|
||||||
|
// idk
|
||||||
TUSERDATA = 0x7,
|
TUSERDATA = 0x7,
|
||||||
TTHREAD = 0x8,
|
TTHREAD = 0x8,
|
||||||
TIFUNCTION = 0x9, // Lua function
|
TIFUNCTION = 0x9,
|
||||||
TCFUNCTION = 0xA, // C function
|
// Lua function
|
||||||
|
TCFUNCTION = 0xA,
|
||||||
|
// C function
|
||||||
TUI64 = 0xB,
|
TUI64 = 0xB,
|
||||||
TSTRUCT = 0xC,
|
TSTRUCT = 0xC,
|
||||||
NUM_TYPE_OBJECTS = 0xE,
|
NUM_TYPE_OBJECTS = 0xE,
|
||||||
@ -1294,7 +1303,7 @@ namespace game
|
|||||||
int _m_isHksGlobalMemoTestingMode;
|
int _m_isHksGlobalMemoTestingMode;
|
||||||
HksCompilerSettings_BytecodeSharingFormat m_bytecodeSharingFormat;
|
HksCompilerSettings_BytecodeSharingFormat m_bytecodeSharingFormat;
|
||||||
HksCompilerSettings_IntLiteralOptions m_enableIntLiterals;
|
HksCompilerSettings_IntLiteralOptions m_enableIntLiterals;
|
||||||
int(*m_debugMap)(const char*, int);
|
int (*m_debugMap)(const char*, int);
|
||||||
};
|
};
|
||||||
|
|
||||||
enum HksBytecodeSharingMode : __int64
|
enum HksBytecodeSharingMode : __int64
|
||||||
@ -1504,7 +1513,7 @@ namespace game
|
|||||||
void* m_profiler;
|
void* m_profiler;
|
||||||
RuntimeProfileData m_runProfilerData;
|
RuntimeProfileData m_runProfilerData;
|
||||||
HksCompilerSettings m_compilerSettings;
|
HksCompilerSettings m_compilerSettings;
|
||||||
int(*m_panicFunction)(lua_State*);
|
int (*m_panicFunction)(lua_State*);
|
||||||
void* m_luaplusObjectList;
|
void* m_luaplusObjectList;
|
||||||
int m_heapAssertionFrequency;
|
int m_heapAssertionFrequency;
|
||||||
int m_heapAssertionCount;
|
int m_heapAssertionCount;
|
||||||
@ -1533,6 +1542,7 @@ namespace game
|
|||||||
HksError m_error;
|
HksError m_error;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef uint32_t ScrVarCanonicalName_t;
|
typedef uint32_t ScrVarCanonicalName_t;
|
||||||
|
|
||||||
@ -1556,19 +1566,23 @@ namespace game
|
|||||||
char __pad4[0x29DAC];
|
char __pad4[0x29DAC];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
static_assert(sizeof(client_s) == 0xE5110);
|
static_assert(sizeof(client_s) == 0xE5110);
|
||||||
|
|
||||||
static_assert(offsetof(game::client_s, address) == 0x2C);
|
static_assert(offsetof(game::client_s, address) == 0x2C);
|
||||||
static_assert(offsetof(game::client_s, xuid) == 0x55C8);
|
static_assert(offsetof(game::client_s, xuid) == 0x55C8);
|
||||||
static_assert(offsetof(game::client_s, guid) == 0xBB354);
|
static_assert(offsetof(game::client_s, guid) == 0xBB354);
|
||||||
static_assert(offsetof(game::client_s, bIsTestClient) == 0xBB360);
|
static_assert(offsetof(game::client_s, bIsTestClient) == 0xBB360);
|
||||||
|
#endif
|
||||||
|
|
||||||
struct client_s_cl : client_s
|
struct client_s_cl : client_s
|
||||||
{
|
{
|
||||||
char __pad1_0[0x60];
|
char __pad1_0[0x60];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
static_assert(sizeof(client_s_cl) == 0xE5170);
|
static_assert(sizeof(client_s_cl) == 0xE5170);
|
||||||
|
#endif
|
||||||
|
|
||||||
enum scriptInstance_t
|
enum scriptInstance_t
|
||||||
{
|
{
|
||||||
@ -1598,7 +1612,9 @@ namespace game
|
|||||||
unsigned char __pad1[0x2A0];
|
unsigned char __pad1[0x2A0];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
static_assert(sizeof(gentity_s) == 0x4F8);
|
static_assert(sizeof(gentity_s) == 0x4F8);
|
||||||
|
#endif
|
||||||
|
|
||||||
enum workshop_type
|
enum workshop_type
|
||||||
{
|
{
|
||||||
@ -1623,7 +1639,9 @@ namespace game
|
|||||||
workshop_type type;
|
workshop_type type;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
static_assert(sizeof(workshop_data) == 0x4C8);
|
static_assert(sizeof(workshop_data) == 0x4C8);
|
||||||
|
#endif
|
||||||
|
|
||||||
struct DDLMember
|
struct DDLMember
|
||||||
{
|
{
|
||||||
@ -1695,7 +1713,7 @@ namespace game
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct DDLContext;
|
struct DDLContext;
|
||||||
typedef void(* DDLWriteCB)(DDLContext*, void*);
|
typedef void (* DDLWriteCB)(DDLContext*, void*);
|
||||||
|
|
||||||
struct DDLContext
|
struct DDLContext
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user