Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Compare() [2/2]

Definition at line 17 of file EntrySorter.cs.

18 {
19 int num = 0;
20 if (_prioritizedStep != -1)
21 {
22 num = Steps[_prioritizedStep].Compare(x, y);
23 if (num != 0)
24 {
25 return num;
26 }
27 }
28 for (int i = 0; i < Steps.Count; i++)
29 {
30 if (i != _prioritizedStep)
31 {
32 num = Steps[i].Compare(x, y);
33 if (num != 0)
34 {
35 return num;
36 }
37 }
38 }
39 return num;
40 }

References Terraria.DataStructures.EntrySorter< TEntryType, TStepType >._prioritizedStep, System.Collections.Generic.List< T >.Count, and Terraria.DataStructures.EntrySorter< TEntryType, TStepType >.Steps.