summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/BattleFailedData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/BattleFailedData.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/BattleFailedData.cs148
1 files changed, 148 insertions, 0 deletions
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);
+ }
+ }
+}