summary refs log tree commit diff stats
path: root/src/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/system.h')
-rw-r--r--src/system.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/system.h b/src/system.h index 489afd0..6a3cd14 100644 --- a/src/system.h +++ b/src/system.h
@@ -1,12 +1,18 @@
1#ifndef SYSTEM_H_B61A8CEA 1#ifndef SYSTEM_H_B61A8CEA
2#define SYSTEM_H_B61A8CEA 2#define SYSTEM_H_B61A8CEA
3 3
4#include "entity_manager.h"
5
4class Game; 6class Game;
5 7
6class System { 8class System {
7public: 9public:
8 System(Game& game) 10
9 : game(game) {} 11 using id_type = EntityManager::id_type;
12
13 System(Game& game) : game_(game)
14 {
15 }
10 16
11 virtual ~System() = default; 17 virtual ~System() = default;
12 18
@@ -14,7 +20,7 @@ public:
14 20
15protected: 21protected:
16 22
17 Game& game; 23 Game& game_;
18}; 24};
19 25
20#endif /* end of include guard: SYSTEM_H_B61A8CEA */ 26#endif /* end of include guard: SYSTEM_H_B61A8CEA */