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/BackFlowShopGood.cs | 148 +++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BackFlowShopGood.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/BackFlowShopGood.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BackFlowShopGood.cs b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowShopGood.cs new file mode 100644 index 00000000..c6ca68a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowShopGood.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BackFlowShopGood")] + [Serializable] + public class BackFlowShopGood : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "GoodID", DataFormat = DataFormat.TwosComplement)] + public uint GoodID + { + get + { + return this._GoodID ?? 0u; + } + set + { + this._GoodID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool GoodIDSpecified + { + get + { + return this._GoodID != null; + } + set + { + bool flag = value == (this._GoodID == null); + if (flag) + { + this._GoodID = (value ? new uint?(this.GoodID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "IsBuy", DataFormat = DataFormat.Default)] + public bool IsBuy + { + get + { + return this._IsBuy ?? false; + } + set + { + this._IsBuy = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool IsBuySpecified + { + get + { + return this._IsBuy != null; + } + set + { + bool flag = value == (this._IsBuy == null); + if (flag) + { + this._IsBuy = (value ? new bool?(this.IsBuy) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "LockTime", DataFormat = DataFormat.TwosComplement)] + public uint LockTime + { + get + { + return this._LockTime ?? 0u; + } + set + { + this._LockTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool LockTimeSpecified + { + get + { + return this._LockTime != null; + } + set + { + bool flag = value == (this._LockTime == null); + if (flag) + { + this._LockTime = (value ? new uint?(this.LockTime) : null); + } + } + } + + private uint? _GoodID; + + private bool? _IsBuy; + + private uint? _LockTime; + + private IExtension extensionObject; + + private bool ShouldSerializeGoodID() + { + return this.GoodIDSpecified; + } + + private void ResetGoodID() + { + this.GoodIDSpecified = false; + } + + private bool ShouldSerializeIsBuy() + { + return this.IsBuySpecified; + } + + private void ResetIsBuy() + { + this.IsBuySpecified = false; + } + + private bool ShouldSerializeLockTime() + { + return this.LockTimeSpecified; + } + + private void ResetLockTime() + { + this.LockTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0