summary refs log tree commit diff stats
path: root/src/game.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.h')
-rw-r--r--src/game.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/game.h b/src/game.h index 43e08da..2dd7f91 100644 --- a/src/game.h +++ b/src/game.h
@@ -5,6 +5,7 @@
5#include "system_manager.h" 5#include "system_manager.h"
6#include "world.h" 6#include "world.h"
7#include "renderer/renderer.h" 7#include "renderer/renderer.h"
8#include "prototype_manager.h"
8 9
9class Game { 10class Game {
10public: 11public:
@@ -28,11 +29,16 @@ public:
28 return systemManager_; 29 return systemManager_;
29 } 30 }
30 31
31 inline const World& getWorld() 32 inline const World& getWorld() const
32 { 33 {
33 return world_; 34 return world_;
34 } 35 }
35 36
37 inline const PrototypeManager& getPrototypeManager() const
38 {
39 return prototypes_;
40 }
41
36 friend void key_callback( 42 friend void key_callback(
37 GLFWwindow* window, 43 GLFWwindow* window,
38 int key, 44 int key,
@@ -46,6 +52,7 @@ private:
46 EntityManager entityManager_; 52 EntityManager entityManager_;
47 SystemManager systemManager_; 53 SystemManager systemManager_;
48 World world_; 54 World world_;
55 PrototypeManager prototypes_;
49 bool shouldQuit_ = false; 56 bool shouldQuit_ = false;
50}; 57};
51 58