ISystem

C++
struct ISystem {
  struct ILoadingProgressListener {
  };
  enum LevelLoadOrigin {
    eLLO_Unknown,
    eLLO_NewLevel,
    eLLO_Level2Level,
    eLLO_Resumed,
    eLLO_MapCmd
  };
  struct ICheckpointData {
    int m_totalLoads;
    LevelLoadOrigin m_loadOrigin;
  };
};
File

ISystem.h

Description

Main Engine Interface. Initialize and dispatch all engine's subsystems.

ISystem::ICheckpointData Structure
C++
struct ICheckpointData {
  int m_totalLoads;
  LevelLoadOrigin m_loadOrigin;
};
File

ISystem.h

ISystem::ILoadingProgressListener Structure
C++
struct ILoadingProgressListener {
};
File

ISystem.h

ISystem::ILoadingProgressListener::~ILoadingProgressListener Destructor
C++
ISystem::ILoadingProgressListener::OnLoadingProgress Method
C++
virtual void OnLoadingProgress(int steps) = 0;
ISystem::LevelLoadOrigin Enumeration
C++
enum LevelLoadOrigin {
  eLLO_Unknown,
  eLLO_NewLevel,
  eLLO_Level2Level,
  eLLO_Resumed,
  eLLO_MapCmd
};
File

ISystem.h

ISystem::~ISystem Destructor
C++
virtual ~ISystem();
ISystem::AddPlatformOSCreateFlag Method

Add a PlatformOS create flag

C++
virtual void AddPlatformOSCreateFlag(const uint8 createFlag) = 0;
ISystem::ApplicationTest Method

Can be called through console

C++
virtual void ApplicationTest(const char * szParam) = 0;
Parameters
Parameters
Description
const char * szParam
0 generates error
Example

#System.ApplicationTest("testcase0")

ISystem::AsyncMemcpy Method

Asynchronous memcpy Note sync variable will be incremented (in calling thread) before job starts and decremented when job finishes. Multiple async copies can therefore be tied to the same sync variable, therefore it's advised to wait for completion with while(*sync) (yield());

C++
virtual void AsyncMemcpy(void* dst, const void* src, size_t size, int nFlags, volatile int* sync) = 0;
ISystem::AutoDetectSpec Method

Detects and set optimal spec.

C++
virtual void AutoDetectSpec(const bool detectResolution) = 0;
ISystem::ChangeUserPath Method

Changes current user sub path, the path is always relative to the user documents folder.

C++
virtual void ChangeUserPath(const char * sUserPath) = 0;
Example

"My GamesCrysis"

ISystem::CheckLogVerbosity Method

Compare specified verbosity level to the one currently set.

C++
virtual bool CheckLogVerbosity(int verbosity) = 0;
ISystem::ClearErrorMessages Method

Clear all currently logged and drawn on screen error messages

C++
virtual void ClearErrorMessages() = 0;
ISystem::CompressDataBlock Method
C++
virtual bool CompressDataBlock(const void * input, size_t inputSize, void * output, size_t& outputSize, int level = 3) = 0;
ISystem::CreateAVIReader Method

Creates an instance of the AVI Reader class.

C++
virtual IAVI_Reader * CreateAVIReader() = 0;
ISystem::CreateFlashPlayerBootStrapper Method
C++
virtual IFlashPlayerBootStrapper* CreateFlashPlayerBootStrapper() const = 0;
ISystem::CreateFlashPlayerInstance Method

Creates an instance of the IFlashPlayer interface.

C++
virtual IFlashPlayer* CreateFlashPlayerInstance() const = 0;
ISystem::CreateSizer Method

Creates and returns a usable object implementing ICrySizer interface.

C++
virtual ICrySizer* CreateSizer() = 0;
ISystem::CreateXmlNode Method

Creates new xml node.

C++
virtual XmlNodeRef CreateXmlNode(const char * sNodeName = "", bool bReuseStrings = false) = 0;
ISystem::debug_GetCallStack Method
C++
virtual void debug_GetCallStack(const char ** pFunctions, int & nCount) = 0;
Description

Notes: Pass nCount to indicate maximum number of functions to get. For debugging use only, query current C++ call stack.

Fills array of function pointers, nCount return number of functions.

ISystem::debug_LogCallStack Method

Logs current callstack. Notes: For debugging use only!, query current C++ call stack.

