From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/GetLeagueBattleRecordRes.cs | 289 +++++++++++++++++++++ 1 file changed, 289 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleRecordRes.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleRecordRes.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleRecordRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleRecordRes.cs new file mode 100644 index 00000000..9902b30f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleRecordRes.cs @@ -0,0 +1,289 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetLeagueBattleRecordRes")] + [Serializable] + public class GetLeagueBattleRecordRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "winnum", DataFormat = DataFormat.TwosComplement)] + public uint winnum + { + get + { + return this._winnum ?? 0u; + } + set + { + this._winnum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winnumSpecified + { + get + { + return this._winnum != null; + } + set + { + bool flag = value == (this._winnum == null); + if (flag) + { + this._winnum = (value ? new uint?(this.winnum) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "losenum", DataFormat = DataFormat.TwosComplement)] + public uint losenum + { + get + { + return this._losenum ?? 0u; + } + set + { + this._losenum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool losenumSpecified + { + get + { + return this._losenum != null; + } + set + { + bool flag = value == (this._losenum == null); + if (flag) + { + this._losenum = (value ? new uint?(this.losenum) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "winrate", DataFormat = DataFormat.FixedSize)] + public float winrate + { + get + { + return this._winrate ?? 0f; + } + set + { + this._winrate = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winrateSpecified + { + get + { + return this._winrate != null; + } + set + { + bool flag = value == (this._winrate == null); + if (flag) + { + this._winrate = (value ? new float?(this.winrate) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "max_continuewin", DataFormat = DataFormat.TwosComplement)] + public uint max_continuewin + { + get + { + return this._max_continuewin ?? 0u; + } + set + { + this._max_continuewin = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool max_continuewinSpecified + { + get + { + return this._max_continuewin != null; + } + set + { + bool flag = value == (this._max_continuewin == null); + if (flag) + { + this._max_continuewin = (value ? new uint?(this.max_continuewin) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "max_continuelose", DataFormat = DataFormat.TwosComplement)] + public uint max_continuelose + { + get + { + return this._max_continuelose ?? 0u; + } + set + { + this._max_continuelose = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool max_continueloseSpecified + { + get + { + return this._max_continuelose != null; + } + set + { + bool flag = value == (this._max_continuelose == null); + if (flag) + { + this._max_continuelose = (value ? new uint?(this.max_continuelose) : null); + } + } + } + + [ProtoMember(7, Name = "records", DataFormat = DataFormat.Default)] + public List records + { + get + { + return this._records; + } + } + + private ErrorCode? _result; + + private uint? _winnum; + + private uint? _losenum; + + private float? _winrate; + + private uint? _max_continuewin; + + private uint? _max_continuelose; + + private readonly List _records = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializewinnum() + { + return this.winnumSpecified; + } + + private void Resetwinnum() + { + this.winnumSpecified = false; + } + + private bool ShouldSerializelosenum() + { + return this.losenumSpecified; + } + + private void Resetlosenum() + { + this.losenumSpecified = false; + } + + private bool ShouldSerializewinrate() + { + return this.winrateSpecified; + } + + private void Resetwinrate() + { + this.winrateSpecified = false; + } + + private bool ShouldSerializemax_continuewin() + { + return this.max_continuewinSpecified; + } + + private void Resetmax_continuewin() + { + this.max_continuewinSpecified = false; + } + + private bool ShouldSerializemax_continuelose() + { + return this.max_continueloseSpecified; + } + + private void Resetmax_continuelose() + { + this.max_continueloseSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0