diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2019-09-18 12:10:25 -0400 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2019-09-18 12:10:25 -0400 |
commit | 0e7f7791fd592f0240a30168a9a570c57b0f5880 (patch) | |
tree | be4e0a598112748030412c452e0a7c24f45ef665 /src/physics.hpp | |
parent | 145d74e433216f8c17475685c553321ca4cbedf3 (diff) | |
parent | 2cedd39a90fdb0387783b50446b16732517fb651 (diff) |
adjust for world changes
Diffstat (limited to 'src/physics.hpp')
-rw-r--r-- | src/physics.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/physics.hpp b/src/physics.hpp index 8231d6d..db93999 100644 --- a/src/physics.hpp +++ b/src/physics.hpp @@ -24,13 +24,18 @@ #include <entityx/entityx.h> #include <sol/sol.hpp> +#include "world.hpp" +#include "events/world.hpp" + /** * @class PhysicsSystem * Handles the position and velocity updating of all entities */ -class PhysicsSystem : public entityx::System<PhysicsSystem> +class PhysicsSystem : public entityx::System<PhysicsSystem>, + public entityx::Receiver<PhysicsSystem> { private: + World* currentWorld; public: PhysicsSystem(void) {} @@ -49,6 +54,8 @@ public: void update(entityx::EntityManager& entites, entityx::EventManager& events, entityx::TimeDelta dt) final; + + void receive(const WorldChangeEvent& wce); }; #endif // SYSTEM_PHYSICS_HPP_ |