C++
virtual void debug_LogCallStack(int nMaxFuncs = 32, int nFlags = 0) = 0;
ISystem::DebugStats Method
C++
virtual void DebugStats(bool checkpoint, bool leaks) = 0;
Description

virtual const char *GetGamePath()=0;

ISystem::DecompressDataBlock Method
C++
virtual bool DecompressDataBlock(const void * input, size_t inputSize, void * output, size_t& outputSize) = 0;
ISystem::DisplayErrorMessage Method

Displays an error message to display info for certain time

C++
virtual void DisplayErrorMessage(const char* acMessage, float fTime, const float* pfColor = 0, bool bHardError = true) = 0;
Parameters
Parameters
Description
const char* acMessage
Message to show
float fTime
Amount of seconds to show onscreen
ISystem::DoWorkDuringOcclusionChecks Method

Optimisation: do part of the update while waiting for occlusion queries to complete

C++
virtual void DoWorkDuringOcclusionChecks() = 0;
ISystem::DumpMemoryCoverage Method
C++
virtual void DumpMemoryCoverage() = 0;
Description

Useful to investigate memory fragmentation. Every time you call this from the console: #System.DumpMemoryCoverage() it adds a line to "MemoryCoverage.bmp" (generated the first time, there is a max line count).

ISystem::DumpMemoryUsageStatistics Method

Dumps the memory usage statistics to the logging default MB. (can be KB)

C++
virtual void DumpMemoryUsageStatistics(bool bUseKB = false) = 0;
ISystem::DumpMMStats Method
C++
virtual int DumpMMStats(bool log) = 0;
ISystem::DumpWinHeaps Method
C++
virtual void DumpWinHeaps() = 0;
ISystem::EndLoadingSectionProfiling Method

Ends function loading stats profiling.

C++
virtual void EndLoadingSectionProfiling(CLoadingTimeProfiler * pProfiler) = 0;
ISystem::ExecuteCommandLine Method
C++
virtual void ExecuteCommandLine() = 0;
Description

Execute command line arguments. Should be after init game.

Example

+g_gametype ASSAULT +map "testy"

ISystem::FatalError Method
C++
virtual void FatalError(const char * sFormat, ...);
Description

Displays error message. Logs it to console and file and error message box then terminates execution.

ISystem::GetAISystem Method
C++
virtual IAISystem * GetAISystem() = 0;
ISystem::GetApplicationInstance Method

Get the index of the currently running Crytek application. (0 = first instance, 1 = second instance, etc)

C++
virtual int GetApplicationInstance() = 0;
ISystem::GetBuildVersion Method

Gets build version.

C++
virtual const SFileVersion& GetBuildVersion() = 0;
ISystem::GetCheckpointData Method
C++
virtual void GetCheckpointData(ICheckpointData& data) = 0;
Description

defined(CVARS_WHITELIST)

ISystem::GetCompressedFileSize Method
C++
virtual unsigned int GetCompressedFileSize(const char * filename) = 0;
ISystem::GetConfigSpec Method

Retrieves current configuration specification for client or server.

C++
virtual ESystemConfigSpec GetConfigSpec(bool bClient = true) = 0;
Parameters
Parameters
Description
bool bClient = true
If true returns local client config spec, if false returns server config spec.
ISystem::GetCPUFlags Method

Gets current supported CPU features flags. (CPUF_SSE, CPUF_SSE2, CPUF_3DNOW, CPUF_MMX)

C++
virtual int GetCPUFlags() = 0;
ISystem::GetCrc32Gen Method

Retrieves the crc32 singleton instance.

C++
virtual Crc32Gen* GetCrc32Gen() = 0;
ISystem::GetCryFactoryRegistry Method

Gets access to all registered factories.

C++
virtual ICryFactoryRegistry* GetCryFactoryRegistry() const = 0;
ISystem::GetCurrentUpdateTimeStats Method

Retrieves the current stats for systems to update the respective time taken

C++
virtual sUpdateTimes& GetCurrentUpdateTimeStats() = 0;
ISystem::GetCVarsWhiteListConfigSink Method
C++
virtual ILoadConfigurationEntrySink* GetCVarsWhiteListConfigSink() const = 0;
Description

will return NULL if no whitelisting

ISystem::GetDeveloperName Method
C++
virtual char* GetDeveloperName(char* devName) = 0;
ISystem::GetEvaluationManager Method
C++
virtual struct IEvaluationManager* GetEvaluationManager() = 0;
ISystem::GetFileVersion Method

