2023-08-14 06:36:02 +00:00
|
|
|
#ifndef GAME_EDITOR_COMPONENT_H
|
|
|
|
#define GAME_EDITOR_COMPONENT_H
|
|
|
|
|
|
|
|
class CEditor;
|
|
|
|
class IInput;
|
|
|
|
class IClient;
|
|
|
|
class CConfig;
|
|
|
|
class IConsole;
|
|
|
|
class IEngine;
|
|
|
|
class IGraphics;
|
|
|
|
class ISound;
|
|
|
|
class ITextRender;
|
|
|
|
class IStorage;
|
|
|
|
class CUI;
|
|
|
|
class CRenderTools;
|
|
|
|
|
|
|
|
class CEditorComponent
|
|
|
|
{
|
|
|
|
public:
|
2023-08-14 06:53:59 +00:00
|
|
|
virtual ~CEditorComponent() = default;
|
2023-08-14 06:36:02 +00:00
|
|
|
|
2023-08-14 06:53:59 +00:00
|
|
|
virtual void Init(CEditor *pEditor);
|
|
|
|
virtual void OnRender();
|
2023-08-14 06:36:02 +00:00
|
|
|
|
2023-08-14 06:53:59 +00:00
|
|
|
CEditor *Editor();
|
|
|
|
IInput *Input();
|
2023-08-14 06:36:02 +00:00
|
|
|
IClient *Client();
|
|
|
|
CConfig *Config();
|
|
|
|
IConsole *Console();
|
|
|
|
IEngine *Engine();
|
|
|
|
IGraphics *Graphics();
|
|
|
|
ISound *Sound();
|
|
|
|
ITextRender *TextRender();
|
|
|
|
IStorage *Storage();
|
|
|
|
CUI *UI();
|
|
|
|
CRenderTools *RenderTools();
|
|
|
|
|
|
|
|
private:
|
2023-08-14 06:53:59 +00:00
|
|
|
CEditor *m_pEditor;
|
|
|
|
IInput *m_pInput;
|
|
|
|
IClient *m_pClient;
|
|
|
|
CConfig *m_pConfig;
|
|
|
|
IConsole *m_pConsole;
|
|
|
|
IEngine *m_pEngine;
|
|
|
|
IGraphics *m_pGraphics;
|
|
|
|
ISound *m_pSound;
|
|
|
|
ITextRender *m_pTextRender;
|
|
|
|
IStorage *m_pStorage;
|
|
|
|
CUI *m_pUI;
|
|
|
|
CRenderTools *m_pRenderTools;
|
2023-08-14 06:36:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|