summaryrefslogtreecommitdiffstats
path: root/src/GlobalState.hpp
blob: c0f1769ecda7f8d295d1afc4fb670b9f41656af4 (plain) (blame)
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
#pragma once

#include <memory>
#include <thread>

class NetworkClient;
class GameState;
class Render;

enum class State {
    InitialLoading,
    MainMenu,
    Loading,
    Playing,
    Paused,
    Inventory,
    Chat,
};

struct GlobalState {    
    static GameState *GetGameState();
    static Render *GetRender();
    static void Exec();
    static State GetState();
    static void SetState(const State &newState);
};