more codegen
This commit is contained in:
@@ -3,12 +3,89 @@
|
||||
|
||||
namespace Generated
|
||||
{
|
||||
struct PuzzleElementType
|
||||
{
|
||||
static constexpr int32_t EntryCount = 8;
|
||||
enum class Enum : int32_t
|
||||
{
|
||||
None,
|
||||
WaterIn,
|
||||
WaterGoal,
|
||||
WaterChannel,
|
||||
ElectricIn,
|
||||
ElectricGoal,
|
||||
Blocked,
|
||||
Bridge,
|
||||
};
|
||||
static constexpr char EntryNames[EntryCount][64]
|
||||
{
|
||||
"None",
|
||||
"WaterIn",
|
||||
"WaterGoal",
|
||||
"WaterChannel",
|
||||
"ElectricIn",
|
||||
"ElectricGoal",
|
||||
"Blocked",
|
||||
"Bridge",
|
||||
};
|
||||
static constexpr char GameName[EntryCount][64]
|
||||
{
|
||||
"Empty",
|
||||
"Water Source",
|
||||
"Water Goal",
|
||||
"Water Channel",
|
||||
"Electricity Source",
|
||||
"Electricity Goal",
|
||||
"Blocked",
|
||||
"Bridge",
|
||||
};
|
||||
};
|
||||
struct PuzPos
|
||||
{
|
||||
int8_t X = {};
|
||||
int8_t Y = {};
|
||||
};
|
||||
struct ElemPos
|
||||
{
|
||||
PuzPos Position = {};
|
||||
uint8_t ElemIdx = {};
|
||||
};
|
||||
struct PuzzleNode
|
||||
{
|
||||
PuzzleElementType PlacedTypes = {};
|
||||
};
|
||||
struct StaticPuzzleCard
|
||||
{
|
||||
PuzzleNode Nodes[8] = {};
|
||||
uint16_t ModelHandle = {};
|
||||
};
|
||||
struct StaticPuzzleCardHandle
|
||||
{
|
||||
uint16_t Idx = {};
|
||||
};
|
||||
struct PuzzleCardStack
|
||||
{
|
||||
StaticPuzzleCardHandle RefCard = {};
|
||||
uint8_t MaxAvailableCount = {};
|
||||
uint8_t UsedCount = {};
|
||||
};
|
||||
struct PlacedPuzzleCard
|
||||
{
|
||||
StaticPuzzleCardHandle RefCard = {};
|
||||
PuzPos Position = {};
|
||||
uint8_t Rotation = {};
|
||||
bool IsLocked = {};
|
||||
};
|
||||
struct PuzzleData
|
||||
{
|
||||
uint8_t WidthTiles = {};
|
||||
uint8_t HeightTiles = {};
|
||||
uint32_t AvailableCardCount = {};
|
||||
PuzzleCardStack AvailableCards[8] = {};
|
||||
uint32_t PlacedCardCount = {};
|
||||
PlacedPuzzleCard PlacedCards[8] = {};
|
||||
PuzzleNode PlacedNodes[8] = {};
|
||||
uint32_t GoalPositionCount = {};
|
||||
ElemPos GoalPositions = {};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user