Tramway SDK
staticworldobject.h
Go to the documentation of this file.
1// Tramway Drifting and Dungeon Exploration Simulator SDK Runtime
2
3#ifndef ENTITIES_STATICWORLDOBJECT_H
4#define ENTITIES_STATICWORLDOBJECT_H
5
6#include <framework/entity.h>
9
10namespace tram {
11
12class RenderComponent;
13class PhysicsComponent;
14
15class StaticWorldObject : public Entity {
16public:
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:
29
32};
33
34}
35
36#endif // ENTITIES_STATICWORLDOBJECT_H
Wrapper for an EntityComponent pointer.
Definition: entitycomponent.h:51
Entity base class.
Definition: entity.h:23
Worldspawn.
Definition: staticworldobject.h:15
StaticWorldObject(const SharedEntityData &, const ValueArray &)
Definition: staticworldobject.cpp:44
name_t model
Definition: staticworldobject.h:30
void UpdateParameters()
Called when Entity::UpdateTransform is called.
Definition: staticworldobject.cpp:49
void SetParameters()
Called when either Entity::SetLocation or Entity::SetRotation is called.
Definition: staticworldobject.cpp:56
Component< RenderComponent > rendercomponent
Definition: staticworldobject.h:27
name_t lightmap
Definition: staticworldobject.h:31
name_t GetType()
Returns the type of the entity.
Definition: staticworldobject.cpp:40
void Serialize()
Definition: staticworldobject.cpp:97
static void Register()
Definition: staticworldobject.cpp:28
void Load()
Loads an entity.
Definition: staticworldobject.cpp:65
void MessageHandler(Message &msg)
Allows entities to receive messages.
Definition: staticworldobject.cpp:102
void Unload()
Unloads an entity.
Definition: staticworldobject.cpp:88
Component< PhysicsComponent > physicscomponent
Definition: staticworldobject.h:28
Definition: value.h:314
Serialization, i.e.
Message data.
Definition: message.h:16
Basic Entity parameters.
Definition: entity.h:132
Interned string type.
Definition: uid.h:10