1 #ifndef COMPONENT_SCREEN_HPP
2 #define COMPONENT_SCREEN_HPP
6 #include <serine/Archiver.hpp>
24 backgroundColor(0, 0, 0, 1),
25 textColor(1, 1, 1, 1) {
33 return Component::getTypeId<std::remove_reference<decltype(*this)>::type>();
37 ar(
"enabled", enabled);
38 ar(
"backgroundColor", backgroundColor);
39 ar(
"textColor", textColor);
Vector4f backgroundColor
Definition: Screen.hpp:18
bool enabled
Definition: Screen.hpp:16
Component(const Component &)=delete
ECS entity, Component container It is created like this:
Definition: Entity.hpp:23
Definition: Screen.hpp:10
std::string title
Definition: Screen.hpp:14
const char * getName() const
Definition: Screen.hpp:28
Definition: Screen.hpp:12
Base class to create entity components.
Definition: Component.hpp:25
TypeId getTypeId() const
Definition: Screen.hpp:32
void serialize(serine::Archiver &ar)
Definition: Screen.hpp:36
ComponentTypeId TypeId
Definition: Component.hpp:35
float alpha
Definition: Screen.hpp:17
Screen(radix::Entity &ent)
Definition: Screen.hpp:21
std::string text
Definition: Screen.hpp:15
Vector4f textColor
Definition: Screen.hpp:19