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

SignatureNameDescription
virtual ~IConsoleVariable() = default~IConsoleVariable

Public functions

ReturnsNameDescription
const std::string&GetName
const std::string&GetHelpText
std::stringGetValueAsString
boolSetFromStringTrue when parsing succeeded.
boolSetFromStringThe prioritised write: refused (false) when a higher source holds the value, otherwise parsed, stored and recorded as setBy.
voidResetToDefaultRestore the value the cvar registered with; the source goes back to Constructor.
ECVarSetByGetSetBy
boolCanBeSetBy
EConsoleVariableFlagsGetFlags
voidSetFlags

Function details

~IConsoleVariable

C++
virtual ~IConsoleVariable() = default

GetName

C++
virtual const std::string& GetName() const noexcept = 0

GetHelpText

C++
virtual const std::string& GetHelpText() const noexcept = 0

GetValueAsString

C++
virtual std::string GetValueAsString() const = 0

SetFromString

C++
virtual bool SetFromString(std::string_view str) = 0

True 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() = 0

Restore the value the cvar registered with; the source goes back to Constructor.

GetSetBy

C++
ECVarSetBy GetSetBy() const noexcept

CanBeSetBy

C++
bool CanBeSetBy(ECVarSetBy setBy) const noexcept

GetFlags

C++
EConsoleVariableFlags GetFlags() const noexcept

SetFlags

C++
void SetFlags(EConsoleVariableFlags flags) noexcept
Generated from Core/IConsoleManager.h via core.json · Nov 5, 2026Version 1.0.0