DDraceNetwork Docs
component.h
Go to the documentation of this file.
1#ifndef GAME_EDITOR_COMPONENT_H
2#define GAME_EDITOR_COMPONENT_H
3
4#include "editor_object.h"
5
6#include <vector>
7
9{
10public:
16 virtual bool OnInput(const IInput::CEvent &Event) override;
17
22 void InitSubComponents();
23
24 // Register a new subcomponent.
26
27private:
28 std::vector<std::reference_wrapper<CEditorComponent>> m_vSubComponents = {};
29};
30
31#endif
Definition: component.h:9
void RegisterSubComponent(CEditorComponent &Component)
Definition: component.cpp:21
std::vector< std::reference_wrapper< CEditorComponent > > m_vSubComponents
Definition: component.h:28
void InitSubComponents()
Definition: component.cpp:13
virtual bool OnInput(const IInput::CEvent &Event) override
Definition: component.cpp:3
Definition: editor_object.h:22
Definition: input.h:24