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/SweepTowerArg.cs | 78 ++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SweepTowerArg.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/SweepTowerArg.cs') 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); + } + } +} -- cgit v1.1-26-g67d0