summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/BattleFieldData.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/BattleFieldData.cs305
1 files changed, 305 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldData.cs b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldData.cs
new file mode 100644
index 00000000..32b13015
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldData.cs
@@ -0,0 +1,305 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "BattleFieldData")]
+ [Serializable]
+ public class BattleFieldData : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "firstrankcount", DataFormat = DataFormat.TwosComplement)]
+ public uint firstrankcount
+ {
+ get
+ {
+ return this._firstrankcount ?? 0u;
+ }
+ set
+ {
+ this._firstrankcount = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool firstrankcountSpecified
+ {
+ get
+ {
+ return this._firstrankcount != null;
+ }
+ set
+ {
+ bool flag = value == (this._firstrankcount == null);
+ if (flag)
+ {
+ this._firstrankcount = (value ? new uint?(this.firstrankcount) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "totalkillcount", DataFormat = DataFormat.TwosComplement)]
+ public uint totalkillcount
+ {
+ get
+ {
+ return this._totalkillcount ?? 0u;
+ }
+ set
+ {
+ this._totalkillcount = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool totalkillcountSpecified
+ {
+ get
+ {
+ return this._totalkillcount != null;
+ }
+ set
+ {
+ bool flag = value == (this._totalkillcount == null);
+ if (flag)
+ {
+ this._totalkillcount = (value ? new uint?(this.totalkillcount) : null);
+ }
+ }
+ }
+
+ [ProtoMember(3, Name = "point", DataFormat = DataFormat.Default)]
+ public List<BattleFieldPoint> point
+ {
+ get
+ {
+ return this._point;
+ }
+ }
+
+ [ProtoMember(4, 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(5, IsRequired = false, Name = "hell", DataFormat = DataFormat.Default)]
+ [DefaultValue(null)]
+ public HellDropInfoAll hell
+ {
+ get
+ {
+ return this._hell;
+ }
+ set
+ {
+ this._hell = value;
+ }
+ }
+
+ [ProtoMember(6, IsRequired = false, Name = "weekpoint", DataFormat = DataFormat.TwosComplement)]
+ public uint weekpoint
+ {
+ get
+ {
+ return this._weekpoint ?? 0u;
+ }
+ set
+ {
+ this._weekpoint = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool weekpointSpecified
+ {
+ get
+ {
+ return this._weekpoint != null;
+ }
+ set
+ {
+ bool flag = value == (this._weekpoint == null);
+ if (flag)
+ {
+ this._weekpoint = (value ? new uint?(this.weekpoint) : null);
+ }
+ }
+ }
+
+ [ProtoMember(7, IsRequired = false, Name = "dayupdatetime", DataFormat = DataFormat.TwosComplement)]
+ public uint dayupdatetime
+ {
+ get
+ {
+ return this._dayupdatetime ?? 0u;
+ }
+ set
+ {
+ this._dayupdatetime = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool dayupdatetimeSpecified
+ {
+ get
+ {
+ return this._dayupdatetime != null;
+ }
+ set
+ {
+ bool flag = value == (this._dayupdatetime == null);
+ if (flag)
+ {
+ this._dayupdatetime = (value ? new uint?(this.dayupdatetime) : null);
+ }
+ }
+ }
+
+ [ProtoMember(8, IsRequired = false, Name = "version", DataFormat = DataFormat.TwosComplement)]
+ public uint version
+ {
+ get
+ {
+ return this._version ?? 0u;
+ }
+ set
+ {
+ this._version = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool versionSpecified
+ {
+ get
+ {
+ return this._version != null;
+ }
+ set
+ {
+ bool flag = value == (this._version == null);
+ if (flag)
+ {
+ this._version = (value ? new uint?(this.version) : null);
+ }
+ }
+ }
+
+ private uint? _firstrankcount;
+
+ private uint? _totalkillcount;
+
+ private readonly List<BattleFieldPoint> _point = new List<BattleFieldPoint>();
+
+ private uint? _lastupdatetime;
+
+ private HellDropInfoAll _hell = null;
+
+ private uint? _weekpoint;
+
+ private uint? _dayupdatetime;
+
+ private uint? _version;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializefirstrankcount()
+ {
+ return this.firstrankcountSpecified;
+ }
+
+ private void Resetfirstrankcount()
+ {
+ this.firstrankcountSpecified = false;
+ }
+
+ private bool ShouldSerializetotalkillcount()
+ {
+ return this.totalkillcountSpecified;
+ }
+
+ private void Resettotalkillcount()
+ {
+ this.totalkillcountSpecified = false;
+ }
+
+ private bool ShouldSerializelastupdatetime()
+ {
+ return this.lastupdatetimeSpecified;
+ }
+
+ private void Resetlastupdatetime()
+ {
+ this.lastupdatetimeSpecified = false;
+ }
+
+ private bool ShouldSerializeweekpoint()
+ {
+ return this.weekpointSpecified;
+ }
+
+ private void Resetweekpoint()
+ {
+ this.weekpointSpecified = false;
+ }
+
+ private bool ShouldSerializedayupdatetime()
+ {
+ return this.dayupdatetimeSpecified;
+ }
+
+ private void Resetdayupdatetime()
+ {
+ this.dayupdatetimeSpecified = false;
+ }
+
+ private bool ShouldSerializeversion()
+ {
+ return this.versionSpecified;
+ }
+
+ private void Resetversion()
+ {
+ this.versionSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}