Cogs.Core
Extensions
Components
FollowComponent.h
1
#include "Components/Core/DynamicComponent.h"
2
3
#include <glm/vec3.hpp>
4
5
namespace
Cogs
6
{
7
namespace
Core
8
{
9
class
Context;
10
11
class
FollowComponent
:
public
DynamicComponent
12
{
13
public
:
14
FollowComponent
() : offset(0, 0, 0) {}
15
16
void
initialize(
Context
* context);
17
void
update();
18
void
cleanup(
Context
* context);
19
20
std::shared_ptr<ComponentModel::Entity> target;
21
22
glm::vec3 offset;
23
24
static
void
registerType();
25
};
26
}
27
}
28
29
template
<>
inline
Cogs::StringView
getName<Cogs::Core::FollowComponent>() {
return
"FollowComponent"
; }
Cogs::Core::Context
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition:
Context.h:83
Cogs::Core::DynamicComponent
Base class for components implementing dynamic behavior.
Definition:
DynamicComponent.h:31
Cogs::Core::FollowComponent
Definition:
FollowComponent.h:12
Cogs::StringView
Provides a weakly referenced view over the contents of a string.
Definition:
StringView.h:24
Cogs
Contains all Cogs related functionality.
Definition:
FieldSetter.h:23
Generated by
1.9.6