4#ifndef TRAM_SDK_FRAMEWORK_SIGNAL_H
5#define TRAM_SDK_FRAMEWORK_SIGNAL_H
void Add(const Signal &signal)
Definition: signal.cpp:123
void Fire(signal_t signal, id_t sender)
Definition: signal.cpp:63
size_t signal_count
Definition: signal.h:58
Signal signals[10]
Definition: signal.h:57
Generic, type-safe union.
Definition: value.h:18
uint32_t id_t
Definition: core.h:11
uint32_t message_t
Definition: message.h:11
uint32_t signal_t
Definition: signal.h:13
signal_t type
Definition: signal.h:36
static name_t GetName(signal_t type)
Gets a nessage type name.
Definition: signal.cpp:58
static signal_t GetType(name_t name)
Finds a message type from a name.
Definition: signal.cpp:42
static signal_t Register(const char *name)
Registers a new message type.
Definition: signal.cpp:36
name_t receiver
Definition: signal.h:38
message_t message_type
Definition: signal.h:44
Type
Definition: signal.h:18
@ CLOSE
Definition: signal.h:26
@ NONE
Definition: signal.h:19
@ END_CLOSE
Definition: signal.h:28
@ EXIT_TRIGGER
Definition: signal.h:31
@ KILL
Definition: signal.h:21
@ END_OPEN
Definition: signal.h:27
@ ACTIVATE
Definition: signal.h:22
@ PROGRESS
Definition: signal.h:32
@ USE
Definition: signal.h:23
@ LAST_SIGNAL
Definition: signal.h:33
@ ENTER_TRIGGER
Definition: signal.h:30
@ SPAWN
Definition: signal.h:20
@ OPEN
Definition: signal.h:25
@ LOCKED_USE
Definition: signal.h:24
@ TRIGGER
Definition: signal.h:29
float delay
Definition: signal.h:41
void * data
Definition: signal.h:39
int limit
Definition: signal.h:42