summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XItemRequired.cs
blob: 92d1ecce17f862e25446f29bd3d2052279ac4545 (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
using System;

namespace XMainClient
{
	internal class XItemRequired : XDataBase
	{
		public bool bEnough
		{
			get
			{
				return this.requiredCount <= this.ownedCount;
			}
		}

		public int itemID;

		public ulong requiredCount;

		public ulong ownedCount;

		public override void Init()
		{
			base.Init();
			this.itemID = 0;
			this.requiredCount = 0UL;
			this.ownedCount = 0UL;
		}

		public override void Recycle()
		{
			base.Recycle();
			XDataPool<XItemRequired>.Recycle(this);
		}
	}
}