Cogs.Core
SceneComponent.h
1#pragma once
2
3#include <vector>
4
5#include "../../EntityDefinition.h"
6
7namespace Cogs
8{
9 namespace Core
10 {
24 {
25 public:
27 static void registerType();
28
37 bool visible = true;
38
47 bool pickable = true;
48
56 std::vector<EntityPtr> children;
57
62 };
63 }
64}
65
66template<> inline Cogs::StringView getName<Cogs::Core::SceneComponent>() { return "SceneComponent"; }
Base class for Component instances.
Definition: Component.h:143
Contains information on how the entity behaves in the scene.
std::vector< EntityPtr > children
Contains all child entities owned by this component.
static void registerType()
Register the type in the type system.
bool visible
If the entity this component is a member of should be visible.
ComponentModel::ComponentHandle parent
Handle to the scene component of the parent entity.
bool pickable
If the entity this component is a member of should be pickable.
Provides a weakly referenced view over the contents of a string.
Definition: StringView.h:24
Contains all Cogs related functionality.
Definition: FieldSetter.h:23
Handle to a Component instance.
Definition: Component.h:67
static ComponentHandle Empty()
Returns an empty, invalid handle. Will evaluate to false if tested against using operator bool().
Definition: Component.h:119