Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
MemberMappingComparer.cs
Go to the documentation of this file.
2
4
5internal sealed class MemberMappingComparer : IComparer<MemberMapping>
6{
8 {
9 if (m1.IsText)
10 {
11 if (m2.IsText)
12 {
13 return 0;
14 }
15 return 1;
16 }
17 if (m2.IsText)
18 {
19 return -1;
20 }
21 if (m1.SequenceId < 0 && m2.SequenceId < 0)
22 {
23 return 0;
24 }
25 if (m1.SequenceId < 0)
26 {
27 return 1;
28 }
29 if (m2.SequenceId < 0)
30 {
31 return -1;
32 }
33 if (m1.SequenceId < m2.SequenceId)
34 {
35 return -1;
36 }
37 if (m1.SequenceId > m2.SequenceId)
38 {
39 return 1;
40 }
41 return 0;
42 }
43}
int Compare(MemberMapping m1, MemberMapping m2)