diff options
Diffstat (limited to 'src/system.h')
-rw-r--r-- | src/system.h | 12 |
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 | |||
4 | class Game; | 6 | class Game; |
5 | 7 | ||
6 | class System { | 8 | class System { |
7 | public: | 9 | public: |
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 | ||
15 | protected: | 21 | protected: |
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 */ |