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

79 lines
1.8 KiB
C#

using System;
using System.Collections;
namespace ProBuilder2.Common
{
// Token: 0x0200003A RID: 58
public class pb_PreferenceDictionaryEnumerator : IEnumerator
{
// Token: 0x060001D9 RID: 473 RVA: 0x000179E8 File Offset: 0x00015DE8
public pb_PreferenceDictionaryEnumerator(pb_PreferenceDictionary dictionary)
{
this.m_Preferences = dictionary;
}
// Token: 0x060001DA RID: 474 RVA: 0x000179FE File Offset: 0x00015DFE
public bool MoveNext()
{
this.m_Position++;
return this.m_Position < this.m_Preferences.Length;
}
// Token: 0x060001DB RID: 475 RVA: 0x00017A21 File Offset: 0x00015E21
public void Reset()
{
this.m_Position = -1;
}
// Token: 0x17000032 RID: 50
// (get) Token: 0x060001DC RID: 476 RVA: 0x00017A2A File Offset: 0x00015E2A
object IEnumerator.Current
{
get
{
return this.Current;
}
}
// Token: 0x17000033 RID: 51
// (get) Token: 0x060001DD RID: 477 RVA: 0x00017A34 File Offset: 0x00015E34
public IEnumerable Current
{
get
{
if (this.m_Position == 0)
{
return this.m_Preferences.GetBoolDictionary();
}
if (this.m_Position == 1)
{
return this.m_Preferences.GetIntDictionary();
}
if (this.m_Position == 2)
{
return this.m_Preferences.GetFloatDictionary();
}
if (this.m_Position == 3)
{
return this.m_Preferences.GetStringDictionary();
}
if (this.m_Position == 4)
{
return this.m_Preferences.GetColorDictionary();
}
if (this.m_Position == 5)
{
return this.m_Preferences.GetMaterialDictionary();
}
throw new InvalidOperationException();
}
}
// Token: 0x04000169 RID: 361
private int m_Position = -1;
// Token: 0x0400016A RID: 362
private pb_PreferenceDictionary m_Preferences;
}
}