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/LoginRecord.cs | 203 +++++++++++++++++++++ 1 file changed, 203 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginRecord.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/LoginRecord.cs') 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 loginRewards + { + get + { + return this._loginRewards; + } + } + + private uint? _loginDayCount; + + private uint? _logindayforloginreward; + + private uint? _lastUpdateDay; + + private int? _lrostate; + + private readonly List _loginRewards = new List(); + + 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); + } + } +} -- cgit v1.1-26-g67d0