2023-08-14 06:36:02 +00:00
|
|
|
#include "component.h"
|
|
|
|
|
2023-08-14 14:52:17 +00:00
|
|
|
bool CEditorComponent::OnInput(const IInput::CEvent &Event)
|
|
|
|
{
|
|
|
|
for(CEditorComponent &Component : m_vSubComponents)
|
|
|
|
{
|
|
|
|
if(Component.OnInput(Event))
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
2023-08-14 08:12:06 +00:00
|
|
|
}
|
|
|
|
|
2023-08-14 14:52:17 +00:00
|
|
|
void CEditorComponent::InitSubComponents()
|
|
|
|
{
|
|
|
|
for(CEditorComponent &Component : m_vSubComponents)
|
|
|
|
{
|
|
|
|
Component.Init(Editor());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEditorComponent::RegisterSubComponent(CEditorComponent &Component)
|
|
|
|
{
|
|
|
|
m_vSubComponents.emplace_back(Component);
|
|
|
|
}
|