Tramway SDK
light.h
Go to the documentation of this file.
1// TRAMWAY DRIFT AND DUNGEON EXPLORATION SIMULATOR 2022
2// All rights reserved.
3
4#ifndef TRAM_SDK_ENTITIES_LIGHT_H
5#define TRAM_SDK_ENTITIES_LIGHT_H
6
7#include <framework/entity.h>
10
11namespace tram {
12
13class LightComponent;
14
15class Light : public Entity {
16public:
17 Light(const SharedEntityData&, const ValueArray&);
18 void UpdateParameters();
19 void SetParameters();
20 void Load();
21 void Unload();
22 void Serialize();
23 void MessageHandler(Message& msg);
25 static void Register();
26protected:
28
30 float distance;
32 float exponent;
33};
34
35}
36
37#endif // TRAM_SDK_ENTITIES_LIGHT_H
Wrapper for an EntityComponent pointer.
Definition: entitycomponent.h:53
Definition: entity.h:20
Definition: light.h:15
float exponent
Definition: light.h:32
void Unload()
Definition: light.cpp:66
void Serialize()
Definition: light.cpp:74
void SetParameters()
Definition: light.cpp:49
float distance
Definition: light.h:30
static void Register()
Definition: light.cpp:19
name_t GetType()
Definition: light.cpp:33
vec3 direction
Definition: light.h:31
void MessageHandler(Message &msg)
Definition: light.cpp:85
vec3 color
Definition: light.h:29
Light(const SharedEntityData &, const ValueArray &)
Definition: light.cpp:37
void UpdateParameters()
Definition: light.cpp:44
Component< LightComponent > light
Definition: light.h:27
void Load()
Definition: light.cpp:53
Definition: value.h:336
Definition: api.h:9
glm::vec3 vec3
Definition: math.h:12
Definition: message.h:16
Definition: entity.cpp:26
Definition: uid.h:11