aboutsummaryrefslogtreecommitdiff
path: root/src/core/game.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-05-17 19:10:57 +0800
committerchai <chaifix@163.com>2018-05-17 19:10:57 +0800
commit70cdd89e887641b7423e5d4d05928d14ee014aba (patch)
tree248b87ae35197a9e5941e65ef20eea359e87a5ed /src/core/game.h
parentdf4b054b8e8d00f7817daaa4cbf6961712cd0b75 (diff)
change file tree
Diffstat (limited to 'src/core/game.h')
-rw-r--r--src/core/game.h38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/core/game.h b/src/core/game.h
deleted file mode 100644
index d56b249..0000000
--- a/src/core/game.h
+++ /dev/null
@@ -1,38 +0,0 @@
-#ifndef __JIN_CORE_GAME_H
-#define __JIN_CORE_GAME_H
-
-namespace jin
-{
-namespace core
-{
- class Game
- {
- public:
-
- static inline Game* get()
- {
- return g_game ? g_game : (g_game = new Game());
- }
-
- inline void quit()
- {
- run = false;
- }
-
- inline bool running()
- {
- return run;
- }
-
- private:
-
- Game();
-
- static Game* g_game;
-
- bool run;
- };
-}
-}
-
-#endif \ No newline at end of file