SSystemGlobalEnvironment

C++
struct SSystemGlobalEnvironment {
  IDialogSystem* pDialogSystem;
  I3DEngine* p3DEngine;
  INetwork* pNetwork;
  ICryLobby* pLobby;
  IScriptSystem* pScriptSystem;
  IPhysicalWorld* pPhysicalWorld;
  IFlowSystem* pFlowSystem;
  IInput* pInput;
  IMusicSystem* pMusicSystem;
  IStatoscope* pStatoscope;
  ICryPak* pCryPak;
  IFileChangeMonitor* pFileChangeMonitor;
  IProfileLogSystem* pProfileLogSystem;
  IParticleManager* pParticleManager;
  IOpticsManager* pOpticsManager;
  IFrameProfileSystem* pFrameProfileSystem;
  ITimer* pTimer;
  ICryFont* pCryFont;
  IGame* pGame;
  ILocalMemoryUsage* pLocalMemoryUsage;
  IEntitySystem* pEntitySystem;
  IConsole* pConsole;
  Telemetry::ITelemetrySystem* pTelemetrySystem;
  IAudioSystem* pAudioSystem;
  ISystem* pSystem;
  ICharacterManager* pCharacterManager;
  IAISystem* pAISystem;
  ILog* pLog;
  ICodeCheckpointMgr* pCodeCheckpointMgr;
  IMovieSystem* pMovieSystem;
  INameTable* pNameTable;
  IVisualLog* pVisualLog;
  IRenderer* pRenderer;
  IHardwareMouse* pHardwareMouse;
  IMaterialEffects* pMaterialEffects;
  JobManager::IJobManager* pJobManager;
  ISoftCodeMgr* pSoftCodeMgr;
  IOverloadSceneManager* pOverloadSceneManager;
  IFlashUI* pFlashUI;
  IServiceNetwork* pServiceNetwork;
  IRemoteCommandManager* pRemoteCommandManager;
  LiveCreate::IManager* pLiveCreateManager;
  LiveCreate::IHost* pLiveCreateHost;
  threadID mMainThreadId;
  uint32 nMainFrameID;
  const char* szCmdLine;
  enum {
    MAX_DEBUG_STRING_LENGTH = 128
  };
  char szDebugStatus[MAX_DEBUG_STRING_LENGTH];
  bool bServer;
  bool bMultiplayer;
  bool bHostMigrating;
  bool bProfilerEnabled;
  FrameProfilerSectionCallback callbackStartSection;
  FrameProfilerSectionCallback callbackEndSection;
  bool bIgnoreAllAsserts;
  bool bNoAssertDialog;
  bool bTesting;
  bool bNoRandomSeed;
  SPlatformInfo pi;
  SSystemInitParams::ProtectedFunction pProtectedFunctions[eProtectedFuncsLast];
  bool bIsOutOfMemory;
  bool bIsOutOfVideoMemory;
  bool m_isFMVPlaying;
  bool m_isCutscenePlaying;
};
File

ISystem.h

Description

Global environment. Contains pointers to all global often needed interfaces. This is a faster way to get interface pointer then calling ISystem interface to retrieve one. Notes: Some pointers can be NULL, use with care.

See Also
SSystemGlobalEnvironment::bHostMigrating Data Member
C++
bool bHostMigrating;
SSystemGlobalEnvironment::bIgnoreAllAsserts Data Member
C++
bool bIgnoreAllAsserts;
Description

Used by CRY_ASSERT

SSystemGlobalEnvironment::bIsOutOfMemory Data Member
C++
bool bIsOutOfMemory;
Description

Flag to able to print out of memory conditon

SSystemGlobalEnvironment::bIsOutOfVideoMemory Data Member
C++
bool bIsOutOfVideoMemory;
SSystemGlobalEnvironment::bMultiplayer Data Member
C++
bool bMultiplayer;
SSystemGlobalEnvironment::bNoAssertDialog Data Member
C++
bool bNoAssertDialog;
SSystemGlobalEnvironment::bNoRandomSeed Data Member
C++
bool bNoRandomSeed;
SSystemGlobalEnvironment::bProfilerEnabled Data Member
C++
bool bProfilerEnabled;
Description

