From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Assets/Scripts/XMainClient/KKSG/DeathInfo.cs | 277 +++++++++++++++++++++ 1 file changed, 277 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DeathInfo.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/DeathInfo.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DeathInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/DeathInfo.cs new file mode 100644 index 00000000..80ef1632 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DeathInfo.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DeathInfo")] + [Serializable] + public class DeathInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "Killer", DataFormat = DataFormat.TwosComplement)] + public ulong Killer + { + get + { + return this._Killer ?? 0UL; + } + set + { + this._Killer = new ulong?(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 ulong?(this.Killer) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "uID", DataFormat = DataFormat.TwosComplement)] + public ulong uID + { + get + { + return this._uID ?? 0UL; + } + set + { + this._uID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uIDSpecified + { + get + { + return this._uID != null; + } + set + { + bool flag = value == (this._uID == null); + if (flag) + { + this._uID = (value ? new ulong?(this.uID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "showSlowCamera", DataFormat = DataFormat.Default)] + public bool showSlowCamera + { + get + { + return this._showSlowCamera ?? false; + } + set + { + this._showSlowCamera = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool showSlowCameraSpecified + { + get + { + return this._showSlowCamera != null; + } + set + { + bool flag = value == (this._showSlowCamera == null); + if (flag) + { + this._showSlowCamera = (value ? new bool?(this.showSlowCamera) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public ReviveType type + { + get + { + return this._type ?? ReviveType.ReviveNone; + } + set + { + this._type = new ReviveType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new ReviveType?(this.type) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "revivecount", DataFormat = DataFormat.TwosComplement)] + public uint revivecount + { + get + { + return this._revivecount ?? 0u; + } + set + { + this._revivecount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool revivecountSpecified + { + get + { + return this._revivecount != null; + } + set + { + bool flag = value == (this._revivecount == null); + if (flag) + { + this._revivecount = (value ? new uint?(this.revivecount) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "costrevivecount", DataFormat = DataFormat.TwosComplement)] + public uint costrevivecount + { + get + { + return this._costrevivecount ?? 0u; + } + set + { + this._costrevivecount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool costrevivecountSpecified + { + get + { + return this._costrevivecount != null; + } + set + { + bool flag = value == (this._costrevivecount == null); + if (flag) + { + this._costrevivecount = (value ? new uint?(this.costrevivecount) : null); + } + } + } + + private ulong? _Killer; + + private ulong? _uID; + + private bool? _showSlowCamera; + + private ReviveType? _type; + + private uint? _revivecount; + + private uint? _costrevivecount; + + private IExtension extensionObject; + + private bool ShouldSerializeKiller() + { + return this.KillerSpecified; + } + + private void ResetKiller() + { + this.KillerSpecified = false; + } + + private bool ShouldSerializeuID() + { + return this.uIDSpecified; + } + + private void ResetuID() + { + this.uIDSpecified = false; + } + + private bool ShouldSerializeshowSlowCamera() + { + return this.showSlowCameraSpecified; + } + + private void ResetshowSlowCamera() + { + this.showSlowCameraSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializerevivecount() + { + return this.revivecountSpecified; + } + + private void Resetrevivecount() + { + this.revivecountSpecified = false; + } + + private bool ShouldSerializecostrevivecount() + { + return this.costrevivecountSpecified; + } + + private void Resetcostrevivecount() + { + this.costrevivecountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0