summaryrefslogtreecommitdiff
path: root/sim/src/TeamManager.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-02-14 00:51:49 +0100
committerAki <please@ignore.pl>2023-02-14 00:51:49 +0100
commitdc0cc293b7b8efed67a0a550237dce38f33ff37d (patch)
tree83a6cf40ecd76b49f590dd669626b439cf34d64e /sim/src/TeamManager.h
parent632c367ae6885657e6c99b96b8bf7a96b61a2bb9 (diff)
downloadkurator-dc0cc293b7b8efed67a0a550237dce38f33ff37d.zip
kurator-dc0cc293b7b8efed67a0a550237dce38f33ff37d.tar.gz
kurator-dc0cc293b7b8efed67a0a550237dce38f33ff37d.tar.bz2
Replaced Context+Battle combo with State and arbitrary Systems
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 7f53510..d708745 100644
--- a/sim/src/TeamManager.h
+++ b/sim/src/TeamManager.h
@@ -5,7 +5,7 @@
#include <entt/entity/registry.hpp>
-#include <kurator/engine/Context.h>
+#include <kurator/sim/State.h>
namespace kurator
@@ -19,10 +19,10 @@ class TeamManager
public:
using Team = std::vector<entt::entity>;
TeamManager();
- void extend(entt::registry& registry);
+ void extend(State& ctx);
void add(int team, entt::entity entity);
entt::entity random(int exclude);
- void update(engine::Context& ctx);
+ void update(State& ctx);
private:
std::vector<Team> teams;
std::mt19937 generator;