1#include "VectorFieldComponent.h"
6namespace Cogs::Core::VectorField
8 void VectorFieldComponent::registerType()
11 Field(
Name(
"scale"), &VectorFieldComponent::scale),
12 Field(
Name(
"length"), &VectorFieldComponent::length),
13 Field(
Name(
"tailScale"), &VectorFieldComponent::tailScale),
14 Field(
Name(
"positions"), &VectorFieldComponent::positions),
15 Field(
Name(
"colors"), &VectorFieldComponent::colors),
16 Field(
Name(
"directions"), &VectorFieldComponent::directions),
17 Field(
Name(
"speed"), &VectorFieldComponent::speed),
18 Field(
Name(
"animation"), &VectorFieldComponent::animation),
19 Field(
Name(
"animationFade"), &VectorFieldComponent::animationFade),
20 Field(
Name(
"animationUseSpeed"), &VectorFieldComponent::animationUseSpeed),
21 Field(
Name(
"animationScale"), &VectorFieldComponent::animationScale),
22 Field(
Name(
"animationSpeed"), &VectorFieldComponent::animationSpeed),
23 Field::create(
Name(
"animationFadeTime"), &VectorFieldComponent::animationFadeTime).setRange(0.0f, 0.5f),
24 Field(
Name(
"centerArrow"), &VectorFieldComponent::centerArrow),
25 Field(
Name(
"dither"), &VectorFieldComponent::dither),
26 Field(
Name(
"ditherSize"), &VectorFieldComponent::ditherSize)
28 TypeDatabase::createType<VectorFieldComponent>()
30 .setBase<Component>();
Field definition describing a single data member of a data structure.
static FieldWrapper< Field, FieldType > create(const Name &name, FieldType ClassType::*field)
Creates a new field instance, returning a wrapper for type safe continuation style setup.
Contains reflection support.
Represents an unique name.