2013-11-18 18:06:17 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Xml.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace DrumKit
|
|
|
|
|
{
|
|
|
|
|
[XmlType("drumkitSettings")]
|
|
|
|
|
public class AppSettings
|
|
|
|
|
{
|
|
|
|
|
[XmlElement("currentKit")]
|
|
|
|
|
public string CurrentKit { get; set; }
|
|
|
|
|
|
|
|
|
|
[XmlElement("showKeys")]
|
|
|
|
|
public bool ShowKeyBindings { get; set; }
|
|
|
|
|
|
|
|
|
|
[XmlElement("animations")]
|
|
|
|
|
public bool Animations { get; set; }
|
|
|
|
|
|
2013-11-18 18:11:53 +00:00
|
|
|
|
[XmlElement("masterVolume")]
|
|
|
|
|
public float MasterVolume { get; set; }
|
|
|
|
|
|
|
|
|
|
[XmlElement("debugMode")]
|
|
|
|
|
public bool DebugMode { get; set; }
|
|
|
|
|
|
|
|
|
|
[XmlElement("polyphony")]
|
|
|
|
|
public int Polyphony { get; set; }
|
|
|
|
|
|
2013-11-18 18:06:17 +00:00
|
|
|
|
public AppSettings()
|
|
|
|
|
{
|
|
|
|
|
this.CurrentKit = "Default";
|
|
|
|
|
this.ShowKeyBindings = false;
|
|
|
|
|
this.Animations = true;
|
2013-11-18 18:11:53 +00:00
|
|
|
|
this.MasterVolume = 0.8f;
|
|
|
|
|
this.DebugMode = false;
|
|
|
|
|
this.Polyphony = 64;
|
2013-11-18 18:06:17 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|