Tramway SDK
Public Types | Public Attributes | List of all members
tram::ListenerInfo Struct Reference

Public Types

enum  ListenerType : int64_t { LISTENER_COMPONENT , LISTENER_ENTITY , LISTENER_DATA_FUNCTION , LISTENER_FUNCTION }
 

Public Attributes

union {
   EntityComponent *   component = nullptr
 
   Entity *   entity
 
   void(*   data_function )(Event &event, void *data)
 
   void(*   function )(Event &event)
 
}; 
 
void * data
 
listener_t handle = -1
 
ListenerType type = LISTENER_COMPONENT
 

Member Enumeration Documentation

◆ ListenerType

Enumerator
LISTENER_COMPONENT 
LISTENER_ENTITY 
LISTENER_DATA_FUNCTION 
LISTENER_FUNCTION 

Member Data Documentation

◆ 

union { ... } tram::ListenerInfo::@24

◆ component

EntityComponent* tram::ListenerInfo::component = nullptr

◆ data

void* tram::ListenerInfo::data

◆ data_function

void(* tram::ListenerInfo::data_function) (Event &event, void *data)

◆ entity

Entity* tram::ListenerInfo::entity

◆ function

void(* tram::ListenerInfo::function) (Event &event)

◆ handle

listener_t tram::ListenerInfo::handle = -1

◆ type

ListenerType tram::ListenerInfo::type = LISTENER_COMPONENT

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