Refactor console ending this saga

This commit is contained in:
Future committed 2022-05-18 00:32:10 +02:00
1 parent 7f5643dcae
commit 59b5a16d6f
13 files changed
+274 -64

No files matched your search

+9
View File
@@ -184,6 +184,13 @@ enum dvar_type : std::int8_t {
DVAR_TYPE_FLOAT_3_COLOR = 0x9,
};
enum class DvarSetSource {
DVAR_SOURCE_INTERNAL,
DVAR_SOURCE_EXTERNAL,
DVAR_SOURCE_SCRIPT,
DVAR_SOURCE_DEVGUI,
};
union DvarValue {
bool enabled;
int integer;
@@ -194,6 +201,8 @@ union DvarValue {
char color[4];
};
static_assert(sizeof(DvarValue) == 0x10);
struct enum_limit {
int stringCount;
const char** strings;