From c37d8a15fdac1a3c4f86ac2cd5b9ca6de9c314aa Mon Sep 17 00:00:00 2001 From: Cara Date: Thu, 27 Jul 2023 06:30:22 +0930 Subject: [PATCH] Use own ConfigType enum (#1319) --- Dalamud/Game/Config/ConfigType.cs | 32 +++++++++++++++++++++++ Dalamud/Game/Config/SystemConfigOption.cs | 4 +-- Dalamud/Game/Config/UiConfigOption.cs | 4 +-- Dalamud/Game/Config/UiControlOption.cs | 4 +-- 4 files changed, 35 insertions(+), 9 deletions(-) create mode 100644 Dalamud/Game/Config/ConfigType.cs diff --git a/Dalamud/Game/Config/ConfigType.cs b/Dalamud/Game/Config/ConfigType.cs new file mode 100644 index 000000000..731b26cc8 --- /dev/null +++ b/Dalamud/Game/Config/ConfigType.cs @@ -0,0 +1,32 @@ +namespace Dalamud.Game.Config; + +/// +/// Types of options used by the game config. +/// +public enum ConfigType +{ + /// + /// Unused config index. + /// + Unused = 0, + + /// + /// A label entry with no value. + /// + Category = 1, + + /// + /// A config entry with an unsigned integer value. + /// + UInt = 2, + + /// + /// A config entry with a float value. + /// + Float = 3, + + /// + /// A config entry with a string value. + /// + String = 4, +} diff --git a/Dalamud/Game/Config/SystemConfigOption.cs b/Dalamud/Game/Config/SystemConfigOption.cs index 40d6b2fc9..70982311a 100644 --- a/Dalamud/Game/Config/SystemConfigOption.cs +++ b/Dalamud/Game/Config/SystemConfigOption.cs @@ -1,6 +1,4 @@ -using FFXIVClientStructs.FFXIV.Common.Configuration; - -namespace Dalamud.Game.Config; +namespace Dalamud.Game.Config; // ReSharper disable InconsistentNaming // ReSharper disable IdentifierTypo diff --git a/Dalamud/Game/Config/UiConfigOption.cs b/Dalamud/Game/Config/UiConfigOption.cs index 98fb4502d..82f823ffe 100644 --- a/Dalamud/Game/Config/UiConfigOption.cs +++ b/Dalamud/Game/Config/UiConfigOption.cs @@ -1,6 +1,4 @@ -using FFXIVClientStructs.FFXIV.Common.Configuration; - -namespace Dalamud.Game.Config; +namespace Dalamud.Game.Config; // ReSharper disable InconsistentNaming // ReSharper disable IdentifierTypo diff --git a/Dalamud/Game/Config/UiControlOption.cs b/Dalamud/Game/Config/UiControlOption.cs index 742df6b9f..5d36ee84d 100644 --- a/Dalamud/Game/Config/UiControlOption.cs +++ b/Dalamud/Game/Config/UiControlOption.cs @@ -1,6 +1,4 @@ -using FFXIVClientStructs.FFXIV.Common.Configuration; - -namespace Dalamud.Game.Config; +namespace Dalamud.Game.Config; // ReSharper disable InconsistentNaming // ReSharper disable IdentifierTypo