generate type data

This commit is contained in:
Asuro
2025-03-20 20:18:40 +01:00
parent e16c9e0a2f
commit 551796e7ad
19 changed files with 332 additions and 23 deletions

View File

@@ -1,4 +1,5 @@
#pragma once
#include "../dependency/minidef/src/TypeDef.h"
#include "../game/Log.h"
#include "bx/string.h"
@@ -7,6 +8,12 @@
namespace Generated
{
struct EmbeddedTypeDef
{
uint32_t Size = sizeof(Def::DefinitionFile);
Def::DefinitionFile Data;
};
struct Serializer
{
bx::Error Err;

View File

@@ -1,3 +1,4 @@
#include "Def.h"
#include "Generated.h"
namespace Generated

View File

@@ -1,12 +1,14 @@
#pragma once
#include "Def.h"
#include <cstdint>
namespace Generated
{
struct Serializer;
struct Deserializer;
struct PuzzleElementType
{
static constexpr uint32_t Hash = 2024002654;
static constexpr int32_t EntryCount = 8;
static constexpr uint32_t Hash = 2024002654;
enum Enum : int32_t
{
None,
@@ -100,9 +102,9 @@ namespace Generated
};
struct StaticPuzzleCard
{
static constexpr uint32_t Hash = 2507139249;
static constexpr uint32_t Hash = 1414289929;
PuzzleElementType::Enum Elements[4] = {};
uint16_t ModelHandle = {};
uint32_t ModelHandle = {};
};
struct StaticPuzzleCardHandle
{
@@ -111,7 +113,7 @@ namespace Generated
};
struct StaticPuzzleData
{
static constexpr uint32_t Hash = 3210954810;
static constexpr uint32_t Hash = 84985581;
StaticPuzzleCard Cards[64] = {};
};
struct PuzzleCardStack

BIN
src/gen/TypeData.bin LFS Normal file

Binary file not shown.