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); } } }