class
IConsoleVariable
Gameplay reads through the typed TConsoleVariable<T>; the registry stores this base so editors and config can reach every cvar uniformly.
- Module
- Core
- Header
#include "Core/IConsoleManager.h"- Namespace
Mowo
Constructors
| Signature | Name | Description |
|---|---|---|
virtual ~IConsoleVariable() = default | ~IConsoleVariable |
Public functions
| Returns | Name | Description |
|---|---|---|
const std::string& | GetName | |
const std::string& | GetHelpText | |
std::string | GetValueAsString | |
bool | SetFromString | True when parsing succeeded. |
bool | SetFromString | The prioritised write: refused (false) when a higher source holds the value, otherwise parsed, stored and recorded as setBy. |
void | ResetToDefault | Restore the value the cvar registered with; the source goes back to Constructor. |
ECVarSetBy | GetSetBy | |
bool | CanBeSetBy | |
EConsoleVariableFlags | GetFlags | |
void | SetFlags |
Function details
~IConsoleVariable
C++
virtual ~IConsoleVariable() = defaultGetName
C++
virtual const std::string& GetName() const noexcept = 0GetHelpText
C++
virtual const std::string& GetHelpText() const noexcept = 0GetValueAsString
C++
virtual std::string GetValueAsString() const = 0SetFromString
C++
virtual bool SetFromString(std::string_view str) = 0True when parsing succeeded. Ignores the set-by priority and leaves the recorded source alone — the raw write; outside sources go through SetFromString(str, setBy).
SetFromString
C++
bool SetFromString(std::string_view str, ECVarSetBy setBy)The prioritised write: refused (false) when a higher source holds the value, otherwise parsed, stored and recorded as setBy.
ResetToDefault
C++
virtual void ResetToDefault() = 0Restore the value the cvar registered with; the source goes back to Constructor.
GetSetBy
C++
ECVarSetBy GetSetBy() const noexceptCanBeSetBy
C++
bool CanBeSetBy(ECVarSetBy setBy) const noexceptGetFlags
C++
EConsoleVariableFlags GetFlags() const noexceptSetFlags
C++
void SetFlags(EConsoleVariableFlags flags) noexceptGenerated from Core/IConsoleManager.h via core.json · Nov 5, 2026Version 1.0.0