From dc0cc293b7b8efed67a0a550237dce38f33ff37d Mon Sep 17 00:00:00 2001 From: Aki Date: Tue, 14 Feb 2023 00:51:49 +0100 Subject: Replaced Context+Battle combo with State and arbitrary Systems --- sim/src/TurretControl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sim/src/TurretControl.cpp') diff --git a/sim/src/TurretControl.cpp b/sim/src/TurretControl.cpp index fa42bf5..ba54f3f 100644 --- a/sim/src/TurretControl.cpp +++ b/sim/src/TurretControl.cpp @@ -1,9 +1,9 @@ #include -#include #include #include #include +#include #include @@ -17,7 +17,7 @@ bool consume(float& dt, double& target); void -TurretControl::update(engine::Context& ctx) +TurretControl::update(State& ctx) { auto view = ctx.registry.view(); for (auto&& [entity, control, def] : view.each()) { -- cgit v1.1