summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/FashionData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/FashionData.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/FashionData.cs289
1 files changed, 289 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FashionData.cs b/Client/Assets/Scripts/XMainClient/KKSG/FashionData.cs
new file mode 100644
index 00000000..ea521dbd
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/FashionData.cs
@@ -0,0 +1,289 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "FashionData")]
+ [Serializable]
+ public class FashionData : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "itemID", DataFormat = DataFormat.TwosComplement)]
+ public uint itemID
+ {
+ get
+ {
+ return this._itemID ?? 0u;
+ }
+ set
+ {
+ this._itemID = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool itemIDSpecified
+ {
+ get
+ {
+ return this._itemID != null;
+ }
+ set
+ {
+ bool flag = value == (this._itemID == null);
+ if (flag)
+ {
+ this._itemID = (value ? new uint?(this.itemID) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)]
+ public uint level
+ {
+ get
+ {
+ return this._level ?? 0u;
+ }
+ set
+ {
+ this._level = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool levelSpecified
+ {
+ get
+ {
+ return this._level != null;
+ }
+ set
+ {
+ bool flag = value == (this._level == null);
+ if (flag)
+ {
+ this._level = (value ? new uint?(this.level) : null);
+ }
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)]
+ public ulong uid
+ {
+ get
+ {
+ return this._uid ?? 0UL;
+ }
+ set
+ {
+ this._uid = new ulong?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool uidSpecified
+ {
+ get
+ {
+ return this._uid != null;
+ }
+ set
+ {
+ bool flag = value == (this._uid == null);
+ if (flag)
+ {
+ this._uid = (value ? new ulong?(this.uid) : null);
+ }
+ }
+ }
+
+ [ProtoMember(4, IsRequired = false, Name = "timeleft", DataFormat = DataFormat.TwosComplement)]
+ public uint timeleft
+ {
+ get
+ {
+ return this._timeleft ?? 0u;
+ }
+ set
+ {
+ this._timeleft = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool timeleftSpecified
+ {
+ get
+ {
+ return this._timeleft != null;
+ }
+ set
+ {
+ bool flag = value == (this._timeleft == null);
+ if (flag)
+ {
+ this._timeleft = (value ? new uint?(this.timeleft) : null);
+ }
+ }
+ }
+
+ [ProtoMember(5, IsRequired = false, Name = "pos", DataFormat = DataFormat.TwosComplement)]
+ public uint pos
+ {
+ get
+ {
+ return this._pos ?? 0u;
+ }
+ set
+ {
+ this._pos = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool posSpecified
+ {
+ get
+ {
+ return this._pos != null;
+ }
+ set
+ {
+ bool flag = value == (this._pos == null);
+ if (flag)
+ {
+ this._pos = (value ? new uint?(this.pos) : null);
+ }
+ }
+ }
+
+ [ProtoMember(6, Name = "attrs", DataFormat = DataFormat.Default)]
+ public List<AttributeInfo> attrs
+ {
+ get
+ {
+ return this._attrs;
+ }
+ }
+
+ [ProtoMember(7, IsRequired = false, Name = "timeend", DataFormat = DataFormat.TwosComplement)]
+ public uint timeend
+ {
+ get
+ {
+ return this._timeend ?? 0u;
+ }
+ set
+ {
+ this._timeend = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool timeendSpecified
+ {
+ get
+ {
+ return this._timeend != null;
+ }
+ set
+ {
+ bool flag = value == (this._timeend == null);
+ if (flag)
+ {
+ this._timeend = (value ? new uint?(this.timeend) : null);
+ }
+ }
+ }
+
+ private uint? _itemID;
+
+ private uint? _level;
+
+ private ulong? _uid;
+
+ private uint? _timeleft;
+
+ private uint? _pos;
+
+ private readonly List<AttributeInfo> _attrs = new List<AttributeInfo>();
+
+ private uint? _timeend;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeitemID()
+ {
+ return this.itemIDSpecified;
+ }
+
+ private void ResetitemID()
+ {
+ this.itemIDSpecified = false;
+ }
+
+ private bool ShouldSerializelevel()
+ {
+ return this.levelSpecified;
+ }
+
+ private void Resetlevel()
+ {
+ this.levelSpecified = false;
+ }
+
+ private bool ShouldSerializeuid()
+ {
+ return this.uidSpecified;
+ }
+
+ private void Resetuid()
+ {
+ this.uidSpecified = false;
+ }
+
+ private bool ShouldSerializetimeleft()
+ {
+ return this.timeleftSpecified;
+ }
+
+ private void Resettimeleft()
+ {
+ this.timeleftSpecified = false;
+ }
+
+ private bool ShouldSerializepos()
+ {
+ return this.posSpecified;
+ }
+
+ private void Resetpos()
+ {
+ this.posSpecified = false;
+ }
+
+ private bool ShouldSerializetimeend()
+ {
+ return this.timeendSpecified;
+ }
+
+ private void Resettimeend()
+ {
+ this.timeendSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}