]> git.tdb.fi Git - libs/game.git/blob - source/game/component.h
Adjust component ticking
[libs/game.git] / source / game / component.h
1 #ifndef MSP_GAME_COMPONENT_H_
2 #define MSP_GAME_COMPONENT_H_
3
4 #include <msp/time/timedelta.h>
5 #include "handle.h"
6
7 namespace Msp::Game {
8
9 class Entity;
10
11 class Component
12 {
13 protected:
14         Handle<Entity> entity;
15
16         Component(Handle<Entity>);
17 public:
18         virtual ~Component() = default;
19
20         Handle<Entity> get_entity() const { return entity; }
21 };
22
23 } // namespace Msp::Game
24
25 #endif