This commit is contained in:
Asuro
2025-03-07 00:37:44 +01:00
parent 467a4a0491
commit 96a122f932
17 changed files with 944 additions and 16 deletions

View File

@@ -1,6 +1,9 @@
#pragma once
#include "Serial.h"
#include <cstdint>
#include "../../gen/Generated.h"
namespace Puzzle
{
struct Config
@@ -104,6 +107,9 @@ namespace Puzzle
struct PuzzleData
{
SER_HEADER(1, "PZZL");
Generated::PuzzleData S;
uint32_t AvailableCardCount = 0;
PuzzleCardStack AvailableCards[Config::MaxAvailableStacks];
uint32_t PlacedCardCount = 0;
@@ -117,6 +123,9 @@ namespace Puzzle
const PuzzleNode& GetNodeAt(PuzPos pos) const;
PuzzleElementType GetElementAt(ElemPos pos) const;
char PuzzleName[32]{"Unnamed"};
bool RenderDebugUI();
};
struct PuzzleSolver