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/GCFCommonRes.cs | 236 +++++++++++++++++++++ 1 file changed, 236 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFCommonRes.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GCFCommonRes.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFCommonRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GCFCommonRes.cs new file mode 100644 index 00000000..4998b751 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFCommonRes.cs @@ -0,0 +1,236 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GCFCommonRes")] + [Serializable] + public class GCFCommonRes : 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 = "jvdians", DataFormat = DataFormat.Default)] + public List jvdians + { + get + { + return this._jvdians; + } + } + + [ProtoMember(3, Name = "guilds", DataFormat = DataFormat.Default)] + public List guilds + { + get + { + return this._guilds; + } + } + + [ProtoMember(4, Name = "roles", DataFormat = DataFormat.Default)] + public List roles + { + get + { + return this._roles; + } + } + + [ProtoMember(5, IsRequired = false, Name = "myinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GCFRoleBrief myinfo + { + get + { + return this._myinfo; + } + set + { + this._myinfo = value; + } + } + + [ProtoMember(6, Name = "rewards", DataFormat = DataFormat.Default)] + public List rewards + { + get + { + return this._rewards; + } + } + + [ProtoMember(7, IsRequired = false, Name = "territoryid", DataFormat = DataFormat.TwosComplement)] + public uint territoryid + { + get + { + return this._territoryid ?? 0u; + } + set + { + this._territoryid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool territoryidSpecified + { + get + { + return this._territoryid != null; + } + set + { + bool flag = value == (this._territoryid == null); + if (flag) + { + this._territoryid = (value ? new uint?(this.territoryid) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "winguild", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GCFGuildBrief winguild + { + get + { + return this._winguild; + } + set + { + this._winguild = value; + } + } + + [ProtoMember(9, IsRequired = false, Name = "lefttime", DataFormat = DataFormat.TwosComplement)] + public uint lefttime + { + get + { + return this._lefttime ?? 0u; + } + set + { + this._lefttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lefttimeSpecified + { + get + { + return this._lefttime != null; + } + set + { + bool flag = value == (this._lefttime == null); + if (flag) + { + this._lefttime = (value ? new uint?(this.lefttime) : null); + } + } + } + + [ProtoMember(10, Name = "fields", DataFormat = DataFormat.Default)] + public List fields + { + get + { + return this._fields; + } + } + + private ErrorCode? _errorcode; + + private readonly List _jvdians = new List(); + + private readonly List _guilds = new List(); + + private readonly List _roles = new List(); + + private GCFRoleBrief _myinfo = null; + + private readonly List _rewards = new List(); + + private uint? _territoryid; + + private GCFGuildBrief _winguild = null; + + private uint? _lefttime; + + private readonly List _fields = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializeterritoryid() + { + return this.territoryidSpecified; + } + + private void Resetterritoryid() + { + this.territoryidSpecified = false; + } + + private bool ShouldSerializelefttime() + { + return this.lefttimeSpecified; + } + + private void Resetlefttime() + { + this.lefttimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0