From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/AskGuildBossInfoRes.cs | 277 +++++++++++++++++++++ 1 file changed, 277 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AskGuildBossInfoRes.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/AskGuildBossInfoRes.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AskGuildBossInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildBossInfoRes.cs new file mode 100644 index 00000000..a3f380a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildBossInfoRes.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AskGuildBossInfoRes")] + [Serializable] + public class AskGuildBossInfoRes : 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, IsRequired = false, Name = "bossId", DataFormat = DataFormat.TwosComplement)] + public uint bossId + { + get + { + return this._bossId ?? 0u; + } + set + { + this._bossId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bossIdSpecified + { + get + { + return this._bossId != null; + } + set + { + bool flag = value == (this._bossId == null); + if (flag) + { + this._bossId = (value ? new uint?(this.bossId) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "needKillBossId", DataFormat = DataFormat.TwosComplement)] + public uint needKillBossId + { + get + { + return this._needKillBossId ?? 0u; + } + set + { + this._needKillBossId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool needKillBossIdSpecified + { + get + { + return this._needKillBossId != null; + } + set + { + bool flag = value == (this._needKillBossId == null); + if (flag) + { + this._needKillBossId = (value ? new uint?(this.needKillBossId) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "isFirstKill", DataFormat = DataFormat.Default)] + public bool isFirstKill + { + get + { + return this._isFirstKill ?? false; + } + set + { + this._isFirstKill = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isFirstKillSpecified + { + get + { + return this._isFirstKill != null; + } + set + { + bool flag = value == (this._isFirstKill == null); + if (flag) + { + this._isFirstKill = (value ? new bool?(this.isFirstKill) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "isLeader", DataFormat = DataFormat.Default)] + public bool isLeader + { + get + { + return this._isLeader ?? false; + } + set + { + this._isLeader = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isLeaderSpecified + { + get + { + return this._isLeader != null; + } + set + { + bool flag = value == (this._isLeader == null); + if (flag) + { + this._isLeader = (value ? new bool?(this.isLeader) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "needguildlvl", DataFormat = DataFormat.TwosComplement)] + public uint needguildlvl + { + get + { + return this._needguildlvl ?? 0u; + } + set + { + this._needguildlvl = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool needguildlvlSpecified + { + get + { + return this._needguildlvl != null; + } + set + { + bool flag = value == (this._needguildlvl == null); + if (flag) + { + this._needguildlvl = (value ? new uint?(this.needguildlvl) : null); + } + } + } + + private ErrorCode? _errorcode; + + private uint? _bossId; + + private uint? _needKillBossId; + + private bool? _isFirstKill; + + private bool? _isLeader; + + private uint? _needguildlvl; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializebossId() + { + return this.bossIdSpecified; + } + + private void ResetbossId() + { + this.bossIdSpecified = false; + } + + private bool ShouldSerializeneedKillBossId() + { + return this.needKillBossIdSpecified; + } + + private void ResetneedKillBossId() + { + this.needKillBossIdSpecified = false; + } + + private bool ShouldSerializeisFirstKill() + { + return this.isFirstKillSpecified; + } + + private void ResetisFirstKill() + { + this.isFirstKillSpecified = false; + } + + private bool ShouldSerializeisLeader() + { + return this.isLeaderSpecified; + } + + private void ResetisLeader() + { + this.isLeaderSpecified = false; + } + + private bool ShouldSerializeneedguildlvl() + { + return this.needguildlvlSpecified; + } + + private void Resetneedguildlvl() + { + this.needguildlvlSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0