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/BattleFailedData.cs | 148 +++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFailedData.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/BattleFailedData.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFailedData.cs b/Client/Assets/Scripts/XMainClient/KKSG/BattleFailedData.cs new file mode 100644 index 00000000..d5ab64b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFailedData.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BattleFailedData")] + [Serializable] + public class BattleFailedData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "timespan", DataFormat = DataFormat.TwosComplement)] + public uint timespan + { + get + { + return this._timespan ?? 0u; + } + set + { + this._timespan = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timespanSpecified + { + get + { + return this._timespan != null; + } + set + { + bool flag = value == (this._timespan == null); + if (flag) + { + this._timespan = (value ? new uint?(this.timespan) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "hppercent", DataFormat = DataFormat.TwosComplement)] + public uint hppercent + { + get + { + return this._hppercent ?? 0u; + } + set + { + this._hppercent = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hppercentSpecified + { + get + { + return this._hppercent != null; + } + set + { + bool flag = value == (this._hppercent == null); + if (flag) + { + this._hppercent = (value ? new uint?(this.hppercent) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "deathcount", DataFormat = DataFormat.TwosComplement)] + public uint deathcount + { + get + { + return this._deathcount ?? 0u; + } + set + { + this._deathcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool deathcountSpecified + { + get + { + return this._deathcount != null; + } + set + { + bool flag = value == (this._deathcount == null); + if (flag) + { + this._deathcount = (value ? new uint?(this.deathcount) : null); + } + } + } + + private uint? _timespan; + + private uint? _hppercent; + + private uint? _deathcount; + + private IExtension extensionObject; + + private bool ShouldSerializetimespan() + { + return this.timespanSpecified; + } + + private void Resettimespan() + { + this.timespanSpecified = false; + } + + private bool ShouldSerializehppercent() + { + return this.hppercentSpecified; + } + + private void Resethppercent() + { + this.hppercentSpecified = false; + } + + private bool ShouldSerializedeathcount() + { + return this.deathcountSpecified; + } + + private void Resetdeathcount() + { + this.deathcountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0