1#include "AudioComponent.h"
3#include "Foundation/Reflection/TypeDatabase.h"
7void Cogs::Core::AudioComponent::registerType()
10 Field(
Name(
"sound"), &AudioComponent::sound),
11 Field(
Name(
"enabled"), &AudioComponent::enabled),
12 Field(
Name(
"loop"), &AudioComponent::loop),
13 Field(
Name(
"radius"), &AudioComponent::radius),
14 Field(
Name(
"volume"), &AudioComponent::volume),
15 Field(
Name(
"frequencyModulation"), &AudioComponent::frequencyModulation),
16 Field(
Name(
"dopplerScale"), &AudioComponent::dopplerScale),
19 TypeDatabase::createType<AudioComponent>().setBase<Component>().setFields(fields);
Field definition describing a single data member of a data structure.
Contains reflection support.
Represents an unique name.