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/ArenaStarReqRes.cs | 203 +++++++++++++++++++++ 1 file changed, 203 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqRes.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqRes.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqRes.cs new file mode 100644 index 00000000..de18fa6c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqRes.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ArenaStarReqRes")] + [Serializable] + public class ArenaStarReqRes : IExtensible + { + [ProtoMember(1, 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(2, Name = "toproledata", DataFormat = DataFormat.Default)] + public List toproledata + { + get + { + return this._toproledata; + } + } + + [ProtoMember(3, IsRequired = false, Name = "seasonbegintime", DataFormat = DataFormat.TwosComplement)] + public uint seasonbegintime + { + get + { + return this._seasonbegintime ?? 0u; + } + set + { + this._seasonbegintime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool seasonbegintimeSpecified + { + get + { + return this._seasonbegintime != null; + } + set + { + bool flag = value == (this._seasonbegintime == null); + if (flag) + { + this._seasonbegintime = (value ? new uint?(this.seasonbegintime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "seasonendtime", DataFormat = DataFormat.TwosComplement)] + public uint seasonendtime + { + get + { + return this._seasonendtime ?? 0u; + } + set + { + this._seasonendtime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool seasonendtimeSpecified + { + get + { + return this._seasonendtime != null; + } + set + { + bool flag = value == (this._seasonendtime == null); + if (flag) + { + this._seasonendtime = (value ? new uint?(this.seasonendtime) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "season_num", DataFormat = DataFormat.TwosComplement)] + public uint season_num + { + get + { + return this._season_num ?? 0u; + } + set + { + this._season_num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool season_numSpecified + { + get + { + return this._season_num != null; + } + set + { + bool flag = value == (this._season_num == null); + if (flag) + { + this._season_num = (value ? new uint?(this.season_num) : null); + } + } + } + + private ErrorCode? _errorcode; + + private readonly List _toproledata = new List(); + + private uint? _seasonbegintime; + + private uint? _seasonendtime; + + private uint? _season_num; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializeseasonbegintime() + { + return this.seasonbegintimeSpecified; + } + + private void Resetseasonbegintime() + { + this.seasonbegintimeSpecified = false; + } + + private bool ShouldSerializeseasonendtime() + { + return this.seasonendtimeSpecified; + } + + private void Resetseasonendtime() + { + this.seasonendtimeSpecified = false; + } + + private bool ShouldSerializeseason_num() + { + return this.season_numSpecified; + } + + private void Resetseason_num() + { + this.season_numSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0