Tramway SDK
Public Types | Static Public Member Functions | Public Attributes | List of all members
tram::Signal Struct Reference

#include <signal.h>

Public Types

enum  Type : signal_t {
  NONE , SPAWN , KILL , ACTIVATE ,
  USE , LOCKED_USE , OPEN , CLOSE ,
  END_OPEN , END_CLOSE , TRIGGER , ENTER_TRIGGER ,
  EXIT_TRIGGER , PROGRESS , LAST_SIGNAL
}
 

Static Public Member Functions

static signal_t Register (const char *name)
 Registers a new message type. More...
 
static signal_t GetType (name_t name)
 Finds a message type from a name. More...
 
static name_t GetName (signal_t type)
 Gets a nessage type name. More...
 

Public Attributes

signal_t type = NONE
 
name_t receiver
 
void * data
 
float delay
 
int limit
 
message_t message_type
 

Member Enumeration Documentation

◆ Type

Enumerator
NONE 
SPAWN 
KILL 
ACTIVATE 
USE 
LOCKED_USE 
OPEN 
CLOSE 
END_OPEN 
END_CLOSE 
TRIGGER 
ENTER_TRIGGER 
EXIT_TRIGGER 
PROGRESS 
LAST_SIGNAL 

Member Function Documentation

◆ GetName()

name_t tram::Signal::GetName ( signal_t  type)
static

Gets a nessage type name.

◆ GetType()

signal_t tram::Signal::GetType ( name_t  name)
static

Finds a message type from a name.

◆ Register()

signal_t tram::Signal::Register ( const char *  name)
static

Registers a new message type.

Returns
Unique message type number.

Member Data Documentation

◆ data

void* tram::Signal::data

◆ delay

float tram::Signal::delay

◆ limit

int tram::Signal::limit

◆ message_type

message_t tram::Signal::message_type

◆ receiver

name_t tram::Signal::receiver

◆ type

signal_t tram::Signal::type = NONE

The documentation for this struct was generated from the following files: