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

◆ GetTrueIndexes() [2/2]

static List< int > Terraria.Utils.GetTrueIndexes ( this bool[] array)
inlinestatic

Definition at line 1502 of file Utils.cs.

1503 {
1504 List<int> list = new List<int>();
1505 for (int i = 0; i < array.Length; i++)
1506 {
1507 if (array[i])
1508 {
1509 list.Add(i);
1510 }
1511 }
1512 return list;
1513 }

References System.array, System.Text.RegularExpressions.i, and System.list.