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/GASaleHistory.cs | 234 +++++++++++++++++++++ 1 file changed, 234 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GASaleHistory.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GASaleHistory.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GASaleHistory.cs b/Client/Assets/Scripts/XMainClient/KKSG/GASaleHistory.cs new file mode 100644 index 00000000..5dfdee25 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GASaleHistory.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GASaleHistory")] + [Serializable] + public class GASaleHistory : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "acttype", DataFormat = DataFormat.TwosComplement)] + public int acttype + { + get + { + return this._acttype ?? 0; + } + set + { + this._acttype = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool acttypeSpecified + { + get + { + return this._acttype != null; + } + set + { + bool flag = value == (this._acttype == null); + if (flag) + { + this._acttype = (value ? new int?(this.acttype) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "saletime", DataFormat = DataFormat.TwosComplement)] + public uint saletime + { + get + { + return this._saletime ?? 0u; + } + set + { + this._saletime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool saletimeSpecified + { + get + { + return this._saletime != null; + } + set + { + bool flag = value == (this._saletime == null); + if (flag) + { + this._saletime = (value ? new uint?(this.saletime) : null); + } + } + } + + [ProtoMember(3, 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(4, IsRequired = false, Name = "saleprice", DataFormat = DataFormat.TwosComplement)] + public uint saleprice + { + get + { + return this._saleprice ?? 0u; + } + set + { + this._saleprice = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool salepriceSpecified + { + get + { + return this._saleprice != null; + } + set + { + bool flag = value == (this._saleprice == null); + if (flag) + { + this._saleprice = (value ? new uint?(this.saleprice) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "auctresult", DataFormat = DataFormat.TwosComplement)] + public GuildAuctResultType auctresult + { + get + { + return this._auctresult ?? GuildAuctResultType.GA_RESULT_BUY_NOW; + } + set + { + this._auctresult = new GuildAuctResultType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool auctresultSpecified + { + get + { + return this._auctresult != null; + } + set + { + bool flag = value == (this._auctresult == null); + if (flag) + { + this._auctresult = (value ? new GuildAuctResultType?(this.auctresult) : null); + } + } + } + + private int? _acttype; + + private uint? _saletime; + + private uint? _itemid; + + private uint? _saleprice; + + private GuildAuctResultType? _auctresult; + + private IExtension extensionObject; + + private bool ShouldSerializeacttype() + { + return this.acttypeSpecified; + } + + private void Resetacttype() + { + this.acttypeSpecified = false; + } + + private bool ShouldSerializesaletime() + { + return this.saletimeSpecified; + } + + private void Resetsaletime() + { + this.saletimeSpecified = false; + } + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + private bool ShouldSerializesaleprice() + { + return this.salepriceSpecified; + } + + private void Resetsaleprice() + { + this.salepriceSpecified = false; + } + + private bool ShouldSerializeauctresult() + { + return this.auctresultSpecified; + } + + private void Resetauctresult() + { + this.auctresultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0