From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/PartnerShopItemClient.cs | 148 +++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PartnerShopItemClient.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/PartnerShopItemClient.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PartnerShopItemClient.cs b/Client/Assets/Scripts/XMainClient/KKSG/PartnerShopItemClient.cs new file mode 100644 index 00000000..f490a6fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PartnerShopItemClient.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PartnerShopItemClient")] + [Serializable] + public class PartnerShopItemClient : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public uint itemid + { + get + { + return this._itemid ?? 0u; + } + set + { + this._itemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemidSpecified + { + get + { + return this._itemid != null; + } + set + { + bool flag = value == (this._itemid == null); + if (flag) + { + this._itemid = (value ? new uint?(this.itemid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "buy_count", DataFormat = DataFormat.TwosComplement)] + public uint buy_count + { + get + { + return this._buy_count ?? 0u; + } + set + { + this._buy_count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool buy_countSpecified + { + get + { + return this._buy_count != null; + } + set + { + bool flag = value == (this._buy_count == null); + if (flag) + { + this._buy_count = (value ? new uint?(this.buy_count) : null); + } + } + } + + private uint? _id; + + private uint? _itemid; + + private uint? _buy_count; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + private bool ShouldSerializebuy_count() + { + return this.buy_countSpecified; + } + + private void Resetbuy_count() + { + this.buy_countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0