aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Core/Game.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-07-28 10:52:03 +0800
committerchai <chaifix@163.com>2018-07-28 10:52:03 +0800
commit7b7a510321112978090575e89c3dabeba9ea9f97 (patch)
treec7d52a34b6c32245457823336394d98e20bdeab6 /src/libjin/Core/Game.h
parentc74d103ef624c818bfc4062eedaa0492a290cdc4 (diff)
*update
Diffstat (limited to 'src/libjin/Core/Game.h')
-rw-r--r--src/libjin/Core/Game.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/libjin/Core/Game.h b/src/libjin/Core/Game.h
index e155607..becb780 100644
--- a/src/libjin/Core/Game.h
+++ b/src/libjin/Core/Game.h
@@ -19,7 +19,7 @@ namespace core
};
- inline void quit() // quit game loop
+ inline void quit()
{
CALLONCE(_quit());
}
@@ -29,11 +29,13 @@ namespace core
return run;
}
- inline void exit() // exit game
+ inline void exit()
{
CALLONCE(_exit());
}
+ void run();
+
private:
Game();
@@ -41,7 +43,7 @@ namespace core
SINGLETON(Game);
- bool run;
+ bool _run;
inline void _exit()
{
@@ -50,7 +52,7 @@ namespace core
inline void _quit()
{
- run = false;
+ _run = false;
}
};
}