blob: 15d78cf2ea7477eeef9842fb58440e975b27d5a1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#ifndef SIMPLE_COLLIDER_H
#define SIMPLE_COLLIDER_H
#include "entity.h"
#include <functional>
class Game;
class SimpleColliderComponent : public Component {
public:
SimpleColliderComponent(std::function<void (Game& game, Entity& collider)> callback);
void receive(Game& game, Entity& entity, const Message& msg);
private:
std::function<void (Game& game, Entity& collider)> callback;
};
#endif
|