Files
sophia/engine/src/ui/panels/ecs_inspector_panel.hpp
T
2026-09-15 02:23:22 -07:00

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