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