summaryrefslogtreecommitdiff
path: root/src/common/settings_common.h
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-06-21 21:41:06 -0400
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-21 10:56:55 -0400
commite7f01128f181a7b754f6d5f94122cde059c7ed1a (patch)
treef41e233577fbb839e39f91a86d3f5177aa0fa861 /src/common/settings_common.h
parentecc1feff6478c1429648ebe003b54d974d9a3c3d (diff)
settings: Give indices to enums
Diffstat (limited to 'src/common/settings_common.h')
-rw-r--r--src/common/settings_common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/settings_common.h b/src/common/settings_common.h
index 669d32204..b355384a4 100644
--- a/src/common/settings_common.h
+++ b/src/common/settings_common.h
@@ -220,6 +220,11 @@ public:
*/
[[nodiscard]] virtual constexpr bool Ranged() const = 0;
+ /**
+ * @returns The index of the enum if the underlying setting type is an enum, else max of u32.
+ */
+ [[nodiscard]] virtual constexpr u32 EnumIndex() const = 0;
+
/*
* Switchable settings
*/