Cogs.Core
Extensions
EchoSounder
Source
Components
DataRefComponent.h
1
#pragma once
2
3
#include "Components/Core/DynamicComponent.h"
4
#include "EntityStore.h"
5
6
#include "Resources/Resources.h"
7
namespace
Cogs
8
{
9
namespace
Core
10
{
11
namespace
EchoSounder
12
{
13
14
struct
DataRefComponent
:
DynamicComponent
15
{
16
static
void
registerType();
17
18
void
initialize(
Context
* context);
19
20
void
update();
21
22
EntityPtr
data;
23
};
24
}
25
}
26
}
27
28
template
<>
inline
Cogs::StringView
getName<Cogs::Core::EchoSounder::DataRefComponent>() {
return
"EchoDataRefComponent"
; }
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::StringView
Provides a weakly referenced view over the contents of a string.
Definition:
StringView.h:24
Cogs::Core::EntityPtr
std::shared_ptr< ComponentModel::Entity > EntityPtr
Smart pointer for Entity access.
Definition:
EntityPtr.h:12
Cogs
Contains all Cogs related functionality.
Definition:
FieldSetter.h:23
Cogs::Core::EchoSounder::DataRefComponent
Definition:
DataRefComponent.h:15
Generated by
1.9.6