From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/AskGuildArenaInfoReq.cs | 128 +++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaInfoReq.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaInfoReq.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaInfoReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaInfoReq.cs new file mode 100644 index 00000000..b92d607b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaInfoReq.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AskGuildArenaInfoReq")] + [Serializable] + public class AskGuildArenaInfoReq : IExtensible + { + [ProtoMember(1, Name = "warData", DataFormat = DataFormat.Default)] + public List warData + { + get + { + return this._warData; + } + } + + [ProtoMember(2, Name = "allguildInfo", DataFormat = DataFormat.Default)] + public List allguildInfo + { + get + { + return this._allguildInfo; + } + } + + [ProtoMember(3, IsRequired = false, Name = "timeState", DataFormat = DataFormat.TwosComplement)] + public GuildArenaState timeState + { + get + { + return this._timeState ?? GuildArenaState.GUILD_ARENA_NOT_BEGIN; + } + set + { + this._timeState = new GuildArenaState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeStateSpecified + { + get + { + return this._timeState != null; + } + set + { + bool flag = value == (this._timeState == null); + if (flag) + { + this._timeState = (value ? new GuildArenaState?(this.timeState) : null); + } + } + } + + [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); + } + } + } + + private readonly List _warData = new List(); + + private readonly List _allguildInfo = new List(); + + private GuildArenaState? _timeState; + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializetimeState() + { + return this.timeStateSpecified; + } + + private void ResettimeState() + { + this.timeStateSpecified = false; + } + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0