Added a Initialize function for systems.

This commit is contained in:
stiffly
2015-12-11 14:03:00 +01:00
parent 80f028edf2
commit 0b60979c7b
6 changed files with 20 additions and 5 deletions
+1 -2
View File
@@ -17,13 +17,12 @@ public:
: System(eventBroker, "Player")
{ }
void Initialize();
virtual void Initialize();
virtual void Update(World* world, ComponentWrapper& player, double dt) override;
private:
float m_Speed;
glm::vec3 m_Direction;
EventBroker* m_EventBroker;
EventRelay<PlayerSystem, Events::KeyDown> m_EKeyDown;
bool OnKeyDown(const Events::KeyDown &event);