|
libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
|
A single console variable (CVar) holding a typed value. More...
#include <ConsoleVariable.h>
Public Member Functions | |
| ~CVar () | |
Public Attributes | ||
| ConsoleVariableType | Type | |
| Discriminator indicating which union field is active. | ||
| union { | ||
| int32_t Integer | ||
| Active when Type == ConsoleVariableType::Integer. More... | ||
| float Float | ||
| Active when Type == ConsoleVariableType::Float. More... | ||
| char * String = nullptr | ||
| Active when Type == ConsoleVariableType::String (heap-allocated). More... | ||
| Color_RGBA8 Color | ||
| Active when Type == ConsoleVariableType::Color. More... | ||
| Color_RGB8 Color24 | ||
| Active when Type == ConsoleVariableType::Color24. More... | ||
| }; | ||
A single console variable (CVar) holding a typed value.
CVars are the primary runtime-tunable settings system. Each CVar stores exactly one value whose type is determined by the Type field. The union members Integer, Float, String, Color, and Color24 are mutually exclusive.
|
inline |
| union { ... } Ship::CVar |
| Color_RGBA8 Ship::CVar::Color |
Active when Type == ConsoleVariableType::Color.
| Color_RGB8 Ship::CVar::Color24 |
Active when Type == ConsoleVariableType::Color24.
| float Ship::CVar::Float |
Active when Type == ConsoleVariableType::Float.
| int32_t Ship::CVar::Integer |
Active when Type == ConsoleVariableType::Integer.
| char* Ship::CVar::String = nullptr |
Active when Type == ConsoleVariableType::String (heap-allocated).
| ConsoleVariableType Ship::CVar::Type |
Discriminator indicating which union field is active.