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/FiveRewardState.cs | 234 +++++++++++++++++++++ 1 file changed, 234 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FiveRewardState.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/FiveRewardState.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FiveRewardState.cs b/Client/Assets/Scripts/XMainClient/KKSG/FiveRewardState.cs new file mode 100644 index 00000000..22f9919f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FiveRewardState.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FiveRewardState")] + [Serializable] + public class FiveRewardState : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "logindaycount", DataFormat = DataFormat.TwosComplement)] + public uint logindaycount + { + get + { + return this._logindaycount ?? 0u; + } + set + { + this._logindaycount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool logindaycountSpecified + { + get + { + return this._logindaycount != null; + } + set + { + bool flag = value == (this._logindaycount == null); + if (flag) + { + this._logindaycount = (value ? new uint?(this.logindaycount) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "fivedayRS", DataFormat = DataFormat.TwosComplement)] + public LoginRewardState fivedayRS + { + get + { + return this._fivedayRS ?? LoginRewardState.LOGINRS_CANNOT; + } + set + { + this._fivedayRS = new LoginRewardState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fivedayRSSpecified + { + get + { + return this._fivedayRS != null; + } + set + { + bool flag = value == (this._fivedayRS == null); + if (flag) + { + this._fivedayRS = (value ? new LoginRewardState?(this.fivedayRS) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "twodayRS", DataFormat = DataFormat.TwosComplement)] + public LoginRewardState twodayRS + { + get + { + return this._twodayRS ?? LoginRewardState.LOGINRS_CANNOT; + } + set + { + this._twodayRS = new LoginRewardState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool twodayRSSpecified + { + get + { + return this._twodayRS != null; + } + set + { + bool flag = value == (this._twodayRS == null); + if (flag) + { + this._twodayRS = (value ? new LoginRewardState?(this.twodayRS) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "threedayRS", DataFormat = DataFormat.TwosComplement)] + public LoginRewardState threedayRS + { + get + { + return this._threedayRS ?? LoginRewardState.LOGINRS_CANNOT; + } + set + { + this._threedayRS = new LoginRewardState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool threedayRSSpecified + { + get + { + return this._threedayRS != null; + } + set + { + bool flag = value == (this._threedayRS == null); + if (flag) + { + this._threedayRS = (value ? new LoginRewardState?(this.threedayRS) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "sevendayRS", DataFormat = DataFormat.TwosComplement)] + public LoginRewardState sevendayRS + { + get + { + return this._sevendayRS ?? LoginRewardState.LOGINRS_CANNOT; + } + set + { + this._sevendayRS = new LoginRewardState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sevendayRSSpecified + { + get + { + return this._sevendayRS != null; + } + set + { + bool flag = value == (this._sevendayRS == null); + if (flag) + { + this._sevendayRS = (value ? new LoginRewardState?(this.sevendayRS) : null); + } + } + } + + private uint? _logindaycount; + + private LoginRewardState? _fivedayRS; + + private LoginRewardState? _twodayRS; + + private LoginRewardState? _threedayRS; + + private LoginRewardState? _sevendayRS; + + private IExtension extensionObject; + + private bool ShouldSerializelogindaycount() + { + return this.logindaycountSpecified; + } + + private void Resetlogindaycount() + { + this.logindaycountSpecified = false; + } + + private bool ShouldSerializefivedayRS() + { + return this.fivedayRSSpecified; + } + + private void ResetfivedayRS() + { + this.fivedayRSSpecified = false; + } + + private bool ShouldSerializetwodayRS() + { + return this.twodayRSSpecified; + } + + private void ResettwodayRS() + { + this.twodayRSSpecified = false; + } + + private bool ShouldSerializethreedayRS() + { + return this.threedayRSSpecified; + } + + private void ResetthreedayRS() + { + this.threedayRSSpecified = false; + } + + private bool ShouldSerializesevendayRS() + { + return this.sevendayRSSpecified; + } + + private void ResetsevendayRS() + { + this.sevendayRSSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0