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/PvpBattleKill.cs | 203 +++++++++++++++++++++ 1 file changed, 203 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PvpBattleKill.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/PvpBattleKill.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PvpBattleKill.cs b/Client/Assets/Scripts/XMainClient/KKSG/PvpBattleKill.cs new file mode 100644 index 00000000..2fe4b57f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PvpBattleKill.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PvpBattleKill")] + [Serializable] + public class PvpBattleKill : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "killID", DataFormat = DataFormat.TwosComplement)] + public ulong killID + { + get + { + return this._killID ?? 0UL; + } + set + { + this._killID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killIDSpecified + { + get + { + return this._killID != null; + } + set + { + bool flag = value == (this._killID == null); + if (flag) + { + this._killID = (value ? new ulong?(this.killID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "deadID", DataFormat = DataFormat.TwosComplement)] + public ulong deadID + { + get + { + return this._deadID ?? 0UL; + } + set + { + this._deadID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool deadIDSpecified + { + get + { + return this._deadID != null; + } + set + { + bool flag = value == (this._deadID == null); + if (flag) + { + this._deadID = (value ? new ulong?(this.deadID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "reviveTime", DataFormat = DataFormat.TwosComplement)] + public uint reviveTime + { + get + { + return this._reviveTime ?? 0u; + } + set + { + this._reviveTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reviveTimeSpecified + { + get + { + return this._reviveTime != null; + } + set + { + bool flag = value == (this._reviveTime == null); + if (flag) + { + this._reviveTime = (value ? new uint?(this.reviveTime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "contiKillCount", DataFormat = DataFormat.TwosComplement)] + public int contiKillCount + { + get + { + return this._contiKillCount ?? 0; + } + set + { + this._contiKillCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool contiKillCountSpecified + { + get + { + return this._contiKillCount != null; + } + set + { + bool flag = value == (this._contiKillCount == null); + if (flag) + { + this._contiKillCount = (value ? new int?(this.contiKillCount) : null); + } + } + } + + [ProtoMember(5, Name = "assitids", DataFormat = DataFormat.TwosComplement)] + public List assitids + { + get + { + return this._assitids; + } + } + + private ulong? _killID; + + private ulong? _deadID; + + private uint? _reviveTime; + + private int? _contiKillCount; + + private readonly List _assitids = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializekillID() + { + return this.killIDSpecified; + } + + private void ResetkillID() + { + this.killIDSpecified = false; + } + + private bool ShouldSerializedeadID() + { + return this.deadIDSpecified; + } + + private void ResetdeadID() + { + this.deadIDSpecified = false; + } + + private bool ShouldSerializereviveTime() + { + return this.reviveTimeSpecified; + } + + private void ResetreviveTime() + { + this.reviveTimeSpecified = false; + } + + private bool ShouldSerializecontiKillCount() + { + return this.contiKillCountSpecified; + } + + private void ResetcontiKillCount() + { + this.contiKillCountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0