class

TConsoleVariable

T is int / float / bool / std::string.

Module
Core
Header
#include "Core/IConsoleManager.h"
Namespace
Mowo
Template
template<typename T>

Constructors

SignatureNameDescription
TConsoleVariable(std::string name, T defaultValue, std::string helpText, EConsol…TConsoleVariableFlags before Register: registration replays the command line, which must already see a Cheat or ReadOnly cvar as one.
~TConsoleVariable() override~TConsoleVariable

Public functions

ReturnsNameDescription
TGetAtomic load — call from any thread.
TGetDefault
voidSetThe raw write: code that mirrors live state into its own cvar (the upscaler that fell back, a toggle a panel owns).
boolSet
const std::string&GetName
const std::string&GetHelpText
std::stringGetValueAsString
boolSetFromString
voidResetToDefault

Function details

TConsoleVariable

C++
TConsoleVariable(std::string name, T defaultValue, std::string helpText, EConsoleVariableFlags flags = EConsoleVariableFlags::None) : m_name(std::move(name)), m_help(std::move(helpText)), m_default(defaultValue), m_value(defaultValue)

Flags before Register: registration replays the command line, which must already see a Cheat or ReadOnly cvar as one.

~TConsoleVariable

C++
~TConsoleVariable() override

Get

C++
T Get() const noexcept

Atomic load — call from any thread. Writers serialise through SetByName.

GetDefault

C++
T GetDefault() const noexcept

Set

C++
void Set(T value) noexcept

The raw write: code that mirrors live state into its own cvar (the upscaler that fell back, a toggle a panel owns). No priority check, and the recorded source stays.

Set

C++
bool Set(T value, ECVarSetBy setBy) noexcept

GetName

C++
const std::string& GetName() const noexcept override

GetHelpText

C++
const std::string& GetHelpText() const noexcept override

GetValueAsString

C++
std::string GetValueAsString() const override

SetFromString

C++
bool SetFromString(std::string_view str) override

ResetToDefault

C++
void ResetToDefault() override
Generated from Core/IConsoleManager.h via core.json · Nov 5, 2026Version 1.0.0