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/BossRushPara.cs | 105 +++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BossRushPara.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/BossRushPara.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BossRushPara.cs b/Client/Assets/Scripts/XMainClient/KKSG/BossRushPara.cs new file mode 100644 index 00000000..01bc2554 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BossRushPara.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BossRushPara")] + [Serializable] + public class BossRushPara : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public int rank + { + get + { + return this._rank ?? 0; + } + set + { + this._rank = new int?(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 int?(this.rank) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "win", DataFormat = DataFormat.Default)] + public bool win + { + get + { + return this._win ?? false; + } + set + { + this._win = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winSpecified + { + get + { + return this._win != null; + } + set + { + bool flag = value == (this._win == null); + if (flag) + { + this._win = (value ? new bool?(this.win) : null); + } + } + } + + private int? _rank; + + private bool? _win; + + private IExtension extensionObject; + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + private bool ShouldSerializewin() + { + return this.winSpecified; + } + + private void Resetwin() + { + this.winSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0