From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/BattleFieldBattleResult.cs | 504 +++++++++++++++++++++ 1 file changed, 504 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldBattleResult.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/BattleFieldBattleResult.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldBattleResult.cs b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldBattleResult.cs new file mode 100644 index 00000000..589bcfad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldBattleResult.cs @@ -0,0 +1,504 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BattleFieldBattleResult")] + [Serializable] + public class BattleFieldBattleResult : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public uint rank + { + get + { + return this._rank ?? 0u; + } + set + { + this._rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new uint?(this.rank) : null); + } + } + } + + [ProtoMember(3, 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(4, IsRequired = false, Name = "killer", DataFormat = DataFormat.TwosComplement)] + public uint killer + { + get + { + return this._killer ?? 0u; + } + set + { + this._killer = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killerSpecified + { + get + { + return this._killer != null; + } + set + { + bool flag = value == (this._killer == null); + if (flag) + { + this._killer = (value ? new uint?(this.killer) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "death", DataFormat = DataFormat.TwosComplement)] + public uint death + { + get + { + return this._death ?? 0u; + } + set + { + this._death = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool deathSpecified + { + get + { + return this._death != null; + } + set + { + bool flag = value == (this._death == null); + if (flag) + { + this._death = (value ? new uint?(this.death) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "svrname", DataFormat = DataFormat.Default)] + public string svrname + { + get + { + return this._svrname ?? ""; + } + set + { + this._svrname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool svrnameSpecified + { + get + { + return this._svrname != null; + } + set + { + bool flag = value == (this._svrname == null); + if (flag) + { + this._svrname = (value ? this.svrname : null); + } + } + } + + [ProtoMember(7, Name = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + [ProtoMember(8, IsRequired = false, Name = "ismvp", DataFormat = DataFormat.Default)] + public bool ismvp + { + get + { + return this._ismvp ?? false; + } + set + { + this._ismvp = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ismvpSpecified + { + get + { + return this._ismvp != null; + } + set + { + bool flag = value == (this._ismvp == null); + if (flag) + { + this._ismvp = (value ? new bool?(this.ismvp) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "hurt", DataFormat = DataFormat.TwosComplement)] + public double hurt + { + get + { + return this._hurt ?? 0.0; + } + set + { + this._hurt = new double?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hurtSpecified + { + get + { + return this._hurt != null; + } + set + { + bool flag = value == (this._hurt == null); + if (flag) + { + this._hurt = (value ? new double?(this.hurt) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "job", DataFormat = DataFormat.TwosComplement)] + public uint job + { + get + { + return this._job ?? 0u; + } + set + { + this._job = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool jobSpecified + { + get + { + return this._job != null; + } + set + { + bool flag = value == (this._job == null); + if (flag) + { + this._job = (value ? new uint?(this.job) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "killstreak", DataFormat = DataFormat.TwosComplement)] + public uint killstreak + { + get + { + return this._killstreak ?? 0u; + } + set + { + this._killstreak = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killstreakSpecified + { + get + { + return this._killstreak != null; + } + set + { + bool flag = value == (this._killstreak == null); + if (flag) + { + this._killstreak = (value ? new uint?(this.killstreak) : null); + } + } + } + + private ulong? _roleid; + + private uint? _rank; + + private uint? _point; + + private uint? _killer; + + private uint? _death; + + private string _svrname; + + private readonly List _items = new List(); + + private bool? _ismvp; + + private double? _hurt; + + private string _name; + + private uint? _job; + + private uint? _killstreak; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + private bool ShouldSerializekiller() + { + return this.killerSpecified; + } + + private void Resetkiller() + { + this.killerSpecified = false; + } + + private bool ShouldSerializedeath() + { + return this.deathSpecified; + } + + private void Resetdeath() + { + this.deathSpecified = false; + } + + private bool ShouldSerializesvrname() + { + return this.svrnameSpecified; + } + + private void Resetsvrname() + { + this.svrnameSpecified = false; + } + + private bool ShouldSerializeismvp() + { + return this.ismvpSpecified; + } + + private void Resetismvp() + { + this.ismvpSpecified = false; + } + + private bool ShouldSerializehurt() + { + return this.hurtSpecified; + } + + private void Resethurt() + { + this.hurtSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializejob() + { + return this.jobSpecified; + } + + private void Resetjob() + { + this.jobSpecified = false; + } + + private bool ShouldSerializekillstreak() + { + return this.killstreakSpecified; + } + + private void Resetkillstreak() + { + this.killstreakSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0