RigsofRods
Soft-body Physics Simulation
Data Structures | Typedefs | Enumerations | Functions
Message queue

Ensures everything gets executed at right time & in right order. More...

+ Collaboration diagram for Message queue:

Data Structures

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

Typedefs

typedef std::queue< Message, std::list< Message > > RoR::GameMsgQueue
 

Enumerations

enum  RoR::MsgType {
  RoR::MSG_INVALID, RoR::MSG_APP_SHUTDOWN_REQUESTED, RoR::MSG_APP_SCREENSHOT_REQUESTED, RoR::MSG_APP_DISPLAY_FULLSCREEN_REQUESTED,
  RoR::MSG_APP_DISPLAY_WINDOWED_REQUESTED, RoR::MSG_APP_MODCACHE_LOAD_REQUESTED, RoR::MSG_APP_MODCACHE_UPDATE_REQUESTED, RoR::MSG_APP_MODCACHE_PURGE_REQUESTED,
  RoR::MSG_APP_LOAD_SCRIPT_REQUESTED, RoR::MSG_APP_UNLOAD_SCRIPT_REQUESTED, RoR::MSG_APP_SCRIPT_THREAD_STATUS, RoR::MSG_APP_REINIT_INPUT_REQUESTED,
  RoR::MSG_NET_CONNECT_REQUESTED, RoR::MSG_NET_CONNECT_STARTED, RoR::MSG_NET_CONNECT_PROGRESS, RoR::MSG_NET_CONNECT_SUCCESS,
  RoR::MSG_NET_CONNECT_FAILURE, RoR::MSG_NET_SERVER_KICK, RoR::MSG_NET_DISCONNECT_REQUESTED, RoR::MSG_NET_USER_DISCONNECT,
  RoR::MSG_NET_RECV_ERROR, RoR::MSG_NET_REFRESH_SERVERLIST_SUCCESS, RoR::MSG_NET_REFRESH_SERVERLIST_FAILURE, RoR::MSG_NET_REFRESH_REPOLIST_SUCCESS,
  RoR::MSG_NET_OPEN_RESOURCE_SUCCESS, RoR::MSG_NET_REFRESH_REPOLIST_FAILURE, RoR::MSG_NET_FETCH_AI_PRESETS_SUCCESS, RoR::MSG_NET_FETCH_AI_PRESETS_FAILURE,
  RoR::MSG_SIM_PAUSE_REQUESTED, RoR::MSG_SIM_UNPAUSE_REQUESTED, RoR::MSG_SIM_LOAD_TERRN_REQUESTED, RoR::MSG_SIM_LOAD_SAVEGAME_REQUESTED,
  RoR::MSG_SIM_UNLOAD_TERRN_REQUESTED, RoR::MSG_SIM_SPAWN_ACTOR_REQUESTED, RoR::MSG_SIM_MODIFY_ACTOR_REQUESTED, RoR::MSG_SIM_DELETE_ACTOR_REQUESTED,
  RoR::MSG_SIM_SEAT_PLAYER_REQUESTED, RoR::MSG_SIM_TELEPORT_PLAYER_REQUESTED, RoR::MSG_SIM_HIDE_NET_ACTOR_REQUESTED, RoR::MSG_SIM_UNHIDE_NET_ACTOR_REQUESTED,
  RoR::MSG_SIM_SCRIPT_EVENT_TRIGGERED, RoR::MSG_SIM_SCRIPT_CALLBACK_QUEUED, RoR::MSG_SIM_ACTOR_LINKING_REQUESTED, RoR::MSG_SIM_ADD_FREEFORCE_REQUESTED,
  RoR::MSG_SIM_MODIFY_FREEFORCE_REQUESTED, RoR::MSG_SIM_REMOVE_FREEFORCE_REQUESTED, RoR::MSG_GUI_OPEN_MENU_REQUESTED, RoR::MSG_GUI_CLOSE_MENU_REQUESTED,
  RoR::MSG_GUI_OPEN_SELECTOR_REQUESTED, RoR::MSG_GUI_CLOSE_SELECTOR_REQUESTED, RoR::MSG_GUI_MP_CLIENTS_REFRESH, RoR::MSG_GUI_SHOW_MESSAGE_BOX_REQUESTED,
  RoR::MSG_GUI_HIDE_MESSAGE_BOX_REQUESTED, RoR::MSG_GUI_DOWNLOAD_PROGRESS, RoR::MSG_GUI_DOWNLOAD_FINISHED, RoR::MSG_GUI_REFRESH_TUNING_MENU_REQUESTED,
  RoR::MSG_EDI_MODIFY_GROUNDMODEL_REQUESTED, RoR::MSG_EDI_ENTER_TERRN_EDITOR_REQUESTED, RoR::MSG_EDI_LEAVE_TERRN_EDITOR_REQUESTED, RoR::MSG_EDI_LOAD_BUNDLE_REQUESTED,
  RoR::MSG_EDI_RELOAD_BUNDLE_REQUESTED, RoR::MSG_EDI_UNLOAD_BUNDLE_REQUESTED, RoR::MSG_EDI_CREATE_PROJECT_REQUESTED, RoR::MSG_EDI_MODIFY_PROJECT_REQUESTED,
  RoR::MSG_EDI_DELETE_PROJECT_REQUESTED
}
 Global gameplay message loop, see struct Message in GameContext.h. More...
 

