aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/core/game.h
blob: 069566bca0374dcf954c1efa6daf9d4599a430c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef __JIN_CORE_GAME_H
#define __JIN_CORE_GAME_H

namespace jin
{
namespace core
{
    class Game
    {
    public:

		struct Setting
		{

		};
    
        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