diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/MapKeyValue.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/MapKeyValue.cs | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MapKeyValue.cs b/Client/Assets/Scripts/XMainClient/KKSG/MapKeyValue.cs new file mode 100644 index 00000000..ee78b505 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MapKeyValue.cs @@ -0,0 +1,105 @@ +using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "MapKeyValue")]
+ [Serializable]
+ public class MapKeyValue : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "key", DataFormat = DataFormat.TwosComplement)]
+ public ulong key
+ {
+ get
+ {
+ return this._key ?? 0UL;
+ }
+ set
+ {
+ this._key = new ulong?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool keySpecified
+ {
+ get
+ {
+ return this._key != null;
+ }
+ set
+ {
+ bool flag = value == (this._key == null);
+ if (flag)
+ {
+ this._key = (value ? new ulong?(this.key) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "value", DataFormat = DataFormat.TwosComplement)]
+ public ulong value
+ {
+ get
+ {
+ return this._value ?? 0UL;
+ }
+ set
+ {
+ this._value = new ulong?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool valueSpecified
+ {
+ get
+ {
+ return this._value != null;
+ }
+ set
+ {
+ bool flag = value == (this._value == null);
+ if (flag)
+ {
+ this._value = (value ? new ulong?(this.value) : null);
+ }
+ }
+ }
+
+ private ulong? _key;
+
+ private ulong? _value;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializekey()
+ {
+ return this.keySpecified;
+ }
+
+ private void Resetkey()
+ {
+ this.keySpecified = false;
+ }
+
+ private bool ShouldSerializevalue()
+ {
+ return this.valueSpecified;
+ }
+
+ private void Resetvalue()
+ {
+ this.valueSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}
|