Cogs.Core
EntityInspector.h
1#pragma once
2
3#include "Base.h"
4#include "EntityPtr.h"
5
6#include <span>
7
8namespace Cogs
9{
10 namespace ComponentModel
11 {
12 class Component;
13 class Entity;
14 }
15
16 namespace Core
17 {
18 void entityInspector(class Context * context, bool * show);
19 void showEntities(Context* context, std::span<const EntityPtr> entities, std::string_view entityNamePattern, std::string_view componentNamePattern);
20
21 void COGSCORE_DLL_API showCollapsableEntityInspector(class Context* context, const ComponentModel::Entity* entity, std::string_view entityNamePattern, std::string_view componentNamePattern, bool showBorder = true);
22 void COGSCORE_DLL_API showEntityInspector(Context* context, const ComponentModel::Entity* entity, std::string_view entityNamePattern, std::string_view componentNamePattern, bool showBorder = true);
23 void COGSCORE_DLL_API showComponentInspector(Context* context, ComponentModel::Component* component, std::string_view entityNamePattern, std::string_view componentNamePattern, bool showBorder = true);
24 void COGSCORE_DLL_API showFieldInspector(Context* context, ComponentModel::Component* component, FieldId fieldId, std::string_view entityNamePattern, std::string_view componentNamePattern, bool showBorder = true);
25 }
26}
Base class for Component instances.
Definition: Component.h:143
Container for components, providing composition of dynamic entities.
Definition: Entity.h:18
Contains all Cogs related functionality.
Definition: FieldSetter.h:23