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/MoveInfo.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/MoveInfo.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/MoveInfo.cs | 148 |
1 files changed, 148 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MoveInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/MoveInfo.cs new file mode 100644 index 00000000..1e7d69dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MoveInfo.cs @@ -0,0 +1,148 @@ +using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "MoveInfo")]
+ [Serializable]
+ public class MoveInfo : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "Common", DataFormat = DataFormat.TwosComplement)]
+ public int Common
+ {
+ get
+ {
+ return this._Common ?? 0;
+ }
+ set
+ {
+ this._Common = new int?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool CommonSpecified
+ {
+ get
+ {
+ return this._Common != null;
+ }
+ set
+ {
+ bool flag = value == (this._Common == null);
+ if (flag)
+ {
+ this._Common = (value ? new int?(this.Common) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "PosXZ", DataFormat = DataFormat.TwosComplement)]
+ public int PosXZ
+ {
+ get
+ {
+ return this._PosXZ ?? 0;
+ }
+ set
+ {
+ this._PosXZ = new int?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool PosXZSpecified
+ {
+ get
+ {
+ return this._PosXZ != null;
+ }
+ set
+ {
+ bool flag = value == (this._PosXZ == null);
+ if (flag)
+ {
+ this._PosXZ = (value ? new int?(this.PosXZ) : null);
+ }
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "DesXZ", DataFormat = DataFormat.TwosComplement)]
+ public int DesXZ
+ {
+ get
+ {
+ return this._DesXZ ?? 0;
+ }
+ set
+ {
+ this._DesXZ = new int?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool DesXZSpecified
+ {
+ get
+ {
+ return this._DesXZ != null;
+ }
+ set
+ {
+ bool flag = value == (this._DesXZ == null);
+ if (flag)
+ {
+ this._DesXZ = (value ? new int?(this.DesXZ) : null);
+ }
+ }
+ }
+
+ private int? _Common;
+
+ private int? _PosXZ;
+
+ private int? _DesXZ;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeCommon()
+ {
+ return this.CommonSpecified;
+ }
+
+ private void ResetCommon()
+ {
+ this.CommonSpecified = false;
+ }
+
+ private bool ShouldSerializePosXZ()
+ {
+ return this.PosXZSpecified;
+ }
+
+ private void ResetPosXZ()
+ {
+ this.PosXZSpecified = false;
+ }
+
+ private bool ShouldSerializeDesXZ()
+ {
+ return this.DesXZSpecified;
+ }
+
+ private void ResetDesXZ()
+ {
+ this.DesXZSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}
|