Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
IdentityReferenceEnumerator.cs
Go to the documentation of this file.
3
5
6internal sealed class IdentityReferenceEnumerator : IEnumerator<IdentityReference>, IEnumerator, IDisposable
7{
8 private int _current;
9
11
12 object IEnumerator.Current => Current;
13
15
17 {
18 if (collection == null)
19 {
20 throw new ArgumentNullException("collection");
21 }
23 _current = -1;
24 }
25
26 public bool MoveNext()
27 {
28 _current++;
29 return _current < _collection.Count;
30 }
31
32 public void Reset()
33 {
34 _current = -1;
35 }
36
37 public void Dispose()
38 {
39 }
40}
IdentityReferenceEnumerator(IdentityReferenceCollection collection)