mirror of https://github.com/AxioDL/metaforce.git
60 lines
1.2 KiB
C++
60 lines
1.2 KiB
C++
#ifndef __URDE_CGUISYS_HPP__
|
|
#define __URDE_CGUISYS_HPP__
|
|
|
|
#include "hecl/hecl.hpp"
|
|
#include <unordered_map>
|
|
#include <vector>
|
|
#include <stack>
|
|
#include "CSaveableState.hpp"
|
|
#include "IOStreams.hpp"
|
|
|
|
namespace urde
|
|
{
|
|
class CGuiObject;
|
|
class CVParamTransfer;
|
|
struct SObjectTag;
|
|
class IFactory;
|
|
class CSimplePool;
|
|
class CGuiWidget;
|
|
class CGuiFrame;
|
|
class CTextParser;
|
|
class CTextExecuteBuffer;
|
|
|
|
class CGuiSys
|
|
{
|
|
friend class CGuiFrame;
|
|
public:
|
|
enum class EUsageMode
|
|
{
|
|
Zero,
|
|
One,
|
|
Two
|
|
};
|
|
private:
|
|
IFactory& x0_resFactory;
|
|
CSimplePool& x4_resStore;
|
|
EUsageMode x8_mode;
|
|
std::unique_ptr<CTextExecuteBuffer> xc_textExecuteBuf;
|
|
std::unique_ptr<CTextParser> x10_textParser;
|
|
|
|
static CGuiWidget* CreateWidgetInGame(FourCC type, CInputStream& in, CGuiFrame* frame);
|
|
public:
|
|
CGuiSys(IFactory& resFactory, CSimplePool& resStore, EUsageMode mode);
|
|
|
|
CSimplePool& GetResStore() {return x4_resStore;}
|
|
EUsageMode GetUsageMode() const {return x8_mode;}
|
|
};
|
|
|
|
/** Global GuiSys instance */
|
|
extern CGuiSys* g_GuiSys;
|
|
|
|
/** Global CTextExecuteBuffer instance */
|
|
extern CTextExecuteBuffer* g_TextExecuteBuf;
|
|
|
|
/** Global CTextParser instance */
|
|
extern CTextParser* g_TextParser;
|
|
|
|
}
|
|
|
|
#endif // __URDE_CGUISYS_HPP__
|