Cogs.Core
DataRefComponent.cpp
1#include "DataRefComponent.h"
2#include "Types.h"
3
4using namespace Cogs::Reflection;
5
6//using namespace Cogs::Core::EchoSounder;
7void Cogs::Core::EchoSounder::DataRefComponent::registerType()
8{
9 Field fields[] = {
10 Field(Name("data"), &DataRefComponent::data)
11 };
12 Method methods[] = {
13 Method(Name("initialize"), &DataRefComponent::initialize),
14 Method(Name("update"), &DataRefComponent::update),
15 };
16 DynamicComponent::registerDerivedType<DataRefComponent>()
17 .setFields(fields)
18 .setMethods(methods);
19}
20
21void Cogs::Core::EchoSounder::DataRefComponent::initialize(Context * /*context*/)
22{
23}
24
25void Cogs::Core::EchoSounder::DataRefComponent::update()
26{
27 // Defined to get the changed flag (which other components use) cleared.
28}
Field definition describing a single data member of a data structure.
Definition: Field.h:68
Simple method definition.
Definition: Method.h:72
Contains reflection support.
Definition: Component.h:11
Represents an unique name.
Definition: Name.h:70