Files
Dec2017-Script-Dump/ProBuilderCore-Unity5/pb_WingedEdgeEnumerator.cs
T
2026-06-04 11:42:34 +02:00

70 lines
1.4 KiB
C#

using System;
using System.Collections;
namespace ProBuilder2.Common
{
// Token: 0x0200005D RID: 93
public class pb_WingedEdgeEnumerator : IEnumerator
{
// Token: 0x060002C6 RID: 710 RVA: 0x00021521 File Offset: 0x0001F921
public pb_WingedEdgeEnumerator(pb_WingedEdge start)
{
this._start = start;
this._current = null;
}
// Token: 0x060002C7 RID: 711 RVA: 0x00021538 File Offset: 0x0001F938
public bool MoveNext()
{
if (this._current == null)
{
this._current = this._start;
return this._current != null;
}
this._current = this._current.next;
return this._current != null && this._current != this._start;
}
// Token: 0x060002C8 RID: 712 RVA: 0x00021599 File Offset: 0x0001F999
public void Reset()
{
this._current = null;
}
// Token: 0x1700003E RID: 62
// (get) Token: 0x060002C9 RID: 713 RVA: 0x000215A2 File Offset: 0x0001F9A2
object IEnumerator.Current
{
get
{
return this.Current;
}
}
// Token: 0x1700003F RID: 63
// (get) Token: 0x060002CA RID: 714 RVA: 0x000215AC File Offset: 0x0001F9AC
public pb_WingedEdge Current
{
get
{
pb_WingedEdge current;
try
{
current = this._current;
}
catch (IndexOutOfRangeException)
{
throw new InvalidOperationException();
}
return current;
}
}
// Token: 0x040001F2 RID: 498
private pb_WingedEdge _start;
// Token: 0x040001F3 RID: 499
private pb_WingedEdge _current;
}
}