Rigs of Rods 2026.01
Soft-body Physics Simulation
Loading...
Searching...
No Matches
Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
Application.h File Reference

Description

Central state/object manager and communications hub.

Author
Petr Ohlidal
Date
05/2014

Definition in file Application.h.

#include "BitFlags.h"
#include "CVar.h"
#include "ForwardDeclarations.h"
#include "Str.h"
#include <fmt/format.h>
#include <OgreStringConverter.h>
#include <assert.h>
#include <string>

Go to the source code of this file.

Namespaces

namespace  RoR
 
namespace  RigDef
 
namespace  RoR::App
 

Macros

#define ROR_ASSERT(_EXPR)   assert(_EXPR)
 
#define CHARACTER_ANIM_NAME_LEN   10
 
#define RGN_TEMP   "Temp"
 
#define RGN_CACHE   "Cache"
 
#define RGN_THUMBNAILS   "Thumbnails"
 
#define RGN_REPO_ATTACHMENTS   "RepoAttachments"
 
#define RGN_CONFIG   "Config"
 
#define RGN_CONTENT   "Content"
 
#define RGN_SAVEGAMES   "Savegames"
 
#define RGN_MANAGED_MATS   "ManagedMaterials"
 
#define RGN_SCRIPTS   "Scripts"
 
#define RGN_SERVER_SCRIPTS   "ServerScripts"
 
#define RGN_LOGS   "Logs"
 
#define TOSTRING(x)   Ogre::StringConverter::toString(x)
 
#define PARSEINT(x)   Ogre::StringConverter::parseInt(x)
 
#define PARSEREAL(x)   Ogre::StringConverter::parseReal(x)
 
#define HydraxLOG(msg)   Ogre::LogManager::getSingleton().logMessage("[Hydrax] " + Ogre::String(msg));
 

Typedefs

typedef int RoR::CameraMode_t
 

Enumerations

enum  RoR::MsgType
 
enum class  RigDef::Keyword
 
enum class  RoR::AppState
 
enum class  RoR::MpState
 
enum class  RoR::SimState
 
enum class  RoR::SimGearboxMode
 
enum class  RoR::GfxShadowType
 
enum class  RoR::GfxExtCamMode
 
enum class  RoR::GfxTexFilter
 
enum class  RoR::GfxVegetation
 
enum class  RoR::GfxFlaresMode
 
enum class  RoR::GfxWaterMode
 
enum class  RoR::GfxSkyMode
 
enum class  RoR::EfxReverbEngine
 
enum class  RoR::IoInputGrabMode
 
enum class  RoR::SimResetMode
 
enum class  RoR::UiPreset
 
enum  RoR::VisibilityMasks
 
enum  RoR::LoaderType
 
enum  RoR::CacheCategoryId
 
enum class  RoR::FlareType : char
 
enum class  RoR::WheelBraking : int
 
enum class  RoR::WheelPropulsion : int
 
enum class  RoR::WheelSide : char
 
enum class  RoR::ExtCameraMode
 
enum class  RoR::TObjSpecialObject
 
enum  RoR::VideoCamRole
 
enum  RoR::HandleGenericExceptionFlags
 

Functions

const char * RoR::MsgTypeToString (MsgType type)
 
const char * RigDef::KeywordToString (RigDef::Keyword keyword)
 
std::string RoR::ToLocalizedString (SimGearboxMode e)
 
std::string RoR::ToLocalizedString (GfxShadowType e)
 
std::string RoR::ToLocalizedString (GfxExtCamMode e)
 
std::string RoR::ToLocalizedString (GfxTexFilter e)
 
std::string RoR::ToLocalizedString (GfxVegetation e)
 
std::string RoR::ToLocalizedString (GfxFlaresMode e)
 
std::string RoR::ToLocalizedString (GfxWaterMode e)
 
std::string RoR::ToLocalizedString (GfxSkyMode e)
 
std::string RoR::ToLocalizedString (EfxReverbEngine e)
 
std::string RoR::ToLocalizedString (IoInputGrabMode e)
 
std::string RoR::ToLocalizedString (SimResetMode e)
 
std::string RoR::ToLocalizedString (UiPreset e)
 
const char * RoR::TObjSpecialObjectToString (TObjSpecialObject val)
 
AppContext * RoR::App::GetAppContext ()
 
ContentManager * RoR::App::GetContentManager ()
 
OverlayWrapper * RoR::App::GetOverlayWrapper ()
 
GUIManager * RoR::App::GetGuiManager ()
 
Console * RoR::App::GetConsole ()
 
InputEngine * RoR::App::GetInputEngine ()
 
CacheSystem * RoR::App::GetCacheSystem ()
 
MumbleIntegration * RoR::App::GetMumble ()
 
ThreadPool * RoR::App::GetThreadPool ()
 
CameraManager * RoR::App::GetCameraManager ()
 
