From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/JadeOperationNewArg.cs | 191 +++++++++++++++++++++ 1 file changed, 191 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JadeOperationNewArg.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/JadeOperationNewArg.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JadeOperationNewArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/JadeOperationNewArg.cs new file mode 100644 index 00000000..5a25bfca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JadeOperationNewArg.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "JadeOperationNewArg")] + [Serializable] + public class JadeOperationNewArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "OperationType", DataFormat = DataFormat.TwosComplement)] + public uint OperationType + { + get + { + return this._OperationType ?? 0u; + } + set + { + this._OperationType = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool OperationTypeSpecified + { + get + { + return this._OperationType != null; + } + set + { + bool flag = value == (this._OperationType == null); + if (flag) + { + this._OperationType = (value ? new uint?(this.OperationType) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "EquipUniqueId", DataFormat = DataFormat.Default)] + public string EquipUniqueId + { + get + { + return this._EquipUniqueId ?? ""; + } + set + { + this._EquipUniqueId = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool EquipUniqueIdSpecified + { + get + { + return this._EquipUniqueId != null; + } + set + { + bool flag = value == (this._EquipUniqueId == null); + if (flag) + { + this._EquipUniqueId = (value ? this.EquipUniqueId : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "JadeUniqueId", DataFormat = DataFormat.Default)] + public string JadeUniqueId + { + get + { + return this._JadeUniqueId ?? ""; + } + set + { + this._JadeUniqueId = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool JadeUniqueIdSpecified + { + get + { + return this._JadeUniqueId != null; + } + set + { + bool flag = value == (this._JadeUniqueId == null); + if (flag) + { + this._JadeUniqueId = (value ? this.JadeUniqueId : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "Pos", DataFormat = DataFormat.TwosComplement)] + public uint Pos + { + get + { + return this._Pos ?? 0u; + } + set + { + this._Pos = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool PosSpecified + { + get + { + return this._Pos != null; + } + set + { + bool flag = value == (this._Pos == null); + if (flag) + { + this._Pos = (value ? new uint?(this.Pos) : null); + } + } + } + + private uint? _OperationType; + + private string _EquipUniqueId; + + private string _JadeUniqueId; + + private uint? _Pos; + + private IExtension extensionObject; + + private bool ShouldSerializeOperationType() + { + return this.OperationTypeSpecified; + } + + private void ResetOperationType() + { + this.OperationTypeSpecified = false; + } + + private bool ShouldSerializeEquipUniqueId() + { + return this.EquipUniqueIdSpecified; + } + + private void ResetEquipUniqueId() + { + this.EquipUniqueIdSpecified = false; + } + + private bool ShouldSerializeJadeUniqueId() + { + return this.JadeUniqueIdSpecified; + } + + private void ResetJadeUniqueId() + { + this.JadeUniqueIdSpecified = false; + } + + private bool ShouldSerializePos() + { + return this.PosSpecified; + } + + private void ResetPos() + { + this.PosSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0