From 3dabada74e63a11854fe57d9626dd06bd83e993e Mon Sep 17 00:00:00 2001 From: morkt Date: Wed, 6 Jun 2018 00:35:39 +0400 Subject: [PATCH] (FixedSetSetting): another application setting class. --- GameRes/ResourceSettings.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/GameRes/ResourceSettings.cs b/GameRes/ResourceSettings.cs index f34a7333..e1bae4d8 100644 --- a/GameRes/ResourceSettings.cs +++ b/GameRes/ResourceSettings.cs @@ -23,6 +23,7 @@ // IN THE SOFTWARE. // +using System.Collections; using System.Collections.Generic; using System.Configuration; @@ -109,6 +110,9 @@ namespace GameRes public LocalResourceSetting () : base (GameRes.Properties.Settings.Default) { } } + /// + /// Application setting represented by integer range. + /// public class FixedGaugeSetting : ApplicationSetting { public int Min { get; set; } @@ -119,4 +123,16 @@ namespace GameRes { } } + + /// + /// Application setting that has limited set of possible values. + /// + public class FixedSetSetting : ApplicationSetting + { + public IEnumerable ValuesSet { get; set; } + + public FixedSetSetting (ApplicationSettingsBase settings) : base (settings) + { + } + } }