From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/ClientQueryRankListRes.cs | 223 +++++++++++++++++++++ 1 file changed, 223 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ClientQueryRankListRes.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/ClientQueryRankListRes.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ClientQueryRankListRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ClientQueryRankListRes.cs new file mode 100644 index 00000000..b9130b35 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ClientQueryRankListRes.cs @@ -0,0 +1,223 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ClientQueryRankListRes")] + [Serializable] + public class ClientQueryRankListRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "RankType", DataFormat = DataFormat.TwosComplement)] + public uint RankType + { + get + { + return this._RankType ?? 0u; + } + set + { + this._RankType = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool RankTypeSpecified + { + get + { + return this._RankType != null; + } + set + { + bool flag = value == (this._RankType == null); + if (flag) + { + this._RankType = (value ? new uint?(this.RankType) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "TimeStamp", DataFormat = DataFormat.TwosComplement)] + public uint TimeStamp + { + get + { + return this._TimeStamp ?? 0u; + } + set + { + this._TimeStamp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool TimeStampSpecified + { + get + { + return this._TimeStamp != null; + } + set + { + bool flag = value == (this._TimeStamp == null); + if (flag) + { + this._TimeStamp = (value ? new uint?(this.TimeStamp) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "RankList", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RankList RankList + { + get + { + return this._RankList; + } + set + { + this._RankList = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "ErrorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ErrorCode + { + get + { + return this._ErrorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ErrorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ErrorCodeSpecified + { + get + { + return this._ErrorCode != null; + } + set + { + bool flag = value == (this._ErrorCode == null); + if (flag) + { + this._ErrorCode = (value ? new ErrorCode?(this.ErrorCode) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "RoleRankData", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RankData RoleRankData + { + get + { + return this._RoleRankData; + } + set + { + this._RoleRankData = value; + } + } + + [ProtoMember(6, IsRequired = false, Name = "RankAllCount", DataFormat = DataFormat.TwosComplement)] + public uint RankAllCount + { + get + { + return this._RankAllCount ?? 0u; + } + set + { + this._RankAllCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool RankAllCountSpecified + { + get + { + return this._RankAllCount != null; + } + set + { + bool flag = value == (this._RankAllCount == null); + if (flag) + { + this._RankAllCount = (value ? new uint?(this.RankAllCount) : null); + } + } + } + + private uint? _RankType; + + private uint? _TimeStamp; + + private RankList _RankList = null; + + private ErrorCode? _ErrorCode; + + private RankData _RoleRankData = null; + + private uint? _RankAllCount; + + private IExtension extensionObject; + + private bool ShouldSerializeRankType() + { + return this.RankTypeSpecified; + } + + private void ResetRankType() + { + this.RankTypeSpecified = false; + } + + private bool ShouldSerializeTimeStamp() + { + return this.TimeStampSpecified; + } + + private void ResetTimeStamp() + { + this.TimeStampSpecified = false; + } + + private bool ShouldSerializeErrorCode() + { + return this.ErrorCodeSpecified; + } + + private void ResetErrorCode() + { + this.ErrorCodeSpecified = false; + } + + private bool ShouldSerializeRankAllCount() + { + return this.RankAllCountSpecified; + } + + private void ResetRankAllCount() + { + this.RankAllCountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0