summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XReinforceInfo.cs
blob: b525f4242de00ca0b4c42509b344feaae4dfa174 (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
using System;
using System.Collections.Generic;

namespace XMainClient
{
	internal struct XReinforceInfo
	{
		public uint ReinforceLevel;

		public List<XItemChangeAttr> ReinforceAttr;

		public void Init()
		{
			bool flag = this.ReinforceAttr == null;
			if (flag)
			{
				this.ReinforceAttr = new List<XItemChangeAttr>();
			}
			else
			{
				this.ReinforceAttr.Clear();
			}
			this.ReinforceLevel = 0u;
		}

		public void Clone(ref XReinforceInfo other)
		{
			this.Init();
			this.ReinforceLevel = other.ReinforceLevel;
			bool flag = other.ReinforceAttr != null;
			if (flag)
			{
				for (int i = 0; i < other.ReinforceAttr.Count; i++)
				{
					this.ReinforceAttr.Add(other.ReinforceAttr[i]);
				}
			}
		}
	}
}