too many things

This commit is contained in:
2025-07-18 13:11:18 +02:00
parent b788caafa6
commit 6d0e56eb46
26 changed files with 529 additions and 191 deletions

View File

@@ -1,9 +1,11 @@
#include <td/game/World.h>
#include <td/simulation/WorldTicker.h>
namespace td {
namespace game {
World::World() : m_Teams{Team{TeamColor::Red}, Team{TeamColor::Blue}} {
World::World() : m_CurrentState{.m_Teams{Team{TeamColor::Red}, Team{TeamColor::Blue}}} {
}
@@ -55,5 +57,9 @@ bool World::LoadMap(const protocol::pdata::WorldData& a_WorldData) {
return true;
}
void World::Tick(const protocol::LockStep& a_LockStep, FpFloat a_Delta) {
m_CurrentState = m_Ticker.NextStep(*this, m_CurrentState, a_LockStep, a_Delta);
}
} // namespace game
} // namespace td