2021-07-31 11:03:31 +04:30
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Panel.h"
|
|
|
|
|
|
|
|
#include "Base/Base.h"
|
|
|
|
|
|
|
|
#include "Scene/Entity.h"
|
|
|
|
#include "Scene/Scene.h"
|
|
|
|
|
|
|
|
namespace Light {
|
|
|
|
|
2021-08-01 16:55:26 +04:30
|
|
|
class PropertiesPanel;
|
|
|
|
|
2021-07-31 11:03:31 +04:30
|
|
|
class SceneHierarchyPanel : public Panel
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
Ref<Scene> m_Context;
|
2021-08-01 16:55:26 +04:30
|
|
|
Ref<PropertiesPanel> m_PropertiesPanelContext;
|
2021-07-31 11:03:31 +04:30
|
|
|
Entity m_SelectionContext;
|
|
|
|
|
|
|
|
public:
|
2021-08-01 16:55:26 +04:30
|
|
|
SceneHierarchyPanel();
|
|
|
|
SceneHierarchyPanel(Ref<Scene> context, Ref<PropertiesPanel> propertiesPanel = nullptr);
|
2021-07-31 11:03:31 +04:30
|
|
|
|
|
|
|
void OnUserInterfaceUpdate();
|
|
|
|
|
2021-08-01 16:55:26 +04:30
|
|
|
void SetContext(Ref<Scene> context, Ref<PropertiesPanel> propertiesPanel = nullptr);
|
|
|
|
|
2021-07-31 11:03:31 +04:30
|
|
|
private:
|
|
|
|
void DrawNode(Entity entity, const std::string& label);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|