working sockets
This commit is contained in:
@@ -7,7 +7,7 @@ namespace Gen
|
||||
struct Deserializer;
|
||||
struct PuzzleElementType
|
||||
{
|
||||
static constexpr uint16_t TypeIdx = 30;
|
||||
static constexpr uint16_t TypeIdx = 31;
|
||||
static constexpr int32_t EntryCount = 8;
|
||||
enum Enum : uint8_t
|
||||
{
|
||||
@@ -56,7 +56,7 @@ namespace Gen
|
||||
};
|
||||
struct EMaterial
|
||||
{
|
||||
static constexpr uint16_t TypeIdx = 31;
|
||||
static constexpr uint16_t TypeIdx = 32;
|
||||
static constexpr int32_t EntryCount = 2;
|
||||
enum Enum : int32_t
|
||||
{
|
||||
@@ -141,26 +141,32 @@ namespace Gen
|
||||
int8_t X = {};
|
||||
int8_t Y = {};
|
||||
};
|
||||
struct StaticPuzzleCard
|
||||
struct CardSocket
|
||||
{
|
||||
static constexpr uint16_t TypeIdx = 22;
|
||||
ModelHandle Model = {};
|
||||
};
|
||||
struct StaticPuzzleCard
|
||||
{
|
||||
static constexpr uint16_t TypeIdx = 23;
|
||||
PuzzleElementType::Enum Elements[4] = {};
|
||||
ModelHandle BaseModelHandle = {};
|
||||
ModelHandle NorthCoverHandle = {};
|
||||
ModelHandle EastCoverHandle = {};
|
||||
ModelHandle SouthCoverHandle = {};
|
||||
ModelHandle WestCoverHandle = {};
|
||||
CardSocket Sockets[16] = {};
|
||||
TextureHandle ModelTextureHandle = {};
|
||||
TextureHandle BoardTextureHandle = {};
|
||||
};
|
||||
struct StaticPuzzleCardHandle
|
||||
{
|
||||
static constexpr uint16_t TypeIdx = 23;
|
||||
static constexpr uint16_t TypeIdx = 24;
|
||||
uint16_t Idx = UINT16_MAX;
|
||||
};
|
||||
struct PuzzleVisualSettings
|
||||
{
|
||||
static constexpr uint16_t TypeIdx = 24;
|
||||
static constexpr uint16_t TypeIdx = 25;
|
||||
Vec4 TileBaseColor = {};
|
||||
Vec4 TileDotColor = {};
|
||||
Vec3 Test = {};
|
||||
@@ -168,20 +174,20 @@ namespace Gen
|
||||
};
|
||||
struct StaticPuzzleData
|
||||
{
|
||||
static constexpr uint16_t TypeIdx = 25;
|
||||
static constexpr uint16_t TypeIdx = 26;
|
||||
StaticPuzzleCard Cards[64] = {};
|
||||
PuzzleVisualSettings Visuals = {};
|
||||
};
|
||||
struct PuzzleCardStack
|
||||
{
|
||||
static constexpr uint16_t TypeIdx = 26;
|
||||
static constexpr uint16_t TypeIdx = 27;
|
||||
StaticPuzzleCardHandle RefCard = {};
|
||||
uint8_t MaxAvailableCount = {};
|
||||
uint8_t UsedCount = {};
|
||||
};
|
||||
struct PlacedPuzzleCard
|
||||
{
|
||||
static constexpr uint16_t TypeIdx = 27;
|
||||
static constexpr uint16_t TypeIdx = 28;
|
||||
StaticPuzzleCardHandle RefCard = {};
|
||||
PuzPos Position = {};
|
||||
uint8_t Rotation = {};
|
||||
@@ -189,7 +195,7 @@ namespace Gen
|
||||
};
|
||||
struct PuzzleData
|
||||
{
|
||||
static constexpr uint16_t TypeIdx = 28;
|
||||
static constexpr uint16_t TypeIdx = 29;
|
||||
uint16_t ID = {};
|
||||
char PuzzleName[64] = {};
|
||||
uint8_t WidthTiles = {};
|
||||
@@ -203,7 +209,7 @@ namespace Gen
|
||||
};
|
||||
struct SavedEntityRenderData
|
||||
{
|
||||
static constexpr uint16_t TypeIdx = 29;
|
||||
static constexpr uint16_t TypeIdx = 30;
|
||||
Vec4 BaseColor = {};
|
||||
Vec4 HighlightColor = {};
|
||||
Transform TF = {};
|
||||
@@ -260,6 +266,8 @@ namespace Gen
|
||||
bool Load(TextureHandle* 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 CardSocket* obj, uint32_t count, Serializer& serializer);
|
||||
bool Load(CardSocket* obj, uint32_t count, Deserializer& serializer);
|
||||
bool Save(const StaticPuzzleCard* obj, uint32_t count, Serializer& serializer);
|
||||
bool Load(StaticPuzzleCard* obj, uint32_t count, Deserializer& serializer);
|
||||
bool Save(const StaticPuzzleCardHandle* obj, uint32_t count, Serializer& serializer);
|
||||
@@ -299,7 +307,7 @@ namespace Gen
|
||||
|
||||
struct MetadataTable
|
||||
{
|
||||
TypeDef TypeDefinitions[32]
|
||||
TypeDef TypeDefinitions[33]
|
||||
{
|
||||
TypeDef{sizeof(int8_t), 0, "i8", 0, {}, {}, {}},
|
||||
TypeDef{sizeof(int16_t), 1, "i16", 0, {}, {}, {}},
|
||||
@@ -323,18 +331,19 @@ namespace Gen
|
||||
TypeDef{sizeof(ModelHandle), 298089627, "ModelHandle", 2, {5, 18}, {0, 0}, {{38, 8}, {46, 5}}},
|
||||
TypeDef{sizeof(TextureHandle), 1633273761, "TextureHandle", 2, {5, 18}, {0, 0}, {{51, 10}, {61, 5}}},
|
||||
TypeDef{sizeof(PuzPos), 1834398141, "PuzPos", 2, {0, 0}, {0, 0}, {{66, 1}, {67, 1}}},
|
||||
TypeDef{sizeof(StaticPuzzleCard), 3247750075, "StaticPuzzleCard", 8, {30, 19, 19, 19, 19, 19, 20, 20}, {4, 0, 0, 0, 0, 0, 0, 0}, {{68, 8}, {76, 15}, {91, 16}, {107, 15}, {122, 16}, {138, 15}, {153, 18}, {171, 18}}},
|
||||
TypeDef{sizeof(StaticPuzzleCardHandle), 1742502768, "StaticPuzzleCardHandle", 1, {5}, {0}, {{189, 3}}},
|
||||
TypeDef{sizeof(PuzzleVisualSettings), 2302077481, "PuzzleVisualSettings", 4, {14, 14, 13, 14}, {0, 0, 0, 0}, {{192, 13}, {205, 12}, {217, 4}, {221, 16}}},
|
||||
TypeDef{sizeof(StaticPuzzleData), 2707133860, "StaticPuzzleData", 2, {22, 24}, {64, 0}, {{237, 5}, {242, 7}}},
|
||||
TypeDef{sizeof(PuzzleCardStack), 53538532, "PuzzleCardStack", 3, {23, 4, 4}, {0, 0, 0}, {{249, 7}, {256, 17}, {273, 9}}},
|
||||
TypeDef{sizeof(PlacedPuzzleCard), 3555575973, "PlacedPuzzleCard", 4, {23, 21, 4, 8}, {0, 0, 0, 0}, {{282, 7}, {289, 8}, {297, 8}, {305, 8}}},
|
||||
TypeDef{sizeof(PuzzleData), 3349686056, "PuzzleData", 10, {5, 11, 4, 4, 6, 26, 27, 30, 6, 21}, {0, 64, 0, 0, 0, 16, 256, 1024, 0, 16}, {{313, 2}, {315, 10}, {325, 10}, {335, 11}, {346, 18}, {364, 14}, {378, 11}, {389, 15}, {404, 17}, {421, 13}}},
|
||||
TypeDef{sizeof(SavedEntityRenderData), 3172756855, "SavedEntityRenderData", 7, {14, 14, 17, 31, 20, 19, 8}, {0, 0, 0, 0, 0, 0, 0}, {{434, 9}, {443, 14}, {457, 2}, {459, 8}, {467, 7}, {474, 5}, {479, 7}}},
|
||||
TypeDef{sizeof(CardSocket), 3485485756, "CardSocket", 1, {19}, {0}, {{68, 5}}},
|
||||
TypeDef{sizeof(StaticPuzzleCard), 1947091475, "StaticPuzzleCard", 9, {31, 19, 19, 19, 19, 19, 22, 20, 20}, {4, 0, 0, 0, 0, 0, 16, 0, 0}, {{73, 8}, {81, 15}, {96, 16}, {112, 15}, {127, 16}, {143, 15}, {158, 7}, {165, 18}, {183, 18}}},
|
||||
TypeDef{sizeof(StaticPuzzleCardHandle), 1742502768, "StaticPuzzleCardHandle", 1, {5}, {0}, {{201, 3}}},
|
||||
TypeDef{sizeof(PuzzleVisualSettings), 2302077481, "PuzzleVisualSettings", 4, {14, 14, 13, 14}, {0, 0, 0, 0}, {{204, 13}, {217, 12}, {229, 4}, {233, 16}}},
|
||||
TypeDef{sizeof(StaticPuzzleData), 19690459, "StaticPuzzleData", 2, {23, 25}, {64, 0}, {{249, 5}, {254, 7}}},
|
||||
TypeDef{sizeof(PuzzleCardStack), 53538532, "PuzzleCardStack", 3, {24, 4, 4}, {0, 0, 0}, {{261, 7}, {268, 17}, {285, 9}}},
|
||||
TypeDef{sizeof(PlacedPuzzleCard), 3555575973, "PlacedPuzzleCard", 4, {24, 21, 4, 8}, {0, 0, 0, 0}, {{294, 7}, {301, 8}, {309, 8}, {317, 8}}},
|
||||
TypeDef{sizeof(PuzzleData), 3349686056, "PuzzleData", 10, {5, 11, 4, 4, 6, 27, 28, 31, 6, 21}, {0, 64, 0, 0, 0, 16, 256, 1024, 0, 16}, {{325, 2}, {327, 10}, {337, 10}, {347, 11}, {358, 18}, {376, 14}, {390, 11}, {401, 15}, {416, 17}, {433, 13}}},
|
||||
TypeDef{sizeof(SavedEntityRenderData), 3172756855, "SavedEntityRenderData", 7, {14, 14, 17, 32, 20, 19, 8}, {0, 0, 0, 0, 0, 0, 0}, {{446, 9}, {455, 14}, {469, 2}, {471, 8}, {479, 7}, {486, 5}, {491, 7}}},
|
||||
TypeDef{sizeof(PuzzleElementType::Enum), 2983807453, "PuzzleElementType", 0, {}, {}, {}},
|
||||
TypeDef{sizeof(EMaterial::Enum), 2024002654, "EMaterial", 0, {}, {}, {}},
|
||||
};
|
||||
char MemberNameBuffer[64*64*64]{"xyxyzxyzwMMMMIPositionRotationScaleIdxModelIdxAssetTextureIdxAssetXYElementsBaseModelHandleNorthCoverHandleEastCoverHandleSouthCoverHandleWestCoverHandleModelTextureHandleBoardTextureHandleIdxTileBaseColorTileDotColorTestDisabledCardTintCardsVisualsRefCardMaxAvailableCountUsedCountRefCardPositionRotationIsLockedIDPuzzleNameWidthTilesHeightTilesAvailableCardCountAvailableCardsPlacedCardsBackgroundTilesGoalPositionCountGoalPositionsBaseColorHighlightColorTFMaterialTextureModelVisible"};
|
||||
char MemberNameBuffer[64*64*64]{"xyxyzxyzwMMMMIPositionRotationScaleIdxModelIdxAssetTextureIdxAssetXYModelElementsBaseModelHandleNorthCoverHandleEastCoverHandleSouthCoverHandleWestCoverHandleSocketsModelTextureHandleBoardTextureHandleIdxTileBaseColorTileDotColorTestDisabledCardTintCardsVisualsRefCardMaxAvailableCountUsedCountRefCardPositionRotationIsLockedIDPuzzleNameWidthTilesHeightTilesAvailableCardCountAvailableCardsPlacedCardsBackgroundTilesGoalPositionCountGoalPositionsBaseColorHighlightColorTFMaterialTextureModelVisible"};
|
||||
};
|
||||
|
||||
constexpr MetadataTable Metadata;
|
||||
|
||||
Reference in New Issue
Block a user