RigsofRods
Soft-body Physics Simulation
Public Member Functions | Data Fields
RoR::Message Struct Reference

Unified game event system - all requests and state changes are reported using a message. More...

#include <GameContext.h>

Public Member Functions

 Message (MsgType _type)
 
 Message (MsgType _type, std::string const &_desc)
 
 Message (MsgType _type, void *_data)
 

Data Fields

MsgType type = MSG_INVALID
 
std::string description
 
void * payload = nullptr
 
std::vector< Messagechain
 Posted after the message is processed. More...
 

Detailed Description

Unified game event system - all requests and state changes are reported using a message.

Definition at line 51 of file GameContext.h.

Constructor & Destructor Documentation

◆ Message() [1/3]

RoR::Message::Message ( MsgType  _type)
inline

Definition at line 53 of file GameContext.h.

◆ Message() [2/3]

RoR::Message::Message ( MsgType  _type,
std::string const &  _desc 
)
inline

Definition at line 54 of file GameContext.h.

◆ Message() [3/3]

RoR::Message::Message ( MsgType  _type,
void *  _data 
)
inline

Definition at line 55 of file GameContext.h.

Field Documentation

◆ chain

std::vector<Message> RoR::Message::chain

Posted after the message is processed.

Definition at line 60 of file GameContext.h.

◆ description

std::string RoR::Message::description

Definition at line 58 of file GameContext.h.

◆ payload

void* RoR::Message::payload = nullptr

Definition at line 59 of file GameContext.h.

◆ type

MsgType RoR::Message::type = MSG_INVALID

Definition at line 57 of file GameContext.h.


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