summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XItemChangeAttr.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/XItemChangeAttr.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/XItemChangeAttr.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/XItemChangeAttr.cs b/Client/Assets/Scripts/XMainClient/XItemChangeAttr.cs
new file mode 100644
index 00000000..9802c69c
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/XItemChangeAttr.cs
@@ -0,0 +1,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;
+ }
+ }
+}