update structs

This commit is contained in:
quaK 2024-06-29 00:20:56 +03:00
parent 089fd82be9
commit b904ffccb5
3 changed files with 754 additions and 483 deletions

View File

@ -466,6 +466,57 @@ namespace game
netadr_s address; netadr_s address;
}; };
struct GfxFont
{
const char* fontName;
int pixelHeight;
TTFDef* ttfDef;
};
enum GfxDrawSceneMethod
{
GFX_DRAW_SCENE_STANDARD = 0x1,
};
struct GfxDrawMethod
{
int drawScene;
int baseTechType;
int emissiveTechType;
int forceTechType;
};
struct directory_t
{
char path[256];
char gamedir[256];
};
struct searchpath_s
{
searchpath_s* next;
directory_t* dir;
int bLocalized;
int playersFolder;
int language;
int pad;
};
enum PLAYERCARD_CACHE_TASK_STAGE
{
PLAYERCARD_CACHE_TASK_STAGE_WAITING = 0x0,
PLAYERCARD_CACHE_TASK_STAGE_WORKING = 0x1,
PLAYERCARD_CACHE_TASK_STAGE_ALL_DONE = 0x2,
};
struct CachedPlayerProfile
{
bool has_data;
XUID userID;
char profile[2201];
int time;
};
namespace entity namespace entity
{ {
enum connstate_t : std::uint32_t enum connstate_t : std::uint32_t
@ -582,42 +633,8 @@ namespace game
}; };
static_assert(offsetof(cg_s, viewModelAxis) == 324368); static_assert(offsetof(cg_s, viewModelAxis) == 324368);
struct GfxFont namespace scripting
{ {
const char* fontName;
int pixelHeight;
TTFDef* ttfDef;
};
enum GfxDrawSceneMethod
{
GFX_DRAW_SCENE_STANDARD = 0x1,
};
struct GfxDrawMethod
{
int drawScene;
int baseTechType;
int emissiveTechType;
int forceTechType;
};
struct directory_t
{
char path[256];
char gamedir[256];
};
struct searchpath_s
{
searchpath_s* next;
directory_t* dir;
int bLocalized;
int playersFolder;
int language;
int pad;
};
enum VariableType enum VariableType
{ {
VAR_UNDEFINED = 0x0, VAR_UNDEFINED = 0x0,
@ -805,21 +822,8 @@ namespace game
unsigned __int16 childVariableBucket[65536]; unsigned __int16 childVariableBucket[65536];
ChildVariableValue childVariableValue[384000]; ChildVariableValue childVariableValue[384000];
}; };
}
enum PLAYERCARD_CACHE_TASK_STAGE using namespace scripting;
{
PLAYERCARD_CACHE_TASK_STAGE_WAITING = 0x0,
PLAYERCARD_CACHE_TASK_STAGE_WORKING = 0x1,
PLAYERCARD_CACHE_TASK_STAGE_ALL_DONE = 0x2,
};
struct CachedPlayerProfile
{
bool has_data;
XUID userID;
char profile[2201];
int time;
};
namespace ddl namespace ddl
{ {

View File

@ -83,6 +83,7 @@ namespace game
WEAK symbol<bool(const char* zoneName)> DB_IsLocalized{ 0x3BC500 }; WEAK symbol<bool(const char* zoneName)> DB_IsLocalized{ 0x3BC500 };
WEAK symbol<char* (const char* filename, char* buf, int size)> DB_ReadRawFile{ 0xA79E30 }; WEAK symbol<char* (const char* filename, char* buf, int size)> DB_ReadRawFile{ 0xA79E30 };
WEAK symbol<int(const RawFile* rawfile)> DB_GetRawFileLen{ 0xF20AF0 }; WEAK symbol<int(const RawFile* rawfile)> DB_GetRawFileLen{ 0xF20AF0 };
WEAK symbol<void(int flags)> DB_UnloadFastfilesByZoneFlags{ 0xA7BCE0 };
WEAK symbol<const char* (const DDLState* state, int enumValue)> DDL_Lookup_GetEnumString{ 0x30430 }; WEAK symbol<const char* (const DDLState* state, int enumValue)> DDL_Lookup_GetEnumString{ 0x30430 };
WEAK symbol<bool(const DDLState* state)> DDL_StateIsLeaf{ 0x2E3C0 }; WEAK symbol<bool(const DDLState* state)> DDL_StateIsLeaf{ 0x2E3C0 };

File diff suppressed because it is too large Load Diff