aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine.cpp
diff options
context:
space:
mode:
authorAndy Belle-Isle <drumsetmonkey@gmail.com>2019-09-10 23:55:54 -0400
committerAndy Belle-Isle <drumsetmonkey@gmail.com>2019-09-10 23:55:54 -0400
commit2b095e30f7786526da9339ccada3aae7f2ab5df4 (patch)
tree2f1b89406e387308f7d59818963a14e0ed8c6858 /src/engine.cpp
parent2349bd2ffdd7b312c4b13e5794f12d2b7613f3b4 (diff)
Started world system
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index 66739ff..ecc6501 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -45,7 +45,8 @@ int Engine::init(void)
systems.add<InputSystem>();
systems.add<PlayerSystem>(entities);
systems.add<RenderSystem>();
- systems.add<ScriptSystem>(entities);
+ systems.add<WorldSystem>();
+ systems.add<ScriptSystem>(entities, *(systems.system<WorldSystem>().get()));
systems.add<PhysicsSystem>();
systems.configure();