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