summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/BossRushPara.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/BossRushPara.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/BossRushPara.cs105
1 files changed, 105 insertions, 0 deletions
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);
+ }
+ }
+}