fixing stuff

This commit is contained in:
Asuro
2025-03-24 18:30:46 +01:00
parent fa93abe1ec
commit aafa5e966e
17 changed files with 174 additions and 90 deletions

View File

@@ -1,14 +1,12 @@
#pragma once
#include <cstdint>
#include "Def.h"
namespace Generated
{
struct Serializer;
struct Deserializer;
struct PuzzleElementType
{
static constexpr int32_t EntryCount = 8;
static constexpr uint32_t Hash = 2024002654;
static constexpr int32_t EntryCount = 8;
enum Enum : int32_t
{
None,
@@ -94,6 +92,17 @@ namespace Generated
0.0f, 0.0f, 0.0f, 1.0f
};
};
struct AssetHandle
{
static constexpr uint32_t Hash = 2609735487;
uint32_t Idx = UINT32_MAX;
};
struct ModelHandle
{
static constexpr uint32_t Hash = 298089627;
uint16_t ModelIdx = UINT16_MAX;
AssetHandle Asset = {};
};
struct PuzPos
{
static constexpr uint32_t Hash = 1834398141;
@@ -102,9 +111,9 @@ namespace Generated
};
struct StaticPuzzleCard
{
static constexpr uint32_t Hash = 1414289929;
static constexpr uint32_t Hash = 2851442461;
PuzzleElementType::Enum Elements[4] = {};
uint32_t ModelHandle = {};
ModelHandle ModelHandle = {};
};
struct StaticPuzzleCardHandle
{
@@ -113,7 +122,7 @@ namespace Generated
};
struct StaticPuzzleData
{
static constexpr uint32_t Hash = 84985581;
static constexpr uint32_t Hash = 4204694691;
StaticPuzzleCard Cards[64] = {};
};
struct PuzzleCardStack
@@ -157,6 +166,10 @@ namespace Generated
bool Load(Mat3* obj, uint32_t count, Deserializer& serializer);
bool Save(const Mat4* obj, uint32_t count, Serializer& serializer);
bool Load(Mat4* obj, uint32_t count, Deserializer& serializer);
bool Save(const AssetHandle* obj, uint32_t count, Serializer& serializer);
bool Load(AssetHandle* obj, uint32_t count, Deserializer& serializer);
bool Save(const ModelHandle* obj, uint32_t count, Serializer& serializer);
bool Load(ModelHandle* obj, uint32_t count, Deserializer& serializer);
bool Save(const PuzPos* obj, uint32_t count, Serializer& serializer);
bool Load(PuzPos* obj, uint32_t count, Deserializer& serializer);
bool Save(const StaticPuzzleCard* obj, uint32_t count, Serializer& serializer);