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/ArenaRecord.cs | 171 +++++++++++++++++++++ 1 file changed, 171 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArenaRecord.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/ArenaRecord.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArenaRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/ArenaRecord.cs new file mode 100644 index 00000000..3b1290df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArenaRecord.cs @@ -0,0 +1,171 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ArenaRecord")] + [Serializable] + public class ArenaRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "OptimalRank", DataFormat = DataFormat.TwosComplement)] + public uint OptimalRank + { + get + { + return this._OptimalRank ?? 0u; + } + set + { + this._OptimalRank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool OptimalRankSpecified + { + get + { + return this._OptimalRank != null; + } + set + { + bool flag = value == (this._OptimalRank == null); + if (flag) + { + this._OptimalRank = (value ? new uint?(this.OptimalRank) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public uint point + { + get + { + return this._point ?? 0u; + } + set + { + this._point = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new uint?(this.point) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "dayupdate", DataFormat = DataFormat.TwosComplement)] + public uint dayupdate + { + get + { + return this._dayupdate ?? 0u; + } + set + { + this._dayupdate = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dayupdateSpecified + { + get + { + return this._dayupdate != null; + } + set + { + bool flag = value == (this._dayupdate == null); + if (flag) + { + this._dayupdate = (value ? new uint?(this.dayupdate) : null); + } + } + } + + [ProtoMember(4, Name = "pointreward", DataFormat = DataFormat.TwosComplement)] + public List pointreward + { + get + { + return this._pointreward; + } + } + + [ProtoMember(5, Name = "rankreward", DataFormat = DataFormat.TwosComplement)] + public List rankreward + { + get + { + return this._rankreward; + } + } + + private uint? _OptimalRank; + + private uint? _point; + + private uint? _dayupdate; + + private readonly List _pointreward = new List(); + + private readonly List _rankreward = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeOptimalRank() + { + return this.OptimalRankSpecified; + } + + private void ResetOptimalRank() + { + this.OptimalRankSpecified = false; + } + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + private bool ShouldSerializedayupdate() + { + return this.dayupdateSpecified; + } + + private void Resetdayupdate() + { + this.dayupdateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0