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/RiftEachFloorInfo.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/RiftEachFloorInfo.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/RiftEachFloorInfo.cs | 148 |
1 files changed, 148 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiftEachFloorInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/RiftEachFloorInfo.cs new file mode 100644 index 00000000..de82e592 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiftEachFloorInfo.cs @@ -0,0 +1,148 @@ +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);
+ }
+ }
+}
|