32 lines
643 B
C++
32 lines
643 B
C++
|
#pragma once
|
||
|
|
||
|
#include "Base/Base.hpp"
|
||
|
#include "Panel.hpp"
|
||
|
#include "Scene/Entity.hpp"
|
||
|
#include "Scene/Scene.hpp"
|
||
|
|
||
|
namespace Light {
|
||
|
|
||
|
class PropertiesPanel;
|
||
|
|
||
|
class SceneHierarchyPanel: public Panel
|
||
|
{
|
||
|
private:
|
||
|
Ref<Scene> m_Context;
|
||
|
Ref<PropertiesPanel> m_PropertiesPanelContext;
|
||
|
Entity m_SelectionContext;
|
||
|
|
||
|
public:
|
||
|
SceneHierarchyPanel();
|
||
|
SceneHierarchyPanel(Ref<Scene> context, Ref<PropertiesPanel> propertiesPanel = nullptr);
|
||
|
|
||
|
void OnUserInterfaceUpdate();
|
||
|
|
||
|
void SetContext(Ref<Scene> context, Ref<PropertiesPanel> propertiesPanel = nullptr);
|
||
|
|
||
|
private:
|
||
|
void DrawNode(Entity entity, const std::string& label);
|
||
|
};
|
||
|
|
||
|
} // namespace Light
|