Functions

const char * RoR::MsgTypeToString (MsgType type)
 

Detailed Description

Ensures everything gets executed at right time & in right order.

Typedef Documentation

◆ GameMsgQueue

typedef std::queue< Message, std::list<Message> > RoR::GameMsgQueue

Definition at line 63 of file GameContext.h.

Enumeration Type Documentation

◆ MsgType

Global gameplay message loop, see struct Message in GameContext.h.

Enumerator
MSG_INVALID 
MSG_APP_SHUTDOWN_REQUESTED 
MSG_APP_SCREENSHOT_REQUESTED 
MSG_APP_DISPLAY_FULLSCREEN_REQUESTED 
MSG_APP_DISPLAY_WINDOWED_REQUESTED 
MSG_APP_MODCACHE_LOAD_REQUESTED 
MSG_APP_MODCACHE_UPDATE_REQUESTED 
MSG_APP_MODCACHE_PURGE_REQUESTED 
MSG_APP_LOAD_SCRIPT_REQUESTED 

Payload = RoR::LoadScriptRequest* (owner)

MSG_APP_UNLOAD_SCRIPT_REQUESTED 

Payload = RoR::ScriptUnitId_t* (owner)

MSG_APP_SCRIPT_THREAD_STATUS 

Payload = RoR::ScriptEventArgs* (owner)

MSG_APP_REINIT_INPUT_REQUESTED 
MSG_NET_CONNECT_REQUESTED 
MSG_NET_CONNECT_STARTED 
MSG_NET_CONNECT_PROGRESS 
MSG_NET_CONNECT_SUCCESS 
MSG_NET_CONNECT_FAILURE 
MSG_NET_SERVER_KICK 
MSG_NET_DISCONNECT_REQUESTED 
MSG_NET_USER_DISCONNECT 
MSG_NET_RECV_ERROR 
MSG_NET_REFRESH_SERVERLIST_SUCCESS 

Payload = GUI::MpServerInfoVec* (owner)

MSG_NET_REFRESH_SERVERLIST_FAILURE 

Payload = RoR::CurlFailInfo* (owner)

MSG_NET_REFRESH_REPOLIST_SUCCESS 

Payload = GUI::ResourcesCollection* (owner)

MSG_NET_OPEN_RESOURCE_SUCCESS 

Payload = GUI::ResourcesCollection* (owner)

MSG_NET_REFRESH_REPOLIST_FAILURE 

Payload = RoR::CurlFailInfo* (owner)

MSG_NET_FETCH_AI_PRESETS_SUCCESS 

Description = JSON string.

MSG_NET_FETCH_AI_PRESETS_FAILURE 

Description = message.

