From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/KKSG/JadeComposeArg.cs | 234 +++++++++++++++++++++ 1 file changed, 234 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JadeComposeArg.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/JadeComposeArg.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JadeComposeArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/JadeComposeArg.cs new file mode 100644 index 00000000..259358b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JadeComposeArg.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "JadeComposeArg")] + [Serializable] + public class JadeComposeArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ComposeType", DataFormat = DataFormat.TwosComplement)] + public uint ComposeType + { + get + { + return this._ComposeType ?? 0u; + } + set + { + this._ComposeType = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ComposeTypeSpecified + { + get + { + return this._ComposeType != null; + } + set + { + bool flag = value == (this._ComposeType == null); + if (flag) + { + this._ComposeType = (value ? new uint?(this.ComposeType) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "JadeUniqueId", DataFormat = DataFormat.TwosComplement)] + public ulong JadeUniqueId + { + get + { + return this._JadeUniqueId ?? 0UL; + } + set + { + this._JadeUniqueId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool JadeUniqueIdSpecified + { + get + { + return this._JadeUniqueId != null; + } + set + { + bool flag = value == (this._JadeUniqueId == null); + if (flag) + { + this._JadeUniqueId = (value ? new ulong?(this.JadeUniqueId) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "EquipUniqueId", DataFormat = DataFormat.TwosComplement)] + public ulong EquipUniqueId + { + get + { + return this._EquipUniqueId ?? 0UL; + } + set + { + this._EquipUniqueId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool EquipUniqueIdSpecified + { + get + { + return this._EquipUniqueId != null; + } + set + { + bool flag = value == (this._EquipUniqueId == null); + if (flag) + { + this._EquipUniqueId = (value ? new ulong?(this.EquipUniqueId) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "SlotPos", DataFormat = DataFormat.TwosComplement)] + public uint SlotPos + { + get + { + return this._SlotPos ?? 0u; + } + set + { + this._SlotPos = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool SlotPosSpecified + { + get + { + return this._SlotPos != null; + } + set + { + bool flag = value == (this._SlotPos == null); + if (flag) + { + this._SlotPos = (value ? new uint?(this.SlotPos) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "AddLevel", DataFormat = DataFormat.TwosComplement)] + public uint AddLevel + { + get + { + return this._AddLevel ?? 0u; + } + set + { + this._AddLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool AddLevelSpecified + { + get + { + return this._AddLevel != null; + } + set + { + bool flag = value == (this._AddLevel == null); + if (flag) + { + this._AddLevel = (value ? new uint?(this.AddLevel) : null); + } + } + } + + private uint? _ComposeType; + + private ulong? _JadeUniqueId; + + private ulong? _EquipUniqueId; + + private uint? _SlotPos; + + private uint? _AddLevel; + + private IExtension extensionObject; + + private bool ShouldSerializeComposeType() + { + return this.ComposeTypeSpecified; + } + + private void ResetComposeType() + { + this.ComposeTypeSpecified = false; + } + + private bool ShouldSerializeJadeUniqueId() + { + return this.JadeUniqueIdSpecified; + } + + private void ResetJadeUniqueId() + { + this.JadeUniqueIdSpecified = false; + } + + private bool ShouldSerializeEquipUniqueId() + { + return this.EquipUniqueIdSpecified; + } + + private void ResetEquipUniqueId() + { + this.EquipUniqueIdSpecified = false; + } + + private bool ShouldSerializeSlotPos() + { + return this.SlotPosSpecified; + } + + private void ResetSlotPos() + { + this.SlotPosSpecified = false; + } + + private bool ShouldSerializeAddLevel() + { + return this.AddLevelSpecified; + } + + private void ResetAddLevel() + { + this.AddLevelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0