Started implementation of events for InputSystem and SoundSystem

This commit is contained in:
2014-04-28 19:55:31 +02:00
parent 5870a4d7bf
commit 57d29d0db7
25 changed files with 201 additions and 71 deletions
+5 -1
View File
@@ -4,6 +4,7 @@
#include "Factory.h"
#include "Entity.h"
#include "Component.h"
#include "EventBroker.h"
#include "ResourceManager.h"
class World;
@@ -11,7 +12,9 @@ class World;
class System
{
public:
System(World* world) : m_World(world) { }
System(World* world, std::shared_ptr<EventBroker> eventBroker)
: m_World(world)
, EventBroker(eventBroker) { }
virtual ~System() { }
virtual void RegisterComponents(ComponentFactory* cf) { }
@@ -33,6 +36,7 @@ public:
protected:
World* m_World;
std::shared_ptr<EventBroker> EventBroker;
};
class SystemFactory : public Factory<System*> { };