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/PetChangeNotfiy.cs | 171 +++++++++++++++++++++ 1 file changed, 171 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PetChangeNotfiy.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/PetChangeNotfiy.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PetChangeNotfiy.cs b/Client/Assets/Scripts/XMainClient/KKSG/PetChangeNotfiy.cs new file mode 100644 index 00000000..e7e94656 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PetChangeNotfiy.cs @@ -0,0 +1,171 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PetChangeNotfiy")] + [Serializable] + public class PetChangeNotfiy : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public PetOP type + { + get + { + return this._type ?? PetOP.PetFellow; + } + set + { + this._type = new PetOP?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new PetOP?(this.type) : null); + } + } + } + + [ProtoMember(2, Name = "pet", DataFormat = DataFormat.Default)] + public List pet + { + get + { + return this._pet; + } + } + + [ProtoMember(3, IsRequired = false, Name = "delexp", DataFormat = DataFormat.TwosComplement)] + public uint delexp + { + get + { + return this._delexp ?? 0u; + } + set + { + this._delexp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool delexpSpecified + { + get + { + return this._delexp != null; + } + set + { + bool flag = value == (this._delexp == null); + if (flag) + { + this._delexp = (value ? new uint?(this.delexp) : null); + } + } + } + + [ProtoMember(4, Name = "getskills", DataFormat = DataFormat.Default)] + public List getskills + { + get + { + return this._getskills; + } + } + + [ProtoMember(5, IsRequired = false, Name = "delskillid", DataFormat = DataFormat.TwosComplement)] + public uint delskillid + { + get + { + return this._delskillid ?? 0u; + } + set + { + this._delskillid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool delskillidSpecified + { + get + { + return this._delskillid != null; + } + set + { + bool flag = value == (this._delskillid == null); + if (flag) + { + this._delskillid = (value ? new uint?(this.delskillid) : null); + } + } + } + + private PetOP? _type; + + private readonly List _pet = new List(); + + private uint? _delexp; + + private readonly List _getskills = new List(); + + private uint? _delskillid; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializedelexp() + { + return this.delexpSpecified; + } + + private void Resetdelexp() + { + this.delexpSpecified = false; + } + + private bool ShouldSerializedelskillid() + { + return this.delskillidSpecified; + } + + private void Resetdelskillid() + { + this.delskillidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0