Gets file version.

C++
virtual const SFileVersion& GetFileVersion() = 0;
ISystem::GetFlashProfileResults Method
C++
virtual void GetFlashProfileResults(float& accumTime, bool reset) const = 0;
ISystem::GetForceNonDevMode Method
C++
virtual bool GetForceNonDevMode() const = 0;
Returns

True when running on a cheat protected server or a client that is connected to it (not used in singleplayer).

ISystem::GetGlobalEnvironment Method

Returns pointer to the global environment structure.

C++
virtual SSystemGlobalEnvironment* GetGlobalEnvironment() = 0;
ISystem::GetHMDDevice Method

Gets instance of a head mounted display device. It is currently possible to have only one device per type, so far. To choose which device will be your current one, use the console variable sys_CurrentHMDType = IHMDDevice::DeviceType.

C++
virtual IHMDDevice* GetHMDDevice() const = 0;
ISystem::GetHWND Method
C++
virtual WIN_HWND GetHWND() = 0;
ISystem::GetI3DEngine Method
C++
virtual I3DEngine * GetI3DEngine() = 0;
ISystem::GetIAnimationSystem Method
C++
virtual ICharacterManager * GetIAnimationSystem() = 0;
ISystem::GetIAudioSystem Method
C++
virtual IAudioSystem * GetIAudioSystem() = 0;
ISystem::GetIBudgetingSystem Method
C++
virtual IBudgetingSystem * GetIBudgetingSystem() = 0;
ISystem::GetICmdLine Method
C++
virtual ICmdLine * GetICmdLine() = 0;
ISystem::GetIConsole Method
C++
virtual IConsole * GetIConsole() = 0;
ISystem::GetICryFont Method
C++
virtual ICryFont * GetICryFont() = 0;
ISystem::GetIDataProbe Method

Retrieves IDataProbe interface.

C++
virtual IDataProbe* GetIDataProbe() = 0;
ISystem::GetIDialogSystem Method
C++
virtual IDialogSystem * GetIDialogSystem() = 0;
ISystem::GetIDiskProfiler Method
C++
virtual IDiskProfiler * GetIDiskProfiler() = 0;
ISystem::GetIEntitySystem Method
C++
virtual IEntitySystem * GetIEntitySystem() = 0;
ISystem::GetIFileChangeMonitor Method
C++
virtual IFileChangeMonitor * GetIFileChangeMonitor() = 0;
ISystem::GetIFlowSystem Method
C++
virtual IFlowSystem * GetIFlowSystem() = 0;
ISystem::GetIGame Method
C++
virtual IGame * GetIGame() = 0;
ISystem::GetIHardwareMouse Method
C++
virtual IHardwareMouse * GetIHardwareMouse() = 0;
ISystem::GetIInput Method
C++
virtual IInput * GetIInput() = 0;
ISystem::GetILog Method
C++
virtual ILog * GetILog() = 0;
ISystem::GetIMemoryManager Method
C++
virtual IMemoryManager * GetIMemoryManager() = 0;
ISystem::GetIMovieSystem Method
C++
virtual IMovieSystem * GetIMovieSystem() = 0;
ISystem::GetIMusicSystem Method
C++
virtual IMusicSystem * GetIMusicSystem() = 0;
ISystem::GetINameTable Method
C++
virtual INameTable * GetINameTable() = 0;
ISystem::GetINetwork Method
C++
virtual INetwork * GetINetwork() = 0;
ISystem::GetINotificationNetwork Method
C++
virtual INotificationNetwork * GetINotificationNetwork() = 0;
ISystem::GetIPak Method
C++
virtual ICryPak * GetIPak() = 0;
ISystem::GetIPhysicalWorld Method
C++
virtual IPhysicalWorld * GetIPhysicalWorld() = 0;
ISystem::GetIPhysicsDebugRenderer Method
C++
virtual IPhysicsDebugRenderer* GetIPhysicsDebugRenderer() = 0;
ISystem::GetIProcess Method

Gets the active process.

C++
virtual IProcess* GetIProcess() = 0;
Returns

A pointer to the current active process.

