From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/KKSG/RiftRankData.cs | 191 +++++++++++++++++++++ 1 file changed, 191 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiftRankData.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/RiftRankData.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiftRankData.cs b/Client/Assets/Scripts/XMainClient/KKSG/RiftRankData.cs new file mode 100644 index 00000000..79e1685a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiftRankData.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RiftRankData")] + [Serializable] + public class RiftRankData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "riftFloor", DataFormat = DataFormat.TwosComplement)] + public uint riftFloor + { + get + { + return this._riftFloor ?? 0u; + } + set + { + this._riftFloor = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool riftFloorSpecified + { + get + { + return this._riftFloor != null; + } + set + { + bool flag = value == (this._riftFloor == null); + if (flag) + { + this._riftFloor = (value ? new uint?(this.riftFloor) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "passTime", DataFormat = DataFormat.TwosComplement)] + public uint passTime + { + get + { + return this._passTime ?? 0u; + } + set + { + this._passTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool passTimeSpecified + { + get + { + return this._passTime != null; + } + set + { + bool flag = value == (this._passTime == null); + if (flag) + { + this._passTime = (value ? new uint?(this.passTime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "ppt", DataFormat = DataFormat.TwosComplement)] + public uint ppt + { + get + { + return this._ppt ?? 0u; + } + set + { + this._ppt = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pptSpecified + { + get + { + return this._ppt != null; + } + set + { + bool flag = value == (this._ppt == null); + if (flag) + { + this._ppt = (value ? new uint?(this.ppt) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "updateTime", DataFormat = DataFormat.TwosComplement)] + public uint updateTime + { + get + { + return this._updateTime ?? 0u; + } + set + { + this._updateTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool updateTimeSpecified + { + get + { + return this._updateTime != null; + } + set + { + bool flag = value == (this._updateTime == null); + if (flag) + { + this._updateTime = (value ? new uint?(this.updateTime) : null); + } + } + } + + private uint? _riftFloor; + + private uint? _passTime; + + private uint? _ppt; + + private uint? _updateTime; + + private IExtension extensionObject; + + private bool ShouldSerializeriftFloor() + { + return this.riftFloorSpecified; + } + + private void ResetriftFloor() + { + this.riftFloorSpecified = false; + } + + private bool ShouldSerializepassTime() + { + return this.passTimeSpecified; + } + + private void ResetpassTime() + { + this.passTimeSpecified = false; + } + + private bool ShouldSerializeppt() + { + return this.pptSpecified; + } + + private void Resetppt() + { + this.pptSpecified = false; + } + + private bool ShouldSerializeupdateTime() + { + return this.updateTimeSpecified; + } + + private void ResetupdateTime() + { + this.updateTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0