Used by frame profiler.

SSystemGlobalEnvironment::bServer Data Member
C++
bool bServer;
Description

Used to tell if this is a server/multiplayer instance

SSystemGlobalEnvironment::bTesting Data Member
C++
bool bTesting;
SSystemGlobalEnvironment::callbackEndSection Data Member
C++
FrameProfilerSectionCallback callbackEndSection;
SSystemGlobalEnvironment::callbackStartSection Data Member
C++
FrameProfilerSectionCallback callbackStartSection;
SSystemGlobalEnvironment::m_isCutscenePlaying Data Member
C++
bool m_isCutscenePlaying;
SSystemGlobalEnvironment::m_isFMVPlaying Data Member
C++
bool m_isFMVPlaying;
SSystemGlobalEnvironment::mMainThreadId Data Member
C++
threadID mMainThreadId;
Description

The main thread ID is used in multiple systems so should be stored globally

SSystemGlobalEnvironment::nMainFrameID Data Member
C++
uint32 nMainFrameID;
SSystemGlobalEnvironment::p3DEngine Data Member
C++
I3DEngine* p3DEngine;
SSystemGlobalEnvironment::pAISystem Data Member
C++
IAISystem* pAISystem;
SSystemGlobalEnvironment::pAudioSystem Data Member
C++
IAudioSystem* pAudioSystem;
SSystemGlobalEnvironment::pCharacterManager Data Member
C++
ICharacterManager* pCharacterManager;
SSystemGlobalEnvironment::pCodeCheckpointMgr Data Member
C++
ICodeCheckpointMgr* pCodeCheckpointMgr;
SSystemGlobalEnvironment::pConsole Data Member
C++
IConsole* pConsole;
SSystemGlobalEnvironment::pCryFont Data Member
C++
ICryFont* pCryFont;
SSystemGlobalEnvironment::pCryPak Data Member
C++
ICryPak* pCryPak;
SSystemGlobalEnvironment::pDialogSystem Data Member
C++
IDialogSystem* pDialogSystem;
SSystemGlobalEnvironment::pEntitySystem Data Member
C++
IEntitySystem* pEntitySystem;
SSystemGlobalEnvironment::pFileChangeMonitor Data Member
C++
IFileChangeMonitor* pFileChangeMonitor;
SSystemGlobalEnvironment::pFlashUI Data Member
C++
IFlashUI* pFlashUI;
SSystemGlobalEnvironment::pFlowSystem Data Member
C++
IFlowSystem* pFlowSystem;
SSystemGlobalEnvironment::pFrameProfileSystem Data Member
C++
IFrameProfileSystem* pFrameProfileSystem;
SSystemGlobalEnvironment::pGame Data Member
C++
IGame* pGame;
SSystemGlobalEnvironment::pHardwareMouse Data Member
C++
IHardwareMouse* pHardwareMouse;
SSystemGlobalEnvironment::pi Data Member
C++
SSystemGlobalEnvironment::pInput Data Member
C++
IInput* pInput;
SSystemGlobalEnvironment::pJobManager Data Member
C++
JobManager::IJobManager* pJobManager;
SSystemGlobalEnvironment::pLiveCreateHost Data Member
C++
LiveCreate::IHost* pLiveCreateHost;
SSystemGlobalEnvironment::pLiveCreateManager Data Member
C++
LiveCreate::IManager* pLiveCreateManager;
SSystemGlobalEnvironment::pLobby Data Member
C++
ICryLobby* pLobby;
SSystemGlobalEnvironment::pLocalMemoryUsage Data Member
C++
ILocalMemoryUsage* pLocalMemoryUsage;
SSystemGlobalEnvironment::pLog Data Member
C++
ILog* pLog;
SSystemGlobalEnvironment::pMaterialEffects Data Member
C++
IMaterialEffects* pMaterialEffects;
SSystemGlobalEnvironment::pMovieSystem Data Member
C++
IMovieSystem* pMovieSystem;
SSystemGlobalEnvironment::pMusicSystem Data Member
C++
IMusicSystem* pMusicSystem;
SSystemGlobalEnvironment::pNameTable Data Member
C++
INameTable* pNameTable;
SSystemGlobalEnvironment::pNetwork Data Member
C++
INetwork* pNetwork;
SSystemGlobalEnvironment::pOpticsManager Data Member
C++
IOpticsManager* pOpticsManager;
SSystemGlobalEnvironment::pOverloadSceneManager Data Member
C++
IOverloadSceneManager* pOverloadSceneManager;
SSystemGlobalEnvironment::pParticleManager Data Member
C++
IParticleManager* pParticleManager;
SSystemGlobalEnvironment::pPhysicalWorld Data Member
C++
IPhysicalWorld* pPhysicalWorld;
SSystemGlobalEnvironment::pProfileLogSystem Data Member
C++
IProfileLogSystem* pProfileLogSystem;
SSystemGlobalEnvironment::pProtectedFunctions Data Member
C++
SSystemInitParams::ProtectedFunction pProtectedFunctions[eProtectedFuncsLast];
Description

