6#include "BlueprintEditor.h"
8#include "../third_party/imgui/imgui.h"
24 std::cout <<
"[EntitiesPanel] Initialized\n";
29 std::cout <<
"[EntitiesPanel] Shutdown\n";
34 ImGui::Begin(
"Runtime Entities");
43 ImGui::Text(
"Filter:");
59 ImGui::Text(
"Entity inspector not initialized.");
69 ImGui::BeginChild(
"EntityListScroll",
ImVec2(0, 0),
true);
89 if (ImGui::Selectable(entityName.c_str(), isSelected))
96 if (ImGui::BeginPopupContextItem())
98 ImGui::Text(
"Entity: %s", entityName.c_str());
101 if (ImGui::MenuItem(
"Select"))
116 if (ImGui::IsItemHovered())
119 ImGui::BeginTooltip();
120 ImGui::Text(
"Entity ID: %llu", entityId);
121 ImGui::Text(
"Components: %zu", components.size());
122 if (!components.empty())
125 for (
const auto&
comp : components)
127 ImGui::BulletText(
"%s",
comp.c_str());
ComponentTypeID GetComponentTypeID_Static()
void SetSelectedEntity(uint64_t entityId)
uint64_t GetSelectedEntity() const
static BlueprintEditor & Get()
void RenderEntityItem(uint64_t entityId, const std::string &entityName)
std::vector< std::string > GetEntityComponents(EntityID entity) const
static EntityInspectorManager & Get()
size_t GetEntityCount() const
std::vector< EntityInfo > GetAllEntityInfo() const