From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- Client/Assets/Scripts/XMainClient/KKSG/MoveInfo.cs | 148 +++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MoveInfo.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/MoveInfo.cs') 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); + } + } +} -- cgit v1.1-26-g67d0