This commit is contained in:
Asuro
2025-02-25 04:03:48 +01:00
parent d3dcec1458
commit 60f1e72144
17 changed files with 194 additions and 19 deletions

View File

@@ -1,5 +1,8 @@
#include "Log.h"
#include "Puzzle.h"
#include "rendering/Rendering.h"
#include "bx/bx.h"
#include <cassert>
namespace
@@ -18,14 +21,11 @@ namespace Puzzle
{
void StaticPuzzleData::Setup()
{
if (StaticDataInstance == nullptr)
StaticDataInstance = this;
Log("Setting up static puzzle data");
for (int32_t i = 0; i < BX_COUNTOF(Cards); ++i)
{
StaticDataInstance = this;
Log("Setting up static puzzle data");
}
else
{
Log("Static puzzle data already set up");
Cards[i].ModelHandle = Game::GameRendering::Get().GetModelHandleFromPath("models/w straight.glb");
}
}