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/SurviveRecord.cs | 191 +++++++++++++++++++++ 1 file changed, 191 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SurviveRecord.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/SurviveRecord.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SurviveRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/SurviveRecord.cs new file mode 100644 index 00000000..76ba7633 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SurviveRecord.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SurviveRecord")] + [Serializable] + public class SurviveRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "lastweekuptime", DataFormat = DataFormat.TwosComplement)] + public uint lastweekuptime + { + get + { + return this._lastweekuptime ?? 0u; + } + set + { + this._lastweekuptime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastweekuptimeSpecified + { + get + { + return this._lastweekuptime != null; + } + set + { + bool flag = value == (this._lastweekuptime == null); + if (flag) + { + this._lastweekuptime = (value ? new uint?(this.lastweekuptime) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public uint point + { + get + { + return this._point ?? 0u; + } + set + { + this._point = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new uint?(this.point) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "topcount", DataFormat = DataFormat.TwosComplement)] + public uint topcount + { + get + { + return this._topcount ?? 0u; + } + set + { + this._topcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool topcountSpecified + { + get + { + return this._topcount != null; + } + set + { + bool flag = value == (this._topcount == null); + if (flag) + { + this._topcount = (value ? new uint?(this.topcount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "givereward", DataFormat = DataFormat.Default)] + public bool givereward + { + get + { + return this._givereward ?? false; + } + set + { + this._givereward = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool giverewardSpecified + { + get + { + return this._givereward != null; + } + set + { + bool flag = value == (this._givereward == null); + if (flag) + { + this._givereward = (value ? new bool?(this.givereward) : null); + } + } + } + + private uint? _lastweekuptime; + + private uint? _point; + + private uint? _topcount; + + private bool? _givereward; + + private IExtension extensionObject; + + private bool ShouldSerializelastweekuptime() + { + return this.lastweekuptimeSpecified; + } + + private void Resetlastweekuptime() + { + this.lastweekuptimeSpecified = false; + } + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + private bool ShouldSerializetopcount() + { + return this.topcountSpecified; + } + + private void Resettopcount() + { + this.topcountSpecified = false; + } + + private bool ShouldSerializegivereward() + { + return this.giverewardSpecified; + } + + private void Resetgivereward() + { + this.giverewardSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0