diff options
author | chai <chaifix@163.com> | 2018-07-29 12:16:17 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-07-29 12:16:17 +0800 |
commit | 5560448bb78ed865aeb77f62cf85a2aed302779d (patch) | |
tree | 0381def6419d98b9cbf950db21cbe38d555c5688 /src/libjin/Core/Game.h | |
parent | e9dcb75fb3cdbabd7152b0303af4dc27b4bcca3d (diff) |
*update
Diffstat (limited to 'src/libjin/Core/Game.h')
-rw-r--r-- | src/libjin/Core/Game.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libjin/Core/Game.h b/src/libjin/Core/Game.h index 090e7c6..9359487 100644 --- a/src/libjin/Core/Game.h +++ b/src/libjin/Core/Game.h @@ -16,6 +16,7 @@ namespace core { public: + typedef void(*onLoad)(); typedef void(*onEvent)(jin::input::Event* e); typedef void(*onUpdate)(float dt); typedef void(*onDraw)(); @@ -25,6 +26,7 @@ namespace core onEvent eventHandler; onUpdate updater; onDraw drawer; + onLoad loader; }; void run(); @@ -38,9 +40,10 @@ namespace core SINGLETON(Game); - onEvent _onEvent; + onEvent _onEvent; onUpdate _onUpdate; - onDraw _onDraw; + onDraw _onDraw; + onLoad _onLoad; bool _running; |