![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
EntityInspectorManager - Manages runtime entity tracking and inspection Singleton that maintains a synchronized list of all entities in the world. More...
#include <EntityInspectorManager.h>
Static Public Member Functions | |
| static EntityInspectorManager & | Instance () |
| static EntityInspectorManager & | Get () |
Private Member Functions | |
| EntityInspectorManager () | |
| ~EntityInspectorManager () | |
| EntityInspectorManager (const EntityInspectorManager &)=delete | |
| EntityInspectorManager & | operator= (const EntityInspectorManager &)=delete |
| void | SyncWithWorld () |
| std::string | GetComponentName (ComponentTypeID typeId) const |
| ComponentTypeID | GetComponentTypeId (const std::string &name) const |
Private Attributes | |
| bool | m_Initialized = false |
| EntityID | m_SelectedEntity = INVALID_ENTITY_ID |
| std::vector< EntityID > | m_EntityList |
| std::map< EntityID, EntityInfo > | m_EntityInfoCache |
EntityInspectorManager - Manages runtime entity tracking and inspection Singleton that maintains a synchronized list of all entities in the world.
Definition at line 48 of file EntityInspectorManager.h.
|
private |
Definition at line 19 of file EntityInspectorManager.cpp.
|
private |
Definition at line 23 of file EntityInspectorManager.cpp.
References Shutdown().
Here is the call graph for this function:
|
privatedelete |
| std::vector< EntityID > Olympe::EntityInspectorManager::FilterByComponent | ( | const std::string & | componentType | ) | const |
Definition at line 337 of file EntityInspectorManager.cpp.
References GetComponentTypeID_Static(), HasComponent(), and m_EntityList.
Here is the call graph for this function:| std::vector< EntityID > Olympe::EntityInspectorManager::FilterByName | ( | const std::string & | nameFilter | ) | const |
Definition at line 317 of file EntityInspectorManager.cpp.
References GetComponentTypeID_Static(), m_EntityInfoCache, and m_EntityList.
Here is the call graph for this function:| void Olympe::EntityInspectorManager::ForceSyncWithWorld | ( | ) |
Definition at line 356 of file EntityInspectorManager.cpp.
References SyncWithWorld().
Here is the call graph for this function:
|
inlinestatic |
Definition at line 52 of file EntityInspectorManager.h.
References Instance().
Referenced by Olympe::BlueprintEditor::Initialize(), NotifyEditorEntityCreated(), NotifyEditorEntityDestroyed(), Olympe::EntitiesPanel::Render(), Olympe::NodeGraphPanel::Render(), Olympe::InspectorPanel::RenderComponentProperties(), Olympe::InspectorPanel::RenderEntityInspector(), Olympe::EntitiesPanel::RenderEntityItem(), Olympe::EntitiesPanel::RenderEntityList(), Olympe::AssetBrowser::RenderRuntimeEntities(), Olympe::BlueprintEditor::Shutdown(), and Olympe::BlueprintEditor::Update().
Here is the call graph for this function:
Here is the caller graph for this function:| std::vector< EntityID > Olympe::EntityInspectorManager::GetAllEntities | ( | ) | const |
Definition at line 142 of file EntityInspectorManager.cpp.
References m_EntityList.
| std::vector< EntityInfo > Olympe::EntityInspectorManager::GetAllEntityInfo | ( | ) | const |
Definition at line 147 of file EntityInspectorManager.cpp.
References GetComponentTypeID_Static(), m_EntityInfoCache, and m_EntityList.
Referenced by Olympe::EntitiesPanel::RenderEntityList().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 416 of file EntityInspectorManager.cpp.
| std::vector< ComponentPropertyInfo > Olympe::EntityInspectorManager::GetComponentProperties | ( | EntityID | entity, |
| const std::string & | componentType | ||
| ) |
Definition at line 188 of file EntityInspectorManager.cpp.
References World::Get(), World::GetComponent(), GetComponentTypeID_Static(), World::HasComponent(), World::IsEntityValid(), and Olympe::ComponentPropertyInfo::name.
Referenced by Olympe::InspectorPanel::RenderComponentProperties().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 423 of file EntityInspectorManager.cpp.
| std::vector< std::string > Olympe::EntityInspectorManager::GetEntityComponents | ( | EntityID | entity | ) | const |
Definition at line 173 of file EntityInspectorManager.cpp.
References GetComponentTypeID_Static(), and m_EntityInfoCache.
Referenced by HasComponent(), Olympe::InspectorPanel::RenderEntityInspector(), and Olympe::EntitiesPanel::RenderEntityItem().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 90 of file EntityInspectorManager.h.
References m_EntityList.
Referenced by Olympe::EntitiesPanel::Render().
Here is the caller graph for this function:| EntityInfo Olympe::EntityInspectorManager::GetEntityInfo | ( | EntityID | entity | ) | const |
Definition at line 159 of file EntityInspectorManager.cpp.
References GetComponentTypeID_Static(), and m_EntityInfoCache.
Referenced by Olympe::NodeGraphPanel::Render(), and Olympe::InspectorPanel::RenderEntityInspector().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 85 of file EntityInspectorManager.h.
References m_SelectedEntity.
| bool Olympe::EntityInspectorManager::HasComponent | ( | EntityID | entity, |
| const std::string & | componentType | ||
| ) | const |
Definition at line 182 of file EntityInspectorManager.cpp.
References GetEntityComponents().
Referenced by FilterByComponent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 86 of file EntityInspectorManager.h.
References INVALID_ENTITY_ID, and m_SelectedEntity.
| void Olympe::EntityInspectorManager::Initialize | ( | ) |
Definition at line 28 of file EntityInspectorManager.cpp.
References m_EntityList, m_Initialized, and SyncWithWorld().
Referenced by Olympe::BlueprintEditor::Initialize().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 13 of file EntityInspectorManager.cpp.
References GetComponentTypeID_Static().
Referenced by Get().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 168 of file EntityInspectorManager.cpp.
References m_EntityList.
Referenced by SetSelectedEntity().
Here is the caller graph for this function:
|
inline |
Definition at line 89 of file EntityInspectorManager.h.
References m_Initialized.
| void Olympe::EntityInspectorManager::OnComponentAdded | ( | EntityID | entity, |
| const std::string & | componentType | ||
| ) |
Definition at line 109 of file EntityInspectorManager.cpp.
References GetComponentTypeID_Static(), m_EntityInfoCache, and m_Initialized.
Here is the call graph for this function:| void Olympe::EntityInspectorManager::OnComponentRemoved | ( | EntityID | entity, |
| const std::string & | componentType | ||
| ) |
Definition at line 125 of file EntityInspectorManager.cpp.
References GetComponentTypeID_Static(), m_EntityInfoCache, and m_Initialized.
Here is the call graph for this function:Definition at line 65 of file EntityInspectorManager.cpp.
References World::Get(), World::GetComponent(), GetComponentTypeID_Static(), m_EntityInfoCache, m_EntityList, m_Initialized, and Identity_data::name.
Referenced by NotifyEditorEntityCreated(), and SyncWithWorld().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 91 of file EntityInspectorManager.cpp.
References GetComponentTypeID_Static(), INVALID_ENTITY_ID, m_EntityInfoCache, m_EntityList, m_Initialized, and m_SelectedEntity.
Referenced by NotifyEditorEntityDestroyed().
Here is the call graph for this function:
Here is the caller graph for this function:
|
privatedelete |
| bool Olympe::EntityInspectorManager::SetComponentProperty | ( | EntityID | entity, |
| const std::string & | componentType, | ||
| const std::string & | propertyName, | ||
| const std::string & | value | ||
| ) |
Definition at line 254 of file EntityInspectorManager.cpp.
References World::Get(), World::GetComponent(), GetComponentTypeID_Static(), World::HasComponent(), and World::IsEntityValid().
Referenced by Olympe::InspectorPanel::RenderComponentProperties().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 350 of file EntityInspectorManager.cpp.
References INVALID_ENTITY_ID, IsEntityValid(), and m_SelectedEntity.
Here is the call graph for this function:| void Olympe::EntityInspectorManager::Shutdown | ( | ) |
Definition at line 42 of file EntityInspectorManager.cpp.
References INVALID_ENTITY_ID, m_EntityInfoCache, m_EntityList, m_Initialized, and m_SelectedEntity.
Referenced by Olympe::BlueprintEditor::Shutdown(), and ~EntityInspectorManager().
Here is the caller graph for this function:
|
private |
Definition at line 361 of file EntityInspectorManager.cpp.
References World::Get(), GetComponentTypeID_Static(), m_EntityInfoCache, m_EntityList, World::m_entitySignatures, and OnEntityCreated().
Referenced by ForceSyncWithWorld(), and Initialize().
Here is the call graph for this function:
Here is the caller graph for this function:| void Olympe::EntityInspectorManager::Update | ( | ) |
Definition at line 56 of file EntityInspectorManager.cpp.
References m_Initialized.
Referenced by Olympe::BlueprintEditor::Update().
Here is the caller graph for this function:
|
private |
Definition at line 113 of file EntityInspectorManager.h.
Referenced by FilterByName(), GetAllEntityInfo(), GetEntityComponents(), GetEntityInfo(), OnComponentAdded(), OnComponentRemoved(), OnEntityCreated(), OnEntityDestroyed(), Shutdown(), and SyncWithWorld().
|
private |
Definition at line 112 of file EntityInspectorManager.h.
Referenced by FilterByComponent(), FilterByName(), GetAllEntities(), GetAllEntityInfo(), GetEntityCount(), Initialize(), IsEntityValid(), OnEntityCreated(), OnEntityDestroyed(), Shutdown(), and SyncWithWorld().
Definition at line 110 of file EntityInspectorManager.h.
Referenced by Initialize(), IsInitialized(), OnComponentAdded(), OnComponentRemoved(), OnEntityCreated(), OnEntityDestroyed(), Shutdown(), and Update().
|
private |
Definition at line 111 of file EntityInspectorManager.h.
Referenced by GetSelectedEntity(), HasSelection(), OnEntityDestroyed(), SetSelectedEntity(), and Shutdown().