Cogs.Core
TrajectoryLayoutComponent.h
1#pragma once
2
3#include "../../EntityDefinition.h"
4
5#include "Foundation/ComponentModel/Entity.h"
6
7#include <memory>
8
9namespace Cogs
10{
11 namespace Core
12 {
14 {
16
17 EntityPtr layoutTrajectory;
18
19 std::vector<WeakEntityPtr> entities;
20 std::vector<float> depths;
21
22 glm::vec3 offset;
23
24 static void registerType();
25 };
26 }
27}
28
29template<> inline Cogs::StringView getName<Cogs::Core::TrajectoryLayoutComponent>() { return "TrajectoryLayoutComponent"; }
Base class for Component instances.
Definition: Component.h:143
Provides a weakly referenced view over the contents of a string.
Definition: StringView.h:24
std::shared_ptr< ComponentModel::Entity > EntityPtr
Smart pointer for Entity access.
Definition: EntityPtr.h:12
Contains all Cogs related functionality.
Definition: FieldSetter.h:23