ddnet/src/game/editor/component.h

58 lines
1,019 B
C
Raw Normal View History

#ifndef GAME_EDITOR_COMPONENT_H
#define GAME_EDITOR_COMPONENT_H
2023-08-14 08:12:06 +00:00
#include <game/client/ui.h>
class CEditor;
class IInput;
class IClient;
class CConfig;
class IConsole;
class IEngine;
class IGraphics;
class ISound;
class ITextRender;
class IStorage;
class CRenderTools;
class CEditorComponent
{
public:
2023-08-14 06:53:59 +00:00
virtual ~CEditorComponent() = default;
2023-08-14 06:53:59 +00:00
virtual void Init(CEditor *pEditor);
2023-08-14 08:12:06 +00:00
void OnUpdate(CUIRect View);
virtual void OnInput();
virtual void OnRender(CUIRect View);
2023-08-14 06:53:59 +00:00
CEditor *Editor();
IInput *Input();
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;
};
#endif