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/OutLookEquip.cs | 96 ++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLookEquip.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/OutLookEquip.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLookEquip.cs b/Client/Assets/Scripts/XMainClient/KKSG/OutLookEquip.cs new file mode 100644 index 00000000..e08e7cf1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLookEquip.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OutLookEquip")] + [Serializable] + public class OutLookEquip : IExtensible + { + [ProtoMember(1, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public List itemid + { + get + { + return this._itemid; + } + } + + [ProtoMember(2, Name = "enhancelevel", DataFormat = DataFormat.TwosComplement)] + public List enhancelevel + { + get + { + return this._enhancelevel; + } + } + + [ProtoMember(3, Name = "slot", DataFormat = DataFormat.TwosComplement)] + public List slot + { + get + { + return this._slot; + } + } + + [ProtoMember(4, IsRequired = false, Name = "enhancemaster", DataFormat = DataFormat.TwosComplement)] + public uint enhancemaster + { + get + { + return this._enhancemaster ?? 0u; + } + set + { + this._enhancemaster = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool enhancemasterSpecified + { + get + { + return this._enhancemaster != null; + } + set + { + bool flag = value == (this._enhancemaster == null); + if (flag) + { + this._enhancemaster = (value ? new uint?(this.enhancemaster) : null); + } + } + } + + private readonly List _itemid = new List(); + + private readonly List _enhancelevel = new List(); + + private readonly List _slot = new List(); + + private uint? _enhancemaster; + + private IExtension extensionObject; + + private bool ShouldSerializeenhancemaster() + { + return this.enhancemasterSpecified; + } + + private void Resetenhancemaster() + { + this.enhancemasterSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0