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

namespace XMainClient
{
	internal struct XItemChangeAttr : IComparable<XItemChangeAttr>
	{
		public uint AttrID;

		public uint AttrValue;

		public int CompareTo(XItemChangeAttr other)
		{
			bool flag = this.AttrID == other.AttrID;
			int result;
			if (flag)
			{
				result = this.AttrValue.CompareTo(other.AttrValue);
			}
			else
			{
				result = this.AttrID.CompareTo(other.AttrID);
			}
			return result;
		}
	}
}