(FixedSetSetting): another application setting class.

This commit is contained in:
morkt 2018-06-06 00:35:39 +04:00
parent 0009e3fa15
commit 3dabada74e

View File

@ -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) { }
}
/// <summary>
/// Application setting represented by integer range.
/// </summary>
public class FixedGaugeSetting : ApplicationSetting
{
public int Min { get; set; }
@ -119,4 +123,16 @@ namespace GameRes
{
}
}
/// <summary>
/// Application setting that has limited set of possible values.
/// </summary>
public class FixedSetSetting : ApplicationSetting
{
public IEnumerable ValuesSet { get; set; }
public FixedSetSetting (ApplicationSettingsBase settings) : base (settings)
{
}
}
}