GfxScene * RoR::App::GetGfxScene ()
 
SoundScriptManager * RoR::App::GetSoundScriptManager ()
 
LanguageEngine * RoR::App::GetLanguageEngine ()
 
ScriptEngine * RoR::App::GetScriptEngine ()
 
ServerScriptSequencer * RoR::App::GetServerScript ()
 
Network * RoR::App::GetNetwork ()
 
GameContext * RoR::App::GetGameContext ()
 
OutGauge * RoR::App::GetOutGauge ()
 
DiscordRpc * RoR::App::GetDiscordRpc ()
 
void RoR::App::CreateOverlayWrapper ()
 
void RoR::App::CreateGuiManager ()
 
void RoR::App::CreateInputEngine ()
 
void RoR::App::CreateMumble ()
 
void RoR::App::CreateThreadPool ()
 
void RoR::App::CreateCameraManager ()
 
void RoR::App::CreateGfxScene ()
 
void RoR::App::CreateSoundScriptManager ()
 
void RoR::App::CreateScriptEngine ()
 
void RoR::App::CreateServerScript ()
 
void RoR::App::DestroyOverlayWrapper ()
 
void RoR::App::DestroyInputEngine ()
 
void RoR::HandleGenericException (const std::string &from, BitMask_t flags)
 
void RoR::HandleMsgQueueException (MsgType from)
 
void RoR::Log (const char *msg)
 
void RoR::LogFormat (const char *format,...)
 
void LOG (const char *msg)
 
void LOG (std::string const &msg)
 

Variables

static CameraMode_t RoR::CAMERA_MODE_ALWAYS_HIDDEN = -3
 
static CameraMode_t RoR::CAMERA_MODE_ALWAYS_VISIBLE = -2
 
static CameraMode_t RoR::CAMERA_MODE_3RDPERSON_ONLY = -1
 
static const float RoR::UI_SCALE_FACTOR_MIN = 1.f
 
static const float RoR::UI_SCALE_FACTOR_MAX = 4.f
 
CVar * RoR::App::diag_trace_globals
 

Macro Definition Documentation

◆ CHARACTER_ANIM_NAME_LEN

#define CHARACTER_ANIM_NAME_LEN   10

Definition at line 42 of file Application.h.

◆ HydraxLOG

#define HydraxLOG (   msg)    Ogre::LogManager::getSingleton().logMessage("[Hydrax] " + Ogre::String(msg));

Definition at line 61 of file Application.h.

◆ PARSEINT

#define PARSEINT (   x)    Ogre::StringConverter::parseInt(x)

Definition at line 59 of file Application.h.

◆ PARSEREAL

#define PARSEREAL (   x)    Ogre::StringConverter::parseReal(x)

Definition at line 60 of file Application.h.

◆ RGN_CACHE

#define RGN_CACHE   "Cache"

Definition at line 46 of file Application.h.

◆ RGN_CONFIG

#define RGN_CONFIG   "Config"

Definition at line 49 of file Application.h.

◆ RGN_CONTENT

#define RGN_CONTENT   "Content"

Definition at line 50 of file Application.h.

◆ RGN_LOGS

#define RGN_LOGS   "Logs"

Definition at line 55 of file Application.h.

◆ RGN_MANAGED_MATS

#define RGN_MANAGED_MATS   "ManagedMaterials"

Definition at line 52 of file Application.h.

◆ RGN_REPO_ATTACHMENTS

#define RGN_REPO_ATTACHMENTS   "RepoAttachments"

Definition at line 48 of file Application.h.

◆ RGN_SAVEGAMES

#define RGN_SAVEGAMES   "Savegames"

Definition at line 51 of file Application.h.

◆ RGN_SCRIPTS

#define RGN_SCRIPTS   "Scripts"

Definition at line 53 of file Application.h.

◆ RGN_SERVER_SCRIPTS

#define RGN_SERVER_SCRIPTS   "ServerScripts"

Definition at line 54 of file Application.h.

◆ RGN_TEMP

#define RGN_TEMP   "Temp"

Definition at line 45 of file Application.h.

◆ RGN_THUMBNAILS

#define RGN_THUMBNAILS   "Thumbnails"

Definition at line 47 of file Application.h.

◆ ROR_ASSERT

#define ROR_ASSERT (   _EXPR)    assert(_EXPR)

Definition at line 40 of file Application.h.

◆ TOSTRING

#define TOSTRING (   x)    Ogre::StringConverter::toString(x)

Definition at line 58 of file Application.h.

Function Documentation

◆ LOG() [1/2]

void LOG ( const char *  msg)
inline

Legacy alias - formerly a macro.

Definition at line 915 of file Application.h.

◆ LOG() [2/2]

void LOG ( std::string const &  msg)
inline

Legacy alias - formerly a macro.

Definition at line 916 of file Application.h.