Very simple CollisionSystem made, 'Z','Y' to toggle on/off.

This commit is contained in:
William Moberg
2015-12-15 15:36:28 +01:00
parent 170610bcb1
commit e2417be8c7
5 changed files with 46 additions and 12 deletions
+3 -2
View File
@@ -14,15 +14,16 @@ class CollisionSystem : public System
public:
CollisionSystem(EventBroker* eventBroker)
: System(eventBroker, "AABB")
, zPress(false)
{
//TODO: Debug stuff, remove later.
EVENT_SUBSCRIBE_MEMBER(m_EKeyUp, &CollisionSystem::OnKeyUp);
}
virtual void Update(World* world, ComponentWrapper& collision, double dt) override;
virtual void Update(World* world, ComponentWrapper& cAABB, double dt) override;
private:
bool zPress;
EventRelay<CollisionSystem, Events::KeyUp> m_EKeyUp;
bool OnKeyUp(const Events::KeyUp &event);
};