Protected functions.

SSystemGlobalEnvironment::pRemoteCommandManager Data Member
C++
IRemoteCommandManager* pRemoteCommandManager;
SSystemGlobalEnvironment::pRenderer Data Member
C++
IRenderer* pRenderer;
SSystemGlobalEnvironment::pScriptSystem Data Member
C++
IScriptSystem* pScriptSystem;
SSystemGlobalEnvironment::pServiceNetwork Data Member
C++
IServiceNetwork* pServiceNetwork;
SSystemGlobalEnvironment::pSoftCodeMgr Data Member
C++
ISoftCodeMgr* pSoftCodeMgr;
SSystemGlobalEnvironment::pStatoscope Data Member
C++
IStatoscope* pStatoscope;
SSystemGlobalEnvironment::pSystem Data Member
C++
ISystem* pSystem;
SSystemGlobalEnvironment::pTelemetrySystem Data Member
C++
Telemetry::ITelemetrySystem* pTelemetrySystem;
SSystemGlobalEnvironment::pTimer Data Member
C++
ITimer* pTimer;
SSystemGlobalEnvironment::pVisualLog Data Member
C++
IVisualLog* pVisualLog;
SSystemGlobalEnvironment::szCmdLine Data Member
C++
const char* szCmdLine;
Description

Startup command line.

SSystemGlobalEnvironment::szDebugStatus Data Member
C++
char szDebugStatus[MAX_DEBUG_STRING_LENGTH];
SSystemGlobalEnvironment::_MS_ALIGN Method
C++
_MS_ALIGN(64);
SSystemGlobalEnvironment::GetJobManager Method
C++
JobManager::IJobManager* GetJobManager();
Description

Getter function for jobmanager

SSystemGlobalEnvironment::IsClient Method
C++
const bool IsClient() const;
SSystemGlobalEnvironment::IsCutscenePlaying Method
C++
const bool IsCutscenePlaying() const;
SSystemGlobalEnvironment::IsDedicated Method
C++
const bool IsDedicated() const;
SSystemGlobalEnvironment::IsEditing Method
C++
const bool IsEditing() const;
SSystemGlobalEnvironment::IsEditor Method
C++
const bool IsEditor() const;
Description

this way the compiler can strip out code for consoles

SSystemGlobalEnvironment::IsEditorGameMode Method
C++
const bool IsEditorGameMode() const;
SSystemGlobalEnvironment::IsFMVPlaying Method
C++
const bool IsFMVPlaying() const;
SSystemGlobalEnvironment::SetCutsceneIsPlaying Method
C++
void SetCutsceneIsPlaying(const bool isPlaying);
SSystemGlobalEnvironment::SetFMVIsPlaying Method
C++
void SetFMVIsPlaying(const bool isPlaying);
SSystemGlobalEnvironment::SSystemGlobalEnvironment Constructor
C++
SSystemGlobalEnvironment();