Cogs.Core
SwitchComponent.cpp
1#include "SwitchComponent.h"
2
3#include "Types.h"
4
5using namespace Cogs::Reflection;
6
8{
9 Field fields[] = {
10 { "whichChild" , &SwitchComponent::whichChild },
11 };
12
13 DynamicComponent::registerDerivedType<SwitchComponent>().setFields(fields);
14}
Field definition describing a single data member of a data structure.
Definition: Field.h:68
Contains reflection support.
Definition: Component.h:11
static void registerType()
Register the type in the type system.
int32_t whichChild
Which child (-1 = none, -2 = inherit, -3 = all)