multiple puzzles
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user