diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/KKSG/ItemForge.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/ItemForge.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/ItemForge.cs | 57 |
1 files changed, 57 insertions, 0 deletions
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<AttributeInfo> 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<uint> haveAttrs
+ {
+ get
+ {
+ return this._haveAttrs;
+ }
+ }
+
+ private readonly List<AttributeInfo> _attrs = new List<AttributeInfo>();
+
+ private AttributeInfo _unReplacedAttr = null;
+
+ private readonly List<uint> _haveAttrs = new List<uint>();
+
+ private IExtension extensionObject;
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}
|