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/AuctOverlapData.cs | 121 +++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AuctOverlapData.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/AuctOverlapData.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AuctOverlapData.cs b/Client/Assets/Scripts/XMainClient/KKSG/AuctOverlapData.cs new file mode 100644 index 00000000..36ed85d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AuctOverlapData.cs @@ -0,0 +1,121 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AuctOverlapData")] + [Serializable] + public class AuctOverlapData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "overlapid", DataFormat = DataFormat.TwosComplement)] + public ulong overlapid + { + get + { + return this._overlapid ?? 0UL; + } + set + { + this._overlapid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool overlapidSpecified + { + get + { + return this._overlapid != null; + } + set + { + bool flag = value == (this._overlapid == null); + if (flag) + { + this._overlapid = (value ? new ulong?(this.overlapid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "perprice", DataFormat = DataFormat.TwosComplement)] + public uint perprice + { + get + { + return this._perprice ?? 0u; + } + set + { + this._perprice = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool perpriceSpecified + { + get + { + return this._perprice != null; + } + set + { + bool flag = value == (this._perprice == null); + if (flag) + { + this._perprice = (value ? new uint?(this.perprice) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "itemdata", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public Item itemdata + { + get + { + return this._itemdata; + } + set + { + this._itemdata = value; + } + } + + private ulong? _overlapid; + + private uint? _perprice; + + private Item _itemdata = null; + + private IExtension extensionObject; + + private bool ShouldSerializeoverlapid() + { + return this.overlapidSpecified; + } + + private void Resetoverlapid() + { + this.overlapidSpecified = false; + } + + private bool ShouldSerializeperprice() + { + return this.perpriceSpecified; + } + + private void Resetperprice() + { + this.perpriceSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0