Cogs.Core
CubeMarkerComponent.cpp
1#include "CubeMarkerComponent.h"
2#include "Types.h"
3
4using namespace Cogs::Reflection;
5
6void Cogs::Core::CubeMarkerComponent::registerType()
7{
8 Field fields[] = {
10 Field(Name("markerSize"), &CubeMarkerComponent::markerSize),
11 Field(Name("showCenterMarker"), &CubeMarkerComponent::showCenterMarker),
12 Field(Name("showWallMarkers"), &CubeMarkerComponent::showWallMarkers),
16 };
17
18 TypeDatabase::createType<CubeMarkerComponent>()
19 .setBase<Component>()
20 .setFields(fields);
21}
Field definition describing a single data member of a data structure.
Definition: Field.h:68
Contains reflection support.
Definition: Component.h:11
WeakEntityPtr cube
AxisCube into which to embed the marker.
glm::vec4 zColor
Color of z-axis.
glm::vec4 yColor
Color of y-axis.
glm::vec4 xColor
Color of x-axis.
Represents an unique name.
Definition: Name.h:70