summaryrefslogtreecommitdiff
path: root/sim/src/TeamManager.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-02-12 00:26:12 +0100
committerAki <please@ignore.pl>2023-02-12 00:26:12 +0100
commit9e6555c0f3be53d65496b442c4a60c2592fe4f97 (patch)
tree37fda77e5816d9a127d5499b6df251a73a5ab1a9 /sim/src/TeamManager.h
parenta5266d3e5da1d9ee9f873124674c68843a407ac0 (diff)
downloadkurator-9e6555c0f3be53d65496b442c4a60c2592fe4f97.zip
kurator-9e6555c0f3be53d65496b442c4a60c2592fe4f97.tar.gz
kurator-9e6555c0f3be53d65496b442c4a60c2592fe4f97.tar.bz2
Extracted system update functions out of sim BaseBattle
Diffstat (limited to 'sim/src/TeamManager.h')
-rw-r--r--sim/src/TeamManager.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/src/TeamManager.h b/sim/src/TeamManager.h
index 502bed2..f7cf1f6 100644
--- a/sim/src/TeamManager.h
+++ b/sim/src/TeamManager.h
@@ -4,7 +4,8 @@
#include <vector>
#include <entt/entity/registry.hpp>
-#include <entt/signal/dispatcher.hpp>
+
+#include <kurator/engine/Context.h>
namespace kurator
@@ -21,8 +22,7 @@ public:
void add(int team, entt::entity entity);
Team get(int team) const;
entt::entity random(int exclude);
- void clear(entt::registry& registry);
- void update(entt::dispatcher& dispatcher);
+ void update(engine::Context& ctx);
private:
std::vector<Team> teams;
std::mt19937 generator;