RigsofRods
Soft-body Physics Simulation
Application.cpp
Go to the documentation of this file.
1 /*
2  This source file is part of Rigs of Rods
3  Copyright 2005-2012 Pierre-Michel Ricordel
4  Copyright 2007-2012 Thomas Fischer
5  Copyright 2013-2020 Petr Ohlidal
6 
7  For more information see http://www.rigsofrods.org/
8 
9  Rigs of Rods is free software: you can redistribute it and/or modify
10  it under the terms of the GNU General Public License version 3, as
11  published by the Free Software Foundation.
12 
13  Rigs of Rods is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with Rigs of Rods. If not, see <http://www.gnu.org/licenses/>.
20 */
21 
25 
26 #include "Application.h"
27 
28 #include "AppContext.h"
29 #include "CacheSystem.h"
30 #include "CameraManager.h"
31 #include "Console.h"
32 #include "ContentManager.h"
33 #include "DiscordRpc.h"
34 #include "GameContext.h"
35 #include "GfxScene.h"
36 #include "GUIManager.h"
37 #include "InputEngine.h"
38 #include "Language.h"
39 #include "OutGauge.h"
40 #include "OverlayWrapper.h"
41 #include "MumbleIntegration.h"
42 #include "Network.h"
43 #include "ScriptEngine.h"
44 #include "SoundScriptManager.h"
45 #include "Terrain.h"
46 #include "ThreadPool.h"
47 
48 namespace RoR {
49 namespace App {
50 
51 // ------------------------------------------------------------------------------------------------
52 // Global variables
53 // ------------------------------------------------------------------------------------------------
54 
55 // Object instances
67 static MumbleIntegration* g_mumble;
74 #if USE_SOCKETW
76 #endif
77 
78 // App
94 
95 // Simulation
113 
114 // Multiplayer
128 
129 // New remote API
131 
132 // Diagnostic
160 
161 // System
174 
175 // OS command line
187 
188 // Input - Output
207 
208 // Audio
213 
214 // Graphics
251 
252 // Flexbodies
260 
261 // GUI
264 
265 // Instance access
270 Console* GetConsole () { return &g_console;}
273 MumbleIntegration* GetMumble () { return g_mumble; }
283 #if USE_SOCKETW
284  Network* GetNetwork () { return &g_network; }
285 #else
286  Network* GetNetwork () { return nullptr; }
287 #endif
288 
289 // Factories
291 {
294 }
295 
297 {
299  g_gui_manager = new GUIManager();
300 }
301 
303 {
305  g_input_engine = new InputEngine();
306 }
307 
309 {
310 #ifdef USE_MUMBLE // The class is always forward-declared but only defined if USE_MUMBLE is defined
312  g_mumble = new MumbleIntegration();
313 #endif // USE_MUMBLE
314 }
315 
317 {
318  ROR_ASSERT(g_thread_pool == nullptr);
320 }
321 
323 {
326 }
327 
329 {
331  g_gfx_scene.Init();
332 }
333 
335 {
336 #if USE_OPENAL
339 #endif
340 }
341 
343 {
344 #if USE_ANGELSCRIPT
347 #endif
348 }
349 
350 // Cleanup
352 {
353  delete g_overlay_wrapper;
354  g_overlay_wrapper = nullptr;
355 }
356 
358 {
359  delete g_input_engine;
360  g_input_engine = nullptr;
361 }
362 
363 } // namespace App
364 
365 // ------------------------------------------------------------------------------------------------
366 // Global exception handling
367 // ------------------------------------------------------------------------------------------------
368 
369 void HandleGenericException(const std::string& from, BitMask_t flags)
370 {
371  try
372  {
373  throw; // rethrow
374  }
375  catch (Ogre::Exception& oex)
376  {
377  if (flags & HANDLEGENERICEXCEPTION_CONSOLE)
379  else if (flags & HANDLEGENERICEXCEPTION_LOGFILE)
380  LOG(fmt::format("{}: {}", from, oex.getDescription()));
381 #ifdef USE_ANGELSCRIPT
384 #endif
385  }
386  catch (std::exception& stex)
387  {
388  if (flags & HANDLEGENERICEXCEPTION_CONSOLE)
390  else if (flags & HANDLEGENERICEXCEPTION_LOGFILE)
391  LOG(fmt::format("{}: {}", from, stex.what()));
392 #ifdef USE_ANGELSCRIPT
395 #endif
396  }
397  catch (...)
398  {
399  if (flags & HANDLEGENERICEXCEPTION_CONSOLE)
401  else if (flags & HANDLEGENERICEXCEPTION_LOGFILE)
402  LOG(fmt::format("{}: Unknown exception", from));
403 #ifdef USE_ANGELSCRIPT
406 #endif
407  }
408 }
409 
411 {
413 }
414 
415 // ------------------------------------------------------------------------------------------------
416 // Global logging
417 // ------------------------------------------------------------------------------------------------
418 
419 void Log(const char* msg)
420 {
421  Ogre::LogManager::getSingleton().logMessage(msg);
422 }
423 
424 void LogFormat(const char* format, ...)
425 {
426  char buffer[2000] = {};
427 
428  va_list args;
429  va_start(args, format);
430  vsprintf(buffer, format, args);
431  va_end(args);
432 
433  RoR::Log(buffer);
434 }
435 
436 // ------------------------------------------------------------------------------------------------
437 // Global enums
438 // ------------------------------------------------------------------------------------------------
439 
441 {
442  switch (e)
443  {
444  case SimGearboxMode::AUTO: return _LC("SimGearboxMode", "Automatic shift");
445  case SimGearboxMode::SEMI_AUTO: return _LC("SimGearboxMode", "Manual shift with auto clutch");
446  case SimGearboxMode::MANUAL: return _LC("SimGearboxMode", "Fully manual: sequential shift");
447  case SimGearboxMode::MANUAL_STICK: return _LC("SimGearboxMode", "Fully manual: stick shift");
448  case SimGearboxMode::MANUAL_RANGES: return _LC("SimGearboxMode", "Fully manual: stick shift with ranges");
449  default: return "";
450  }
451 }
452 
454 {
455  switch (e)
456  {
457  case GfxFlaresMode::NONE: return _LC("GfxFlaresMode", "None (fastest)");
458  case GfxFlaresMode::NO_LIGHTSOURCES: return _LC("GfxFlaresMode", "No light sources");
459  case GfxFlaresMode::CURR_VEHICLE_HEAD_ONLY: return _LC("GfxFlaresMode", "Only current vehicle, main lights");
460  case GfxFlaresMode::ALL_VEHICLES_HEAD_ONLY: return _LC("GfxFlaresMode", "All vehicles, main lights");
461  case GfxFlaresMode::ALL_VEHICLES_ALL_LIGHTS: return _LC("GfxFlaresMode", "All vehicles, all lights");
462  default: return "";
463  }
464 }
465 
467 {
468  switch (e)
469  {
470  case GfxShadowType::NONE: return _LC("GfxShadowType", "Disabled");
471  case GfxShadowType::PSSM: return _LC("GfxShadowType", "PSSM");
472  default: return "";
473  }
474 }
475 
477 {
478  switch (e)
479  {
480  case GfxSkyMode::SANDSTORM: return _LC("GfxSkyMode", "Sandstorm (fastest)");
481  case GfxSkyMode::CAELUM: return _LC("GfxSkyMode", "Caelum (best looking, slower)");
482  case GfxSkyMode::SKYX: return _LC("GfxSkyMode", "SkyX (best looking, slower)");
483  default: return "";
484  }
485 }
486 
488 {
489  switch (e)
490  {
491  case GfxTexFilter::NONE: return _LC("GfxTexFilter", "None");
492  case GfxTexFilter::BILINEAR: return _LC("GfxTexFilter", "Bilinear");
493  case GfxTexFilter::TRILINEAR: return _LC("GfxTexFilter", "Trilinear");
494  case GfxTexFilter::ANISOTROPIC: return _LC("GfxTexFilter", "Anisotropic");
495  default: return "";
496  }
497 }
498 
500 {
501  switch (e)
502  {
503  case GfxVegetation::NONE: return _LC("GfxVegetation", "None");
504  case GfxVegetation::x20PERC: return _LC("GfxVegetation", "20%");
505  case GfxVegetation::x50PERC: return _LC("GfxVegetation", "50%");
506  case GfxVegetation::FULL: return _LC("GfxVegetation", "Full");
507  default: return "";
508  }
509 }
510 
512 {
513  switch (e)
514  {
515  case GfxWaterMode::NONE: return _LC("GfxWaterMode", "None");
516  case GfxWaterMode::BASIC: return _LC("GfxWaterMode", "Basic (fastest)");
517  case GfxWaterMode::REFLECT: return _LC("GfxWaterMode", "Reflection");
518  case GfxWaterMode::FULL_FAST: return _LC("GfxWaterMode", "Reflection + refraction (speed optimized)");
519  case GfxWaterMode::FULL_HQ: return _LC("GfxWaterMode", "Reflection + refraction (quality optimized)");
520  case GfxWaterMode::HYDRAX: return _LC("GfxWaterMode", "HydraX");
521  default: return "";
522  }
523 }
524 
526 {
527  switch (e)
528  {
529  case GfxExtCamMode::NONE: return _LC("GfxExtCamMode", "None");
530  case GfxExtCamMode::STATIC: return _LC("GfxExtCamMode", "Static");
531  case GfxExtCamMode::PITCHING: return _LC("GfxExtCamMode", "Pitching");
532  default: return "";
533  }
534 }
535 
537 {
538  switch (e)
539  {
540  case IoInputGrabMode::NONE: return _LC("IoInputGrabMode", "None");
541  case IoInputGrabMode::ALL: return _LC("IoInputGrabMode", "All");
542  case IoInputGrabMode::DYNAMIC: return _LC("IoInputGrabMode", "Dynamic");
543  default: return "";
544  }
545 }
546 
548 {
549  switch (e)
550  {
551  case SimResetMode::HARD: return _LC("SimResetMode", "Hard");
552  case SimResetMode::SOFT: return _LC("SimResetMode", "Soft");
553  default: return "";
554  }
555 }
556 
557 const char* MsgTypeToString(MsgType type)
558 {
559  switch (type)
560  {
561  case MSG_APP_SHUTDOWN_REQUESTED : return "MSG_APP_SHUTDOWN_REQUESTED";
562  case MSG_APP_SCREENSHOT_REQUESTED : return "MSG_APP_SCREENSHOT_REQUESTED";
563  case MSG_APP_DISPLAY_FULLSCREEN_REQUESTED : return "MSG_APP_DISPLAY_FULLSCREEN_REQUESTED";
564  case MSG_APP_DISPLAY_WINDOWED_REQUESTED : return "MSG_APP_DISPLAY_WINDOWED_REQUESTED";
565  case MSG_APP_MODCACHE_LOAD_REQUESTED : return "MSG_APP_MODCACHE_LOAD_REQUESTED";
566  case MSG_APP_MODCACHE_UPDATE_REQUESTED : return "MSG_APP_MODCACHE_UPDATE_REQUESTED";
567  case MSG_APP_MODCACHE_PURGE_REQUESTED : return "MSG_APP_MODCACHE_PURGE_REQUESTED";
568  case MSG_APP_LOAD_SCRIPT_REQUESTED : return "MSG_APP_LOAD_SCRIPT_REQUESTED";
569  case MSG_APP_UNLOAD_SCRIPT_REQUESTED : return "MSG_APP_UNLOAD_SCRIPT_REQUESTED";
570  case MSG_APP_SCRIPT_THREAD_STATUS : return "MSG_APP_SCRIPT_THREAD_STATUS";
571  case MSG_APP_REINIT_INPUT_REQUESTED : return "MSG_APP_REINIT_INPUT_REQUESTED";
572 
573  case MSG_NET_CONNECT_REQUESTED : return "MSG_NET_CONNECT_REQUESTED";
574  case MSG_NET_CONNECT_STARTED : return "MSG_NET_CONNECT_STARTED";
575  case MSG_NET_CONNECT_PROGRESS : return "MSG_NET_CONNECT_PROGRESS";
576  case MSG_NET_CONNECT_SUCCESS : return "MSG_NET_CONNECT_SUCCESS";
577  case MSG_NET_CONNECT_FAILURE : return "MSG_NET_CONNECT_FAILURE";
578  case MSG_NET_SERVER_KICK : return "MSG_NET_SERVER_KICK";
579  case MSG_NET_DISCONNECT_REQUESTED : return "MSG_NET_DISCONNECT_REQUESTED";
580  case MSG_NET_USER_DISCONNECT : return "MSG_NET_USER_DISCONNECT";
581  case MSG_NET_RECV_ERROR : return "MSG_NET_RECV_ERROR";
582  case MSG_NET_REFRESH_SERVERLIST_SUCCESS : return "MSG_NET_REFRESH_SERVERLIST_SUCCESS";
583  case MSG_NET_REFRESH_SERVERLIST_FAILURE : return "MSG_NET_REFRESH_SERVERLIST_FAILURE";
584  case MSG_NET_REFRESH_REPOLIST_SUCCESS : return "MSG_NET_REFRESH_REPOLIST_SUCCESS";
585  case MSG_NET_OPEN_RESOURCE_SUCCESS : return "MSG_NET_OPEN_RESOURCE_SUCCESS";
586  case MSG_NET_REFRESH_REPOLIST_FAILURE : return "MSG_NET_REFRESH_REPOLIST_FAILURE";
587  case MSG_NET_FETCH_AI_PRESETS_SUCCESS : return "MSG_NET_FETCH_AI_PRESETS_SUCCESS";
588  case MSG_NET_FETCH_AI_PRESETS_FAILURE : return "MSG_NET_FETCH_AI_PRESETS_FAILURE";
589 
590  case MSG_SIM_PAUSE_REQUESTED : return "MSG_SIM_PAUSE_REQUESTED";
591  case MSG_SIM_UNPAUSE_REQUESTED : return "MSG_SIM_UNPAUSE_REQUESTED";
592  case MSG_SIM_LOAD_TERRN_REQUESTED : return "MSG_SIM_LOAD_TERRN_REQUESTED";
593  case MSG_SIM_LOAD_SAVEGAME_REQUESTED : return "MSG_SIM_LOAD_SAVEGAME_REQUESTED";
594  case MSG_SIM_UNLOAD_TERRN_REQUESTED : return "MSG_SIM_UNLOAD_TERRN_REQUESTED";
595  case MSG_SIM_SPAWN_ACTOR_REQUESTED : return "MSG_SIM_SPAWN_ACTOR_REQUESTED";
596  case MSG_SIM_MODIFY_ACTOR_REQUESTED : return "MSG_SIM_MODIFY_ACTOR_REQUESTED";
597  case MSG_SIM_DELETE_ACTOR_REQUESTED : return "MSG_SIM_DELETE_ACTOR_REQUESTED";
598  case MSG_SIM_SEAT_PLAYER_REQUESTED : return "MSG_SIM_SEAT_PLAYER_REQUESTED";
599  case MSG_SIM_TELEPORT_PLAYER_REQUESTED : return "MSG_SIM_TELEPORT_PLAYER_REQUESTED";
600  case MSG_SIM_HIDE_NET_ACTOR_REQUESTED : return "MSG_SIM_HIDE_NET_ACTOR_REQUESTED";
601  case MSG_SIM_UNHIDE_NET_ACTOR_REQUESTED : return "MSG_SIM_UNHIDE_NET_ACTOR_REQUESTED";
602  case MSG_SIM_SCRIPT_EVENT_TRIGGERED : return "MSG_SIM_SCRIPT_EVENT_TRIGGERED";
603  case MSG_SIM_SCRIPT_CALLBACK_QUEUED : return "MSG_SIM_SCRIPT_CALLBACK_QUEUED";
604  case MSG_SIM_ACTOR_LINKING_REQUESTED : return "MSG_SIM_ACTOR_LINKING_REQUESTED";
605  case MSG_SIM_ADD_FREEFORCE_REQUESTED : return "MSG_SIM_ADD_FREEFORCE_REQUESTED";
606  case MSG_SIM_MODIFY_FREEFORCE_REQUESTED : return "MSG_SIM_MODIFY_FREEFORCE_REQUESTED";
607  case MSG_SIM_REMOVE_FREEFORCE_REQUESTED : return "MSG_SIM_REMOVE_FREEFORCE_REQUESTED";
608 
609  case MSG_GUI_OPEN_MENU_REQUESTED : return "MSG_GUI_OPEN_MENU_REQUESTED";
610  case MSG_GUI_CLOSE_MENU_REQUESTED : return "MSG_GUI_CLOSE_MENU_REQUESTED";
611  case MSG_GUI_OPEN_SELECTOR_REQUESTED : return "MSG_GUI_OPEN_SELECTOR_REQUESTED";
612  case MSG_GUI_CLOSE_SELECTOR_REQUESTED : return "MSG_GUI_CLOSE_SELECTOR_REQUESTED";
613  case MSG_GUI_MP_CLIENTS_REFRESH : return "MSG_GUI_MP_CLIENTS_REFRESH";
614  case MSG_GUI_SHOW_MESSAGE_BOX_REQUESTED : return "MSG_GUI_SHOW_MESSAGE_BOX_REQUESTED";
615  case MSG_GUI_HIDE_MESSAGE_BOX_REQUESTED : return "MSG_GUI_HIDE_MESSAGE_BOX_REQUESTED";
616  case MSG_GUI_DOWNLOAD_PROGRESS : return "MSG_GUI_DOWNLOAD_PROGRESS";
617  case MSG_GUI_DOWNLOAD_FINISHED : return "MSG_GUI_DOWNLOAD_FINISHED";
618  case MSG_GUI_REFRESH_TUNING_MENU_REQUESTED: return "MSG_GUI_REFRESH_TUNING_MENU_REQUESTED";
619 
620  case MSG_EDI_MODIFY_GROUNDMODEL_REQUESTED : return "MSG_EDI_MODIFY_GROUNDMODEL_REQUESTED";
621  case MSG_EDI_ENTER_TERRN_EDITOR_REQUESTED : return "MSG_EDI_ENTER_TERRN_EDITOR_REQUESTED";
622  case MSG_EDI_LEAVE_TERRN_EDITOR_REQUESTED : return "MSG_EDI_LEAVE_TERRN_EDITOR_REQUESTED";
623  case MSG_EDI_LOAD_BUNDLE_REQUESTED : return "MSG_EDI_LOAD_BUNDLE_REQUESTED";
624  case MSG_EDI_RELOAD_BUNDLE_REQUESTED : return "MSG_EDI_RELOAD_BUNDLE_REQUESTED";
625  case MSG_EDI_UNLOAD_BUNDLE_REQUESTED : return "MSG_EDI_UNLOAD_BUNDLE_REQUESTED";
626  case MSG_EDI_CREATE_PROJECT_REQUESTED : return "MSG_EDI_CREATE_PROJECT_REQUESTED";
627  case MSG_EDI_MODIFY_PROJECT_REQUESTED : return "MSG_EDI_MODIFY_PROJECT_REQUESTED";
628  case MSG_EDI_DELETE_PROJECT_REQUESTED : return "MSG_EDI_DELETE_PROJECT_REQUESTED";
629 
630  default: return "";
631  }
632 }
633 
634 } // namespace RoR
RoR::InputEngine
Manages controller configuration, evaluates input events.
Definition: InputEngine.h:458
RoR::App::sys_user_dir
CVar * sys_user_dir
Definition: Application.cpp:163
RoR::MSG_EDI_MODIFY_PROJECT_REQUESTED
@ MSG_EDI_MODIFY_PROJECT_REQUESTED
Payload = RoR::UpdateProjectRequest* (owner)
Definition: Application.h:151
ROR_ASSERT
#define ROR_ASSERT(_EXPR)
Definition: Application.h:40
GameContext.h
Game state manager and message-queue provider.
RoR::App::diag_truck_mass
CVar * diag_truck_mass
Definition: Application.cpp:137
RoR::App::CreateMumble
void CreateMumble()
Definition: Application.cpp:308
RoR::App::io_invert_orbitcam
CVar * io_invert_orbitcam
Definition: Application.cpp:206
RoR::MSG_SIM_LOAD_TERRN_REQUESTED
@ MSG_SIM_LOAD_TERRN_REQUESTED
Definition: Application.h:116
RoR::App::gfx_envmap_rate
CVar * gfx_envmap_rate
Definition: Application.cpp:233
RoR::App::diag_rig_log_node_import
CVar * diag_rig_log_node_import
Definition: Application.cpp:135
RoR::GfxSkyMode::SANDSTORM
@ SANDSTORM
Sandstorm (fastest)
RoR::App::CreateScriptEngine
void CreateScriptEngine()
Definition: Application.cpp:342
RoR::App::sim_quickload_dialog
CVar * sim_quickload_dialog
Definition: Application.cpp:110
RoR::App::gfx_polygon_mode
CVar * gfx_polygon_mode
Definition: Application.cpp:216
RoR::ScriptEngine
This class represents the angelscript scripting interface.
Definition: ScriptEngine.h:119
RoR::App::GetNetwork
Network * GetNetwork()
Definition: Application.cpp:284
RoR::MSG_SIM_REMOVE_FREEFORCE_REQUESTED
@ MSG_SIM_REMOVE_FREEFORCE_REQUESTED
Payload = RoR::FreeForceID_t* (owner)
Definition: Application.h:131
RoR::App::cli_force_cache_update
CVar * cli_force_cache_update
Definition: Application.cpp:184
RoR::App::GetContentManager
ContentManager * GetContentManager()
Definition: Application.cpp:267
RoR::App::GetSoundScriptManager
SoundScriptManager * GetSoundScriptManager()
Definition: Application.cpp:277
RoR::MSG_GUI_SHOW_MESSAGE_BOX_REQUESTED
@ MSG_GUI_SHOW_MESSAGE_BOX_REQUESTED
Payload = MessageBoxConfig* (owner)
Definition: Application.h:138
RoR::SimResetMode
SimResetMode
Definition: Application.h:275
RoR::App::sim_replay_stepping
CVar * sim_replay_stepping
Definition: Application.cpp:103
RoR::App::diag_warning_texture
CVar * diag_warning_texture
Definition: Application.cpp:151
RoR::App::GetLanguageEngine
LanguageEngine * GetLanguageEngine()
Definition: Application.cpp:278
RoR::App::gfx_speedo_imperial
CVar * gfx_speedo_imperial
Definition: Application.cpp:246
RoR::App::gfx_fov_internal
CVar * gfx_fov_internal
Definition: Application.cpp:240
RoR::CameraManager
Definition: CameraManager.h:37
RoR::App::CreateCameraManager
void CreateCameraManager()
Definition: Application.cpp:322
RoR::MSG_SIM_MODIFY_ACTOR_REQUESTED
@ MSG_SIM_MODIFY_ACTOR_REQUESTED
Payload = RoR::ActorModifyRequest* (owner)
Definition: Application.h:120
RoR::App::mp_hide_net_labels
CVar * mp_hide_net_labels
Definition: Application.cpp:118
RoR::App::diag_preset_vehicle
CVar * diag_preset_vehicle
Definition: Application.cpp:143
RoR::App::g_input_engine
static InputEngine * g_input_engine
Definition: Application.cpp:65
OverlayWrapper.h
RoR::App::cli_resume_autosave
CVar * cli_resume_autosave
Definition: Application.cpp:185
RoR::MSG_EDI_RELOAD_BUNDLE_REQUESTED
@ MSG_EDI_RELOAD_BUNDLE_REQUESTED
Payload = RoR::CacheEntryPtr* (owner)
Definition: Application.h:148
RoR::App::g_overlay_wrapper
static OverlayWrapper * g_overlay_wrapper
Definition: Application.cpp:68
RoR::MSG_APP_REINIT_INPUT_REQUESTED
@ MSG_APP_REINIT_INPUT_REQUESTED
Definition: Application.h:95
RoR::GfxShadowType::NONE
@ NONE
RoR::App::sys_resources_dir
CVar * sys_resources_dir
Definition: Application.cpp:168
RoR::App::g_camera_manager
static CameraManager * g_camera_manager
Definition: Application.cpp:58
RoR::MSG_SIM_SCRIPT_CALLBACK_QUEUED
@ MSG_SIM_SCRIPT_CALLBACK_QUEUED
Payload = RoR::ScriptCallbackArgs* (owner)
Definition: Application.h:127
RoR::App::sys_scripts_dir
CVar * sys_scripts_dir
Definition: Application.cpp:172
RoR::App::io_discord_rpc
CVar * io_discord_rpc
Definition: Application.cpp:205
RoR::MSG_NET_USER_DISCONNECT
@ MSG_NET_USER_DISCONNECT
Definition: Application.h:104
RoR::App::GetCameraManager
CameraManager * GetCameraManager()
Definition: Application.cpp:275
RoR::App::diag_actor_dump
CVar * diag_actor_dump
Definition: Application.cpp:158
RoR::App::app_skip_main_menu
CVar * app_skip_main_menu
Definition: Application.cpp:82
RoR::App::GetGuiManager
GUIManager * GetGuiManager()
Definition: Application.cpp:269
RoR::App::mp_api_url
CVar * mp_api_url
Definition: Application.cpp:126
RoR::App::diag_hide_broken_beams
CVar * diag_hide_broken_beams
Definition: Application.cpp:152
RoR::MSG_EDI_CREATE_PROJECT_REQUESTED
@ MSG_EDI_CREATE_PROJECT_REQUESTED
Payload = RoR::CreateProjectRequest* (owner)
Definition: Application.h:150
RoR::App::sim_soft_reset_mode
CVar * sim_soft_reset_mode
Definition: Application.cpp:109
RoR::SimResetMode::SOFT
@ SOFT
RoR::GfxExtCamMode::PITCHING
@ PITCHING
RoR::MSG_EDI_UNLOAD_BUNDLE_REQUESTED
@ MSG_EDI_UNLOAD_BUNDLE_REQUESTED
Payload = RoR::CacheEntryPtr* (owner)
Definition: Application.h:149
RoR::App::mp_player_name
CVar * mp_player_name
Definition: Application.cpp:124
RoR::App::g_script_engine
static ScriptEngine * g_script_engine
Definition: Application.cpp:70
RoR::App::mp_player_token
CVar * mp_player_token
Definition: Application.cpp:125
RoR::HandleMsgQueueException
void HandleMsgQueueException(MsgType from)
Definition: Application.cpp:410
RoR::GfxTexFilter::ANISOTROPIC
@ ANISOTROPIC
RoR::App::gfx_fixed_cam_tracking
CVar * gfx_fixed_cam_tracking
Definition: Application.cpp:243
RoR::MSG_SIM_UNLOAD_TERRN_REQUESTED
@ MSG_SIM_UNLOAD_TERRN_REQUESTED
Definition: Application.h:118
ContentManager.h
RoR::GfxWaterMode
GfxWaterMode
Definition: Application.h:248
RoR::App::gfx_skidmarks_mode
CVar * gfx_skidmarks_mode
Definition: Application.cpp:235
ThreadPool.h
RoR::App::cli_preset_vehicle
CVar * cli_preset_vehicle
Definition: Application.cpp:178
RoR::App::GetAppContext
AppContext * GetAppContext()
Definition: Application.cpp:266
RoR::MSG_GUI_CLOSE_SELECTOR_REQUESTED
@ MSG_GUI_CLOSE_SELECTOR_REQUESTED
Definition: Application.h:136
RoR::App::sim_live_repair_interval
CVar * sim_live_repair_interval
Hold EV_COMMON_REPAIR_TRUCK to enter LiveRepair mode. 0 or negative interval disables.
Definition: Application.cpp:111
format
Truck file format(technical spec)
RoR::App::app_language
CVar * app_language
Definition: Application.cpp:80
RoR::MSG_SIM_UNPAUSE_REQUESTED
@ MSG_SIM_UNPAUSE_REQUESTED
Definition: Application.h:115
RoR::App::diag_simple_materials
CVar * diag_simple_materials
Definition: Application.cpp:150
RoR::MSG_NET_CONNECT_STARTED
@ MSG_NET_CONNECT_STARTED
Definition: Application.h:98
RoR::MSG_GUI_DOWNLOAD_PROGRESS
@ MSG_GUI_DOWNLOAD_PROGRESS
Definition: Application.h:140
RoR::App::app_force_cache_update
CVar * app_force_cache_update
Definition: Application.cpp:89
RoR::HandleGenericException
void HandleGenericException(const std::string &from, BitMask_t flags)
Definition: Application.cpp:369
RoR::App::gfx_shadow_type
CVar * gfx_shadow_type
Definition: Application.cpp:217
RoR::App::mp_join_on_startup
CVar * mp_join_on_startup
Definition: Application.cpp:116
RoR::App::gfx_particles_mode
CVar * gfx_particles_mode
Definition: Application.cpp:227
RoR::App::gfx_flexbody_cache
CVar * gfx_flexbody_cache
Definition: Application.cpp:247
RoR::App::g_game_context
static GameContext g_game_context
Definition: Application.cpp:62
RoR::App::gfx_extcam_mode
CVar * gfx_extcam_mode
Definition: Application.cpp:218
RoR::App::CreateInputEngine
void CreateInputEngine()
Definition: Application.cpp:302
RoR::App::gfx_enable_videocams
CVar * gfx_enable_videocams
Definition: Application.cpp:228
RoR::App::CreateSoundScriptManager
void CreateSoundScriptManager()
Definition: Application.cpp:334
RoR::App::GetOverlayWrapper
OverlayWrapper * GetOverlayWrapper()
Definition: Application.cpp:268
CameraManager.h
RoR::App::app_num_workers
CVar * app_num_workers
Definition: Application.cpp:84
RoR::MsgTypeToString
const char * MsgTypeToString(MsgType type)
Definition: Application.cpp:557
RoR::LogFormat
void LogFormat(const char *format,...)
Improved logging utility. Uses fixed 2Kb buffer.
Definition: Application.cpp:424
RoR::App::gfx_enable_rtshaders
CVar * gfx_enable_rtshaders
Definition: Application.cpp:249
RoR::App::cli_server_host
CVar * cli_server_host
Definition: Application.cpp:176
RoR::App::io_analog_sensitivity
CVar * io_analog_sensitivity
Definition: Application.cpp:190
RoR::App::sim_replay_length
CVar * sim_replay_length
Definition: Application.cpp:102
RoR::SoundScriptManager
Definition: SoundScriptManager.h:293
RoR::App::io_outgauge_port
CVar * io_outgauge_port
Definition: Application.cpp:202
RoR::App::app_rendersys_override
CVar * app_rendersys_override
Definition: Application.cpp:86
AppContext.h
System integration layer; inspired by OgreBites::ApplicationContext.
RoR::MSG_NET_REFRESH_SERVERLIST_FAILURE
@ MSG_NET_REFRESH_SERVERLIST_FAILURE
Payload = RoR::CurlFailInfo* (owner)
Definition: Application.h:107
Console.h
RoR::GfxWaterMode::NONE
@ NONE
None.
RoR::App::gfx_fov_external_default
CVar * gfx_fov_external_default
Definition: Application.cpp:239
RoR::Console::putMessage
void putMessage(MessageArea area, MessageType type, std::string const &msg, std::string icon="")
Definition: Console.cpp:97
RoR::App::sim_no_self_collisions
CVar * sim_no_self_collisions
Definition: Application.cpp:107
RoR::App::g_discord_rpc
static DiscordRpc g_discord_rpc
Definition: Application.cpp:61
RoR::MSG_NET_RECV_ERROR
@ MSG_NET_RECV_ERROR
Definition: Application.h:105
RoR::App::sys_profiler_dir
CVar * sys_profiler_dir
Definition: Application.cpp:169
RoR::App::io_ffb_enabled
CVar * io_ffb_enabled
Definition: Application.cpp:192
RoR::App::gfx_static_cam_fov_exp
CVar * gfx_static_cam_fov_exp
Definition: Application.cpp:242
RoR::ScriptEngine::forwardExceptionAsScriptEvent
void forwardExceptionAsScriptEvent(const std::string &from)
Forwards useful info from C++ try{}catch{} exceptions to script in the form of game event.
Definition: ScriptEngine.cpp:246
RoR::App::cli_preset_spawn_rot
CVar * cli_preset_spawn_rot
Definition: Application.cpp:182
RoR::MSG_APP_LOAD_SCRIPT_REQUESTED
@ MSG_APP_LOAD_SCRIPT_REQUESTED
Payload = RoR::LoadScriptRequest* (owner)
Definition: Application.h:92
RoR::App::app_country
CVar * app_country
Definition: Application.cpp:81
RoR::App::sim_state
CVar * sim_state
Definition: Application.cpp:96
RoR::App::diag_hide_beam_stress
CVar * diag_hide_beam_stress
Definition: Application.cpp:153
RoR::App::sys_logs_dir
CVar * sys_logs_dir
Definition: Application.cpp:167
RoR::App::app_disable_online_api
CVar * app_disable_online_api
Definition: Application.cpp:90
RoR::ContentManager
Definition: ContentManager.h:35
RoR::App::gfx_texture_filter
CVar * gfx_texture_filter
Definition: Application.cpp:222
Language.h
RoR::App::sys_savegames_dir
CVar * sys_savegames_dir
Definition: Application.cpp:170
RoR::MSG_NET_CONNECT_REQUESTED
@ MSG_NET_CONNECT_REQUESTED
Definition: Application.h:97
RoR::App::app_extra_mod_path
CVar * app_extra_mod_path
Definition: Application.cpp:87
RoR::App::io_ffb_master_gain
CVar * io_ffb_master_gain
Definition: Application.cpp:195
RoR::MSG_APP_DISPLAY_WINDOWED_REQUESTED
@ MSG_APP_DISPLAY_WINDOWED_REQUESTED
Definition: Application.h:88
RoR::MSG_NET_SERVER_KICK
@ MSG_NET_SERVER_KICK
Definition: Application.h:102
RoR::Console::CONSOLE_SYSTEM_ERROR
@ CONSOLE_SYSTEM_ERROR
Definition: Console.h:52
GUIManager.h
RoR::App::g_gui_manager
static GUIManager * g_gui_manager
Definition: Application.cpp:64
RoR::CacheSystem
A content database MOTIVATION: RoR users usually have A LOT of content installed.
Definition: CacheSystem.h:288
RoR::App::diag_preset_spawn_rot
CVar * diag_preset_spawn_rot
Definition: Application.cpp:142
RoR::GfxShadowType
GfxShadowType
Definition: Application.h:205
RoR::GfxWaterMode::FULL_HQ
@ FULL_HQ
Reflection + refraction (quality optimized)
RoR::SimGearboxMode
SimGearboxMode
Definition: Application.h:192
RoR::App::GetScriptEngine
ScriptEngine * GetScriptEngine()
Definition: Application.cpp:279
RoR::App::diag_hide_wheel_info
CVar * diag_hide_wheel_info
Definition: Application.cpp:154
RoR::GfxScene::GetSceneManager
Ogre::SceneManager * GetSceneManager()
Definition: GfxScene.h:64
RoR::App::mp_cyclethru_net_actors
CVar * mp_cyclethru_net_actors
Include remote actors when cycling through with CTRL + [ and CTRL + ].
Definition: Application.cpp:127
RoR::GfxFlaresMode::ALL_VEHICLES_HEAD_ONLY
@ ALL_VEHICLES_HEAD_ONLY
All vehicles, main lights.
RoR::HANDLEGENERICEXCEPTION_SCRIPTEVENT
@ HANDLEGENERICEXCEPTION_SCRIPTEVENT
Definition: Application.h:550
RoR::App::audio_enable_creak
CVar * audio_enable_creak
Definition: Application.cpp:210
RoR::SimGearboxMode::AUTO
@ AUTO
Automatic shift.
RoR::GfxExtCamMode::STATIC
@ STATIC
RoR::GfxScene
Provides a 3D graphical representation of the simulation Idea: simulation runs at it's own constant r...
Definition: GfxScene.h:45
RoR::App::sim_tuning_enabled
CVar * sim_tuning_enabled
Definition: Application.cpp:112
RoR::MSG_APP_DISPLAY_FULLSCREEN_REQUESTED
@ MSG_APP_DISPLAY_FULLSCREEN_REQUESTED
Definition: Application.h:87
RoR::App::sim_load_savegame
CVar * sim_load_savegame
Definition: Application.cpp:99
RoR::App::sim_gearbox_mode
CVar * sim_gearbox_mode
Definition: Application.cpp:108
RoR::MSG_NET_REFRESH_SERVERLIST_SUCCESS
@ MSG_NET_REFRESH_SERVERLIST_SUCCESS
Payload = GUI::MpServerInfoVec* (owner)
Definition: Application.h:106
RoR::App::mp_state
CVar * mp_state
Definition: Application.cpp:115
RoR::MSG_GUI_DOWNLOAD_FINISHED
@ MSG_GUI_DOWNLOAD_FINISHED
Definition: Application.h:141
RoR::SimGearboxMode::MANUAL_STICK
@ MANUAL_STICK
Fully manual: stick shift.
RoR::App::gfx_camera_height
CVar * gfx_camera_height
Definition: Application.cpp:237
RoR::App::audio_master_volume
CVar * audio_master_volume
Definition: Application.cpp:209
RoR::App::flexbody_defrag_enabled
CVar * flexbody_defrag_enabled
Definition: Application.cpp:253
RoR::MSG_NET_FETCH_AI_PRESETS_FAILURE
@ MSG_NET_FETCH_AI_PRESETS_FAILURE
Description = message.
Definition: Application.h:112
RoR::App::CreateGuiManager
void CreateGuiManager()
Definition: Application.cpp:296
RoR::App::CreateGfxScene
void CreateGfxScene()
Definition: Application.cpp:328
RoR::ToLocalizedString
std::string ToLocalizedString(SimGearboxMode e)
Definition: Application.cpp:440
RoR::App::gfx_window_videocams
CVar * gfx_window_videocams
Definition: Application.cpp:229
RoR::AppContext
Central setup and event handler for input/windowing/rendering.
Definition: AppContext.h:43
RoR::App::gfx_alt_actor_materials
CVar * gfx_alt_actor_materials
Definition: Application.cpp:250
RoR::App::io_ffb_camera_gain
CVar * io_ffb_camera_gain
Definition: Application.cpp:193
RoR::App::gfx_speedo_digital
CVar * gfx_speedo_digital
Definition: Application.cpp:245
RoR::GfxSkyMode::CAELUM
@ CAELUM
Caelum (best looking, slower)
RoR::App::g_app_context
static AppContext g_app_context
Definition: Application.cpp:56
RoR::App::diag_log_beam_break
CVar * diag_log_beam_break
Definition: Application.cpp:147
RoR::App::app_config_long_names
CVar * app_config_long_names
Definition: Application.cpp:91
RoR::App::g_sim_terrain
static Terrain * g_sim_terrain
Definition: Application.cpp:72
RoR::App::flexbody_defrag_prog_up_penalty
CVar * flexbody_defrag_prog_up_penalty
Definition: Application.cpp:255
RoR::App::io_outgauge_mode
CVar * io_outgauge_mode
Definition: Application.cpp:200
RoR::GfxFlaresMode::ALL_VEHICLES_ALL_LIGHTS
@ ALL_VEHICLES_ALL_LIGHTS
All vehicles, all lights.
RoR::MSG_SIM_SEAT_PLAYER_REQUESTED
@ MSG_SIM_SEAT_PLAYER_REQUESTED
Payload = RoR::ActorPtr (owner) | nullptr.
Definition: Application.h:122
CacheSystem.h
A database of user-installed content alias 'mods' (vehicles, terrains...)
RoR::SimResetMode::HARD
@ HARD
RoR::App::gfx_fps_limit
CVar * gfx_fps_limit
Definition: Application.cpp:244
RoR::MSG_APP_MODCACHE_PURGE_REQUESTED
@ MSG_APP_MODCACHE_PURGE_REQUESTED
Definition: Application.h:91
RoR::App::g_sound_script_manager
static SoundScriptManager * g_sound_script_manager
Definition: Application.cpp:71
RoR::App::io_arcade_controls
CVar * io_arcade_controls
Definition: Application.cpp:198
RoR::GfxWaterMode::BASIC
@ BASIC
Basic (fastest)
RoR::MSG_GUI_MP_CLIENTS_REFRESH
@ MSG_GUI_MP_CLIENTS_REFRESH
Definition: Application.h:137
RoR::App::diag_hide_wheels
CVar * diag_hide_wheels
Definition: Application.cpp:155
RoR::GfxVegetation::NONE
@ NONE
ScriptEngine.h
RoR::App::sys_thumbnails_dir
CVar * sys_thumbnails_dir
Definition: Application.cpp:166
RoR::GfxShadowType::PSSM
@ PSSM
RoR::App::diag_log_beam_trigger
CVar * diag_log_beam_trigger
Definition: Application.cpp:149
RoR::App::app_state
CVar * app_state
Definition: Application.cpp:79
RoR::ThreadPool
Facilitates execution of (small) tasks on separate threads.
Definition: ThreadPool.h:105
RoR::IoInputGrabMode::DYNAMIC
@ DYNAMIC
RoR::App::io_ffb_center_gain
CVar * io_ffb_center_gain
Definition: Application.cpp:194
RoR::GfxWaterMode::FULL_FAST
@ FULL_FAST
Reflection + refraction (speed optimized)
RoR::App::mp_server_password
CVar * mp_server_password
Definition: Application.cpp:123
RoR::App::sim_terrain_name
CVar * sim_terrain_name
Definition: Application.cpp:97
RoR::App::flexbody_defrag_reorder_indices
CVar * flexbody_defrag_reorder_indices
Definition: Application.cpp:257
RoR::App::DestroyOverlayWrapper
void DestroyOverlayWrapper()
Definition: Application.cpp:351
RoR::GfxTexFilter::BILINEAR
@ BILINEAR
RoR::App::sys_cache_dir
CVar * sys_cache_dir
Definition: Application.cpp:165
GfxScene.h
RoR::MSG_NET_REFRESH_REPOLIST_FAILURE
@ MSG_NET_REFRESH_REPOLIST_FAILURE
Payload = RoR::CurlFailInfo* (owner)
Definition: Application.h:110
RoR::App::gfx_declutter_map
CVar * gfx_declutter_map
Definition: Application.cpp:231
RoR::App::ui_show_live_repair_controls
CVar * ui_show_live_repair_controls
Definition: Application.cpp:262
RoR::MSG_GUI_OPEN_SELECTOR_REQUESTED
@ MSG_GUI_OPEN_SELECTOR_REQUESTED
Payload = LoaderType* (owner), Description = GUID | empty.
Definition: Application.h:135
RoR::App::diag_log_beam_deform
CVar * diag_log_beam_deform
Definition: Application.cpp:148
RoR::App::cli_custom_scripts
CVar * cli_custom_scripts
Definition: Application.cpp:186
RoR::MSG_SIM_HIDE_NET_ACTOR_REQUESTED
@ MSG_SIM_HIDE_NET_ACTOR_REQUESTED
Payload = ActorPtr* (owner)
Definition: Application.h:124
RoR::App::flexbody_defrag_reorder_texcoords
CVar * flexbody_defrag_reorder_texcoords
Definition: Application.cpp:258
RoR::GfxExtCamMode
GfxExtCamMode
Definition: Application.h:212
RoR::MSG_GUI_REFRESH_TUNING_MENU_REQUESTED
@ MSG_GUI_REFRESH_TUNING_MENU_REQUESTED
Definition: Application.h:142
RoR::MSG_SIM_ADD_FREEFORCE_REQUESTED
@ MSG_SIM_ADD_FREEFORCE_REQUESTED
Payload = RoR::FreeForceRequest* (owner)
Definition: Application.h:129
RoR::GfxSkyMode
GfxSkyMode
Definition: Application.h:259
RoR::MsgType
MsgType
Global gameplay message loop, see struct Message in GameContext.h.
Definition: Application.h:74
DiscordRpc.h
RoR::App::sim_races_enabled
CVar * sim_races_enabled
Definition: Application.cpp:105
RoR::GfxVegetation::FULL
@ FULL
Application.h
Central state/object manager and communications hub.
RoR::App::GetConsole
Console * GetConsole()
Definition: Application.cpp:270
RoR::MSG_NET_OPEN_RESOURCE_SUCCESS
@ MSG_NET_OPEN_RESOURCE_SUCCESS
Payload = GUI::ResourcesCollection* (owner)
Definition: Application.h:109
RoR::GfxVegetation
GfxVegetation
Definition: Application.h:229
RoR::OutGauge
Definition: OutGauge.h:45
RoR::App::mp_hide_own_net_label
CVar * mp_hide_own_net_label
Definition: Application.cpp:119
RoR::App::g_out_gauge
static OutGauge g_out_gauge
Definition: Application.cpp:69
RoR::SimGearboxMode::SEMI_AUTO
@ SEMI_AUTO
Manual shift with auto clutch.
SoundScriptManager.h
RoR::GfxFlaresMode::CURR_VEHICLE_HEAD_ONLY
@ CURR_VEHICLE_HEAD_ONLY
Only current vehicle, main lights.
RoR::MSG_APP_MODCACHE_LOAD_REQUESTED
@ MSG_APP_MODCACHE_LOAD_REQUESTED
Definition: Application.h:89
RoR::App::GetGameContext
GameContext * GetGameContext()
Definition: Application.cpp:280
RoR::App::CreateThreadPool
void CreateThreadPool()
Definition: Application.cpp:316
RoR::App::io_outgauge_delay
CVar * io_outgauge_delay
Definition: Application.cpp:203
RoR::MSG_APP_SCREENSHOT_REQUESTED
@ MSG_APP_SCREENSHOT_REQUESTED
Definition: Application.h:86
RoR::App::gfx_fov_internal_default
CVar * gfx_fov_internal_default
Definition: Application.cpp:241
RoR::LanguageEngine
Definition: Language.h:49
RoR::DiscordRpc
Wrapper class, just for code consistency with other subsystems.
Definition: DiscordRpc.h:30
RoR::MSG_NET_REFRESH_REPOLIST_SUCCESS
@ MSG_NET_REFRESH_REPOLIST_SUCCESS
Payload = GUI::ResourcesCollection* (owner)
Definition: Application.h:108
RoR::App::gfx_envmap_enabled
CVar * gfx_envmap_enabled
Definition: Application.cpp:232
RoR::App::diag_videocameras
CVar * diag_videocameras
Definition: Application.cpp:139
RoR::App::io_ffb_stress_gain
CVar * io_ffb_stress_gain
Definition: Application.cpp:196
RoR::App::gfx_water_mode
CVar * gfx_water_mode
Definition: Application.cpp:224
RoR::App::gfx_flares_mode
CVar * gfx_flares_mode
Definition: Application.cpp:215
RoR::App::gfx_sky_mode
CVar * gfx_sky_mode
Definition: Application.cpp:219
RoR::MSG_SIM_TELEPORT_PLAYER_REQUESTED
@ MSG_SIM_TELEPORT_PLAYER_REQUESTED
Payload = Ogre::Vector3* (owner)
Definition: Application.h:123
RoR::App::CreateOverlayWrapper
void CreateOverlayWrapper()
Definition: Application.cpp:290
_LC
#define _LC(ctx, str)
Definition: Language.h:42
RoR::App::flexbody_defrag_invert_lookup
CVar * flexbody_defrag_invert_lookup
Definition: Application.cpp:259
RoR::App::g_language_engine
static LanguageEngine g_language_engine
Definition: Application.cpp:66
RoR::MSG_EDI_ENTER_TERRN_EDITOR_REQUESTED
@ MSG_EDI_ENTER_TERRN_EDITOR_REQUESTED
Definition: Application.h:145
RoR::MSG_EDI_LOAD_BUNDLE_REQUESTED
@ MSG_EDI_LOAD_BUNDLE_REQUESTED
Payload = RoR::CacheEntryPtr* (owner)
Definition: Application.h:147
RoR::App::cli_server_port
CVar * cli_server_port
Definition: Application.cpp:177
RoR::App::sys_config_dir
CVar * sys_config_dir
Definition: Application.cpp:164
RoR::CVar
Quake-style console variable, defined in RoR.cfg or crated via Console UI and scripts.
Definition: CVar.h:52
RoR::App::gfx_sight_range
CVar * gfx_sight_range
Definition: Application.cpp:236
RoR::App::diag_log_console_echo
CVar * diag_log_console_echo
Definition: Application.cpp:146
RoR::MSG_NET_CONNECT_SUCCESS
@ MSG_NET_CONNECT_SUCCESS
Definition: Application.h:100
RoR::SimGearboxMode::MANUAL
@ MANUAL
Fully manual: sequential shift.
RoR::App::cli_preset_terrain
CVar * cli_preset_terrain
Definition: Application.cpp:180
RoR::App::diag_preset_spawn_pos
CVar * diag_preset_spawn_pos
Definition: Application.cpp:141
RoR::App::GetDiscordRpc
DiscordRpc * GetDiscordRpc()
Definition: Application.cpp:282
RoR::App::gfx_shadow_quality
CVar * gfx_shadow_quality
Definition: Application.cpp:234
RoR::App::gfx_water_waves
CVar * gfx_water_waves
Definition: Application.cpp:226
RoR::App::io_input_grab_mode
CVar * io_input_grab_mode
Definition: Application.cpp:197
RoR::MSG_NET_FETCH_AI_PRESETS_SUCCESS
@ MSG_NET_FETCH_AI_PRESETS_SUCCESS
Description = JSON string.
Definition: Application.h:111
RoR::Network
Definition: Network.h:104
RoR::App::sim_realistic_commands
CVar * sim_realistic_commands
Definition: Application.cpp:104
RoR::Terrain
Definition: Terrain.h:40
RoR::App::io_blink_lock_range
CVar * io_blink_lock_range
Definition: Application.cpp:191
RoR::App::GetCacheSystem
CacheSystem * GetCacheSystem()
Definition: Application.cpp:272
RoR::GfxSkyMode::SKYX
@ SKYX
SkyX (best looking, slower)
RoR::App::ui_show_vehicle_buttons
CVar * ui_show_vehicle_buttons
Definition: Application.cpp:263
RoR::App::gfx_sky_time_speed
CVar * gfx_sky_time_speed
Definition: Application.cpp:221
RoR::App::audio_menu_music
CVar * audio_menu_music
Definition: Application.cpp:212
RoR::App::app_screenshot_format
CVar * app_screenshot_format
Definition: Application.cpp:85
RoR::App::diag_preset_veh_config
CVar * diag_preset_veh_config
Definition: Application.cpp:144
RoR::GfxTexFilter::TRILINEAR
@ TRILINEAR
RoR::App::app_recent_scripts
CVar * app_recent_scripts
Definition: Application.cpp:93
RoR::App::sim_no_collisions
CVar * sim_no_collisions
Definition: Application.cpp:106
RoR::GfxFlaresMode
GfxFlaresMode
Definition: Application.h:238
RoR::App::mp_server_port
CVar * mp_server_port
Definition: Application.cpp:122
RoR::MSG_EDI_DELETE_PROJECT_REQUESTED
@ MSG_EDI_DELETE_PROJECT_REQUESTED
Payload = RoR::CacheEntryPtr* (owner)
Definition: Application.h:152
RoR::MSG_SIM_ACTOR_LINKING_REQUESTED
@ MSG_SIM_ACTOR_LINKING_REQUESTED
Payload = RoR::ActorLinkingRequest* (owner)
Definition: Application.h:128
RoR::App::mp_server_host
CVar * mp_server_host
Definition: Application.cpp:121
RoR::MSG_GUI_OPEN_MENU_REQUESTED
@ MSG_GUI_OPEN_MENU_REQUESTED
Definition: Application.h:133
RoR::App::diag_auto_spawner_report
CVar * diag_auto_spawner_report
Definition: Application.cpp:133
RoR::App::diag_camera
CVar * diag_camera
Definition: Application.cpp:134
RoR::App::io_analog_smoothing
CVar * io_analog_smoothing
Definition: Application.cpp:189
OutGauge.h
RoR::App::diag_rig_log_node_stats
CVar * diag_rig_log_node_stats
Definition: Application.cpp:136
RoR::App::cli_preset_spawn_pos
CVar * cli_preset_spawn_pos
Definition: Application.cpp:181
RoR::GfxFlaresMode::NONE
@ NONE
None (fastest)
RoR::MSG_EDI_LEAVE_TERRN_EDITOR_REQUESTED
@ MSG_EDI_LEAVE_TERRN_EDITOR_REQUESTED
Definition: Application.h:146
RoR::App::sys_projects_dir
CVar * sys_projects_dir
Definition: Application.cpp:173
RoR::MSG_SIM_SPAWN_ACTOR_REQUESTED
@ MSG_SIM_SPAWN_ACTOR_REQUESTED
Payload = RoR::ActorSpawnRequest* (owner)
Definition: Application.h:119
RoR::MSG_APP_MODCACHE_UPDATE_REQUESTED
@ MSG_APP_MODCACHE_UPDATE_REQUESTED
Definition: Application.h:90
RoR::App::GetInputEngine
InputEngine * GetInputEngine()
Definition: Application.cpp:271
RoR::IoInputGrabMode
IoInputGrabMode
Definition: Application.h:267
RoR::IoInputGrabMode::ALL
@ ALL
RoR::App::cli_preset_veh_config
CVar * cli_preset_veh_config
Definition: Application.cpp:179
RoR::MSG_NET_CONNECT_FAILURE
@ MSG_NET_CONNECT_FAILURE
Definition: Application.h:101
RoR::App::diag_allow_window_resize
CVar * diag_allow_window_resize
Definition: Application.cpp:159
RoR::MSG_SIM_DELETE_ACTOR_REQUESTED
@ MSG_SIM_DELETE_ACTOR_REQUESTED
Payload = RoR::ActorPtr* (owner)
Definition: Application.h:121
RoR::App::io_outgauge_id
CVar * io_outgauge_id
Definition: Application.cpp:204
RoR::MSG_APP_SCRIPT_THREAD_STATUS
@ MSG_APP_SCRIPT_THREAD_STATUS
Payload = RoR::ScriptEventArgs* (owner)
Definition: Application.h:94
RoR::App::g_content_manager
static ContentManager g_content_manager
Definition: Application.cpp:60
RoR::App::GetOutGauge
OutGauge * GetOutGauge()
Definition: Application.cpp:281
RoR::App::diag_hide_nodes
CVar * diag_hide_nodes
Definition: Application.cpp:156
RoR::App::gfx_fov_external
CVar * gfx_fov_external
Definition: Application.cpp:238
RoR::MSG_EDI_MODIFY_GROUNDMODEL_REQUESTED
@ MSG_EDI_MODIFY_GROUNDMODEL_REQUESTED
Payload = RoR::ground_model_t* (weak)
Definition: Application.h:144
Terrain.h
RoR::Console
Global game console backend.
Definition: Console.h:40
RoR::App::DestroyInputEngine
void DestroyInputEngine()
Definition: Application.cpp:357
RoR::App::g_console
static Console g_console
Definition: Application.cpp:59
BitMask_t
uint32_t BitMask_t
Definition: BitFlags.h:7
RoR::SimGearboxMode::MANUAL_RANGES
@ MANUAL_RANGES
Fully manual: stick shift with ranges.
InputEngine.h
Handles controller inputs from player. Defines input events and binding mechanism,...
RoR::GameContext
Central game state manager.
Definition: GameContext.h:95
RoR::MSG_SIM_UNHIDE_NET_ACTOR_REQUESTED
@ MSG_SIM_UNHIDE_NET_ACTOR_REQUESTED
Payload = ActorPtr* (owner)
Definition: Application.h:125
RoR::App::sys_process_dir
CVar * sys_process_dir
Definition: Application.cpp:162
RoR::App::g_network
static Network g_network
Definition: Application.cpp:75
RoR::App::g_mumble
static MumbleIntegration * g_mumble
Definition: Application.cpp:67
RoR::MSG_APP_UNLOAD_SCRIPT_REQUESTED
@ MSG_APP_UNLOAD_SCRIPT_REQUESTED
Payload = RoR::ScriptUnitId_t* (owner)
Definition: Application.h:93
RoR::App::diag_envmap
CVar * diag_envmap
Definition: Application.cpp:138
RoR::GUIManager
Definition: GUIManager.h:64
RoR::App::app_async_physics
CVar * app_async_physics
Definition: Application.cpp:83
RoR::App::diag_preset_veh_enter
CVar * diag_preset_veh_enter
Definition: Application.cpp:145
RoR::App::diag_preset_terrain
CVar * diag_preset_terrain
Definition: Application.cpp:140
RoR::Console::CONSOLE_MSGTYPE_INFO
@ CONSOLE_MSGTYPE_INFO
Generic message.
Definition: Console.h:60
RoR::App::sim_terrain_gui_name
CVar * sim_terrain_gui_name
Definition: Application.cpp:98
RoR::App::mp_chat_auto_hide
CVar * mp_chat_auto_hide
Definition: Application.cpp:117
RoR::App::sys_screenshot_dir
CVar * sys_screenshot_dir
Definition: Application.cpp:171
RoR::App::g_gfx_scene
static GfxScene g_gfx_scene
Definition: Application.cpp:63
RoR::App::gfx_vegetation_mode
CVar * gfx_vegetation_mode
Definition: Application.cpp:223
RoR::App::flexbody_defrag_prog_down_penalty
CVar * flexbody_defrag_prog_down_penalty
Definition: Application.cpp:256
RoR::App::app_custom_scripts
CVar * app_custom_scripts
Definition: Application.cpp:92
RoR::MSG_GUI_CLOSE_MENU_REQUESTED
@ MSG_GUI_CLOSE_MENU_REQUESTED
Definition: Application.h:134
RoR::IoInputGrabMode::NONE
@ NONE
RoR::MSG_NET_CONNECT_PROGRESS
@ MSG_NET_CONNECT_PROGRESS
Definition: Application.h:99
RoR::App::GetMumble
MumbleIntegration * GetMumble()
Definition: Application.cpp:273
RoR::App::diag_terrn_log_roads
CVar * diag_terrn_log_roads
Definition: Application.cpp:157
RoR::MSG_SIM_MODIFY_FREEFORCE_REQUESTED
@ MSG_SIM_MODIFY_FREEFORCE_REQUESTED
Payload = RoR::FreeForceRequest* (owner)
Definition: Application.h:130
RoR::MSG_SIM_PAUSE_REQUESTED
@ MSG_SIM_PAUSE_REQUESTED
Definition: Application.h:114
RoR::App::g_thread_pool
static ThreadPool * g_thread_pool
Definition: Application.cpp:73
RoR::App::GetThreadPool
ThreadPool * GetThreadPool()
Definition: Application.cpp:274
RoR::GfxScene::Init
void Init()
Definition: GfxScene.cpp:82
MumbleIntegration.h
RoR::App::audio_device_name
CVar * audio_device_name
Definition: Application.cpp:211
RoR::MSG_GUI_HIDE_MESSAGE_BOX_REQUESTED
@ MSG_GUI_HIDE_MESSAGE_BOX_REQUESTED
Definition: Application.h:139
RoR::App::gfx_anisotropy
CVar * gfx_anisotropy
Definition: Application.cpp:225
RoR::App::g_cache_system
static CacheSystem g_cache_system
Definition: Application.cpp:57
RoR::GfxWaterMode::REFLECT
@ REFLECT
Reflection.
RoR::App::gfx_sky_time_cycle
CVar * gfx_sky_time_cycle
Definition: Application.cpp:220
RoR::MSG_SIM_LOAD_SAVEGAME_REQUESTED
@ MSG_SIM_LOAD_SAVEGAME_REQUESTED
Definition: Application.h:117
RoR::GfxTexFilter
GfxTexFilter
Definition: Application.h:220
RoR
Definition: AppContext.h:36
RoR::HANDLEGENERICEXCEPTION_LOGFILE
@ HANDLEGENERICEXCEPTION_LOGFILE
Definition: Application.h:549
Network.h
RoR::App::sim_spawn_running
CVar * sim_spawn_running
Definition: Application.cpp:100
RoR::GfxFlaresMode::NO_LIGHTSOURCES
@ NO_LIGHTSOURCES
No light sources.
RoR::App::gfx_reduce_shadows
CVar * gfx_reduce_shadows
Definition: Application.cpp:248
RoR::Log
void Log(const char *msg)
The ultimate, application-wide logging function. Adds a line (any length) in 'RoR....
Definition: Application.cpp:419
RoR::App::app_force_cache_purge
CVar * app_force_cache_purge
Definition: Application.cpp:88
RoR::App::flexbody_defrag_const_penalty
CVar * flexbody_defrag_const_penalty
Definition: Application.cpp:254
RoR::App::GetGfxScene
GfxScene * GetGfxScene()
Definition: Application.cpp:276
RoR::MSG_APP_SHUTDOWN_REQUESTED
@ MSG_APP_SHUTDOWN_REQUESTED
Definition: Application.h:85
RoR::GfxExtCamMode::NONE
@ NONE
RoR::GfxVegetation::x20PERC
@ x20PERC
RoR::App::gfx_surveymap_icons
CVar * gfx_surveymap_icons
Definition: Application.cpp:230
RoR::HANDLEGENERICEXCEPTION_CONSOLE
@ HANDLEGENERICEXCEPTION_CONSOLE
Definition: Application.h:551
RoR::App::io_outgauge_ip
CVar * io_outgauge_ip
Definition: Application.cpp:201
RoR::GfxVegetation::x50PERC
@ x50PERC
RoR::MSG_NET_DISCONNECT_REQUESTED
@ MSG_NET_DISCONNECT_REQUESTED
Definition: Application.h:103
RoR::OverlayWrapper
Definition: OverlayWrapper.h:111
RoR::App::sim_replay_enabled
CVar * sim_replay_enabled
Definition: Application.cpp:101
RoR::App::mp_pseudo_collisions
CVar * mp_pseudo_collisions
Definition: Application.cpp:120
RoR::App::cli_preset_veh_enter
CVar * cli_preset_veh_enter
Definition: Application.cpp:183
RoR::MSG_SIM_SCRIPT_EVENT_TRIGGERED
@ MSG_SIM_SCRIPT_EVENT_TRIGGERED
Payload = RoR::ScriptEventArgs* (owner)
Definition: Application.h:126
RoR::GfxTexFilter::NONE
@ NONE
RoR::App::io_hydro_coupling
CVar * io_hydro_coupling
Definition: Application.cpp:199
RoR::GfxWaterMode::HYDRAX
@ HYDRAX
HydraX.
RoR::App::remote_query_url
CVar * remote_query_url
Definition: Application.cpp:130
RoR::ThreadPool::DetectNumWorkersAndCreate
static ThreadPool * DetectNumWorkersAndCreate()
Definition: ThreadPool.h:107