Cogs.Core
SwitchComponent.h
1#pragma once
2
3#include "Components/Core/DynamicComponent.h"
4
5namespace Cogs::Core
6{
11 {
13 static void registerType();
14
18 int32_t whichChild = -1;
19 };
20}
21
22template<> inline Cogs::StringView getName<Cogs::Core::SwitchComponent>() { return "SwitchComponent"; }
Base class for components implementing dynamic behavior.
Provides a weakly referenced view over the contents of a string.
Definition: StringView.h:24
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
Signals that an entity should only have one visible child at any time.
static void registerType()
Register the type in the type system.
int32_t whichChild
Which child (-1 = none, -2 = inherit, -3 = all)