Cogs.Core
DataRefComponent.h
1#pragma once
2
3#include "Components/Core/DynamicComponent.h"
4#include "EntityStore.h"
5
6#include "Resources/Resources.h"
7namespace Cogs
8{
9 namespace Core
10 {
11 namespace EchoSounder
12 {
13
15 {
16 static void registerType();
17
18 void initialize(Context * context);
19
20 void update();
21
22 EntityPtr data;
23 };
24 }
25 }
26}
27
28template<> inline Cogs::StringView getName<Cogs::Core::EchoSounder::DataRefComponent>() { return "EchoDataRefComponent"; }
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition: Context.h:83
Base class for components implementing dynamic behavior.
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