ISystem::GetIProfileSystem Method
C++
virtual IFrameProfileSystem * GetIProfileSystem() = 0;
ISystem::GetIProfilingSystem Method
C++
virtual IProfilingSystem * GetIProfilingSystem() = 0;
ISystem::GetIRemoteConsole Method
C++
virtual IRemoteConsole * GetIRemoteConsole() = 0;
ISystem::GetIRenderer Method
C++
virtual IRenderer * GetIRenderer() = 0;
ISystem::GetIResourceManager Method
C++
virtual IResourceManager * GetIResourceManager() = 0;
Returns

Can be NULL, because it only exists when running through the editor, not in pure game mode.

ISystem::GetIScriptSystem Method
C++
virtual IScriptSystem * GetIScriptSystem() = 0;
ISystem::GetISystemEventDispatcher Method
C++
virtual ISystemEventDispatcher * GetISystemEventDispatcher() = 0;
ISystem::GetITestSystem Method
C++
virtual ITestSystem * GetITestSystem() = 0;
Returns

0 if not activated, activate through #System.ApplicationTest

ISystem::GetITextModeConsole Method
C++
virtual ITextModeConsole * GetITextModeConsole() = 0;
ISystem::GetIThreadTaskManager Method
C++
virtual IThreadTaskManager * GetIThreadTaskManager() = 0;
ISystem::GetITimer Method
C++
virtual ITimer * GetITimer() = 0;
ISystem::GetIValidator Method
C++
virtual IValidator * GetIValidator() = 0;
ISystem::GetIVisualLog Method
C++
virtual IVisualLog * GetIVisualLog() = 0;
ISystem::GetIZLibCompressor Method
C++
virtual IZLibCompressor * GetIZLibCompressor() = 0;
ISystem::GetIZLibDecompressor Method
C++
virtual IZLibDecompressor * GetIZLibDecompressor() = 0;
ISystem::GetLevelEncrypter Method
C++
virtual struct ILevelEncrypter * GetLevelEncrypter() = 0;
ISystem::GetLoadingProfilerCallstack Method

Starts function loading stats profiling.

C++
virtual const char* GetLoadingProfilerCallstack() = 0;
ISystem::GetLoadingProgressListener Method
C++
virtual ISystem::ILoadingProgressListener * GetLoadingProgressListener() const = 0;
ISystem::GetLocalizationManager Method

Retrieves localized strings manager interface.

C++
virtual ILocalizationManager* GetLocalizationManager() = 0;
ISystem::GetLogicalCPUCount Method

Gets number of CPUs

C++
virtual int GetLogicalCPUCount() = 0;
ISystem::GetLZ4Decompressor Method
C++
virtual ILZ4Decompressor * GetLZ4Decompressor() = 0;
ISystem::GetMaxConfigSpec Method
C++
virtual ESystemConfigSpec GetMaxConfigSpec() const = 0;
ISystem::GetNoiseGen Method

Retrieves the perlin noise singleton instance.

C++
virtual CPNoise3* GetNoiseGen() = 0;
ISystem::GetPerfHUD Method
C++
virtual ICryPerfHUD * GetPerfHUD() = 0;
ISystem::GetPlatformOS Method
C++
virtual IPlatformOS * GetPlatformOS() = 0;
ISystem::GetProductVersion Method

Gets product version.

C++
virtual const SFileVersion& GetProductVersion() = 0;
ISystem::GetRootFolder Method

Returns the root folder specified by the command line option "-root "

C++
virtual const char* GetRootFolder() const = 0;
ISystem::GetStreamEngine Method
C++
virtual IStreamEngine * GetStreamEngine() = 0;
ISystem::GetSystemGlobalState Method
C++
virtual ESystemGlobalState GetSystemGlobalState() = 0;
ISystem::GetUpdateCounter Method

Retrieves system update counter.

C++
virtual uint64 GetUpdateCounter() = 0;
ISystem::GetUpdateStats Method
C++
virtual void GetUpdateStats(SSystemUpdateStats& stats) = 0;
Description

GetSystemUpdate stats (all systems update without except console) very useful on dedicated server as we throttle it to fixed frequency returns zeroes if no updates happened yet

ISystem::GetUpdateTimeStats Method

Retrieves the array of update times and the number of entries

C++
virtual const sUpdateTimes* GetUpdateTimeStats(uint32&, uint32&) = 0;
ISystem::GetUsedMemory Method

Returns the current used memory.

C++
virtual uint32 GetUsedMemory() = 0;
ISystem::GetUserName Method

Retrieve the name of the user currently logged in to the computer.

