DDraceNetwork Docs
CEditorComponent Class Reference

#include <component.h>

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

Public Member Functions

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

Private Attributes

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

Member Function Documentation

◆ InitSubComponents()

void CEditorComponent::InitSubComponents ( )

Initialise all registered subcomponents. Needs to be called after the interfaces have been initialised.

◆ OnInput()

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

Gets called before OnRender. Should return true if the event was consumed. By default the events are forwarded to the subcomponents.

Reimplemented from CEditorObject.

Reimplemented in CMapSettingsBackend, and CPrompt.

◆ 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: