summaryrefslogblamecommitdiffstats
path: root/src/GlobalState.hpp
blob: b3b463587fd0b1f4bcd7c79c09c52488749dd4d6 (plain) (tree)
1
2
3
4
5
6

            



                    










                        


                                     

                                                
 
#pragma once

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