C++
virtual const char * GetUserName() = 0;
ISystem::GetViewCamera Method
C++
virtual CCamera& GetViewCamera() = 0;
ISystem::GetXmlUtils Method

Retrieves access to XML utilities interface.

C++
virtual IXmlUtils* GetXmlUtils() = 0;
ISystem::GFxAmpAdvanceFrame Method
C++
virtual void GFxAmpAdvanceFrame() = 0;
ISystem::GFxAmpEnable Method
C++
virtual void GFxAmpEnable(bool bEnable) = 0;
ISystem::HasHMDDevice Method

Test if specified HMD device type is available. Parameter "type" should have value from IHMDDevice::DeviceType enum. (using unsigned int so we don't pollute ISystem.h with IHMDDevice.h)

C++
virtual bool HasHMDDevice(unsigned int type) const = 0;
ISystem::HashStringLowerSeed Method
C++
virtual uint32 HashStringLowerSeed(const char* string, const uint32 seed) = 0;
ISystem::HashStringSeed Method
C++
virtual uint32 HashStringSeed(const char* string, const uint32 seed) = 0;
Description

Just for DLL based version: implementation for CryStringUtils::HashString[Lower]Seed

ISystem::IgnoreUpdates Method
C++
virtual void IgnoreUpdates(bool bIgnore) = 0;
Description

When ignore update sets to true, system will ignore and updates and render calls.

ISystem::IncreaseCheckpointLoadCount Method
C++
virtual void IncreaseCheckpointLoadCount() = 0;
ISystem::IntializeEngineModule Method

Loads a dynamic library, creates and initializes an instance of the module class

C++
virtual bool IntializeEngineModule(const char * dllName, const char * moduleClassName, const SSystemInitParams & initParams, bool bQuitIfNotFound) = 0;
ISystem::IsAssertDialogVisible Method

Returns if the assert window from CryAssert is visible. OBS1: needed by the editor, as in some cases it can freeze if during an assert engine it will handle some events such as mouse movement in a CryPhysics assert. OBS2: it will always return false, if asserts are disabled or ignored.

C++
virtual bool IsAssertDialogVisible() const = 0;
ISystem::IsDevMode Method
C++
virtual bool IsDevMode() const = 0;
ISystem::IsMODValid Method
C++
virtual bool IsMODValid(const char * szMODName) const = 0;
ISystem::IsPaused Method

Query if system is now paused. Pause flag is set when calling system update with pause mode.

C++
virtual bool IsPaused() const = 0;
ISystem::IsQuitting Method

Returns true if the application is in the shutdown phase.

C++
virtual bool IsQuitting() const = 0;
ISystem::IsRelaunch Method
C++
virtual bool IsRelaunch() const = 0;
ISystem::IsSerializingFile Method
C++
virtual int IsSerializingFile() const = 0;
ISystem::IsShaderCacheGenMode Method

Returns true if the application was initialized to generate the shader cache.

C++
virtual bool IsShaderCacheGenMode() const = 0;
ISystem::IsTestMode Method
C++
virtual bool IsTestMode() const = 0;
Returns

True if system running in Test mode.

ISystem::IsUIFrameworkMode Method
C++
virtual bool IsUIFrameworkMode();
ISystem::LoadConfiguration Method

Loads system configuration

C++
virtual void LoadConfiguration(const char * sFilename, ILoadConfigurationEntrySink * pSink = 0) = 0;
Parameters
Parameters
Description
pCallback
0 means normal LoadConfigVar behaviour is used
ISystem::LoadXmlFromBuffer Method

Loads xml from memory buffer, returns 0 if load failed.

C++
virtual XmlNodeRef LoadXmlFromBuffer(const char * buffer, size_t size, bool bReuseStrings = false) = 0;
ISystem::LoadXmlFromFile Method

Loads xml file, returns 0 if load failed.

C++
virtual XmlNodeRef LoadXmlFromFile(const char * sFilename, bool bReuseStrings = false) = 0;
ISystem::NeedDoWorkDuringOcclusionChecks Method
C++
virtual bool NeedDoWorkDuringOcclusionChecks() = 0;
ISystem::OnAssert Method

Called after the processing of the assert message box(Windows or Xbox). It will be called even when asserts are disabled by the console variables.

C++
virtual void OnAssert(const char* condition, const char* message, const char* fileName, unsigned int fileLineNumber) = 0;
ISystem::OutputLoadingTimeStats Method

Prints loading stats into log.

C++
virtual void OutputLoadingTimeStats() = 0;
ISystem::Quit Method

Quits the application.

C++
virtual void Quit() = 0;
ISystem::ReadCompressedFile Method
C++
virtual unsigned int ReadCompressedFile(const char * filename, void * data, unsigned int maxbitlen) = 0;
ISystem::RegisterErrorObserver Method

Registers listeners to CryAssert and error messages. (may not be called if asserts are disabled) Each pointer can be registered only once. (stl::push_back_unique) It will return false if the pointer is already registered. Returns true, otherwise.

C++
virtual bool RegisterErrorObserver(IErrorObserver* errorObserver) = 0;
ISystem::Relaunch Method

Tells the system if it is relaunching or not.

C++
virtual void Relaunch(bool bRelaunch) = 0;
ISystem::Release Method

Releases ISystem.

C++
virtual void Release() = 0;
ISystem::ReleaseAVIReader Method
C++
virtual void ReleaseAVIReader(IAVI_Reader * pAVIReader) = 0;
Description

Release the AVI reader

ISystem::Render Method

Renders subsystems.

C++
virtual void Render() = 0;
ISystem::RenderBegin Method

Begins rendering frame.

C++
virtual void RenderBegin() = 0;
ISystem::RenderEnd Method

Ends rendering frame and swap back buffer.

C++
virtual void RenderEnd(bool bRenderStats = true) = 0;
ISystem::RenderPhysicsStatistics Method
C++
virtual void RenderPhysicsStatistics(IPhysicalWorld* pWorld) = 0;
ISystem::RenderStatistics Method
C++
virtual void RenderStatistics() = 0;
Description

Renders the statistics; this is called from RenderEnd, but if the Host application (Editor) doesn't employ the Render cycle in ISystem, it may call this method to render the essential statistics.

ISystem::ReportBug Method
C++
virtual void ReportBug(const char * sFormat, ...);
Description

Reports a bug using the crash handler. Logs an error to the console and launches the crash handler, then continues execution.

ISystem::ResetFlashMeshCache Method
C++
virtual void ResetFlashMeshCache() const = 0;
ISystem::ResetWatchdogTimer Method
C++
virtual void ResetWatchdogTimer() = 0;
Description

Reset the watchdog timer

ISystem::SaveConfiguration Method

Saves system configuration.

C++
virtual void SaveConfiguration() = 0;
ISystem::SerializingFile Method

Tells the system in which way we are using the serialization system.

C++
virtual void SerializingFile(int mode) = 0;
ISystem::SetAssertVisible Method

Sets the AssertVisisble internal variable. Typically it should only be called by CryAssert.

C++
virtual void SetAssertVisible(bool bAssertVisble) = 0;
ISystem::SetConfigSpec Method

Changes current configuration specification for client or server.

C++
virtual void SetConfigSpec(ESystemConfigSpec spec, bool bClient) = 0;
Parameters
Parameters
Description
bool bClient
If true changes client config spec (sys_spec variable changed), if false changes only server config spec (as known on the client).
ISystem::SetFlashLoadMovieHandler Method
C++
virtual void SetFlashLoadMovieHandler(IFlashLoadMovieHandler* pHandler) const = 0;
ISystem::SetForceNonDevMode Method
C++
virtual void SetForceNonDevMode(const bool bValue) = 0;
Parameters
Parameters
Description
const bool bValue
Set to true when running on a cheat protected server or a client that is connected to it (not used in singleplayer).
ISystem::SetFrameProfiler Method

Frame profiler functions

C++
virtual void SetFrameProfiler(bool on, bool display, char * prefix) = 0;
ISystem::SetIDialogSystem Method
C++
virtual void SetIDialogSystem(IDialogSystem* pDialogSystem) = 0;
ISystem::SetIFileChangeMonitor Method
C++
virtual void SetIFileChangeMonitor(IFileChangeMonitor* pFileChangeMonitor) = 0;
ISystem::SetIFlashUI Method
C++
virtual void SetIFlashUI(IFlashUI* pFlashUI) = 0;
ISystem::SetIFlowSystem Method
C++
virtual void SetIFlowSystem(IFlowSystem* pFlowSystem) = 0;
ISystem::SetIGame Method

Game is created after System init, so has to be set explicitly.

C++
virtual void SetIGame(IGame* pGame) = 0;
ISystem::SetIMaterialEffects Method
C++
virtual void SetIMaterialEffects(IMaterialEffects* pMaterialEffects) = 0;
ISystem::SetIOpticsManager Method
C++
virtual void SetIOpticsManager(IOpticsManager* pOpticsManager) = 0;
ISystem::SetIParticleManager Method
C++
virtual void SetIParticleManager(IParticleManager* pParticleManager) = 0;
ISystem::SetIProcess Method

Sets the active process

C++
virtual void SetIProcess(IProcess * process) = 0;
Parameters
Parameters
Description
IProcess * process
A pointer to a class that implement the IProcess interface.
ISystem::SetIVisualLog Method
C++
virtual void SetIVisualLog(IVisualLog* pVisualLog) = 0;
ISystem::SetLoadingProgressListener Method
C++
virtual void SetLoadingProgressListener(ILoadingProgressListener * pListener) = 0;
ISystem::SetLoadOrigin Method
C++
virtual void SetLoadOrigin(LevelLoadOrigin origin) = 0;
ISystem::SetSystemGlobalState Method
C++
virtual void SetSystemGlobalState(const ESystemGlobalState systemGlobalState) = 0;
ISystem::SetThreadState Method

Thread management for subsystems

C++
virtual int SetThreadState(ESubsystem subsys, bool bActive) = 0;
Returns

Non-0 if the state was indeed changed, 0 if already in that state.

ISystem::SetViewCamera Method
C++
virtual void SetViewCamera(CCamera & Camera) = 0;
ISystem::ShowMessage Method
C++
virtual int ShowMessage(const char* text, const char* caption, unsigned int uType) = 0;
Description

Report message by provider or by using CryMessageBox. Doesn't terminate the execution.

ISystem::StartBootProfilerSessionFrames Method

Starts frame session

C++
virtual void StartBootProfilerSessionFrames(const char* pName) = 0;
ISystem::StartBootSectionProfiler Method

Starts function profiling with bootprofiler (session must be started).

C++
virtual CBootProfilerRecord* StartBootSectionProfiler(const char* name, const char* args) = 0;
ISystem::StartLoadingSectionProfiling Method

Starts function loading stats profiling.

C++
virtual struct SLoadingTimeContainer * StartLoadingSectionProfiling(CLoadingTimeProfiler * pProfiler, const char * szFuncName) = 0;
ISystem::SteamInit Method
C++
virtual bool SteamInit() = 0;
Description

Initializes Steam if needed and returns if it was successful

ISystem::StopBootProfilerSessionFrames Method

Stops frame session

C++
virtual void StopBootProfilerSessionFrames() = 0;
ISystem::StopBootSectionProfiler Method

Ends function profiling with bootprofiler.

C++
virtual void StopBootSectionProfiler(CBootProfilerRecord* record) = 0;
ISystem::SynchronousLoadingTick Method
C++
virtual void SynchronousLoadingTick(const char* pFunc, int line) = 0;
Description

! Update screen and call some important tick functions during loading.

ISystem::UnregisterErrorObserver Method

Unregisters listeners to CryAssert and error messages. It will return false if the pointer is not registered. Otherwise, returns true.

C++
virtual bool UnregisterErrorObserver(IErrorObserver* errorObserver) = 0;
ISystem::Update Method

Updates all subsystems (including the ScriptSink() )

C++
virtual bool Update(int updateFlags = 0, int nPauseMode = 0) = 0;
Parameters
Parameters
Description
int nPauseMode = 0
0=normal(no pause), 1=menu/pause, 2=cutscene
flags
One or more flags from ESystemUpdateFlags structure.
ISystem::UpdateLoadtime Method

Updates only require components during loading

C++
virtual bool UpdateLoadtime() = 0;
ISystem::Warning Method
C++
virtual void Warning(EValidatorModule module, EValidatorSeverity severity, int flags, const char * file, const char * format, ...) = 0;
ISystem::WarningV Method
C++
virtual void WarningV(EValidatorModule module, EValidatorSeverity severity, int flags, const char * file, const char * format, va_list args) = 0;
Description

Report warning to current Validator object. Doesn't terminate the execution.

ISystem::WasInDevMode Method
C++
virtual bool WasInDevMode() const = 0;
ISystem::WriteCompressedFile Method

Compressed file read & write

C++
virtual bool WriteCompressedFile(const char * filename, void * data, unsigned int bitlen) = 0;