summary refs log tree commit diff stats
path: root/src/components.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/components.h')
-rw-r--r--src/components.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components.h b/src/components.h index f5c66d4..3d80d1a 100644 --- a/src/components.h +++ b/src/components.h
@@ -111,11 +111,11 @@ class StaticImageComponent : public Component {
111 111
112class SimpleColliderComponent : public Component { 112class SimpleColliderComponent : public Component {
113 public: 113 public:
114 SimpleColliderComponent(std::function<void (Entity& collider)> callback); 114 SimpleColliderComponent(std::function<void (Game& game, Entity& collider)> callback);
115 void receive(Game& game, Entity& entity, const Message& msg); 115 void receive(Game& game, Entity& entity, const Message& msg);
116 116
117 private: 117 private:
118 std::function<void (Entity& collider)> callback; 118 std::function<void (Game& game, Entity& collider)> callback;
119}; 119};
120 120
121#endif 121#endif