summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/ClientBoxInfo.cs
blob: 635f6173c00f3eefaae5129ecbce6a4d58f0c23b (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
using System;
using KKSG;

namespace XMainClient
{
	internal class ClientBoxInfo
	{
		public int slot;

		public uint itemID;

		public uint itemCount;

		public RiskBoxState state;

		public float leftTime;

		public ClientBoxInfo(RiskBoxInfo r)
		{
			this.Apply(r);
		}

		public void Apply(RiskBoxInfo r)
		{
			this.slot = r.slot;
			this.itemID = r.item.itemID;
			this.itemCount = r.item.itemCount;
			this.state = r.state;
			this.leftTime = (float)r.leftTime;
		}
	}
}