DDraceNetwork Documentation
Loading...
Searching...
No Matches
CEditorComponent Class Reference

#include <component.h>

Inheritance diagram for CEditorComponent:
[legend]
Collaboration diagram for CEditorComponent:
[legend]

Public Member Functions

void OnInit (CEditor *pEditor) override
 
virtual void OnReset ()
 
virtual void OnMapLoad ()
 
virtual bool OnInput (const IInput::CEvent &Event)
 
virtual void OnUpdate ()
 
virtual void OnRender (CUIRect View)
 
void InitSubComponents ()
 
void RegisterSubComponent (CEditorComponent &Component)
 
- Public Member Functions inherited from CEditorObject
virtual ~CEditorObject ()=default
 
CEditorEditor ()
 
const CEditorEditor () const
 
IInputInput ()
 
const IInputInput () const
 
IClientClient ()
 
const IClientClient () const
 
CConfigConfig ()
 
const CConfigConfig () const
 
IConsoleConsole ()
 
const IConsoleConsole () const
 
IEngineEngine ()
 
const IEngineEngine () const
 
IGraphicsGraphics ()
 
const IGraphicsGraphics () const
 
ISoundSound ()
 
const ISoundSound () const
 
ITextRenderTextRender ()
 
const ITextRenderTextRender () const
 
IStorageStorage ()
 
const IStorageStorage () const
 
CUiUi ()
 
const CUiUi () const
 
CRenderMapRenderMap ()
 
const CRenderMapRenderMap () const
 

Private Attributes

std::vector< std::reference_wrapper< CEditorComponent > > m_vSubComponents = {}
 

Member Function Documentation

◆ InitSubComponents()

void CEditorComponent::InitSubComponents ( )

Initialize all registered subcomponents. Needs to be called after the interfaces have been initialized.

◆ OnInit()

void CEditorComponent::OnInit ( CEditor pEditor)
overridevirtual

Initialize the component and interface pointers. Needs to be the first function that is called. The default implentation also resets the component.

Reimplemented from CEditorObject.

Reimplemented in CMapSettingsBackend, CFontTyper, CLayerSelector, CMapView, CEditorImage, CPrompt, and CProofMode.

◆ OnInput()

bool CEditorComponent::OnInput ( const IInput::CEvent Event)
virtual

Gets called before OnRender. Should return true if the event was consumed.

Reimplemented in CFontTyper, and CPrompt.

◆ OnMapLoad()

void CEditorComponent::OnMapLoad ( )
virtual

Reimplemented in CMapSettingsBackend, CMapView, and CProofMode.

◆ OnRender()

void CEditorComponent::OnRender ( CUIRect  View)
virtual

Reimplemented in CFileBrowser, CPrompt, CFontTyper, and CMapGrid.

◆ OnReset()

void CEditorComponent::OnReset ( )
virtual

Reimplemented in CMapGrid, CMapView, and CProofMode.

◆ OnUpdate()

void CEditorComponent::OnUpdate ( )
virtual

◆ RegisterSubComponent()

void CEditorComponent::RegisterSubComponent ( CEditorComponent Component)

Member Data Documentation

◆ m_vSubComponents

std::vector<std::reference_wrapper<CEditorComponent> > CEditorComponent::m_vSubComponents = {}
private

The documentation for this class was generated from the following files: