summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/settings_common.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/common/settings_common.h b/src/common/settings_common.h
index 6f90ae90d..2efb329b0 100644
--- a/src/common/settings_common.h
+++ b/src/common/settings_common.h
@@ -46,17 +46,18 @@ constexpr u8 SpecializationTypeMask = 0xf;
46constexpr u8 SpecializationAttributeMask = 0xf0; 46constexpr u8 SpecializationAttributeMask = 0xf0;
47constexpr u8 SpecializationAttributeOffset = 4; 47constexpr u8 SpecializationAttributeOffset = 4;
48 48
49// Scalar and countable could have better names
49enum Specialization : u8 { 50enum Specialization : u8 {
50 Default = 0, 51 Default = 0,
51 Time = 1, 52 Time = 1, // Duration or specific moment in time
52 Hex = 2, 53 Hex = 2, // Hexadecimal number
53 List = 3, 54 List = 3, // Setting has specific members
54 RuntimeList = 4, 55 RuntimeList = 4, // Members of the list are determined during runtime
55 Scalar = 5, 56 Scalar = 5, // Values are continuous
56 Countable = 6, 57 Countable = 6, // Can be stepped through
57 Paired = 7, 58 Paired = 7, // Another setting is associated with this setting
58 59
59 Percentage = (1 << SpecializationAttributeOffset), 60 Percentage = (1 << SpecializationAttributeOffset), // Should be represented as a percentage
60}; 61};
61 62
62class BasicSetting; 63class BasicSetting;