diff options
| -rw-r--r-- | src/common/settings_common.h | 19 |
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; | |||
| 46 | constexpr u8 SpecializationAttributeMask = 0xf0; | 46 | constexpr u8 SpecializationAttributeMask = 0xf0; |
| 47 | constexpr u8 SpecializationAttributeOffset = 4; | 47 | constexpr u8 SpecializationAttributeOffset = 4; |
| 48 | 48 | ||
| 49 | // Scalar and countable could have better names | ||
| 49 | enum Specialization : u8 { | 50 | enum 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 | ||
| 62 | class BasicSetting; | 63 | class BasicSetting; |