using System; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "RiftEachFloorInfo")] [Serializable] public class RiftEachFloorInfo : IExtensible { [ProtoMember(1, IsRequired = false, Name = "floor", DataFormat = DataFormat.TwosComplement)] public int floor { get { return this._floor ?? 0; } set { this._floor = new int?(value); } } [XmlIgnore] [Browsable(false)] public bool floorSpecified { get { return this._floor != null; } set { bool flag = value == (this._floor == null); if (flag) { this._floor = (value ? new int?(this.floor) : null); } } } [ProtoMember(2, IsRequired = false, Name = "status", DataFormat = DataFormat.TwosComplement)] public RiftFloorStatus status { get { return this._status ?? RiftFloorStatus.RiftFloor_NotPass; } set { this._status = new RiftFloorStatus?(value); } } [XmlIgnore] [Browsable(false)] public bool statusSpecified { get { return this._status != null; } set { bool flag = value == (this._status == null); if (flag) { this._status = (value ? new RiftFloorStatus?(this.status) : null); } } } [ProtoMember(3, IsRequired = false, Name = "sceneID", DataFormat = DataFormat.TwosComplement)] public int sceneID { get { return this._sceneID ?? 0; } set { this._sceneID = new int?(value); } } [XmlIgnore] [Browsable(false)] public bool sceneIDSpecified { get { return this._sceneID != null; } set { bool flag = value == (this._sceneID == null); if (flag) { this._sceneID = (value ? new int?(this.sceneID) : null); } } } private int? _floor; private RiftFloorStatus? _status; private int? _sceneID; private IExtension extensionObject; private bool ShouldSerializefloor() { return this.floorSpecified; } private void Resetfloor() { this.floorSpecified = false; } private bool ShouldSerializestatus() { return this.statusSpecified; } private void Resetstatus() { this.statusSpecified = false; } private bool ShouldSerializesceneID() { return this.sceneIDSpecified; } private void ResetsceneID() { this.sceneIDSpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }