31 lines
677 B
C++
31 lines
677 B
C++
#pragma once
|
|
|
|
#include <engine/base/base.hpp>
|
|
#include <engine/scene/entity.hpp>
|
|
#include <engine/scene/scene.hpp>
|
|
#include <mirror/panel/panel.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
|