CVarWrapper
Last edited bySimple_AOB10/16/2025
CVarWrapper(const CVarWrapper &other)
| Parameter | Type | Description |
|---|---|---|
| other | CVarWrapper | --- |
CVarWrapper operator=(CVarWrapper rhs)
| Parameter | Type | Description |
|---|---|---|
| rhs | CVarWrapper | --- |
~CVarWrapper()
std::string getCVarName()
int getIntValue()
float getFloatValue()
bool getBoolValue()
LinearColor getColorValue()
std::string getStringValue()
std::string getDescription()
const std::string GetDefaultValue()
bool HasMinimum()
bool HasMaximum()
float GetMinimum()
float GetMaximum()
bool IsHidden()
bool ShouldSaveToCfg()
void ResetToDefault()
void notify()
void setValue(LinearColor value)
| Parameter | Type | Description |
|---|---|---|
| value | LinearColor | --- |
void addOnValueChanged(std::function< void(std::string, CVarWrapper)> changeFunc)
| Parameter | Type | Description |
|---|---|---|
| changeFunc | CVarWrapper | --- |
void removeOnValueChanged()
void bindTo(std::shared_ptr< LinearColor > var)
| Parameter | Type | Description |
|---|---|---|
| var | LinearColor | --- |