diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/KKSG/SweepTowerArg.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/SweepTowerArg.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/SweepTowerArg.cs | 78 |
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);
+ }
+ }
+}
|