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/GuildMemberRes.cs | 171 +++++++++++++++++++++ 1 file changed, 171 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildMemberRes.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GuildMemberRes.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberRes.cs new file mode 100644 index 00000000..2cad2f37 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberRes.cs @@ -0,0 +1,171 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildMemberRes")] + [Serializable] + public class GuildMemberRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "members", DataFormat = DataFormat.Default)] + public List members + { + get + { + return this._members; + } + } + + [ProtoMember(3, IsRequired = false, Name = "recvFatigue", DataFormat = DataFormat.TwosComplement)] + public uint recvFatigue + { + get + { + return this._recvFatigue ?? 0u; + } + set + { + this._recvFatigue = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool recvFatigueSpecified + { + get + { + return this._recvFatigue != null; + } + set + { + bool flag = value == (this._recvFatigue == null); + if (flag) + { + this._recvFatigue = (value ? new uint?(this.recvFatigue) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "FatigueMax", DataFormat = DataFormat.TwosComplement)] + public uint FatigueMax + { + get + { + return this._FatigueMax ?? 0u; + } + set + { + this._FatigueMax = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool FatigueMaxSpecified + { + get + { + return this._FatigueMax != null; + } + set + { + bool flag = value == (this._FatigueMax == null); + if (flag) + { + this._FatigueMax = (value ? new uint?(this.FatigueMax) : null); + } + } + } + + [ProtoMember(5, Name = "guildinheritid", DataFormat = DataFormat.TwosComplement)] + public List guildinheritid + { + get + { + return this._guildinheritid; + } + } + + private ErrorCode? _result; + + private readonly List _members = new List(); + + private uint? _recvFatigue; + + private uint? _FatigueMax; + + private readonly List _guildinheritid = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializerecvFatigue() + { + return this.recvFatigueSpecified; + } + + private void ResetrecvFatigue() + { + this.recvFatigueSpecified = false; + } + + private bool ShouldSerializeFatigueMax() + { + return this.FatigueMaxSpecified; + } + + private void ResetFatigueMax() + { + this.FatigueMaxSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0