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/HeroKillNotifyData.cs | 149 +++++++++++++++++++++ 1 file changed, 149 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroKillNotifyData.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/HeroKillNotifyData.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroKillNotifyData.cs b/Client/Assets/Scripts/XMainClient/KKSG/HeroKillNotifyData.cs new file mode 100644 index 00000000..b367ade9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroKillNotifyData.cs @@ -0,0 +1,149 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HeroKillNotifyData")] + [Serializable] + public class HeroKillNotifyData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "killer", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public HeroKillUnit killer + { + get + { + return this._killer; + } + set + { + this._killer = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "dead", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public HeroKillUnit dead + { + get + { + return this._dead; + } + set + { + this._dead = value; + } + } + + [ProtoMember(3, Name = "assists", DataFormat = DataFormat.Default)] + public List assists + { + get + { + return this._assists; + } + } + + [ProtoMember(4, IsRequired = false, Name = "multiKill", DataFormat = DataFormat.TwosComplement)] + public uint multiKill + { + get + { + return this._multiKill ?? 0u; + } + set + { + this._multiKill = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool multiKillSpecified + { + get + { + return this._multiKill != null; + } + set + { + bool flag = value == (this._multiKill == null); + if (flag) + { + this._multiKill = (value ? new uint?(this.multiKill) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "isFirstBlood", DataFormat = DataFormat.Default)] + public bool isFirstBlood + { + get + { + return this._isFirstBlood ?? false; + } + set + { + this._isFirstBlood = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isFirstBloodSpecified + { + get + { + return this._isFirstBlood != null; + } + set + { + bool flag = value == (this._isFirstBlood == null); + if (flag) + { + this._isFirstBlood = (value ? new bool?(this.isFirstBlood) : null); + } + } + } + + private HeroKillUnit _killer = null; + + private HeroKillUnit _dead = null; + + private readonly List _assists = new List(); + + private uint? _multiKill; + + private bool? _isFirstBlood; + + private IExtension extensionObject; + + private bool ShouldSerializemultiKill() + { + return this.multiKillSpecified; + } + + private void ResetmultiKill() + { + this.multiKillSpecified = false; + } + + private bool ShouldSerializeisFirstBlood() + { + return this.isFirstBloodSpecified; + } + + private void ResetisFirstBlood() + { + this.isFirstBloodSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0