From a5266d3e5da1d9ee9f873124674c68843a407ac0 Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 11 Feb 2023 17:26:49 +0100 Subject: Context is now used in sim systems --- sim/include/kurator/sim/Battle.h | 3 ++- sim/include/kurator/sim/FloatingMovement.h | 6 ++---- sim/include/kurator/sim/TurretControl.h | 5 +++-- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'sim/include') diff --git a/sim/include/kurator/sim/Battle.h b/sim/include/kurator/sim/Battle.h index 0b20ce8..6874b39 100644 --- a/sim/include/kurator/sim/Battle.h +++ b/sim/include/kurator/sim/Battle.h @@ -5,6 +5,7 @@ #include #include +#include #include @@ -20,7 +21,7 @@ public: virtual ~Battle() = default; virtual entt::registry& registry() = 0; virtual entt::dispatcher& dispatcher() = 0; - virtual void update(float dt) = 0; + virtual void update(engine::Context& ctx) = 0; }; diff --git a/sim/include/kurator/sim/FloatingMovement.h b/sim/include/kurator/sim/FloatingMovement.h index d7e8479..4239d99 100644 --- a/sim/include/kurator/sim/FloatingMovement.h +++ b/sim/include/kurator/sim/FloatingMovement.h @@ -1,8 +1,6 @@ #pragma once -#include -#include - +#include #include @@ -19,7 +17,7 @@ struct FloatingMovement double deceleration; double destination_boundary = 100.0; engine::Point speed = {0.0, 0.0}; - static void update(entt::registry& registry, entt::dispatcher& dispatcher, float dt); + static void update(engine::Context& ctx); }; diff --git a/sim/include/kurator/sim/TurretControl.h b/sim/include/kurator/sim/TurretControl.h index f6dc13a..323b54b 100644 --- a/sim/include/kurator/sim/TurretControl.h +++ b/sim/include/kurator/sim/TurretControl.h @@ -1,7 +1,8 @@ #pragma once #include -#include + +#include namespace kurator @@ -16,7 +17,7 @@ struct TurretControl double reload; int rounds; entt::entity owner; - static void update(entt::registry& registry, entt::dispatcher& dispatcher, float dt); + static void update(engine::Context& ctx); }; -- cgit v1.1