From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/GetWorldBossStateRes.cs | 148 +++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossStateRes.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossStateRes.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossStateRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossStateRes.cs new file mode 100644 index 00000000..55b41c02 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossStateRes.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetWorldBossStateRes")] + [Serializable] + public class GetWorldBossStateRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "TimeLeft", DataFormat = DataFormat.TwosComplement)] + public uint TimeLeft + { + get + { + return this._TimeLeft ?? 0u; + } + set + { + this._TimeLeft = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool TimeLeftSpecified + { + get + { + return this._TimeLeft != null; + } + set + { + bool flag = value == (this._TimeLeft == null); + if (flag) + { + this._TimeLeft = (value ? new uint?(this.TimeLeft) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "BossHp", DataFormat = DataFormat.TwosComplement)] + public uint BossHp + { + get + { + return this._BossHp ?? 0u; + } + set + { + this._BossHp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool BossHpSpecified + { + get + { + return this._BossHp != null; + } + set + { + bool flag = value == (this._BossHp == null); + if (flag) + { + this._BossHp = (value ? new uint?(this.BossHp) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "BossId", DataFormat = DataFormat.TwosComplement)] + public uint BossId + { + get + { + return this._BossId ?? 0u; + } + set + { + this._BossId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool BossIdSpecified + { + get + { + return this._BossId != null; + } + set + { + bool flag = value == (this._BossId == null); + if (flag) + { + this._BossId = (value ? new uint?(this.BossId) : null); + } + } + } + + private uint? _TimeLeft; + + private uint? _BossHp; + + private uint? _BossId; + + private IExtension extensionObject; + + private bool ShouldSerializeTimeLeft() + { + return this.TimeLeftSpecified; + } + + private void ResetTimeLeft() + { + this.TimeLeftSpecified = false; + } + + private bool ShouldSerializeBossHp() + { + return this.BossHpSpecified; + } + + private void ResetBossHp() + { + this.BossHpSpecified = false; + } + + private bool ShouldSerializeBossId() + { + return this.BossIdSpecified; + } + + private void ResetBossId() + { + this.BossIdSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0