Cogs.Core
TrajectoryLayoutComponent.cpp
1#include "TrajectoryLayoutComponent.h"
2
3#include "Types.h"
4
5using namespace Cogs::Reflection;
6
7void Cogs::Core::TrajectoryLayoutComponent::registerType()
8{
9 Field fields[] = {
10 Field(Name("layoutTrajectory"), &TrajectoryLayoutComponent::layoutTrajectory),
11 Field(Name("entities"), &TrajectoryLayoutComponent::entities),
12 Field(Name("depths"), &TrajectoryLayoutComponent::depths),
13 Field(Name("offset"), &TrajectoryLayoutComponent::offset),
14 };
15
16 TypeDatabase::createType<TrajectoryLayoutComponent>().setBase<Component>().setFields(fields);
17}
Field definition describing a single data member of a data structure.
Definition: Field.h:68
Contains reflection support.
Definition: Component.h:11
Represents an unique name.
Definition: Name.h:70