diff options
author | Max-001 <80035972+Max-001@users.noreply.github.com> | 2024-12-11 14:14:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-11 14:14:43 +0100 |
commit | 78c4a8772526f40c531b5402b56932b0a41e22e8 (patch) | |
tree | 7305c4f88bf177cb8dd704eb9363d3935325804f /src/crepe/api/LoopManager.cpp | |
parent | c45b60941b82dec2097d958b396a117b1634eada (diff) | |
parent | 0dbbbe4bac4ad4fcb9e88908034e90000056363e (diff) |
Merge pull request #68 from lonkaars/max/AI
Max/ai
Diffstat (limited to 'src/crepe/api/LoopManager.cpp')
-rw-r--r-- | src/crepe/api/LoopManager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/crepe/api/LoopManager.cpp b/src/crepe/api/LoopManager.cpp index 3e9e21c..1f0ba72 100644 --- a/src/crepe/api/LoopManager.cpp +++ b/src/crepe/api/LoopManager.cpp @@ -1,3 +1,4 @@ +#include "../system/AISystem.h" #include "../system/AnimatorSystem.h" #include "../system/AudioSystem.h" #include "../system/CollisionSystem.h" @@ -22,6 +23,7 @@ LoopManager::LoopManager() { this->load_system<ScriptSystem>(); this->load_system<InputSystem>(); this->load_system<AudioSystem>(); + this->load_system<AISystem>(); } void LoopManager::process_input() { this->get_system<InputSystem>().update(); } @@ -37,6 +39,7 @@ void LoopManager::fixed_update() { EventManager & ev = this->mediator.event_manager; ev.dispatch_events(); this->get_system<ScriptSystem>().update(); + this->get_system<AISystem>().update(); this->get_system<PhysicsSystem>().update(); this->get_system<CollisionSystem>().update(); this->get_system<AudioSystem>().update(); |