Tramway SDK
trigger.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_TRIGGER_H
5#define TRAM_SDK_ENTITIES_TRIGGER_H
6
7#include <framework/entity.h>
10
11namespace tram {
12
13class RenderComponent;
14class TriggerComponent;
15
16class Trigger : public Entity {
17public:
18 Trigger(const SharedEntityData&, const ValueArray&);
19 void UpdateParameters();
20 void SetParameters();
21 void Load();
22 void Unload();
23 void Serialize();
24 void MessageHandler(Message& msg);
25 void Activate();
27 static void Register();
28protected:
31
33 uint32_t trigger_flags;
35};
36
37}
38
39#endif // TRAM_SDK_ENTITIES_TRIGGER_H
Wrapper for an EntityComponent pointer.
Definition: entitycomponent.h:53
Definition: entity.h:20
Definition: trigger.h:16
void SetParameters()
Definition: trigger.cpp:60
static void Register()
Definition: trigger.cpp:34
void Load()
Definition: trigger.cpp:67
void MessageHandler(Message &msg)
Definition: trigger.cpp:113
Component< TriggerComponent > triggercomponent
Definition: trigger.h:30
void Unload()
Definition: trigger.cpp:91
name_t model
Definition: trigger.h:32
void Activate()
Definition: trigger.cpp:104
name_t GetType()
Definition: trigger.cpp:44
void Serialize()
Definition: trigger.cpp:100
uint32_t trigger_flags
Definition: trigger.h:33
void UpdateParameters()
Definition: trigger.cpp:54
Component< RenderComponent > rendercomponent
Definition: trigger.h:29
uint32_t collision_mask
Definition: trigger.h:34
Trigger(const SharedEntityData &, const ValueArray &)
Definition: trigger.cpp:48
Definition: value.h:336
Definition: api.h:9
Definition: message.h:16
Definition: entity.cpp:26
Definition: uid.h:11