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/QueryMayhemRankRes.cs | 219 +++++++++++++++++++++ 1 file changed, 219 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryMayhemRankRes.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/QueryMayhemRankRes.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryMayhemRankRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryMayhemRankRes.cs new file mode 100644 index 00000000..da0aa6d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryMayhemRankRes.cs @@ -0,0 +1,219 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryMayhemRankRes")] + [Serializable] + public class QueryMayhemRankRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "err", DataFormat = DataFormat.TwosComplement)] + public ErrorCode err + { + get + { + return this._err ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._err = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errSpecified + { + get + { + return this._err != null; + } + set + { + bool flag = value == (this._err == null); + if (flag) + { + this._err = (value ? new ErrorCode?(this.err) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "selfrank", DataFormat = DataFormat.TwosComplement)] + public int selfrank + { + get + { + return this._selfrank ?? 0; + } + set + { + this._selfrank = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool selfrankSpecified + { + get + { + return this._selfrank != null; + } + set + { + bool flag = value == (this._selfrank == null); + if (flag) + { + this._selfrank = (value ? new int?(this.selfrank) : null); + } + } + } + + [ProtoMember(3, Name = "rank", DataFormat = DataFormat.Default)] + public List rank + { + get + { + return this._rank; + } + } + + [ProtoMember(4, IsRequired = false, Name = "infight", DataFormat = DataFormat.Default)] + public bool infight + { + get + { + return this._infight ?? false; + } + set + { + this._infight = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool infightSpecified + { + get + { + return this._infight != null; + } + set + { + bool flag = value == (this._infight == null); + if (flag) + { + this._infight = (value ? new bool?(this.infight) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "selfinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public MayhemRankInfo selfinfo + { + get + { + return this._selfinfo; + } + set + { + this._selfinfo = value; + } + } + + [ProtoMember(6, IsRequired = false, Name = "gamezoneid", DataFormat = DataFormat.TwosComplement)] + public uint gamezoneid + { + get + { + return this._gamezoneid ?? 0u; + } + set + { + this._gamezoneid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool gamezoneidSpecified + { + get + { + return this._gamezoneid != null; + } + set + { + bool flag = value == (this._gamezoneid == null); + if (flag) + { + this._gamezoneid = (value ? new uint?(this.gamezoneid) : null); + } + } + } + + private ErrorCode? _err; + + private int? _selfrank; + + private readonly List _rank = new List(); + + private bool? _infight; + + private MayhemRankInfo _selfinfo = null; + + private uint? _gamezoneid; + + private IExtension extensionObject; + + private bool ShouldSerializeerr() + { + return this.errSpecified; + } + + private void Reseterr() + { + this.errSpecified = false; + } + + private bool ShouldSerializeselfrank() + { + return this.selfrankSpecified; + } + + private void Resetselfrank() + { + this.selfrankSpecified = false; + } + + private bool ShouldSerializeinfight() + { + return this.infightSpecified; + } + + private void Resetinfight() + { + this.infightSpecified = false; + } + + private bool ShouldSerializegamezoneid() + { + return this.gamezoneidSpecified; + } + + private void Resetgamezoneid() + { + this.gamezoneidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0