Tramway SDK
crate.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_CRATE_H
5#define TRAM_SDK_ENTITIES_CRATE_H
6
7#include <framework/entity.h>
10
11namespace tram {
12
13class RenderComponent;
14class PhysicsComponent;
15
16class Crate : public Entity {
17public:
18 Crate(const SharedEntityData&, const ValueArray&);
19
20 Crate(const char* nname, const char* modelname, const char* collisionmodelname, vec3 pos, vec3 rot);
21 void UpdateParameters();
22 void SetParameters();
23 void Load();
24 void Unload();
25 void Serialize();
26 void MessageHandler(Message& msg);
27 void Testingolingo();
29 static void Register();
30protected:
33
36};
37
38}
39
40#endif // TRAM_SDK_ENTITIES_CRATE_H
Wrapper for an EntityComponent pointer.
Definition: entitycomponent.h:53
Definition: crate.h:16
void SetParameters()
Definition: crate.cpp:60
void UpdateParameters()
Definition: crate.cpp:53
name_t GetType()
Definition: crate.cpp:35
Crate(const SharedEntityData &, const ValueArray &)
Definition: crate.cpp:39
void Serialize()
Definition: crate.cpp:96
void Load()
Definition: crate.cpp:67
name_t collmodel
Definition: crate.h:35
Component< PhysicsComponent > physicscomponent
Definition: crate.h:32
Component< RenderComponent > rendercomponent
Definition: crate.h:31
void Unload()
Definition: crate.cpp:87
name_t model
Definition: crate.h:34
void MessageHandler(Message &msg)
Definition: crate.cpp:101
void Testingolingo()
Definition: crate.cpp:107
static void Register()
Definition: crate.cpp:23
Definition: entity.h:20
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