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/PetOperationArg.cs | 207 +++++++++++++++++++++ 1 file changed, 207 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PetOperationArg.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/PetOperationArg.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PetOperationArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/PetOperationArg.cs new file mode 100644 index 00000000..f7d19d78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PetOperationArg.cs @@ -0,0 +1,207 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PetOperationArg")] + [Serializable] + public class PetOperationArg : 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, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "food", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ItemBrief food + { + get + { + return this._food; + } + set + { + this._food = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "destpet_id", DataFormat = DataFormat.TwosComplement)] + public ulong destpet_id + { + get + { + return this._destpet_id ?? 0UL; + } + set + { + this._destpet_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool destpet_idSpecified + { + get + { + return this._destpet_id != null; + } + set + { + bool flag = value == (this._destpet_id == null); + if (flag) + { + this._destpet_id = (value ? new ulong?(this.destpet_id) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "setpairride", DataFormat = DataFormat.Default)] + public bool setpairride + { + get + { + return this._setpairride ?? false; + } + set + { + this._setpairride = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool setpairrideSpecified + { + get + { + return this._setpairride != null; + } + set + { + bool flag = value == (this._setpairride == null); + if (flag) + { + this._setpairride = (value ? new bool?(this.setpairride) : null); + } + } + } + + private PetOP? _type; + + private ulong? _uid; + + private ItemBrief _food = null; + + private ulong? _destpet_id; + + private bool? _setpairride; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializedestpet_id() + { + return this.destpet_idSpecified; + } + + private void Resetdestpet_id() + { + this.destpet_idSpecified = false; + } + + private bool ShouldSerializesetpairride() + { + return this.setpairrideSpecified; + } + + private void Resetsetpairride() + { + this.setpairrideSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0