summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/LoginRecord.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/KKSG/LoginRecord.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/LoginRecord.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/LoginRecord.cs203
1 files changed, 203 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/LoginRecord.cs
new file mode 100644
index 00000000..acbd907e
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginRecord.cs
@@ -0,0 +1,203 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "LoginRecord")]
+ [Serializable]
+ public class LoginRecord : 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 = "logindayforloginreward", DataFormat = DataFormat.TwosComplement)]
+ public uint logindayforloginreward
+ {
+ get
+ {
+ return this._logindayforloginreward ?? 0u;
+ }
+ set
+ {
+ this._logindayforloginreward = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool logindayforloginrewardSpecified
+ {
+ get
+ {
+ return this._logindayforloginreward != null;
+ }
+ set
+ {
+ bool flag = value == (this._logindayforloginreward == null);
+ if (flag)
+ {
+ this._logindayforloginreward = (value ? new uint?(this.logindayforloginreward) : null);
+ }
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "lastUpdateDay", DataFormat = DataFormat.TwosComplement)]
+ public uint lastUpdateDay
+ {
+ get
+ {
+ return this._lastUpdateDay ?? 0u;
+ }
+ set
+ {
+ this._lastUpdateDay = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool lastUpdateDaySpecified
+ {
+ get
+ {
+ return this._lastUpdateDay != null;
+ }
+ set
+ {
+ bool flag = value == (this._lastUpdateDay == null);
+ if (flag)
+ {
+ this._lastUpdateDay = (value ? new uint?(this.lastUpdateDay) : null);
+ }
+ }
+ }
+
+ [ProtoMember(4, IsRequired = false, Name = "lrostate", DataFormat = DataFormat.TwosComplement)]
+ public int lrostate
+ {
+ get
+ {
+ return this._lrostate ?? 0;
+ }
+ set
+ {
+ this._lrostate = new int?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool lrostateSpecified
+ {
+ get
+ {
+ return this._lrostate != null;
+ }
+ set
+ {
+ bool flag = value == (this._lrostate == null);
+ if (flag)
+ {
+ this._lrostate = (value ? new int?(this.lrostate) : null);
+ }
+ }
+ }
+
+ [ProtoMember(5, Name = "loginRewards", DataFormat = DataFormat.Default)]
+ public List<LoginReward> loginRewards
+ {
+ get
+ {
+ return this._loginRewards;
+ }
+ }
+
+ private uint? _loginDayCount;
+
+ private uint? _logindayforloginreward;
+
+ private uint? _lastUpdateDay;
+
+ private int? _lrostate;
+
+ private readonly List<LoginReward> _loginRewards = new List<LoginReward>();
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeloginDayCount()
+ {
+ return this.loginDayCountSpecified;
+ }
+
+ private void ResetloginDayCount()
+ {
+ this.loginDayCountSpecified = false;
+ }
+
+ private bool ShouldSerializelogindayforloginreward()
+ {
+ return this.logindayforloginrewardSpecified;
+ }
+
+ private void Resetlogindayforloginreward()
+ {
+ this.logindayforloginrewardSpecified = false;
+ }
+
+ private bool ShouldSerializelastUpdateDay()
+ {
+ return this.lastUpdateDaySpecified;
+ }
+
+ private void ResetlastUpdateDay()
+ {
+ this.lastUpdateDaySpecified = false;
+ }
+
+ private bool ShouldSerializelrostate()
+ {
+ return this.lrostateSpecified;
+ }
+
+ private void Resetlrostate()
+ {
+ this.lrostateSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}