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/BackFlowBuyOpRes.cs | 176 +++++++++++++++++++++ 1 file changed, 176 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuyOpRes.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuyOpRes.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuyOpRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuyOpRes.cs new file mode 100644 index 00000000..b5f4901d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuyOpRes.cs @@ -0,0 +1,176 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BackFlowBuyOpRes")] + [Serializable] + public class BackFlowBuyOpRes : 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 = "countleft", DataFormat = DataFormat.TwosComplement)] + public int countleft + { + get + { + return this._countleft ?? 0; + } + set + { + this._countleft = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countleftSpecified + { + get + { + return this._countleft != null; + } + set + { + bool flag = value == (this._countleft == null); + if (flag) + { + this._countleft = (value ? new int?(this.countleft) : null); + } + } + } + + [ProtoMember(3, Name = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + [ProtoMember(4, IsRequired = false, Name = "countmax", DataFormat = DataFormat.TwosComplement)] + public int countmax + { + get + { + return this._countmax ?? 0; + } + set + { + this._countmax = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countmaxSpecified + { + get + { + return this._countmax != null; + } + set + { + bool flag = value == (this._countmax == null); + if (flag) + { + this._countmax = (value ? new int?(this.countmax) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "cost", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ItemBrief cost + { + get + { + return this._cost; + } + set + { + this._cost = value; + } + } + + private ErrorCode? _errorcode; + + private int? _countleft; + + private readonly List _items = new List(); + + private int? _countmax; + + private ItemBrief _cost = null; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializecountleft() + { + return this.countleftSpecified; + } + + private void Resetcountleft() + { + this.countleftSpecified = false; + } + + private bool ShouldSerializecountmax() + { + return this.countmaxSpecified; + } + + private void Resetcountmax() + { + this.countmaxSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0