aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2017-10-21 13:50:04 -0400
committerClyne Sullivan <tullivan99@gmail.com>2017-10-21 13:50:04 -0400
commit7644b740e87053838f3c7a80e88ad192fcf1a5e2 (patch)
treedc2ba05afc79b9a75eba1ce52756fb613c83607a /src/engine.cpp
parentad8d35b1398ac798b22175329254f1f0f3428f14 (diff)
lightsgit status! fireflies
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index bf0bca9..232d11c 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -13,6 +13,7 @@
#include <particle.hpp>
#include <weather.hpp>
#include <attack.hpp>
+#include <systems/light.hpp>
Engine::Engine(void)
: shouldRun(true), systems(game::entities, game::events)
@@ -40,6 +41,7 @@ void Engine::init(void) {
systems.add<AttackSystem>();
systems.add<UISystem>();
+ systems.add<LightSystem>();
systems.add<SDLReceiver>();
systems.configure();
@@ -69,6 +71,7 @@ void Engine::update(entityx::TimeDelta dt)
systems.update<ParticleSystem>(dt);
systems.update<AttackSystem>(dt);
systems.update<RenderSystem>(dt);
+ systems.update<LightSystem>(dt);
//systems.update<UISystem>(dt);
}