diff options
author | Aki <please@ignore.pl> | 2023-02-11 17:26:49 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2023-02-11 17:26:49 +0100 |
commit | a5266d3e5da1d9ee9f873124674c68843a407ac0 (patch) | |
tree | 18a91419c4bdf37e7333a17bfb804e53fb92764a /sim/include | |
parent | e66011756340e03fe941723f762119ed78ec2402 (diff) | |
download | kurator-a5266d3e5da1d9ee9f873124674c68843a407ac0.zip kurator-a5266d3e5da1d9ee9f873124674c68843a407ac0.tar.gz kurator-a5266d3e5da1d9ee9f873124674c68843a407ac0.tar.bz2 |
Context is now used in sim systems
Diffstat (limited to 'sim/include')
-rw-r--r-- | sim/include/kurator/sim/Battle.h | 3 | ||||
-rw-r--r-- | sim/include/kurator/sim/FloatingMovement.h | 6 | ||||
-rw-r--r-- | sim/include/kurator/sim/TurretControl.h | 5 |
3 files changed, 7 insertions, 7 deletions
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 <entt/entity/registry.hpp> #include <entt/signal/dispatcher.hpp> +#include <kurator/engine/Context.h> #include <kurator/campaign/Scenario.h> @@ -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 <entt/entity/registry.hpp> -#include <entt/signal/dispatcher.hpp> - +#include <kurator/engine/Context.h> #include <kurator/engine/Point.h> @@ -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 <entt/entity/entity.hpp> -#include <entt/signal/dispatcher.hpp> + +#include <kurator/engine/Context.h> 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); }; |