Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
AssemblyFileHandleCollection.cs
Go to the documentation of this file.
3
5
6public readonly struct AssemblyFileHandleCollection : IReadOnlyCollection<AssemblyFileHandle>, IEnumerable<AssemblyFileHandle>, IEnumerable
7{
8 public struct Enumerator : IEnumerator<AssemblyFileHandle>, IEnumerator, IDisposable
9 {
10 private readonly int _lastRowId;
11
12 private int _currentRowId;
13
15
16 object IEnumerator.Current => Current;
17
18 internal Enumerator(int lastRowId)
19 {
21 _currentRowId = 0;
22 }
23
24 public bool MoveNext()
25 {
27 {
28 _currentRowId = 16777216;
29 return false;
30 }
32 return true;
33 }
34
36 {
37 throw new NotSupportedException();
38 }
39
41 {
42 }
43 }
44
45 private readonly int _lastRowId;
46
47 public int Count => _lastRowId;
48
53
55 {
56 return new Enumerator(_lastRowId);
57 }
58
63
68}
new IEnumerator< T > GetEnumerator()
static AssemblyFileHandle FromRowId(int rowId)