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/PetOperationRes.cs | 203 +++++++++++++++++++++ 1 file changed, 203 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PetOperationRes.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/PetOperationRes.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PetOperationRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/PetOperationRes.cs new file mode 100644 index 00000000..ab126b7d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PetOperationRes.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PetOperationRes")] + [Serializable] + public class PetOperationRes : 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 = "followpetid", DataFormat = DataFormat.TwosComplement)] + public ulong followpetid + { + get + { + return this._followpetid ?? 0UL; + } + set + { + this._followpetid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool followpetidSpecified + { + get + { + return this._followpetid != null; + } + set + { + bool flag = value == (this._followpetid == null); + if (flag) + { + this._followpetid = (value ? new ulong?(this.followpetid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "ismoodup", DataFormat = DataFormat.Default)] + public bool ismoodup + { + get + { + return this._ismoodup ?? false; + } + set + { + this._ismoodup = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ismoodupSpecified + { + get + { + return this._ismoodup != null; + } + set + { + bool flag = value == (this._ismoodup == null); + if (flag) + { + this._ismoodup = (value ? new bool?(this.ismoodup) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "ishuneryup", DataFormat = DataFormat.Default)] + public bool ishuneryup + { + get + { + return this._ishuneryup ?? false; + } + set + { + this._ishuneryup = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ishuneryupSpecified + { + get + { + return this._ishuneryup != null; + } + set + { + bool flag = value == (this._ishuneryup == null); + if (flag) + { + this._ishuneryup = (value ? new bool?(this.ishuneryup) : null); + } + } + } + + [ProtoMember(5, Name = "invite", DataFormat = DataFormat.Default)] + public List invite + { + get + { + return this._invite; + } + } + + private ErrorCode? _errorcode; + + private ulong? _followpetid; + + private bool? _ismoodup; + + private bool? _ishuneryup; + + private readonly List _invite = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializefollowpetid() + { + return this.followpetidSpecified; + } + + private void Resetfollowpetid() + { + this.followpetidSpecified = false; + } + + private bool ShouldSerializeismoodup() + { + return this.ismoodupSpecified; + } + + private void Resetismoodup() + { + this.ismoodupSpecified = false; + } + + private bool ShouldSerializeishuneryup() + { + return this.ishuneryupSpecified; + } + + private void Resetishuneryup() + { + this.ishuneryupSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0