Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ModelMeshPartCollection.cs
Go to the documentation of this file.
1using System;
5
7
8public sealed class ModelMeshPartCollection : ReadOnlyCollection<ModelMeshPart>
9{
10 public struct Enumerator : IEnumerator<ModelMeshPart>, IDisposable, IEnumerator
11 {
13
14 private int position;
15
17
18 object IEnumerator.Current => Current;
19
21 {
22 this.wrappedArray = wrappedArray;
23 position = -1;
24 }
25
26 public bool MoveNext()
27 {
28 position++;
29 if (position >= wrappedArray.Length)
30 {
31 position = wrappedArray.Length;
32 return false;
33 }
34 return true;
35 }
36
38 {
39 position = -1;
40 }
41
42 public void Dispose()
43 {
44 }
45 }
46
48
54
56 {
57 return new Enumerator(wrappedArray);
58 }
59}