summaryrefslogtreecommitdiff
path: root/sim/include
diff options
context:
space:
mode:
Diffstat (limited to 'sim/include')
-rw-r--r--sim/include/kurator/sim/Battle.h3
-rw-r--r--sim/include/kurator/sim/FloatingMovement.h6
-rw-r--r--sim/include/kurator/sim/TurretControl.h5
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);
};