From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Assets/Scripts/XMainClient/KKSG/PayBaseInfo.cs | 105 +++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayBaseInfo.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/PayBaseInfo.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayBaseInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayBaseInfo.cs new file mode 100644 index 00000000..bcc44630 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayBaseInfo.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayBaseInfo")] + [Serializable] + public class PayBaseInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "paramID", DataFormat = DataFormat.Default)] + public string paramID + { + get + { + return this._paramID ?? ""; + } + set + { + this._paramID = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paramIDSpecified + { + get + { + return this._paramID != null; + } + set + { + bool flag = value == (this._paramID == null); + if (flag) + { + this._paramID = (value ? this.paramID : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "isPay", DataFormat = DataFormat.Default)] + public bool isPay + { + get + { + return this._isPay ?? false; + } + set + { + this._isPay = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isPaySpecified + { + get + { + return this._isPay != null; + } + set + { + bool flag = value == (this._isPay == null); + if (flag) + { + this._isPay = (value ? new bool?(this.isPay) : null); + } + } + } + + private string _paramID; + + private bool? _isPay; + + private IExtension extensionObject; + + private bool ShouldSerializeparamID() + { + return this.paramIDSpecified; + } + + private void ResetparamID() + { + this.paramIDSpecified = false; + } + + private bool ShouldSerializeisPay() + { + return this.isPaySpecified; + } + + private void ResetisPay() + { + this.isPaySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0