]> git.tdb.fi Git - libs/game.git/blob - source/game/root.h
Add a transform component and propagation system
[libs/game.git] / source / game / root.h
1 #ifndef MSP_GAME_ROOT_H_
2 #define MSP_GAME_ROOT_H_
3
4 #include "entity.h"
5
6 namespace Msp::Game {
7
8 class Stage;
9
10 class Root: public Entity
11 {
12 private:
13         Stage &stage;
14
15 public:
16         Root(Stage &s): Entity(nullptr, NO_TRANSFORM), stage(s) { }
17
18         Stage &get_stage() const { return stage; }
19 };
20
21 } // namespace Msp::Game
22
23 #endif