multiple puzzles

This commit is contained in:
Asuro
2025-04-07 16:57:41 +02:00
parent d0f9051af7
commit fd2654c944
2 changed files with 45 additions and 5 deletions

View File

@@ -144,12 +144,15 @@ namespace Game
static constexpr Gen::Vec2 WorldCardSize{10.0f, 10.0f};
static constexpr float UICardScale = 0.05f;
static constexpr float UICardOffset = 2.1f * UICardScale;
static constexpr int32_t UIAvailableCardMaxStackPreview = 3;
Gen::PuzzleData Data;
Gen::Vec3 WorldPosition;
PuzzleTileEntityHandle TileHandles[Puzzle::Config::MaxCardsInPuzzle];
UIQuadEntityHandle UIPlacedCards[Puzzle::Config::MaxCardsInPuzzle];
UIQuadEntityHandle UIAvailableCards[Puzzle::Config::MaxAvailableStacks * UIAvailableCardMaxStackPreview];
Gen::PuzPos DraggedCard{-1, -1};
bool IsSetup = false;
bool IsActive = false;
void Setup();
void Update();
@@ -169,7 +172,7 @@ namespace Game
public:
Gen::StaticPuzzleData PuzzleData;
WorldPuzzle Puzzles[1];
WorldPuzzle Puzzles[3];
public:
void Setup(GameData& data);