From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Assets/Scripts/XMainClient/KKSG/FashionData.cs | 289 +++++++++++++++++++++ 1 file changed, 289 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FashionData.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/FashionData.cs') 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 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 _attrs = new List(); + + 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); + } + } +} -- cgit v1.1-26-g67d0