MSG_SIM_PAUSE_REQUESTED 
MSG_SIM_UNPAUSE_REQUESTED 
MSG_SIM_LOAD_TERRN_REQUESTED 
MSG_SIM_LOAD_SAVEGAME_REQUESTED 
MSG_SIM_UNLOAD_TERRN_REQUESTED 
MSG_SIM_SPAWN_ACTOR_REQUESTED 

Payload = RoR::ActorSpawnRequest* (owner)

MSG_SIM_MODIFY_ACTOR_REQUESTED 

Payload = RoR::ActorModifyRequest* (owner)

MSG_SIM_DELETE_ACTOR_REQUESTED 

Payload = RoR::ActorPtr* (owner)

MSG_SIM_SEAT_PLAYER_REQUESTED 

Payload = RoR::ActorPtr (owner) | nullptr.

MSG_SIM_TELEPORT_PLAYER_REQUESTED 

Payload = Ogre::Vector3* (owner)

MSG_SIM_HIDE_NET_ACTOR_REQUESTED 

Payload = ActorPtr* (owner)

MSG_SIM_UNHIDE_NET_ACTOR_REQUESTED 

Payload = ActorPtr* (owner)

MSG_SIM_SCRIPT_EVENT_TRIGGERED 

Payload = RoR::ScriptEventArgs* (owner)

MSG_SIM_SCRIPT_CALLBACK_QUEUED 

Payload = RoR::ScriptCallbackArgs* (owner)

MSG_SIM_ACTOR_LINKING_REQUESTED 

Payload = RoR::ActorLinkingRequest* (owner)

MSG_SIM_ADD_FREEFORCE_REQUESTED 

Payload = RoR::FreeForceRequest* (owner)

MSG_SIM_MODIFY_FREEFORCE_REQUESTED 

Payload = RoR::FreeForceRequest* (owner)

MSG_SIM_REMOVE_FREEFORCE_REQUESTED 

Payload = RoR::FreeForceID_t* (owner)

MSG_GUI_OPEN_MENU_REQUESTED 
MSG_GUI_CLOSE_MENU_REQUESTED 
MSG_GUI_OPEN_SELECTOR_REQUESTED 

Payload = LoaderType* (owner), Description = GUID | empty.

MSG_GUI_CLOSE_SELECTOR_REQUESTED 
MSG_GUI_MP_CLIENTS_REFRESH 
MSG_GUI_SHOW_MESSAGE_BOX_REQUESTED 

Payload = MessageBoxConfig* (owner)

MSG_GUI_HIDE_MESSAGE_BOX_REQUESTED 
MSG_GUI_DOWNLOAD_PROGRESS 
MSG_GUI_DOWNLOAD_FINISHED 
MSG_GUI_REFRESH_TUNING_MENU_REQUESTED 
MSG_EDI_MODIFY_GROUNDMODEL_REQUESTED 

Payload = RoR::ground_model_t* (weak)

MSG_EDI_ENTER_TERRN_EDITOR_REQUESTED 
MSG_EDI_LEAVE_TERRN_EDITOR_REQUESTED 
MSG_EDI_LOAD_BUNDLE_REQUESTED 

Payload = RoR::CacheEntryPtr* (owner)

MSG_EDI_RELOAD_BUNDLE_REQUESTED 

Payload = RoR::CacheEntryPtr* (owner)

MSG_EDI_UNLOAD_BUNDLE_REQUESTED 

Payload = RoR::CacheEntryPtr* (owner)

MSG_EDI_CREATE_PROJECT_REQUESTED 

Payload = RoR::CreateProjectRequest* (owner)

MSG_EDI_MODIFY_PROJECT_REQUESTED 

Payload = RoR::UpdateProjectRequest* (owner)

MSG_EDI_DELETE_PROJECT_REQUESTED 

Payload = RoR::CacheEntryPtr* (owner)

Definition at line 74 of file Application.h.

Function Documentation

◆ MsgTypeToString()

const char * RoR::MsgTypeToString ( MsgType  type)

Definition at line 557 of file Application.cpp.

+ Here is the caller graph for this function: