settings: Give indices to enums
This commit is contained in:
parent
ecc1feff64
commit
e7f01128f1
3 changed files with 36 additions and 6 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue