public override IEnumerable <Gizmo> GetGizmos() { foreach (Gizmo c in this.< GetGizmos > __BaseCallProxy0()) { yield return(c); } foreach (Gizmo c2 in ShipUtility.ShipStartupGizmos(this)) { yield return(c2); } Command_Action launch = new Command_Action(); launch.action = new Action(this.TryLaunch); launch.defaultLabel = "CommandShipLaunch".Translate(); launch.defaultDesc = "CommandShipLaunchDesc".Translate(); if (!this.CanLaunchNow) { launch.Disable(ShipUtility.LaunchFailReasons(this).First <string>()); } if (ShipCountdown.CountingDown) { launch.Disable(null); } launch.hotKey = KeyBindingDefOf.Misc1; launch.icon = ContentFinder <Texture2D> .Get("UI/Commands/LaunchShip", true); yield return(launch); yield break; }
public override IEnumerable <Gizmo> GetGizmos() { foreach (Gizmo gizmo in base.GetGizmos()) { yield return(gizmo); } foreach (Gizmo item in ShipUtility.ShipStartupGizmos(this)) { yield return(item); } Command_Action command_Action = new Command_Action(); command_Action.action = TryLaunch; command_Action.defaultLabel = "CommandShipLaunch".Translate(); command_Action.defaultDesc = "CommandShipLaunchDesc".Translate(); if (!CanLaunchNow) { command_Action.Disable(ShipUtility.LaunchFailReasons(this).First()); } if (ShipCountdown.CountingDown) { command_Action.Disable(); } command_Action.hotKey = KeyBindingDefOf.Misc1; command_Action.icon = ContentFinder <Texture2D> .Get("UI/Commands/LaunchShip"); yield return(command_Action); }
public override IEnumerable <Gizmo> GetGizmos() { using (IEnumerator <Gizmo> enumerator = base.GetGizmos().GetEnumerator()) { if (enumerator.MoveNext()) { Gizmo c2 = enumerator.Current; yield return(c2); /*Error: Unable to find new state assignment for yield return*/; } } using (IEnumerator <Gizmo> enumerator2 = ShipUtility.ShipStartupGizmos(this).GetEnumerator()) { if (enumerator2.MoveNext()) { Gizmo c = enumerator2.Current; yield return(c); /*Error: Unable to find new state assignment for yield return*/; } } yield break; IL_014a: /*Error near IL_014b: Unexpected return in MoveNext()*/; }
public override IEnumerable <Gizmo> GetGizmos() { foreach (Gizmo c in base.GetGizmos()) { yield return(c); } foreach (Gizmo c2 in ShipUtility.ShipStartupGizmos(this)) { yield return(c2); } }
public override IEnumerable <Gizmo> GetGizmos() { foreach (Gizmo gizmo in base.GetGizmos()) { yield return(gizmo); } foreach (Gizmo item in ShipUtility.ShipStartupGizmos(this)) { yield return(item); } }
public override IEnumerable <Gizmo> GetGizmos() { foreach (Gizmo c in this.< GetGizmos > __BaseCallProxy0()) { yield return(c); } foreach (Gizmo c2 in ShipUtility.ShipStartupGizmos(this)) { yield return(c2); } yield break; }
public override IEnumerable <Gizmo> GetGizmos() { using (IEnumerator <Gizmo> enumerator = base.GetGizmos().GetEnumerator()) { if (enumerator.MoveNext()) { Gizmo c2 = enumerator.Current; yield return(c2); /*Error: Unable to find new state assignment for yield return*/; } } using (IEnumerator <Gizmo> enumerator2 = ShipUtility.ShipStartupGizmos(this).GetEnumerator()) { if (enumerator2.MoveNext()) { Gizmo c = enumerator2.Current; yield return(c); /*Error: Unable to find new state assignment for yield return*/; } } Command_Action launch = new Command_Action { action = TryLaunch, defaultLabel = "CommandShipLaunch".Translate(), defaultDesc = "CommandShipLaunchDesc".Translate() }; if (!CanLaunchNow) { launch.Disable(ShipUtility.LaunchFailReasons(this).First()); } if (ShipCountdown.CountingDown) { launch.Disable(); } launch.hotKey = KeyBindingDefOf.Misc1; launch.icon = ContentFinder <Texture2D> .Get("UI/Commands/LaunchShip"); yield return((Gizmo)launch); /*Error: Unable to find new state assignment for yield return*/; IL_0226: /*Error near IL_0227: Unexpected return in MoveNext()*/; }
public bool MoveNext() { uint num = (uint)this.$PC; this.$PC = -1; bool flag = false; switch (num) { case 0u: enumerator = base.< GetGizmos > __BaseCallProxy0().GetEnumerator(); num = 4294967293u; break; case 1u: break; case 2u: goto IL_D2; default: return(false); } try { switch (num) { } if (enumerator.MoveNext()) { c = enumerator.Current; this.$current = c; if (!this.$disposing) { this.$PC = 1; } flag = true; return(true); } } finally { if (!flag) { if (enumerator != null) { enumerator.Dispose(); } } } enumerator2 = ShipUtility.ShipStartupGizmos(this).GetEnumerator(); num = 4294967293u; try { IL_D2: switch (num) { } if (enumerator2.MoveNext()) { c2 = enumerator2.Current; this.$current = c2; if (!this.$disposing) { this.$PC = 2; } flag = true; return(true); } } finally { if (!flag) { if (enumerator2 != null) { enumerator2.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 = base.< GetGizmos > __BaseCallProxy0().GetEnumerator(); num = 4294967293u; break; case 1u: break; case 2u: goto IL_D6; case 3u: this.$PC = -1; return(false); default: return(false); } try { switch (num) { } if (enumerator.MoveNext()) { c = enumerator.Current; this.$current = c; if (!this.$disposing) { this.$PC = 1; } flag = true; return(true); } } finally { if (!flag) { if (enumerator != null) { enumerator.Dispose(); } } } enumerator2 = ShipUtility.ShipStartupGizmos(this).GetEnumerator(); num = 4294967293u; try { IL_D6: switch (num) { } if (enumerator2.MoveNext()) { c2 = enumerator2.Current; this.$current = c2; if (!this.$disposing) { this.$PC = 2; } flag = true; return(true); } } finally { if (!flag) { if (enumerator2 != null) { enumerator2.Dispose(); } } } launch = new Command_Action(); launch.action = new Action(base.TryLaunch); launch.defaultLabel = "CommandShipLaunch".Translate(); launch.defaultDesc = "CommandShipLaunchDesc".Translate(); if (!base.CanLaunchNow) { launch.Disable(ShipUtility.LaunchFailReasons(this).First <string>()); } if (ShipCountdown.CountingDown) { launch.Disable(null); } launch.hotKey = KeyBindingDefOf.Misc1; launch.icon = ContentFinder <Texture2D> .Get("UI/Commands/LaunchShip", true); this.$current = launch; if (!this.$disposing) { this.$PC = 3; } return(true); }