public bool MoveNext() { uint num = (uint)this.$PC; this.$PC = -1; bool flag = false; switch (num) { case 0u: enumerator = PawnsFinder.AllMaps_FreeColonistsSpawned.GetEnumerator(); num = 4294967293u; break; case 1u: break; default: return(false); } try { switch (num) { } while (enumerator.MoveNext()) { p = enumerator.Current; if (p.health.HasHediffsNeedingTendByPlayer(true)) { curBed = p.CurrentBed(); if (curBed == null || !curBed.Medical) { if (!Alert_ColonistNeedsRescuing.NeedsRescue(p)) { this.$current = p; if (!this.$disposing) { this.$PC = 1; } flag = true; return(true); } } } } } finally { if (!flag) { if (enumerator != null) { enumerator.Dispose(); } } } this.$PC = -1; return(false); }
public bool MoveNext() { uint num = (uint)this.$PC; this.$PC = -1; bool flag = false; switch (num) { case 0u: enumerator = PawnsFinder.AllMaps_FreeColonistsSpawned.GetEnumerator(); num = 4294967293u; break; case 1u: break; default: return(false); } try { switch (num) { case 1u: IL_8D: break; } if (enumerator.MoveNext()) { p = enumerator.Current; if (Alert_ColonistNeedsRescuing.NeedsRescue(p)) { this.$current = p; if (!this.$disposing) { this.$PC = 1; } flag = true; return(true); } goto IL_8D; } } finally { if (!flag) { if (enumerator != null) { enumerator.Dispose(); } } } this.$PC = -1; return(false); }