From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- Client/Assets/Scripts/XMainClient/KKSG/PayInfo.cs | 277 ++++++++++++++++++++++ 1 file changed, 277 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayInfo.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/PayInfo.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayInfo.cs new file mode 100644 index 00000000..790b5c63 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayInfo.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayInfo")] + [Serializable] + public class PayInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "TotalPay", DataFormat = DataFormat.TwosComplement)] + public ulong TotalPay + { + get + { + return this._TotalPay ?? 0UL; + } + set + { + this._TotalPay = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool TotalPaySpecified + { + get + { + return this._TotalPay != null; + } + set + { + bool flag = value == (this._TotalPay == null); + if (flag) + { + this._TotalPay = (value ? new ulong?(this.TotalPay) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "PayIDFlag", DataFormat = DataFormat.TwosComplement)] + public uint PayIDFlag + { + get + { + return this._PayIDFlag ?? 0u; + } + set + { + this._PayIDFlag = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool PayIDFlagSpecified + { + get + { + return this._PayIDFlag != null; + } + set + { + bool flag = value == (this._PayIDFlag == null); + if (flag) + { + this._PayIDFlag = (value ? new uint?(this.PayIDFlag) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "MonthCardLeftDay", DataFormat = DataFormat.TwosComplement)] + public uint MonthCardLeftDay + { + get + { + return this._MonthCardLeftDay ?? 0u; + } + set + { + this._MonthCardLeftDay = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool MonthCardLeftDaySpecified + { + get + { + return this._MonthCardLeftDay != null; + } + set + { + bool flag = value == (this._MonthCardLeftDay == null); + if (flag) + { + this._MonthCardLeftDay = (value ? new uint?(this.MonthCardLeftDay) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "LastMonthCardTimeStamp", DataFormat = DataFormat.TwosComplement)] + public uint LastMonthCardTimeStamp + { + get + { + return this._LastMonthCardTimeStamp ?? 0u; + } + set + { + this._LastMonthCardTimeStamp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool LastMonthCardTimeStampSpecified + { + get + { + return this._LastMonthCardTimeStamp != null; + } + set + { + bool flag = value == (this._LastMonthCardTimeStamp == null); + if (flag) + { + this._LastMonthCardTimeStamp = (value ? new uint?(this.LastMonthCardTimeStamp) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "vipLevel", DataFormat = DataFormat.TwosComplement)] + public uint vipLevel + { + get + { + return this._vipLevel ?? 0u; + } + set + { + this._vipLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool vipLevelSpecified + { + get + { + return this._vipLevel != null; + } + set + { + bool flag = value == (this._vipLevel == null); + if (flag) + { + this._vipLevel = (value ? new uint?(this.vipLevel) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "vippoint", DataFormat = DataFormat.TwosComplement)] + public uint vippoint + { + get + { + return this._vippoint ?? 0u; + } + set + { + this._vippoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool vippointSpecified + { + get + { + return this._vippoint != null; + } + set + { + bool flag = value == (this._vippoint == null); + if (flag) + { + this._vippoint = (value ? new uint?(this.vippoint) : null); + } + } + } + + private ulong? _TotalPay; + + private uint? _PayIDFlag; + + private uint? _MonthCardLeftDay; + + private uint? _LastMonthCardTimeStamp; + + private uint? _vipLevel; + + private uint? _vippoint; + + private IExtension extensionObject; + + private bool ShouldSerializeTotalPay() + { + return this.TotalPaySpecified; + } + + private void ResetTotalPay() + { + this.TotalPaySpecified = false; + } + + private bool ShouldSerializePayIDFlag() + { + return this.PayIDFlagSpecified; + } + + private void ResetPayIDFlag() + { + this.PayIDFlagSpecified = false; + } + + private bool ShouldSerializeMonthCardLeftDay() + { + return this.MonthCardLeftDaySpecified; + } + + private void ResetMonthCardLeftDay() + { + this.MonthCardLeftDaySpecified = false; + } + + private bool ShouldSerializeLastMonthCardTimeStamp() + { + return this.LastMonthCardTimeStampSpecified; + } + + private void ResetLastMonthCardTimeStamp() + { + this.LastMonthCardTimeStampSpecified = false; + } + + private bool ShouldSerializevipLevel() + { + return this.vipLevelSpecified; + } + + private void ResetvipLevel() + { + this.vipLevelSpecified = false; + } + + private bool ShouldSerializevippoint() + { + return this.vippointSpecified; + } + + private void Resetvippoint() + { + this.vippointSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0