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/GuildAuctReqRes.cs | 171 +++++++++++++++++++++ 1 file changed, 171 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqRes.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqRes.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqRes.cs new file mode 100644 index 00000000..e62d7a54 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqRes.cs @@ -0,0 +1,171 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildAuctReqRes")] + [Serializable] + public class GuildAuctReqRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "curauctprice", DataFormat = DataFormat.TwosComplement)] + public uint curauctprice + { + get + { + return this._curauctprice ?? 0u; + } + set + { + this._curauctprice = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool curauctpriceSpecified + { + get + { + return this._curauctprice != null; + } + set + { + bool flag = value == (this._curauctprice == null); + if (flag) + { + this._curauctprice = (value ? new uint?(this.curauctprice) : null); + } + } + } + + [ProtoMember(3, Name = "saleitems", DataFormat = DataFormat.Default)] + public List saleitems + { + get + { + return this._saleitems; + } + } + + [ProtoMember(4, Name = "salehistorys", DataFormat = DataFormat.Default)] + public List salehistorys + { + get + { + return this._salehistorys; + } + } + + [ProtoMember(5, IsRequired = false, Name = "profit", DataFormat = DataFormat.TwosComplement)] + public uint profit + { + get + { + return this._profit ?? 0u; + } + set + { + this._profit = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool profitSpecified + { + get + { + return this._profit != null; + } + set + { + bool flag = value == (this._profit == null); + if (flag) + { + this._profit = (value ? new uint?(this.profit) : null); + } + } + } + + private ErrorCode? _errorcode; + + private uint? _curauctprice; + + private readonly List _saleitems = new List(); + + private readonly List _salehistorys = new List(); + + private uint? _profit; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializecurauctprice() + { + return this.curauctpriceSpecified; + } + + private void Resetcurauctprice() + { + this.curauctpriceSpecified = false; + } + + private bool ShouldSerializeprofit() + { + return this.profitSpecified; + } + + private void Resetprofit() + { + this.profitSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0