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/TrophyDetail.cs | 105 +++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TrophyDetail.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/TrophyDetail.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TrophyDetail.cs b/Client/Assets/Scripts/XMainClient/KKSG/TrophyDetail.cs new file mode 100644 index 00000000..741ea247 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TrophyDetail.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TrophyDetail")] + [Serializable] + public class TrophyDetail : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "tropy_order", DataFormat = DataFormat.TwosComplement)] + public uint tropy_order + { + get + { + return this._tropy_order ?? 0u; + } + set + { + this._tropy_order = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tropy_orderSpecified + { + get + { + return this._tropy_order != null; + } + set + { + bool flag = value == (this._tropy_order == null); + if (flag) + { + this._tropy_order = (value ? new uint?(this.tropy_order) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "trophy_time", DataFormat = DataFormat.TwosComplement)] + public uint trophy_time + { + get + { + return this._trophy_time ?? 0u; + } + set + { + this._trophy_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool trophy_timeSpecified + { + get + { + return this._trophy_time != null; + } + set + { + bool flag = value == (this._trophy_time == null); + if (flag) + { + this._trophy_time = (value ? new uint?(this.trophy_time) : null); + } + } + } + + private uint? _tropy_order; + + private uint? _trophy_time; + + private IExtension extensionObject; + + private bool ShouldSerializetropy_order() + { + return this.tropy_orderSpecified; + } + + private void Resettropy_order() + { + this.tropy_orderSpecified = false; + } + + private bool ShouldSerializetrophy_time() + { + return this.trophy_timeSpecified; + } + + private void Resettrophy_time() + { + this.trophy_timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0