This commit is contained in:
Asuro
2025-02-23 02:07:26 +01:00
parent d7ed08eb08
commit 369b994755
2 changed files with 36 additions and 31 deletions

View File

@@ -58,7 +58,7 @@ namespace Game
{
for (uint32_t xx = 0; xx < 11; ++xx)
{
Cube* c = Cubes.New();
Cube* c = Cubes.Get(Cubes.New());
if (c)
{
c->TestX = xx;
@@ -66,8 +66,7 @@ namespace Game
}
}
}
Cube* floor = Cubes.New();
Cubes.New(); // Floor
}
if (Tests.Count == 0)
{
@@ -138,8 +137,10 @@ namespace Game
player.PlayerCamTransform.RotateLocal({player.WalkXRot, 0.0f, 0.0f});
}
Cubes.Update();
Tests.Update();
for (uint16_t i = 0; i < Cubes.Count; ++i)
{
Cubes.Get({i})->Update();
}
END_PERF(GetShared().Window.PerfCounters, PerfCounterType::GameLevelUpdate, GetShared().Window.FrameCounter);
}
@@ -203,10 +204,6 @@ namespace Game
EData.ModelHandle = 1;
EData.Transform.Position = {0.0f, 0.0f, 10.0f};
}
void TestEntity::Update()
{
EData.TestColor[0] = 0.0f;
}
} // namespace Game