diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/ArtifactElementData.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/ArtifactElementData.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/ArtifactElementData.cs | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/ArtifactElementData.cs b/Client/Assets/Scripts/XMainClient/ArtifactElementData.cs new file mode 100644 index 00000000..fbe5c988 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactElementData.cs @@ -0,0 +1,59 @@ +using System;
+using System.Collections.Generic;
+
+namespace XMainClient
+{
+ internal class ArtifactElementData : IComparable<ArtifactElementData>
+ {
+ public bool Show = false;
+
+ public bool Redpoint = false;
+
+ public uint ElementType = 0u;
+
+ public List<ArtifactSuitData> List = null;
+
+ public int CompareTo(ArtifactElementData other)
+ {
+ int sortId = this.GetSortId(this.ElementType);
+ int sortId2 = this.GetSortId(other.ElementType);
+ return sortId - sortId2;
+ }
+
+ private int GetSortId(uint elementType)
+ {
+ int result;
+ switch (elementType)
+ {
+ case 2121u:
+ result = 4;
+ break;
+ case 2122u:
+ result = 8;
+ break;
+ case 2123u:
+ result = 1;
+ break;
+ case 2124u:
+ result = 5;
+ break;
+ case 2125u:
+ result = 3;
+ break;
+ case 2126u:
+ result = 7;
+ break;
+ case 2127u:
+ result = 2;
+ break;
+ case 2128u:
+ result = 6;
+ break;
+ default:
+ result = 0;
+ break;
+ }
+ return result;
+ }
+ }
+}
|