Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlSortKey.cs
Go to the documentation of this file.
2
3internal abstract class XmlSortKey : IComparable
4{
5 private int _priority;
6
8
9 public int Priority
10 {
11 set
12 {
14 {
16 }
17 }
18 }
19
21 {
22 if (_nextKey != null)
23 {
25 }
26 else
27 {
29 }
30 return this;
31 }
32
34 {
35 if (_nextKey != null)
36 {
37 return _nextKey.CompareTo(that._nextKey);
38 }
39 if (_priority >= that._priority)
40 {
41 return 1;
42 }
43 return -1;
44 }
45
46 protected int CompareToEmpty(object obj)
47 {
49 if (!xmlEmptySortKey.IsEmptyGreatest)
50 {
51 return 1;
52 }
53 return -1;
54 }
55
56 public abstract int CompareTo(object that);
57}
XmlSortKey AddSortKey(XmlSortKey sortKey)
Definition XmlSortKey.cs:20
int BreakSortingTie(XmlSortKey that)
Definition XmlSortKey.cs:33