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/ArgentaData.cs | 160 +++++++++++++++++++++ 1 file changed, 160 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArgentaData.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/ArgentaData.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArgentaData.cs b/Client/Assets/Scripts/XMainClient/KKSG/ArgentaData.cs new file mode 100644 index 00000000..2b123d56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArgentaData.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ArgentaData")] + [Serializable] + public class ArgentaData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "argentaStartTime", DataFormat = DataFormat.TwosComplement)] + public uint argentaStartTime + { + get + { + return this._argentaStartTime ?? 0u; + } + set + { + this._argentaStartTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool argentaStartTimeSpecified + { + get + { + return this._argentaStartTime != null; + } + set + { + bool flag = value == (this._argentaStartTime == null); + if (flag) + { + this._argentaStartTime = (value ? new uint?(this.argentaStartTime) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "lastUpdateTime", DataFormat = DataFormat.TwosComplement)] + public uint lastUpdateTime + { + get + { + return this._lastUpdateTime ?? 0u; + } + set + { + this._lastUpdateTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastUpdateTimeSpecified + { + get + { + return this._lastUpdateTime != null; + } + set + { + bool flag = value == (this._lastUpdateTime == null); + if (flag) + { + this._lastUpdateTime = (value ? new uint?(this.lastUpdateTime) : null); + } + } + } + + [ProtoMember(4, Name = "getDailyRewards", DataFormat = DataFormat.TwosComplement)] + public List getDailyRewards + { + get + { + return this._getDailyRewards; + } + } + + private uint? _argentaStartTime; + + private uint? _level; + + private uint? _lastUpdateTime; + + private readonly List _getDailyRewards = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeargentaStartTime() + { + return this.argentaStartTimeSpecified; + } + + private void ResetargentaStartTime() + { + this.argentaStartTimeSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializelastUpdateTime() + { + return this.lastUpdateTimeSpecified; + } + + private void ResetlastUpdateTime() + { + this.lastUpdateTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0