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/ItemForge.cs | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemForge.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/ItemForge.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemForge.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemForge.cs new file mode 100644 index 00000000..e0b67a90 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemForge.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ItemForge")] + [Serializable] + public class ItemForge : IExtensible + { + [ProtoMember(1, Name = "attrs", DataFormat = DataFormat.Default)] + public List attrs + { + get + { + return this._attrs; + } + } + + [ProtoMember(2, IsRequired = false, Name = "unReplacedAttr", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public AttributeInfo unReplacedAttr + { + get + { + return this._unReplacedAttr; + } + set + { + this._unReplacedAttr = value; + } + } + + [ProtoMember(3, Name = "haveAttrs", DataFormat = DataFormat.TwosComplement)] + public List haveAttrs + { + get + { + return this._haveAttrs; + } + } + + private readonly List _attrs = new List(); + + private AttributeInfo _unReplacedAttr = null; + + private readonly List _haveAttrs = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0