24 lines
503 B
C++
24 lines
503 B
C++
#pragma once
|
|
|
|
#include <entt/entt.hpp>
|
|
#include <sophia/frame_info.hpp>
|
|
#include <sophia/ui/panel.hpp>
|
|
#include <vector>
|
|
|
|
namespace sophia {
|
|
|
|
class EcsInspectorPanel : public Panel {
|
|
public:
|
|
explicit EcsInspectorPanel(entt::registry& registry)
|
|
: Panel{"ECS Inspector"}, registry{registry} {}
|
|
|
|
void onUpdate(const FrameInfo& frameInfo) override;
|
|
|
|
private:
|
|
entt::registry& registry;
|
|
entt::entity selected = entt::null;
|
|
std::vector<entt::entity> entityScratch;
|
|
};
|
|
|
|
} // namespace sophia
|