summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/RiftRankData.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/KKSG/RiftRankData.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/RiftRankData.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/RiftRankData.cs191
1 files changed, 191 insertions, 0 deletions
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);
+ }
+ }
+}