From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Assets/Scripts/XMainClient/KKSG/ItemEnchant.cs | 161 +++++++++++++++++++++ 1 file changed, 161 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemEnchant.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/ItemEnchant.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemEnchant.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemEnchant.cs new file mode 100644 index 00000000..74a18a11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemEnchant.cs @@ -0,0 +1,161 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ItemEnchant")] + [Serializable] + public class ItemEnchant : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "enchantid", DataFormat = DataFormat.TwosComplement)] + public uint enchantid + { + get + { + return this._enchantid ?? 0u; + } + set + { + this._enchantid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool enchantidSpecified + { + get + { + return this._enchantid != null; + } + set + { + bool flag = value == (this._enchantid == null); + if (flag) + { + this._enchantid = (value ? new uint?(this.enchantid) : null); + } + } + } + + [ProtoMember(2, Name = "attrs", DataFormat = DataFormat.Default)] + public List attrs + { + get + { + return this._attrs; + } + } + + [ProtoMember(3, IsRequired = false, Name = "chooseAttrid", DataFormat = DataFormat.TwosComplement)] + public uint chooseAttrid + { + get + { + return this._chooseAttrid ?? 0u; + } + set + { + this._chooseAttrid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool chooseAttridSpecified + { + get + { + return this._chooseAttrid != null; + } + set + { + bool flag = value == (this._chooseAttrid == null); + if (flag) + { + this._chooseAttrid = (value ? new uint?(this.chooseAttrid) : null); + } + } + } + + [ProtoMember(4, Name = "enchantids", DataFormat = DataFormat.TwosComplement)] + public List enchantids + { + get + { + return this._enchantids; + } + } + + [ProtoMember(5, Name = "allAttrs", DataFormat = DataFormat.Default)] + public List allAttrs + { + get + { + return this._allAttrs; + } + } + + [ProtoMember(6, Name = "enchantBaodi", DataFormat = DataFormat.TwosComplement)] + public List enchantBaodi + { + get + { + return this._enchantBaodi; + } + } + + [ProtoMember(7, Name = "baodiCount", DataFormat = DataFormat.TwosComplement)] + public List baodiCount + { + get + { + return this._baodiCount; + } + } + + private uint? _enchantid; + + private readonly List _attrs = new List(); + + private uint? _chooseAttrid; + + private readonly List _enchantids = new List(); + + private readonly List _allAttrs = new List(); + + private readonly List _enchantBaodi = new List(); + + private readonly List _baodiCount = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeenchantid() + { + return this.enchantidSpecified; + } + + private void Resetenchantid() + { + this.enchantidSpecified = false; + } + + private bool ShouldSerializechooseAttrid() + { + return this.chooseAttridSpecified; + } + + private void ResetchooseAttrid() + { + this.chooseAttridSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0