1 #ifndef RADIX_COMPONENT_LIGHTSOURCE_HPP
2 #define RADIX_COMPONENT_LIGHTSOURCE_HPP
6 #include <serine/Archiver.hpp>
34 return Component::getTypeId<std::remove_reference<decltype(*this)>::type>();
38 ar(
"enabled", enabled);
40 ar(
"distance", distance);
42 ar(
"specular", specular);
Definition: GameController.hpp:7
ECS entity, Component container It is created like this:
Definition: Entity.hpp:23
float specular
Definition: LightSource.hpp:18
LightSource(Entity &ent)
Definition: LightSource.hpp:20
Vector3f color
Definition: LightSource.hpp:15
Base class to create entity components.
Definition: Component.hpp:25
TypeId getTypeId() const
Definition: LightSource.hpp:33
void serialize(serine::Archiver &ar)
Definition: LightSource.hpp:37
ComponentTypeId TypeId
Definition: Component.hpp:35
float energy
Definition: LightSource.hpp:17
Definition: LightSource.hpp:12
float distance
Definition: LightSource.hpp:16
bool enabled
Definition: LightSource.hpp:14
3-dimensional float-based vector/point storage and manipulation struct
Definition: Vector3f.hpp:27
const char * getName() const
Definition: LightSource.hpp:29