WingMan
/trunk/WingMan/Bindings/KeyBindingExchange.cs |
@@ -1,25 +1,30 @@ |
using System.Collections.Generic; |
using System.Xml.Serialization; |
using ProtoBuf; |
|
namespace WingMan.Bindings |
{ |
[ProtoContract] |
public class KeyBindingExchange |
{ |
[XmlIgnore] public static readonly XmlSerializer XmlSerializer = |
new XmlSerializer(typeof(KeyBindingExchange)); |
private readonly List<string> _keyBindings = new List<string>(); |
|
public KeyBindingExchange() |
{ |
} |
|
public KeyBindingExchange(string nick, List<KeyBinding> keyBindings) |
public KeyBindingExchange(string nick, List<string> keyBindings) : this() |
{ |
Nick = nick; |
KeyBindings = keyBindings; |
} |
|
public string Nick { get; set; } |
[ProtoMember(1)] public string Nick { get; set; } |
|
public List<KeyBinding> KeyBindings { get; set; } |
[ProtoMember(2)] |
public List<string> KeyBindings |
{ |
get => _keyBindings; |
set => _keyBindings.AddRange(value); |
} |
} |
} |
} |