summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/ItemForge.cs
blob: e0b67a904af95b151b43b6e3c1537f089fb4178d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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);
		}
	}
}