Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
OidEnumerator.cs
Go to the documentation of this file.
2
4
5public sealed class OidEnumerator : IEnumerator
6{
7 private readonly OidCollection _oids;
8
9 private int _current;
10
12
13 object IEnumerator.Current => Current;
14
16 {
17 _oids = oids;
18 _current = -1;
19 }
20
21 public bool MoveNext()
22 {
23 if (_current >= _oids.Count - 1)
24 {
25 return false;
26 }
27 _current++;
28 return true;
29 }
30
31 public void Reset()
32 {
33 _current = -1;
34 }
35}