more stuff
This commit is contained in:
@@ -21,6 +21,7 @@ namespace Game
|
||||
Transform Transform;
|
||||
uint16_t MaterialHandle = UINT16_MAX;
|
||||
uint16_t ModelHandle = UINT16_MAX;
|
||||
bool Visible = true;
|
||||
|
||||
void Render(const Model* models, const Material* materials);
|
||||
};
|
||||
@@ -86,7 +87,6 @@ namespace Game
|
||||
return {};
|
||||
}
|
||||
Data[Count] = {};
|
||||
Data[Count].Setup();
|
||||
HandleT H;
|
||||
H.Idx = Count;
|
||||
++Count;
|
||||
@@ -113,6 +113,17 @@ namespace Game
|
||||
}
|
||||
};
|
||||
|
||||
struct WorldPuzzle
|
||||
{
|
||||
static constexpr Vec2 WorldCardSize{10.0f, 10.0f};
|
||||
Puzzle::PuzzleData Data;
|
||||
Vec3 WorldPosition;
|
||||
PuzzleTileEntityHandle TileHandles[Puzzle::Config::MaxCardsInPuzzle];
|
||||
|
||||
void Setup();
|
||||
void Update();
|
||||
};
|
||||
|
||||
class Level
|
||||
{
|
||||
public:
|
||||
@@ -120,6 +131,10 @@ namespace Game
|
||||
EntityManager<TestEntity, TestEntityHandle, 32> Tests;
|
||||
EntityManager<PuzzleTileEntity, PuzzleTileEntityHandle, 1024> PuzzleTiles;
|
||||
|
||||
public:
|
||||
Puzzle::StaticPuzzleData PuzzleData;
|
||||
WorldPuzzle Puzzles[1];
|
||||
|
||||
public:
|
||||
void Setup(GameData& data);
|
||||
void Update();
|
||||
|
||||
Reference in New Issue
Block a user