1 #ifndef COMPONENT_LIGHTSOURCE_HPP
2 #define COMPONENT_LIGHTSOURCE_HPP
6 #include <serine/Archiver.hpp>
21 backgroundColor(0, 0, 0, 1),
22 textColor(1, 1, 1, 1) {
30 return Component::getTypeId<std::remove_reference<decltype(*this)>::type>();
34 ar(
"enabled", enabled);
35 ar(
"backgroundColor", backgroundColor);
36 ar(
"textColor", textColor);
bool enabled
Definition: Terminal.hpp:14
Component(const Component &)=delete
ECS entity, Component container It is created like this:
Definition: Entity.hpp:23
radix::Vector4f backgroundColor
Definition: Terminal.hpp:15
Definition: Screen.hpp:10
radix::Vector4f textColor
Definition: Terminal.hpp:16
4-dimensional float-based vector/point storage and manipulation struct
Definition: Vector4f.hpp:22
Base class to create entity components.
Definition: Component.hpp:25
ComponentTypeId TypeId
Definition: Component.hpp:35
const char * getName() const
Definition: Terminal.hpp:25
TypeId getTypeId() const
Definition: Terminal.hpp:29
Terminal(radix::Entity &ent)
Definition: Terminal.hpp:18
Definition: Terminal.hpp:12
void serialize(serine::Archiver &ar)
Definition: Terminal.hpp:33