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/PayClickArg.cs | 105 +++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayClickArg.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/PayClickArg.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayClickArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayClickArg.cs new file mode 100644 index 00000000..a4e530b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayClickArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayClickArg")] + [Serializable] + public class PayClickArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "buttonType", DataFormat = DataFormat.TwosComplement)] + public int buttonType + { + get + { + return this._buttonType ?? 0; + } + set + { + this._buttonType = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool buttonTypeSpecified + { + get + { + return this._buttonType != null; + } + set + { + bool flag = value == (this._buttonType == null); + if (flag) + { + this._buttonType = (value ? new int?(this.buttonType) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "memberid", DataFormat = DataFormat.TwosComplement)] + public int memberid + { + get + { + return this._memberid ?? 0; + } + set + { + this._memberid = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool memberidSpecified + { + get + { + return this._memberid != null; + } + set + { + bool flag = value == (this._memberid == null); + if (flag) + { + this._memberid = (value ? new int?(this.memberid) : null); + } + } + } + + private int? _buttonType; + + private int? _memberid; + + private IExtension extensionObject; + + private bool ShouldSerializebuttonType() + { + return this.buttonTypeSpecified; + } + + private void ResetbuttonType() + { + this.buttonTypeSpecified = false; + } + + private bool ShouldSerializememberid() + { + return this.memberidSpecified; + } + + private void Resetmemberid() + { + this.memberidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0