more stuff

This commit is contained in:
Asuro
2025-02-24 05:29:24 +01:00
parent 369b994755
commit d3dcec1458
6 changed files with 156 additions and 6 deletions

View File

@@ -64,11 +64,25 @@ namespace Puzzle
struct StaticPuzzleCard
{
PuzzleNode Nodes[Config::NodesPerCard];
uint16_t ModelHandle = 0;
};
struct StaticPuzzleCardHandle
{
uint16_t Idx = UINT16_MAX;
bool IsValid()
{
return Idx != UINT16_MAX;
}
};
struct StaticPuzzleData
{
StaticPuzzleCard Cards[64];
void Setup();
static StaticPuzzleData& Get();
const StaticPuzzleCard& GetCard(StaticPuzzleCardHandle H) const;
};
struct PlacedPuzzleCard