1#include "component.h"
2
3bool CEditorComponent::OnInput(const IInput::CEvent &Event)
4{
5 for(CEditorComponent &Component : m_vSubComponents)
6 {
7 if(Component.OnInput(Event))
8 return true;
9 }
10 return false;
11}
12
13void CEditorComponent::InitSubComponents()
14{
15 for(CEditorComponent &Component : m_vSubComponents)
16 {
17 Component.Init(pEditor: Editor());
18 }
19}
20
21void CEditorComponent::RegisterSubComponent(CEditorComponent &Component)
22{
23 m_vSubComponents.emplace_back(args&: Component);
24}
25