DDraceNetwork Docs
|
#include <component.h>
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 () |
CEditor * | Editor () |
const CEditor * | Editor () const |
IInput * | Input () |
IClient * | Client () |
CConfig * | Config () |
IConsole * | Console () |
IEngine * | Engine () |
IGraphics * | Graphics () |
ISound * | Sound () |
ITextRender * | TextRender () |
IStorage * | Storage () |
CUi * | Ui () |
CRenderTools * | RenderTools () |
Private Attributes | |
std::vector< std::reference_wrapper< CEditorComponent > > | m_vSubComponents = {} |
void CEditorComponent::InitSubComponents | ( | ) |
Initialise all registered subcomponents. Needs to be called after the interfaces have been initialised.
|
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.
void CEditorComponent::RegisterSubComponent | ( | CEditorComponent & | Component | ) |
|
private |