Tramway SDK
decoration.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_DECORATION_H
5#define TRAM_SDK_ENTITIES_DECORATION_H
6
7#include <framework/entity.h>
10
11namespace tram {
12
13class RenderComponent;
14class AnimationComponent;
15class PhysicsComponent;
16
17// TODO: add a field that lets you set how fast the animation fades
18// TODO: don't create animation component if there is no animation?
19
20class Decoration : public Entity {
21public:
23 void UpdateParameters();
24 void SetParameters();
25 void Load();
26 void Unload();
27 void Serialize();
28 void MessageHandler(Message& msg);
30 static void Register();
31protected:
35
38
40};
41
42}
43
44#endif // TRAM_SDK_ENTITIES_DECORATION_H
Wrapper for an EntityComponent pointer.
Definition: entitycomponent.h:53
Definition: decoration.h:20
void Load()
Definition: decoration.cpp:66
static void Register()
Definition: decoration.cpp:29
uint32_t decoration_flags
Definition: decoration.h:39
Component< AnimationComponent > animationcomponent
Definition: decoration.h:33
void Serialize()
Definition: decoration.cpp:109
Component< PhysicsComponent > physicscomponent
Definition: decoration.h:34
void SetParameters()
Definition: decoration.cpp:59
name_t GetType()
Definition: decoration.cpp:42
Decoration(const SharedEntityData &, const ValueArray &)
Definition: decoration.cpp:46
void MessageHandler(Message &msg)
Definition: decoration.cpp:113
name_t animation
Definition: decoration.h:37
name_t model
Definition: decoration.h:36
void Unload()
Definition: decoration.cpp:99
Component< RenderComponent > rendercomponent
Definition: decoration.h:32
void UpdateParameters()
Definition: decoration.cpp:52
Definition: entity.h:20
Definition: value.h:336
Definition: api.h:9
Definition: message.h:16
Definition: entity.cpp:26
Definition: uid.h:11