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/LoginRewardRet.cs | 160 +++++++++++++++++++++ 1 file changed, 160 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginRewardRet.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/LoginRewardRet.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginRewardRet.cs b/Client/Assets/Scripts/XMainClient/KKSG/LoginRewardRet.cs new file mode 100644 index 00000000..18431514 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginRewardRet.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LoginRewardRet")] + [Serializable] + public class LoginRewardRet : IExtensible + { + [ProtoMember(1, Name = "rewards", DataFormat = DataFormat.Default)] + public List rewards + { + get + { + return this._rewards; + } + } + + [ProtoMember(2, IsRequired = false, Name = "open", DataFormat = DataFormat.Default)] + public bool open + { + get + { + return this._open ?? false; + } + set + { + this._open = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool openSpecified + { + get + { + return this._open != null; + } + set + { + bool flag = value == (this._open == null); + if (flag) + { + this._open = (value ? new bool?(this.open) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "logindayforreward", DataFormat = DataFormat.TwosComplement)] + public uint logindayforreward + { + get + { + return this._logindayforreward ?? 0u; + } + set + { + this._logindayforreward = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool logindayforrewardSpecified + { + get + { + return this._logindayforreward != null; + } + set + { + bool flag = value == (this._logindayforreward == null); + if (flag) + { + this._logindayforreward = (value ? new uint?(this.logindayforreward) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "sectoday", DataFormat = DataFormat.TwosComplement)] + public uint sectoday + { + get + { + return this._sectoday ?? 0u; + } + set + { + this._sectoday = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sectodaySpecified + { + get + { + return this._sectoday != null; + } + set + { + bool flag = value == (this._sectoday == null); + if (flag) + { + this._sectoday = (value ? new uint?(this.sectoday) : null); + } + } + } + + private readonly List _rewards = new List(); + + private bool? _open; + + private uint? _logindayforreward; + + private uint? _sectoday; + + private IExtension extensionObject; + + private bool ShouldSerializeopen() + { + return this.openSpecified; + } + + private void Resetopen() + { + this.openSpecified = false; + } + + private bool ShouldSerializelogindayforreward() + { + return this.logindayforrewardSpecified; + } + + private void Resetlogindayforreward() + { + this.logindayforrewardSpecified = false; + } + + private bool ShouldSerializesectoday() + { + return this.sectodaySpecified; + } + + private void Resetsectoday() + { + this.sectodaySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0