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/DisplayAddItemArg.cs | 105 +++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DisplayAddItemArg.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/DisplayAddItemArg.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DisplayAddItemArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/DisplayAddItemArg.cs new file mode 100644 index 00000000..f0b9b406 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DisplayAddItemArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DisplayAddItemArg")] + [Serializable] + public class DisplayAddItemArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "add_item_id", DataFormat = DataFormat.TwosComplement)] + public uint add_item_id + { + get + { + return this._add_item_id ?? 0u; + } + set + { + this._add_item_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool add_item_idSpecified + { + get + { + return this._add_item_id != null; + } + set + { + bool flag = value == (this._add_item_id == null); + if (flag) + { + this._add_item_id = (value ? new uint?(this.add_item_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "del_item_id", DataFormat = DataFormat.TwosComplement)] + public uint del_item_id + { + get + { + return this._del_item_id ?? 0u; + } + set + { + this._del_item_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool del_item_idSpecified + { + get + { + return this._del_item_id != null; + } + set + { + bool flag = value == (this._del_item_id == null); + if (flag) + { + this._del_item_id = (value ? new uint?(this.del_item_id) : null); + } + } + } + + private uint? _add_item_id; + + private uint? _del_item_id; + + private IExtension extensionObject; + + private bool ShouldSerializeadd_item_id() + { + return this.add_item_idSpecified; + } + + private void Resetadd_item_id() + { + this.add_item_idSpecified = false; + } + + private bool ShouldSerializedel_item_id() + { + return this.del_item_idSpecified; + } + + private void Resetdel_item_id() + { + this.del_item_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0