Cogs.Core
OceanComponent.cpp
1#include "OceanComponent.h"
2
3#include "Types.h"
4
5using namespace Cogs::Reflection;
6
7void Cogs::Core::OceanComponent::registerType()
8{
9 Field fields[] = {
10 Field(Name("terrain"), &OceanComponent::terrain),
11 Field(Name("significantWaveHeight"), &OceanComponent::significantWaveHeight),
12 };
13
14 TypeDatabase::createType<OceanComponent>().setBase<Component>().setFields(fields);
15}
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