Cogs.Core
ScreenSizeComponent.h
1#pragma once
2
3#include "../../EntityDefinition.h"
4
5namespace Cogs
6{
7 namespace Core
8 {
13 {
14 public:
15 static void registerType();
16
17 EntityPtr camera;
18
19 float minSize = 0.0f;
20 };
21 }
22}
23
24template<> inline Cogs::StringView getName<Cogs::Core::ScreenSizeComponent>() { return "ScreenSizeComponent"; }
Base class for Component instances.
Definition: Component.h:143
Allows to control the screen size of the entity.
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