Grindstone Game Engine
v0.2.0
An open source game engine and toolkit.
Toggle main menu visibility
Loading...
Searching...
No Matches
ComponentInspector.hpp
1
#pragma once
2
3
#include <string>
4
#include <entt/entt.hpp>
5
6
#include <Common/HashedString.hpp>
7
#include <EngineCore/Reflection/TypeDescriptorStruct.hpp>
8
#include "NewComponentInput.hpp"
9
10
namespace
Grindstone {
11
namespace
ECS {
12
class
ComponentRegistrar
;
13
}
14
15
namespace
Editor {
16
namespace
ImguiEditor {
17
class
ImguiEditor
;
18
class
ComponentInspector {
19
public
:
20
ComponentInspector(
ImguiEditor
* editor);
21
void
Render(
ECS::Entity
entity);
22
private
:
23
void
RenderComponent(
24
Grindstone::HashedString
componentTypeName,
25
Reflection::TypeDescriptor_Struct
& componentReflectionData,
26
void
* componentPtr,
27
ECS::Entity
entity
28
);
29
void
RenderCSharpScript(
void
* componentPtr,
ECS::Entity
entity);
30
void
RenderComponentCategory(
31
Reflection::TypeDescriptor_Struct::Category
& category,
32
void
* componentPtr,
33
ECS::Entity
entity
34
);
35
void
RenderComponentMember(
36
Reflection::TypeDescriptor_Struct::Member
& member,
37
void
* componentPtr,
38
ECS::Entity
entity
39
);
40
void
RenderComponentMember(std::string_view displayName,
Reflection::TypeDescriptor
* itemType,
void
* offset,
ECS::Entity
entity);
41
NewComponentInput
newComponentInput;
42
43
ImguiEditor
* imguiEditor =
nullptr
;
44
};
45
}
46
}
47
}
Grindstone::ECS::ComponentRegistrar
Definition
ComponentRegistrar.hpp:18
Grindstone::ECS::Entity
Definition
Entity.hpp:15
Grindstone::Editor::ImguiEditor::ImguiEditor
Definition
ImguiEditor.hpp:52
Grindstone::Editor::ImguiEditor::NewComponentInput
Definition
NewComponentInput.hpp:15
Grindstone::HashedString
Definition
HashedString.hpp:9
Grindstone::Reflection::TypeDescriptor_Struct::Category
Definition
TypeDescriptorStruct.hpp:23
Grindstone::Reflection::TypeDescriptor_Struct::Member
Definition
TypeDescriptorStruct.hpp:10
Grindstone::Reflection::TypeDescriptor_Struct
Definition
TypeDescriptorStruct.hpp:9
Grindstone::Reflection::TypeDescriptor
Definition
TypeDescriptor.hpp:6
sources
code
Editor
ImguiEditor
ComponentInspector.hpp
Generated by
1.17.0