diff options
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);
+ }
+ }
+}
|