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