summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/SweepTowerArg.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/SweepTowerArg.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/SweepTowerArg.cs78
1 files changed, 78 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SweepTowerArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/SweepTowerArg.cs
new file mode 100644
index 00000000..5692d5da
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/SweepTowerArg.cs
@@ -0,0 +1,78 @@
+using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "SweepTowerArg")]
+ [Serializable]
+ public class SweepTowerArg : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "hardLevel", DataFormat = DataFormat.TwosComplement)]
+ public int hardLevel
+ {
+ get
+ {
+ return this._hardLevel ?? 0;
+ }
+ set
+ {
+ this._hardLevel = new int?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool hardLevelSpecified
+ {
+ get
+ {
+ return this._hardLevel != null;
+ }
+ set
+ {
+ bool flag = value == (this._hardLevel == null);
+ if (flag)
+ {
+ this._hardLevel = (value ? new int?(this.hardLevel) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "cost", DataFormat = DataFormat.Default)]
+ [DefaultValue(null)]
+ public ItemBrief cost
+ {
+ get
+ {
+ return this._cost;
+ }
+ set
+ {
+ this._cost = value;
+ }
+ }
+
+ private int? _hardLevel;
+
+ private ItemBrief _cost = null;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializehardLevel()
+ {
+ return this.hardLevelSpecified;
+ }
+
+ private void ResethardLevel()
+ {
+ this.hardLevelSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}