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

            

                 



                    










                        
                                                     

                               

                                                
 
#pragma once

#include <memory>

class NetworkClient;
class GameState;
class Render;

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

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