using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Text.Json.Serialization; using GDWeave; using GDWeave.Godot; using GDWeave.Godot.Variants; using GDWeave.Modding; using WebfishingPlus.Mods; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(/*Could not decode attribute arguments.*/)] [assembly: TargetFramework(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] [assembly: AssemblyCompany("WebfishingPlus")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.2.1.0")] [assembly: AssemblyInformationalVersion("1.2.1.0+d3e1bb8c75b988e90aec89a283617742f0a4e5c4")] [assembly: AssemblyProduct("WebfishingPlus")] [assembly: AssemblyTitle("WebfishingPlus")] [assembly: AssemblyVersion("1.2.1.0")] [module: RefSafetyRules(11)] namespace WebfishingPlus { public class Config { [JsonInclude] public bool ControllerSupport; [JsonInclude] public bool ControllerVibration = true; [JsonInclude] public double ControllerVibrationStrength = 1.0; [JsonInclude] public bool ControllerVibrationLand = true; [JsonInclude] public bool ControllerVibrationReel = true; [JsonInclude] public bool ControllerVibrationYank = true; [JsonInclude] public bool MenuTweaks = true; [JsonInclude] public bool SortInventory; [JsonInclude] public bool FixHotbar = true; [JsonInclude] public bool NetcodeImprover; } public class Mod : IMod, global::System.IDisposable { private static readonly Version VersionObject = Assembly.GetExecutingAssembly().GetName().Version; private static readonly string Version = $"v{VersionObject.Major}.{VersionObject.Minor}.{VersionObject.Build}"; public static Config Config = null; public Mod(IModInterface modInterface) { Config = modInterface.ReadConfig(); if (Config.ControllerSupport) { modInterface.RegisterScriptMod((IScriptMod)(object)new ControllerInput.PlayerModifier()); modInterface.RegisterScriptMod((IScriptMod)(object)new ControllerInput.Fishing3Modifier()); modInterface.RegisterScriptMod((IScriptMod)(object)new ControllerInput.InputRemapButtonModifier()); } if (Config.MenuTweaks) { modInterface.RegisterScriptMod((IScriptMod)(object)new MenuTweaks()); } if (Config.FixHotbar) { modInterface.RegisterScriptMod((IScriptMod)(object)new FixHotbar()); } if (Config.SortInventory) { modInterface.RegisterScriptMod((IScriptMod)(object)new InventorySorter()); } if (Config.NetcodeImprover) { modInterface.RegisterScriptMod((IScriptMod)(object)new NetcodeImprover()); } } public void Dispose() { } } } namespace WebfishingPlus.Mods { public class ControllerInput { private enum JoyAxis { LeftX, LeftY } private enum JoyButton { FaceDown = 0, FaceLeft = 2, Select = 10, DPadUp = 12, DPadLeft = 14, DPadRight = 15 } public class PlayerModifier : IScriptMod { [CompilerGenerated] private sealed class d__16 : global::System.Collections.Generic.IEnumerable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator, global::System.Collections.IEnumerator, global::System.IDisposable { private int <>1__state; private Token <>2__current; private int <>l__initialThreadId; private string action; public string <>3__action; Token global::System.Collections.Generic.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public d__16(int <>1__state) { this.<>1__state = <>1__state; <>l__initialThreadId = Environment.CurrentManagedThreadId; } [DebuggerHidden] void global::System.IDisposable.Dispose() { } private bool MoveNext() { //IL_0038: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown //IL_005e: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Expected O, but got Unknown //IL_007e: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Expected O, but got Unknown //IL_00a4: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Expected O, but got Unknown //IL_00c5: Unknown result type (might be due to invalid IL or missing references) //IL_00cf: Expected O, but got Unknown //IL_00ca: Unknown result type (might be due to invalid IL or missing references) //IL_00d4: Expected O, but got Unknown //IL_00f0: Unknown result type (might be due to invalid IL or missing references) //IL_00fa: Expected O, but got Unknown switch (<>1__state) { default: return false; case 0: <>1__state = -1; <>2__current = (Token)new IdentifierToken("Input"); <>1__state = 1; return true; case 1: <>1__state = -1; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 2; return true; case 2: <>1__state = -1; <>2__current = (Token)new IdentifierToken("is_action_just_pressed"); <>1__state = 3; return true; case 3: <>1__state = -1; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 4; return true; case 4: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new StringVariant(action)); <>1__state = 5; return true; case 5: <>1__state = -1; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 6; return true; case 6: <>1__state = -1; return false; } } bool global::System.Collections.IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } [DebuggerHidden] void global::System.Collections.IEnumerator.Reset() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) throw new NotSupportedException(); } [DebuggerHidden] global::System.Collections.Generic.IEnumerator global::System.Collections.Generic.IEnumerable.GetEnumerator() { d__16 d__; if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; d__ = this; } else { d__ = new d__16(0); } d__.action = <>3__action; return d__; } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable)this).GetEnumerator(); } } [CompilerGenerated] private sealed class d__15 : global::System.Collections.Generic.IEnumerable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator, global::System.Collections.IEnumerator, global::System.IDisposable { private int <>1__state; private Token <>2__current; private int <>l__initialThreadId; private string action; public string <>3__action; Token global::System.Collections.Generic.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public d__15(int <>1__state) { this.<>1__state = <>1__state; <>l__initialThreadId = Environment.CurrentManagedThreadId; } [DebuggerHidden] void global::System.IDisposable.Dispose() { } private bool MoveNext() { //IL_0038: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Expected O, but got Unknown //IL_005e: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Expected O, but got Unknown //IL_007e: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Expected O, but got Unknown //IL_00a4: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Expected O, but got Unknown //IL_00c5: Unknown result type (might be due to invalid IL or missing references) //IL_00cf: Expected O, but got Unknown //IL_00ca: Unknown result type (might be due to invalid IL or missing references) //IL_00d4: Expected O, but got Unknown //IL_00f0: Unknown result type (might be due to invalid IL or missing references) //IL_00fa: Expected O, but got Unknown switch (<>1__state) { default: return false; case 0: <>1__state = -1; <>2__current = (Token)new IdentifierToken("Input"); <>1__state = 1; return true; case 1: <>1__state = -1; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 2; return true; case 2: <>1__state = -1; <>2__current = (Token)new IdentifierToken("is_action_pressed"); <>1__state = 3; return true; case 3: <>1__state = -1; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 4; return true; case 4: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new StringVariant(action)); <>1__state = 5; return true; case 5: <>1__state = -1; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 6; return true; case 6: <>1__state = -1; return false; } } bool global::System.Collections.IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } [DebuggerHidden] void global::System.Collections.IEnumerator.Reset() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) throw new NotSupportedException(); } [DebuggerHidden] global::System.Collections.Generic.IEnumerator global::System.Collections.Generic.IEnumerable.GetEnumerator() { d__15 d__; if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; d__ = this; } else { d__ = new d__15(0); } d__.action = <>3__action; return d__; } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable)this).GetEnumerator(); } } [CompilerGenerated] private sealed class d__5 : global::System.Collections.Generic.IEnumerable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator, global::System.Collections.IEnumerator, global::System.IDisposable { private int <>1__state; private Token <>2__current; private int <>l__initialThreadId; private global::System.Collections.Generic.IEnumerable tokens; public global::System.Collections.Generic.IEnumerable <>3__tokens; public PlayerModifier <>4__this; private MultiTokenWaiter 5__2; private TokenWaiter 5__3; private MultiTokenWaiter 5__4; private TokenWaiter 5__5; private TokenWaiter 5__6; private MultiTokenWaiter 5__7; private global::System.Collections.Generic.IEnumerator <>7__wrap7; private global::System.Collections.Generic.IEnumerator <>7__wrap8; Token global::System.Collections.Generic.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public d__5(int <>1__state) { this.<>1__state = <>1__state; <>l__initialThreadId = Environment.CurrentManagedThreadId; } [DebuggerHidden] void global::System.IDisposable.Dispose() { int num = <>1__state; if ((uint)(num - -12) > 9u && (uint)(num - 1) > 15u) { return; } try { switch (num) { case -4: case 2: try { break; } finally { <>m__Finally2(); } case -5: case 4: try { break; } finally { <>m__Finally3(); } case -6: case 5: try { break; } finally { <>m__Finally4(); } case -7: case 6: try { break; } finally { <>m__Finally5(); } case -8: case 8: try { break; } finally { <>m__Finally6(); } case -9: case 9: try { break; } finally { <>m__Finally7(); } case -10: case 11: try { break; } finally { <>m__Finally8(); } case -11: case 13: try { break; } finally { <>m__Finally9(); } case -12: case 15: try { break; } finally { <>m__Finally10(); } case -3: case -2: case -1: case 0: case 1: case 3: case 7: case 10: case 12: case 14: break; } } finally { <>m__Finally1(); } } private bool MoveNext() { //IL_00b3: Unknown result type (might be due to invalid IL or missing references) //IL_00bd: Expected O, but got Unknown //IL_00de: Unknown result type (might be due to invalid IL or missing references) //IL_00e8: Expected O, but got Unknown //IL_0157: Unknown result type (might be due to invalid IL or missing references) //IL_0161: Expected O, but got Unknown //IL_0182: Unknown result type (might be due to invalid IL or missing references) //IL_018c: Expected O, but got Unknown //IL_01ad: Unknown result type (might be due to invalid IL or missing references) //IL_01b7: Expected O, but got Unknown //IL_0316: Unknown result type (might be due to invalid IL or missing references) //IL_0320: Expected O, but got Unknown try { int num = <>1__state; PlayerModifier playerModifier = <>4__this; switch (num) { default: return false; case 0: <>1__state = -1; 5__2 = new MultiTokenWaiter(new Func[2] { (Token t) => (int)t.Type == 51, (Token t) => (int)t.Type == 89 }, false, true); 5__3 = new TokenWaiter((Func)delegate(Token t) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Invalid comparison between Unknown and I4 if ((int)t.Type == 89) { uint? associatedData4 = t.AssociatedData; if (associatedData4.HasValue) { return associatedData4.GetValueOrDefault() == 1; } return false; } return false; }, true); 5__4 = new MultiTokenWaiter(new Func[3] { delegate(Token t) { IdentifierToken val13 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val13 != null && val13.Name == "slow_walking"; }, delegate(Token t) { ConstantToken val11 = (ConstantToken)(object)((t is ConstantToken) ? t : null); if (val11 != null) { Variant value4 = val11.Value; StringVariant val12 = (StringVariant)(object)((value4 is StringVariant) ? value4 : null); if (val12 != null) { return val12.Value == "move_walk"; } } return false; }, delegate(Token t) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Invalid comparison between Unknown and I4 if ((int)t.Type == 89) { uint? associatedData3 = t.AssociatedData; if (associatedData3.HasValue) { return associatedData3.GetValueOrDefault() == 1; } return false; } return false; } }, false, true); 5__5 = new TokenWaiter((Func)delegate(Token t) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Invalid comparison between Unknown and I4 if ((int)t.Type == 89) { uint? associatedData2 = t.AssociatedData; if (associatedData2.HasValue) { return associatedData2.GetValueOrDefault() == 1; } return false; } return false; }, true); 5__6 = new TokenWaiter((Func)delegate(Token t) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Invalid comparison between Unknown and I4 if ((int)t.Type == 89) { uint? associatedData = t.AssociatedData; if (associatedData.HasValue) { return associatedData.GetValueOrDefault() == 1; } return false; } return false; }, true); 5__7 = new MultiTokenWaiter(new Func[10] { delegate(Token t) { IdentifierToken val10 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val10 != null && val10.Name == "rod_cast_dist"; }, (Token t) => (int)t.Type == 25, delegate(Token t) { ConstantToken val8 = (ConstantToken)(object)((t is ConstantToken) ? t : null); if (val8 != null) { Variant value3 = val8.Value; RealVariant val9 = (RealVariant)(object)((value3 is RealVariant) ? value3 : null); if (val9 != null) { return val9.Value == 0.04; } } return false; }, (Token t) => (int)t.Type == 38, delegate(Token t) { IdentifierToken val7 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val7 != null && val7.Name == "Input"; }, (Token t) => (int)t.Type == 84, delegate(Token t) { IdentifierToken val6 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val6 != null && val6.Name == "is_action_pressed"; }, (Token t) => (int)t.Type == 80, delegate(Token t) { ConstantToken val4 = (ConstantToken)(object)((t is ConstantToken) ? t : null); if (val4 != null) { Variant value2 = val4.Value; StringVariant val5 = (StringVariant)(object)((value2 is StringVariant) ? value2 : null); if (val5 != null) { return val5.Value == "move_sprint"; } } return false; }, (Token t) => (int)t.Type == 81 }, false, false); <>7__wrap7 = tokens.GetEnumerator(); <>1__state = -3; break; case 1: <>1__state = -3; <>7__wrap8 = playerModifier.PatchSetupPlayerVars().GetEnumerator(); <>1__state = -4; goto IL_044e; case 2: <>1__state = -4; goto IL_044e; case 3: <>1__state = -3; <>7__wrap8 = playerModifier.PatchLook().GetEnumerator(); <>1__state = -5; goto IL_04e1; case 4: <>1__state = -5; goto IL_04e1; case 5: <>1__state = -6; goto IL_0541; case 6: <>1__state = -7; goto IL_05a1; case 7: <>1__state = -3; <>7__wrap8 = playerModifier.PatchAnalogMovement().GetEnumerator(); <>1__state = -8; goto IL_0634; case 8: <>1__state = -8; goto IL_0634; case 9: <>1__state = -9; goto IL_0695; case 10: <>1__state = -3; <>7__wrap8 = playerModifier.PatchCheckController().GetEnumerator(); <>1__state = -10; goto IL_072a; case 11: <>1__state = -10; goto IL_072a; case 12: <>1__state = -3; if (!Mod.Config.ControllerVibration || !Mod.Config.ControllerVibrationLand) { break; } <>7__wrap8 = playerModifier.PatchLandVibration().GetEnumerator(); <>1__state = -11; goto IL_07dd; case 13: <>1__state = -11; goto IL_07dd; case 14: <>1__state = -3; <>7__wrap8 = playerModifier.PatchSprintReel().GetEnumerator(); <>1__state = -12; goto IL_086c; case 15: <>1__state = -12; goto IL_086c; case 16: { <>1__state = -3; break; } IL_086c: if (((global::System.Collections.IEnumerator)<>7__wrap8).MoveNext()) { Token current = <>7__wrap8.Current; <>2__current = current; <>1__state = 15; return true; } <>m__Finally10(); <>7__wrap8 = null; break; IL_07dd: if (((global::System.Collections.IEnumerator)<>7__wrap8).MoveNext()) { Token current2 = <>7__wrap8.Current; <>2__current = current2; <>1__state = 13; return true; } <>m__Finally9(); <>7__wrap8 = null; break; IL_04e1: if (((global::System.Collections.IEnumerator)<>7__wrap8).MoveNext()) { Token current3 = <>7__wrap8.Current; <>2__current = current3; <>1__state = 4; return true; } <>m__Finally3(); <>7__wrap8 = null; <>7__wrap8 = playerModifier.PatchZoomControl().GetEnumerator(); <>1__state = -6; goto IL_0541; IL_072a: if (((global::System.Collections.IEnumerator)<>7__wrap8).MoveNext()) { Token current4 = <>7__wrap8.Current; <>2__current = current4; <>1__state = 11; return true; } <>m__Finally8(); <>7__wrap8 = null; break; IL_0541: if (((global::System.Collections.IEnumerator)<>7__wrap8).MoveNext()) { Token current5 = <>7__wrap8.Current; <>2__current = current5; <>1__state = 5; return true; } <>m__Finally4(); <>7__wrap8 = null; <>7__wrap8 = playerModifier.PatchHotbarControl().GetEnumerator(); <>1__state = -7; goto IL_05a1; IL_0634: if (((global::System.Collections.IEnumerator)<>7__wrap8).MoveNext()) { Token current6 = <>7__wrap8.Current; <>2__current = current6; <>1__state = 8; return true; } <>m__Finally6(); <>7__wrap8 = null; <>7__wrap8 = playerModifier.PatchToggleMovement().GetEnumerator(); <>1__state = -9; goto IL_0695; IL_05a1: if (((global::System.Collections.IEnumerator)<>7__wrap8).MoveNext()) { Token current7 = <>7__wrap8.Current; <>2__current = current7; <>1__state = 6; return true; } <>m__Finally5(); <>7__wrap8 = null; break; IL_0695: if (((global::System.Collections.IEnumerator)<>7__wrap8).MoveNext()) { Token current8 = <>7__wrap8.Current; <>2__current = current8; <>1__state = 9; return true; } <>m__Finally7(); <>7__wrap8 = null; break; IL_044e: if (((global::System.Collections.IEnumerator)<>7__wrap8).MoveNext()) { Token current9 = <>7__wrap8.Current; <>2__current = current9; <>1__state = 2; return true; } <>m__Finally2(); <>7__wrap8 = null; break; } if (((global::System.Collections.IEnumerator)<>7__wrap7).MoveNext()) { Token current10 = <>7__wrap7.Current; ConstantToken val = (ConstantToken)(object)((current10 is ConstantToken) ? current10 : null); if (val != null) { Variant value = val.Value; StringVariant val2 = (StringVariant)(object)((value is StringVariant) ? value : null); if (val2 != null && val2.Value == "bind_5") { 5__3.SetReady(); } } IdentifierToken val3 = (IdentifierToken)(object)((current10 is IdentifierToken) ? current10 : null); if (val3 != null && val3.Name == "_input") { 5__5.SetReady(); } val3 = (IdentifierToken)(object)((current10 is IdentifierToken) ? current10 : null); if (val3 != null && val3.Name == "_process_movement") { 5__6.SetReady(); } if (5__2.Check(current10)) { <>2__current = current10; <>1__state = 1; return true; } if (5__3.Check(current10)) { <>2__current = current10; <>1__state = 3; return true; } if (5__4.Check(current10)) { <>2__current = current10; <>1__state = 7; return true; } if (5__5.Check(current10)) { <>2__current = current10; <>1__state = 10; return true; } if (5__6.Check(current10)) { <>2__current = current10; <>1__state = 12; return true; } if (5__7.Check(current10)) { <>2__current = current10; <>1__state = 14; return true; } <>2__current = current10; <>1__state = 16; return true; } <>m__Finally1(); <>7__wrap7 = null; return false; } catch { //try-fault ((global::System.IDisposable)this).Dispose(); throw; } } bool global::System.Collections.IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } private void <>m__Finally1() { <>1__state = -1; if (<>7__wrap7 != null) { ((global::System.IDisposable)<>7__wrap7).Dispose(); } } private void <>m__Finally2() { <>1__state = -3; if (<>7__wrap8 != null) { ((global::System.IDisposable)<>7__wrap8).Dispose(); } } private void <>m__Finally3() { <>1__state = -3; if (<>7__wrap8 != null) { ((global::System.IDisposable)<>7__wrap8).Dispose(); } } private void <>m__Finally4() { <>1__state = -3; if (<>7__wrap8 != null) { ((global::System.IDisposable)<>7__wrap8).Dispose(); } } private void <>m__Finally5() { <>1__state = -3; if (<>7__wrap8 != null) { ((global::System.IDisposable)<>7__wrap8).Dispose(); } } private void <>m__Finally6() { <>1__state = -3; if (<>7__wrap8 != null) { ((global::System.IDisposable)<>7__wrap8).Dispose(); } } private void <>m__Finally7() { <>1__state = -3; if (<>7__wrap8 != null) { ((global::System.IDisposable)<>7__wrap8).Dispose(); } } private void <>m__Finally8() { <>1__state = -3; if (<>7__wrap8 != null) { ((global::System.IDisposable)<>7__wrap8).Dispose(); } } private void <>m__Finally9() { <>1__state = -3; if (<>7__wrap8 != null) { ((global::System.IDisposable)<>7__wrap8).Dispose(); } } private void <>m__Finally10() { <>1__state = -3; if (<>7__wrap8 != null) { ((global::System.IDisposable)<>7__wrap8).Dispose(); } } [DebuggerHidden] void global::System.Collections.IEnumerator.Reset() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) throw new NotSupportedException(); } [DebuggerHidden] global::System.Collections.Generic.IEnumerator global::System.Collections.Generic.IEnumerable.GetEnumerator() { d__5 d__; if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; d__ = this; } else { d__ = new d__5(0) { <>4__this = <>4__this }; } d__.tokens = <>3__tokens; return d__; } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable)this).GetEnumerator(); } } [CompilerGenerated] private sealed class d__10 : global::System.Collections.Generic.IEnumerable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator, global::System.Collections.IEnumerator, global::System.IDisposable { private int <>1__state; private Token <>2__current; private int <>l__initialThreadId; private Token[] 5__2; private Token[] <>7__wrap2; private int <>7__wrap3; Token global::System.Collections.Generic.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public d__10(int <>1__state) { this.<>1__state = <>1__state; <>l__initialThreadId = Environment.CurrentManagedThreadId; } [DebuggerHidden] void global::System.IDisposable.Dispose() { } private bool MoveNext() { //IL_00dc: Unknown result type (might be due to invalid IL or missing references) //IL_00e2: Expected O, but got Unknown //IL_00ef: Unknown result type (might be due to invalid IL or missing references) //IL_00f5: Expected O, but got Unknown //IL_00fc: Unknown result type (might be due to invalid IL or missing references) //IL_0102: Expected O, but got Unknown //IL_010f: Unknown result type (might be due to invalid IL or missing references) //IL_0115: Expected O, but got Unknown //IL_011c: Unknown result type (might be due to invalid IL or missing references) //IL_0122: Expected O, but got Unknown //IL_0133: Unknown result type (might be due to invalid IL or missing references) //IL_013d: Expected O, but got Unknown //IL_0153: Unknown result type (might be due to invalid IL or missing references) //IL_015d: Expected O, but got Unknown //IL_0179: Unknown result type (might be due to invalid IL or missing references) //IL_0183: Expected O, but got Unknown //IL_0199: Unknown result type (might be due to invalid IL or missing references) //IL_01a3: Expected O, but got Unknown //IL_01bf: Unknown result type (might be due to invalid IL or missing references) //IL_01c9: Expected O, but got Unknown //IL_01df: Unknown result type (might be due to invalid IL or missing references) //IL_01e9: Expected O, but got Unknown //IL_0205: Unknown result type (might be due to invalid IL or missing references) //IL_020f: Expected O, but got Unknown //IL_0225: Unknown result type (might be due to invalid IL or missing references) //IL_022f: Expected O, but got Unknown //IL_022a: Unknown result type (might be due to invalid IL or missing references) //IL_0234: Expected O, but got Unknown //IL_0250: Unknown result type (might be due to invalid IL or missing references) //IL_025a: Expected O, but got Unknown //IL_0271: Unknown result type (might be due to invalid IL or missing references) //IL_027b: Expected O, but got Unknown //IL_0276: Unknown result type (might be due to invalid IL or missing references) //IL_0280: Expected O, but got Unknown //IL_029d: Unknown result type (might be due to invalid IL or missing references) //IL_02a7: Expected O, but got Unknown //IL_02be: Unknown result type (might be due to invalid IL or missing references) //IL_02c8: Expected O, but got Unknown //IL_02c3: Unknown result type (might be due to invalid IL or missing references) //IL_02cd: Expected O, but got Unknown //IL_02ea: Unknown result type (might be due to invalid IL or missing references) //IL_02f4: Expected O, but got Unknown //IL_030b: Unknown result type (might be due to invalid IL or missing references) //IL_0315: Expected O, but got Unknown //IL_0310: Unknown result type (might be due to invalid IL or missing references) //IL_031a: Expected O, but got Unknown //IL_0337: Unknown result type (might be due to invalid IL or missing references) //IL_0341: Expected O, but got Unknown //IL_035b: Unknown result type (might be due to invalid IL or missing references) //IL_0365: Expected O, but got Unknown //IL_0382: Unknown result type (might be due to invalid IL or missing references) //IL_038c: Expected O, but got Unknown //IL_03a3: Unknown result type (might be due to invalid IL or missing references) //IL_03ad: Expected O, but got Unknown //IL_03ca: Unknown result type (might be due to invalid IL or missing references) //IL_03d4: Expected O, but got Unknown //IL_03ee: Unknown result type (might be due to invalid IL or missing references) //IL_03f8: Expected O, but got Unknown //IL_040f: Unknown result type (might be due to invalid IL or missing references) //IL_0419: Expected O, but got Unknown //IL_0436: Unknown result type (might be due to invalid IL or missing references) //IL_0440: Expected O, but got Unknown //IL_0459: Unknown result type (might be due to invalid IL or missing references) //IL_0463: Expected O, but got Unknown //IL_0480: Unknown result type (might be due to invalid IL or missing references) //IL_048a: Expected O, but got Unknown //IL_04a1: Unknown result type (might be due to invalid IL or missing references) //IL_04ab: Expected O, but got Unknown //IL_04c8: Unknown result type (might be due to invalid IL or missing references) //IL_04d2: Expected O, but got Unknown //IL_04e9: Unknown result type (might be due to invalid IL or missing references) //IL_04f3: Expected O, but got Unknown //IL_0510: Unknown result type (might be due to invalid IL or missing references) //IL_051a: Expected O, but got Unknown //IL_0536: Unknown result type (might be due to invalid IL or missing references) //IL_0540: Expected O, but got Unknown //IL_053b: Unknown result type (might be due to invalid IL or missing references) //IL_0545: Expected O, but got Unknown //IL_0562: Unknown result type (might be due to invalid IL or missing references) //IL_056c: Expected O, but got Unknown //IL_0583: Unknown result type (might be due to invalid IL or missing references) //IL_058d: Expected O, but got Unknown //IL_05aa: Unknown result type (might be due to invalid IL or missing references) //IL_05b4: Expected O, but got Unknown //IL_05cb: Unknown result type (might be due to invalid IL or missing references) //IL_05d5: Expected O, but got Unknown //IL_05f2: Unknown result type (might be due to invalid IL or missing references) //IL_05fc: Expected O, but got Unknown //IL_0616: Unknown result type (might be due to invalid IL or missing references) //IL_0620: Expected O, but got Unknown //IL_0637: Unknown result type (might be due to invalid IL or missing references) //IL_0641: Expected O, but got Unknown //IL_065e: Unknown result type (might be due to invalid IL or missing references) //IL_0668: Expected O, but got Unknown //IL_0685: Unknown result type (might be due to invalid IL or missing references) //IL_068f: Expected O, but got Unknown //IL_072d: Unknown result type (might be due to invalid IL or missing references) //IL_0737: Expected O, but got Unknown //IL_0754: Unknown result type (might be due to invalid IL or missing references) //IL_075e: Expected O, but got Unknown //IL_0775: Unknown result type (might be due to invalid IL or missing references) //IL_077f: Expected O, but got Unknown //IL_079c: Unknown result type (might be due to invalid IL or missing references) //IL_07a6: Expected O, but got Unknown //IL_07c0: Unknown result type (might be due to invalid IL or missing references) //IL_07ca: Expected O, but got Unknown //IL_070c: Unknown result type (might be due to invalid IL or missing references) //IL_0716: Expected O, but got Unknown switch (<>1__state) { default: return false; case 0: <>1__state = -1; 5__2 = (Token[])(object)new Token[5] { (Token)new IdentifierToken("cam_base"), new Token((TokenType)84, (uint?)null), (Token)new IdentifierToken("transform"), new Token((TokenType)84, (uint?)null), (Token)new IdentifierToken("basis") }; <>2__current = new Token((TokenType)59, (uint?)null); <>1__state = 1; return true; case 1: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_stick_input"); <>1__state = 2; return true; case 2: <>1__state = -1; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 3; return true; case 3: <>1__state = -1; <>2__current = (Token)new IdentifierToken("Input"); <>1__state = 4; return true; case 4: <>1__state = -1; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 5; return true; case 5: <>1__state = -1; <>2__current = (Token)new IdentifierToken("get_vector"); <>1__state = 6; return true; case 6: <>1__state = -1; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 7; return true; case 7: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("move_right")); <>1__state = 8; return true; case 8: <>1__state = -1; <>2__current = new Token((TokenType)82, (uint?)null); <>1__state = 9; return true; case 9: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("move_left")); <>1__state = 10; return true; case 10: <>1__state = -1; <>2__current = new Token((TokenType)82, (uint?)null); <>1__state = 11; return true; case 11: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("move_back")); <>1__state = 12; return true; case 12: <>1__state = -1; <>2__current = new Token((TokenType)82, (uint?)null); <>1__state = 13; return true; case 13: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("move_forward")); <>1__state = 14; return true; case 14: <>1__state = -1; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 15; return true; case 15: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 16; return true; case 16: <>1__state = -1; <>2__current = new Token((TokenType)38, (uint?)null); <>1__state = 17; return true; case 17: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_using_controller"); <>1__state = 18; return true; case 18: <>1__state = -1; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 19; return true; case 19: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)2u); <>1__state = 20; return true; case 20: <>1__state = -1; <>2__current = (Token)new IdentifierToken("direction"); <>1__state = 21; return true; case 21: <>1__state = -1; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 22; return true; case 22: <>1__state = -1; <>2__current = new Token((TokenType)4, (uint?)7u); <>1__state = 23; return true; case 23: <>1__state = -1; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 24; return true; case 24: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_stick_input"); <>1__state = 25; return true; case 25: <>1__state = -1; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 26; return true; case 26: <>1__state = -1; <>2__current = (Token)new IdentifierToken("x"); <>1__state = 27; return true; case 27: <>1__state = -1; <>2__current = new Token((TokenType)82, (uint?)null); <>1__state = 28; return true; case 28: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new RealVariant(0.0, false)); <>1__state = 29; return true; case 29: <>1__state = -1; <>2__current = new Token((TokenType)82, (uint?)null); <>1__state = 30; return true; case 30: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_stick_input"); <>1__state = 31; return true; case 31: <>1__state = -1; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 32; return true; case 32: <>1__state = -1; <>2__current = (Token)new IdentifierToken("y"); <>1__state = 33; return true; case 33: <>1__state = -1; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 34; return true; case 34: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)2u); <>1__state = 35; return true; case 35: <>1__state = -1; <>2__current = (Token)new IdentifierToken("direction"); <>1__state = 36; return true; case 36: <>1__state = -1; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 37; return true; case 37: <>1__state = -1; <>2__current = new Token((TokenType)17, (uint?)null); <>1__state = 38; return true; case 38: <>1__state = -1; <>7__wrap2 = 5__2; <>7__wrap3 = 0; goto IL_06e9; case 39: <>1__state = -1; <>7__wrap3++; goto IL_06e9; case 40: <>1__state = -1; <>2__current = (Token)new IdentifierToken("xform"); <>1__state = 41; return true; case 41: <>1__state = -1; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 42; return true; case 42: <>1__state = -1; <>2__current = (Token)new IdentifierToken("direction"); <>1__state = 43; return true; case 43: <>1__state = -1; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 44; return true; case 44: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 45; return true; case 45: { <>1__state = -1; return false; } IL_06e9: if (<>7__wrap3 < <>7__wrap2.Length) { Token val = <>7__wrap2[<>7__wrap3]; <>2__current = val; <>1__state = 39; return true; } <>7__wrap2 = null; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 40; return true; } } bool global::System.Collections.IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } [DebuggerHidden] void global::System.Collections.IEnumerator.Reset() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) throw new NotSupportedException(); } [DebuggerHidden] global::System.Collections.Generic.IEnumerator global::System.Collections.Generic.IEnumerable.GetEnumerator() { if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; return this; } return new d__10(0); } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable)this).GetEnumerator(); } } [CompilerGenerated] private sealed class d__12 : global::System.Collections.Generic.IEnumerable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator, global::System.Collections.IEnumerator, global::System.IDisposable { private int <>1__state; private Token <>2__current; private int <>l__initialThreadId; Token global::System.Collections.Generic.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public d__12(int <>1__state) { this.<>1__state = <>1__state; <>l__initialThreadId = Environment.CurrentManagedThreadId; } [DebuggerHidden] void global::System.IDisposable.Dispose() { } private bool MoveNext() { //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown //IL_00a2: Unknown result type (might be due to invalid IL or missing references) //IL_00ac: Expected O, but got Unknown //IL_00c8: Unknown result type (might be due to invalid IL or missing references) //IL_00d2: Expected O, but got Unknown //IL_00e8: Unknown result type (might be due to invalid IL or missing references) //IL_00f2: Expected O, but got Unknown //IL_010e: Unknown result type (might be due to invalid IL or missing references) //IL_0118: Expected O, but got Unknown //IL_012e: Unknown result type (might be due to invalid IL or missing references) //IL_0138: Expected O, but got Unknown //IL_0154: Unknown result type (might be due to invalid IL or missing references) //IL_015e: Expected O, but got Unknown //IL_0174: Unknown result type (might be due to invalid IL or missing references) //IL_017e: Expected O, but got Unknown //IL_019a: Unknown result type (might be due to invalid IL or missing references) //IL_01a4: Expected O, but got Unknown //IL_01bb: Unknown result type (might be due to invalid IL or missing references) //IL_01c5: Expected O, but got Unknown //IL_01e2: Unknown result type (might be due to invalid IL or missing references) //IL_01ec: Expected O, but got Unknown //IL_01ff: Unknown result type (might be due to invalid IL or missing references) //IL_0209: Expected O, but got Unknown //IL_0204: Unknown result type (might be due to invalid IL or missing references) //IL_020e: Expected O, but got Unknown //IL_0228: Unknown result type (might be due to invalid IL or missing references) //IL_0232: Expected O, but got Unknown //IL_024f: Unknown result type (might be due to invalid IL or missing references) //IL_0259: Expected O, but got Unknown //IL_0276: Unknown result type (might be due to invalid IL or missing references) //IL_0280: Expected O, but got Unknown //IL_0297: Unknown result type (might be due to invalid IL or missing references) //IL_02a1: Expected O, but got Unknown //IL_02be: Unknown result type (might be due to invalid IL or missing references) //IL_02c8: Expected O, but got Unknown //IL_02df: Unknown result type (might be due to invalid IL or missing references) //IL_02e9: Expected O, but got Unknown //IL_0306: Unknown result type (might be due to invalid IL or missing references) //IL_0310: Expected O, but got Unknown //IL_0327: Unknown result type (might be due to invalid IL or missing references) //IL_0331: Expected O, but got Unknown //IL_034e: Unknown result type (might be due to invalid IL or missing references) //IL_0358: Expected O, but got Unknown //IL_036b: Unknown result type (might be due to invalid IL or missing references) //IL_0375: Expected O, but got Unknown //IL_0370: Unknown result type (might be due to invalid IL or missing references) //IL_037a: Expected O, but got Unknown //IL_0394: Unknown result type (might be due to invalid IL or missing references) //IL_039e: Expected O, but got Unknown switch (<>1__state) { default: return false; case 0: <>1__state = -1; <>2__current = new Token((TokenType)38, (uint?)null); <>1__state = 1; return true; case 1: <>1__state = -1; <>2__current = (Token)new IdentifierToken("event"); <>1__state = 2; return true; case 2: <>1__state = -1; <>2__current = new Token((TokenType)52, (uint?)null); <>1__state = 3; return true; case 3: <>1__state = -1; <>2__current = (Token)new IdentifierToken("InputEventJoypadButton"); <>1__state = 4; return true; case 4: <>1__state = -1; <>2__current = new Token((TokenType)14, (uint?)null); <>1__state = 5; return true; case 5: <>1__state = -1; <>2__current = (Token)new IdentifierToken("event"); <>1__state = 6; return true; case 6: <>1__state = -1; <>2__current = new Token((TokenType)52, (uint?)null); <>1__state = 7; return true; case 7: <>1__state = -1; <>2__current = (Token)new IdentifierToken("InputEventJoypadMotion"); <>1__state = 8; return true; case 8: <>1__state = -1; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 9; return true; case 9: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_using_controller"); <>1__state = 10; return true; case 10: <>1__state = -1; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 11; return true; case 11: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new BoolVariant(true)); <>1__state = 12; return true; case 12: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 13; return true; case 13: <>1__state = -1; <>2__current = new Token((TokenType)39, (uint?)null); <>1__state = 14; return true; case 14: <>1__state = -1; <>2__current = new Token((TokenType)15, (uint?)null); <>1__state = 15; return true; case 15: <>1__state = -1; <>2__current = (Token)new IdentifierToken("event"); <>1__state = 16; return true; case 16: <>1__state = -1; <>2__current = new Token((TokenType)52, (uint?)null); <>1__state = 17; return true; case 17: <>1__state = -1; <>2__current = (Token)new IdentifierToken("InputEventMouseMotion"); <>1__state = 18; return true; case 18: <>1__state = -1; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 19; return true; case 19: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_using_controller"); <>1__state = 20; return true; case 20: <>1__state = -1; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 21; return true; case 21: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new BoolVariant(false)); <>1__state = 22; return true; case 22: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 23; return true; case 23: <>1__state = -1; return false; } } bool global::System.Collections.IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } [DebuggerHidden] void global::System.Collections.IEnumerator.Reset() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) throw new NotSupportedException(); } [DebuggerHidden] global::System.Collections.Generic.IEnumerator global::System.Collections.Generic.IEnumerable.GetEnumerator() { if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; return this; } return new d__12(0); } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable)this).GetEnumerator(); } } [CompilerGenerated] private sealed class d__9 : global::System.Collections.Generic.IEnumerable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator, global::System.Collections.IEnumerator, global::System.IDisposable { private int <>1__state; private Token <>2__current; private int <>l__initialThreadId; public PlayerModifier <>4__this; private global::System.Collections.Generic.IEnumerator <>7__wrap1; Token global::System.Collections.Generic.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public d__9(int <>1__state) { this.<>1__state = <>1__state; <>l__initialThreadId = Environment.CurrentManagedThreadId; } [DebuggerHidden] void global::System.IDisposable.Dispose() { switch (<>1__state) { case -3: case 5: try { break; } finally { <>m__Finally1(); } case -4: case 18: try { break; } finally { <>m__Finally2(); } case -5: case 40: try { break; } finally { <>m__Finally3(); } } } private bool MoveNext() { //IL_0122: Unknown result type (might be due to invalid IL or missing references) //IL_012c: Expected O, but got Unknown //IL_0147: Unknown result type (might be due to invalid IL or missing references) //IL_0151: Expected O, but got Unknown //IL_0172: Unknown result type (might be due to invalid IL or missing references) //IL_017c: Expected O, but got Unknown //IL_019d: Unknown result type (might be due to invalid IL or missing references) //IL_01a7: Expected O, but got Unknown //IL_0258: Unknown result type (might be due to invalid IL or missing references) //IL_0262: Expected O, but got Unknown //IL_027d: Unknown result type (might be due to invalid IL or missing references) //IL_0287: Expected O, but got Unknown //IL_02a8: Unknown result type (might be due to invalid IL or missing references) //IL_02b2: Expected O, but got Unknown //IL_02ce: Unknown result type (might be due to invalid IL or missing references) //IL_02d8: Expected O, but got Unknown //IL_02f9: Unknown result type (might be due to invalid IL or missing references) //IL_0303: Expected O, but got Unknown //IL_031f: Unknown result type (might be due to invalid IL or missing references) //IL_0329: Expected O, but got Unknown //IL_034b: Unknown result type (might be due to invalid IL or missing references) //IL_0355: Expected O, but got Unknown //IL_0371: Unknown result type (might be due to invalid IL or missing references) //IL_037b: Expected O, but got Unknown //IL_039d: Unknown result type (might be due to invalid IL or missing references) //IL_03a7: Expected O, but got Unknown //IL_03c6: Unknown result type (might be due to invalid IL or missing references) //IL_03d0: Expected O, but got Unknown //IL_03f2: Unknown result type (might be due to invalid IL or missing references) //IL_03fc: Expected O, but got Unknown //IL_04ad: Unknown result type (might be due to invalid IL or missing references) //IL_04b7: Expected O, but got Unknown //IL_04d3: Unknown result type (might be due to invalid IL or missing references) //IL_04dd: Expected O, but got Unknown //IL_04ff: Unknown result type (might be due to invalid IL or missing references) //IL_0509: Expected O, but got Unknown //IL_0523: Unknown result type (might be due to invalid IL or missing references) //IL_052d: Expected O, but got Unknown //IL_0528: Unknown result type (might be due to invalid IL or missing references) //IL_0532: Expected O, but got Unknown //IL_0551: Unknown result type (might be due to invalid IL or missing references) //IL_055b: Expected O, but got Unknown //IL_057d: Unknown result type (might be due to invalid IL or missing references) //IL_0587: Expected O, but got Unknown //IL_05a3: Unknown result type (might be due to invalid IL or missing references) //IL_05ad: Expected O, but got Unknown //IL_05cf: Unknown result type (might be due to invalid IL or missing references) //IL_05d9: Expected O, but got Unknown //IL_05f3: Unknown result type (might be due to invalid IL or missing references) //IL_05fd: Expected O, but got Unknown //IL_05f8: Unknown result type (might be due to invalid IL or missing references) //IL_0602: Expected O, but got Unknown //IL_0624: Unknown result type (might be due to invalid IL or missing references) //IL_062e: Expected O, but got Unknown //IL_064a: Unknown result type (might be due to invalid IL or missing references) //IL_0654: Expected O, but got Unknown //IL_0676: Unknown result type (might be due to invalid IL or missing references) //IL_0680: Expected O, but got Unknown //IL_069a: Unknown result type (might be due to invalid IL or missing references) //IL_06a4: Expected O, but got Unknown //IL_069f: Unknown result type (might be due to invalid IL or missing references) //IL_06a9: Expected O, but got Unknown //IL_06c8: Unknown result type (might be due to invalid IL or missing references) //IL_06d2: Expected O, but got Unknown //IL_06ee: Unknown result type (might be due to invalid IL or missing references) //IL_06f8: Expected O, but got Unknown //IL_071a: Unknown result type (might be due to invalid IL or missing references) //IL_0724: Expected O, but got Unknown //IL_0740: Unknown result type (might be due to invalid IL or missing references) //IL_074a: Expected O, but got Unknown //IL_076c: Unknown result type (might be due to invalid IL or missing references) //IL_0776: Expected O, but got Unknown //IL_0795: Unknown result type (might be due to invalid IL or missing references) //IL_079f: Expected O, but got Unknown //IL_07c1: Unknown result type (might be due to invalid IL or missing references) //IL_07cb: Expected O, but got Unknown //IL_087c: Unknown result type (might be due to invalid IL or missing references) //IL_0886: Expected O, but got Unknown //IL_08a2: Unknown result type (might be due to invalid IL or missing references) //IL_08ac: Expected O, but got Unknown //IL_08ce: Unknown result type (might be due to invalid IL or missing references) //IL_08d8: Expected O, but got Unknown //IL_08f2: Unknown result type (might be due to invalid IL or missing references) //IL_08fc: Expected O, but got Unknown //IL_08f7: Unknown result type (might be due to invalid IL or missing references) //IL_0901: Expected O, but got Unknown //IL_0920: Unknown result type (might be due to invalid IL or missing references) //IL_092a: Expected O, but got Unknown //IL_094c: Unknown result type (might be due to invalid IL or missing references) //IL_0956: Expected O, but got Unknown //IL_0972: Unknown result type (might be due to invalid IL or missing references) //IL_097c: Expected O, but got Unknown //IL_099e: Unknown result type (might be due to invalid IL or missing references) //IL_09a8: Expected O, but got Unknown //IL_09c2: Unknown result type (might be due to invalid IL or missing references) //IL_09cc: Expected O, but got Unknown //IL_09c7: Unknown result type (might be due to invalid IL or missing references) //IL_09d1: Expected O, but got Unknown //IL_09f3: Unknown result type (might be due to invalid IL or missing references) //IL_09fd: Expected O, but got Unknown //IL_0a19: Unknown result type (might be due to invalid IL or missing references) //IL_0a23: Expected O, but got Unknown //IL_0a45: Unknown result type (might be due to invalid IL or missing references) //IL_0a4f: Expected O, but got Unknown //IL_0a69: Unknown result type (might be due to invalid IL or missing references) //IL_0a73: Expected O, but got Unknown //IL_0a6e: Unknown result type (might be due to invalid IL or missing references) //IL_0a78: Expected O, but got Unknown //IL_0a97: Unknown result type (might be due to invalid IL or missing references) //IL_0aa1: Expected O, but got Unknown //IL_0abd: Unknown result type (might be due to invalid IL or missing references) //IL_0ac7: Expected O, but got Unknown //IL_0ae9: Unknown result type (might be due to invalid IL or missing references) //IL_0af3: Expected O, but got Unknown //IL_0b0f: Unknown result type (might be due to invalid IL or missing references) //IL_0b19: Expected O, but got Unknown //IL_0b38: Unknown result type (might be due to invalid IL or missing references) //IL_0b42: Expected O, but got Unknown //IL_0b5e: Unknown result type (might be due to invalid IL or missing references) //IL_0b68: Expected O, but got Unknown //IL_022d: Unknown result type (might be due to invalid IL or missing references) //IL_0237: Expected O, but got Unknown //IL_0484: Unknown result type (might be due to invalid IL or missing references) //IL_048e: Expected O, but got Unknown //IL_0853: Unknown result type (might be due to invalid IL or missing references) //IL_085d: Expected O, but got Unknown try { int num = <>1__state; PlayerModifier playerModifier = <>4__this; switch (num) { default: return false; case 0: <>1__state = -1; <>2__current = new Token((TokenType)38, (uint?)null); <>1__state = 1; return true; case 1: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_using_controller"); <>1__state = 2; return true; case 2: <>1__state = -1; <>2__current = new Token((TokenType)13, (uint?)null); <>1__state = 3; return true; case 3: <>1__state = -1; <>2__current = new Token((TokenType)15, (uint?)null); <>1__state = 4; return true; case 4: <>1__state = -1; <>7__wrap1 = playerModifier.IsActionPressedShort("joy_zoom_control").GetEnumerator(); <>1__state = -3; goto IL_0207; case 5: <>1__state = -3; goto IL_0207; case 6: <>1__state = -1; <>2__current = new Token((TokenType)15, (uint?)null); <>1__state = 7; return true; case 7: <>1__state = -1; <>2__current = (Token)new IdentifierToken("locked"); <>1__state = 8; return true; case 8: <>1__state = -1; <>2__current = new Token((TokenType)13, (uint?)null); <>1__state = 9; return true; case 9: <>1__state = -1; <>2__current = (Token)new IdentifierToken("state"); <>1__state = 10; return true; case 10: <>1__state = -1; <>2__current = new Token((TokenType)7, (uint?)null); <>1__state = 11; return true; case 11: <>1__state = -1; <>2__current = (Token)new IdentifierToken("STATES"); <>1__state = 12; return true; case 12: <>1__state = -1; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 13; return true; case 13: <>1__state = -1; <>2__current = (Token)new IdentifierToken("DEFAULT"); <>1__state = 14; return true; case 14: <>1__state = -1; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 15; return true; case 15: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)2u); <>1__state = 16; return true; case 16: <>1__state = -1; <>2__current = new Token((TokenType)38, (uint?)null); <>1__state = 17; return true; case 17: <>1__state = -1; <>7__wrap1 = playerModifier.IsActionJustPressedShort("joy_tab_next").GetEnumerator(); <>1__state = -4; goto IL_045e; case 18: <>1__state = -4; goto IL_045e; case 19: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)3u); <>1__state = 20; return true; case 20: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_current_hotbar"); <>1__state = 21; return true; case 21: <>1__state = -1; <>2__current = new Token((TokenType)24, (uint?)null); <>1__state = 22; return true; case 22: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(1L, false)); <>1__state = 23; return true; case 23: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)3u); <>1__state = 24; return true; case 24: <>1__state = -1; <>2__current = new Token((TokenType)38, (uint?)null); <>1__state = 25; return true; case 25: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_current_hotbar"); <>1__state = 26; return true; case 26: <>1__state = -1; <>2__current = new Token((TokenType)11, (uint?)null); <>1__state = 27; return true; case 27: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(4L, false)); <>1__state = 28; return true; case 28: <>1__state = -1; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 29; return true; case 29: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_current_hotbar"); <>1__state = 30; return true; case 30: <>1__state = -1; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 31; return true; case 31: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(0L, false)); <>1__state = 32; return true; case 32: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)3u); <>1__state = 33; return true; case 33: <>1__state = -1; <>2__current = (Token)new IdentifierToken("_equip_hotbar"); <>1__state = 34; return true; case 34: <>1__state = -1; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 35; return true; case 35: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_current_hotbar"); <>1__state = 36; return true; case 36: <>1__state = -1; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 37; return true; case 37: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)2u); <>1__state = 38; return true; case 38: <>1__state = -1; <>2__current = new Token((TokenType)39, (uint?)null); <>1__state = 39; return true; case 39: <>1__state = -1; <>7__wrap1 = playerModifier.IsActionJustPressedShort("joy_tab_prev").GetEnumerator(); <>1__state = -5; goto IL_082d; case 40: <>1__state = -5; goto IL_082d; case 41: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)3u); <>1__state = 42; return true; case 42: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_current_hotbar"); <>1__state = 43; return true; case 43: <>1__state = -1; <>2__current = new Token((TokenType)25, (uint?)null); <>1__state = 44; return true; case 44: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(1L, false)); <>1__state = 45; return true; case 45: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)3u); <>1__state = 46; return true; case 46: <>1__state = -1; <>2__current = new Token((TokenType)38, (uint?)null); <>1__state = 47; return true; case 47: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_current_hotbar"); <>1__state = 48; return true; case 48: <>1__state = -1; <>2__current = new Token((TokenType)9, (uint?)null); <>1__state = 49; return true; case 49: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(0L, false)); <>1__state = 50; return true; case 50: <>1__state = -1; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 51; return true; case 51: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_current_hotbar"); <>1__state = 52; return true; case 52: <>1__state = -1; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 53; return true; case 53: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(4L, false)); <>1__state = 54; return true; case 54: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)3u); <>1__state = 55; return true; case 55: <>1__state = -1; <>2__current = (Token)new IdentifierToken("_equip_hotbar"); <>1__state = 56; return true; case 56: <>1__state = -1; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 57; return true; case 57: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_current_hotbar"); <>1__state = 58; return true; case 58: <>1__state = -1; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 59; return true; case 59: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 60; return true; case 60: { <>1__state = -1; return false; } IL_082d: if (((global::System.Collections.IEnumerator)<>7__wrap1).MoveNext()) { Token current = <>7__wrap1.Current; <>2__current = current; <>1__state = 40; return true; } <>m__Finally3(); <>7__wrap1 = null; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 41; return true; IL_045e: if (((global::System.Collections.IEnumerator)<>7__wrap1).MoveNext()) { Token current2 = <>7__wrap1.Current; <>2__current = current2; <>1__state = 18; return true; } <>m__Finally2(); <>7__wrap1 = null; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 19; return true; IL_0207: if (((global::System.Collections.IEnumerator)<>7__wrap1).MoveNext()) { Token current3 = <>7__wrap1.Current; <>2__current = current3; <>1__state = 5; return true; } <>m__Finally1(); <>7__wrap1 = null; <>2__current = new Token((TokenType)13, (uint?)null); <>1__state = 6; return true; } } catch { //try-fault ((global::System.IDisposable)this).Dispose(); throw; } } bool global::System.Collections.IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } private void <>m__Finally1() { <>1__state = -1; if (<>7__wrap1 != null) { ((global::System.IDisposable)<>7__wrap1).Dispose(); } } private void <>m__Finally2() { <>1__state = -1; if (<>7__wrap1 != null) { ((global::System.IDisposable)<>7__wrap1).Dispose(); } } private void <>m__Finally3() { <>1__state = -1; if (<>7__wrap1 != null) { ((global::System.IDisposable)<>7__wrap1).Dispose(); } } [DebuggerHidden] void global::System.Collections.IEnumerator.Reset() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) throw new NotSupportedException(); } [DebuggerHidden] global::System.Collections.Generic.IEnumerator global::System.Collections.Generic.IEnumerable.GetEnumerator() { d__9 result; if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; result = this; } else { result = new d__9(0) { <>4__this = <>4__this }; } return result; } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable)this).GetEnumerator(); } } [CompilerGenerated] private sealed class d__13 : global::System.Collections.Generic.IEnumerable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator, global::System.Collections.IEnumerator, global::System.IDisposable { private int <>1__state; private Token <>2__current; private int <>l__initialThreadId; private global::System.Collections.Generic.IEnumerator <>7__wrap1; Token global::System.Collections.Generic.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public d__13(int <>1__state) { this.<>1__state = <>1__state; <>l__initialThreadId = Environment.CurrentManagedThreadId; } [DebuggerHidden] void global::System.IDisposable.Dispose() { switch (<>1__state) { case -3: case 13: try { break; } finally { <>m__Finally1(); } case -4: case 17: try { break; } finally { <>m__Finally2(); } } } private bool MoveNext() { //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Expected O, but got Unknown //IL_0098: Unknown result type (might be due to invalid IL or missing references) //IL_00a2: Expected O, but got Unknown //IL_00c3: Unknown result type (might be due to invalid IL or missing references) //IL_00cd: Expected O, but got Unknown //IL_00ee: Unknown result type (might be due to invalid IL or missing references) //IL_00f8: Expected O, but got Unknown //IL_0119: Unknown result type (might be due to invalid IL or missing references) //IL_0123: Expected O, but got Unknown //IL_013e: Unknown result type (might be due to invalid IL or missing references) //IL_0148: Expected O, but got Unknown //IL_0169: Unknown result type (might be due to invalid IL or missing references) //IL_0173: Expected O, but got Unknown //IL_0191: Unknown result type (might be due to invalid IL or missing references) //IL_019b: Expected O, but got Unknown //IL_01bc: Unknown result type (might be due to invalid IL or missing references) //IL_01c6: Expected O, but got Unknown //IL_01e8: Unknown result type (might be due to invalid IL or missing references) //IL_01f2: Expected O, but got Unknown //IL_020e: Unknown result type (might be due to invalid IL or missing references) //IL_0218: Expected O, but got Unknown //IL_023a: Unknown result type (might be due to invalid IL or missing references) //IL_0244: Expected O, but got Unknown //IL_0308: Unknown result type (might be due to invalid IL or missing references) //IL_0312: Expected O, but got Unknown //IL_0334: Unknown result type (might be due to invalid IL or missing references) //IL_033e: Expected O, but got Unknown //IL_02dc: Unknown result type (might be due to invalid IL or missing references) //IL_02e6: Expected O, but got Unknown //IL_03d5: Unknown result type (might be due to invalid IL or missing references) //IL_03df: Expected O, but got Unknown try { switch (<>1__state) { default: return false; case 0: <>1__state = -1; <>2__current = new Token((TokenType)38, (uint?)null); <>1__state = 1; return true; case 1: <>1__state = -1; <>2__current = (Token)new IdentifierToken("is_on_floor"); <>1__state = 2; return true; case 2: <>1__state = -1; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 3; return true; case 3: <>1__state = -1; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 4; return true; case 4: <>1__state = -1; <>2__current = new Token((TokenType)13, (uint?)null); <>1__state = 5; return true; case 5: <>1__state = -1; <>2__current = (Token)new IdentifierToken("in_air"); <>1__state = 6; return true; case 6: <>1__state = -1; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 7; return true; case 7: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)2u); <>1__state = 8; return true; case 8: <>1__state = -1; <>2__current = new Token((TokenType)38, (uint?)null); <>1__state = 9; return true; case 9: <>1__state = -1; <>2__current = new Token((TokenType)15, (uint?)null); <>1__state = 10; return true; case 10: <>1__state = -1; <>2__current = (Token)new IdentifierToken("diving"); <>1__state = 11; return true; case 11: <>1__state = -1; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 12; return true; case 12: <>1__state = -1; <>7__wrap1 = VibrateController(0.5, 0.0, 0.15).GetEnumerator(); <>1__state = -3; goto IL_02b9; case 13: <>1__state = -3; goto IL_02b9; case 14: <>1__state = -1; <>2__current = new Token((TokenType)40, (uint?)null); <>1__state = 15; return true; case 15: <>1__state = -1; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 16; return true; case 16: <>1__state = -1; <>7__wrap1 = VibrateController(0.0, 0.5, 0.25).GetEnumerator(); <>1__state = -4; goto IL_03b2; case 17: <>1__state = -4; goto IL_03b2; case 18: { <>1__state = -1; return false; } IL_03b2: if (((global::System.Collections.IEnumerator)<>7__wrap1).MoveNext()) { Token current = <>7__wrap1.Current; <>2__current = current; <>1__state = 17; return true; } <>m__Finally2(); <>7__wrap1 = null; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 18; return true; IL_02b9: if (((global::System.Collections.IEnumerator)<>7__wrap1).MoveNext()) { Token current2 = <>7__wrap1.Current; <>2__current = current2; <>1__state = 13; return true; } <>m__Finally1(); <>7__wrap1 = null; <>2__current = new Token((TokenType)89, (uint?)2u); <>1__state = 14; return true; } } catch { //try-fault ((global::System.IDisposable)this).Dispose(); throw; } } bool global::System.Collections.IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } private void <>m__Finally1() { <>1__state = -1; if (<>7__wrap1 != null) { ((global::System.IDisposable)<>7__wrap1).Dispose(); } } private void <>m__Finally2() { <>1__state = -1; if (<>7__wrap1 != null) { ((global::System.IDisposable)<>7__wrap1).Dispose(); } } [DebuggerHidden] void global::System.Collections.IEnumerator.Reset() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) throw new NotSupportedException(); } [DebuggerHidden] global::System.Collections.Generic.IEnumerator global::System.Collections.Generic.IEnumerable.GetEnumerator() { if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; return this; } return new d__13(0); } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable)this).GetEnumerator(); } } [CompilerGenerated] private sealed class d__7 : global::System.Collections.Generic.IEnumerable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator, global::System.Collections.IEnumerator, global::System.IDisposable { private int <>1__state; private Token <>2__current; private int <>l__initialThreadId; private Token[] 5__2; private Token[] 5__3; private Token[] <>7__wrap3; private int <>7__wrap4; Token global::System.Collections.Generic.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public d__7(int <>1__state) { this.<>1__state = <>1__state; <>l__initialThreadId = Environment.CurrentManagedThreadId; } [DebuggerHidden] void global::System.IDisposable.Dispose() { } private bool MoveNext() { //IL_0106: Unknown result type (might be due to invalid IL or missing references) //IL_0110: Expected O, but got Unknown //IL_0126: Unknown result type (might be due to invalid IL or missing references) //IL_0130: Expected O, but got Unknown //IL_014c: Unknown result type (might be due to invalid IL or missing references) //IL_0156: Expected O, but got Unknown //IL_016c: Unknown result type (might be due to invalid IL or missing references) //IL_0176: Expected O, but got Unknown //IL_0192: Unknown result type (might be due to invalid IL or missing references) //IL_019c: Expected O, but got Unknown //IL_01b2: Unknown result type (might be due to invalid IL or missing references) //IL_01bc: Expected O, but got Unknown //IL_01d8: Unknown result type (might be due to invalid IL or missing references) //IL_01e2: Expected O, but got Unknown //IL_01f8: Unknown result type (might be due to invalid IL or missing references) //IL_0202: Expected O, but got Unknown //IL_01fd: Unknown result type (might be due to invalid IL or missing references) //IL_0207: Expected O, but got Unknown //IL_0223: Unknown result type (might be due to invalid IL or missing references) //IL_022d: Expected O, but got Unknown //IL_0244: Unknown result type (might be due to invalid IL or missing references) //IL_024e: Expected O, but got Unknown //IL_0249: Unknown result type (might be due to invalid IL or missing references) //IL_0253: Expected O, but got Unknown //IL_0270: Unknown result type (might be due to invalid IL or missing references) //IL_027a: Expected O, but got Unknown //IL_0291: Unknown result type (might be due to invalid IL or missing references) //IL_029b: Expected O, but got Unknown //IL_0296: Unknown result type (might be due to invalid IL or missing references) //IL_02a0: Expected O, but got Unknown //IL_02bd: Unknown result type (might be due to invalid IL or missing references) //IL_02c7: Expected O, but got Unknown //IL_02de: Unknown result type (might be due to invalid IL or missing references) //IL_02e8: Expected O, but got Unknown //IL_02e3: Unknown result type (might be due to invalid IL or missing references) //IL_02ed: Expected O, but got Unknown //IL_030a: Unknown result type (might be due to invalid IL or missing references) //IL_0314: Expected O, but got Unknown //IL_032e: Unknown result type (might be due to invalid IL or missing references) //IL_0338: Expected O, but got Unknown //IL_0355: Unknown result type (might be due to invalid IL or missing references) //IL_035f: Expected O, but got Unknown //IL_0376: Unknown result type (might be due to invalid IL or missing references) //IL_0380: Expected O, but got Unknown //IL_039d: Unknown result type (might be due to invalid IL or missing references) //IL_03a7: Expected O, but got Unknown //IL_03be: Unknown result type (might be due to invalid IL or missing references) //IL_03c8: Expected O, but got Unknown //IL_03e5: Unknown result type (might be due to invalid IL or missing references) //IL_03ef: Expected O, but got Unknown //IL_0406: Unknown result type (might be due to invalid IL or missing references) //IL_0410: Expected O, but got Unknown //IL_042a: Unknown result type (might be due to invalid IL or missing references) //IL_0434: Expected O, but got Unknown //IL_0450: Unknown result type (might be due to invalid IL or missing references) //IL_045a: Expected O, but got Unknown //IL_0455: Unknown result type (might be due to invalid IL or missing references) //IL_045f: Expected O, but got Unknown //IL_0479: Unknown result type (might be due to invalid IL or missing references) //IL_0483: Expected O, but got Unknown //IL_04a2: Unknown result type (might be due to invalid IL or missing references) //IL_04a8: Expected O, but got Unknown //IL_04b5: Unknown result type (might be due to invalid IL or missing references) //IL_04bb: Expected O, but got Unknown //IL_04c2: Unknown result type (might be due to invalid IL or missing references) //IL_04c8: Expected O, but got Unknown //IL_04d5: Unknown result type (might be due to invalid IL or missing references) //IL_04db: Expected O, but got Unknown //IL_04e2: Unknown result type (might be due to invalid IL or missing references) //IL_04e8: Expected O, but got Unknown //IL_04fb: Unknown result type (might be due to invalid IL or missing references) //IL_0501: Expected O, but got Unknown //IL_050e: Unknown result type (might be due to invalid IL or missing references) //IL_0514: Expected O, but got Unknown //IL_051b: Unknown result type (might be due to invalid IL or missing references) //IL_0521: Expected O, but got Unknown //IL_052e: Unknown result type (might be due to invalid IL or missing references) //IL_0534: Expected O, but got Unknown //IL_053b: Unknown result type (might be due to invalid IL or missing references) //IL_0541: Expected O, but got Unknown //IL_0552: Unknown result type (might be due to invalid IL or missing references) //IL_055c: Expected O, but got Unknown //IL_0573: Unknown result type (might be due to invalid IL or missing references) //IL_057d: Expected O, but got Unknown //IL_059a: Unknown result type (might be due to invalid IL or missing references) //IL_05a4: Expected O, but got Unknown //IL_05be: Unknown result type (might be due to invalid IL or missing references) //IL_05c8: Expected O, but got Unknown //IL_0666: Unknown result type (might be due to invalid IL or missing references) //IL_0670: Expected O, but got Unknown //IL_068d: Unknown result type (might be due to invalid IL or missing references) //IL_0697: Expected O, but got Unknown //IL_06ae: Unknown result type (might be due to invalid IL or missing references) //IL_06b8: Expected O, but got Unknown //IL_06d5: Unknown result type (might be due to invalid IL or missing references) //IL_06df: Expected O, but got Unknown //IL_06f6: Unknown result type (might be due to invalid IL or missing references) //IL_0700: Expected O, but got Unknown //IL_071a: Unknown result type (might be due to invalid IL or missing references) //IL_0724: Expected O, but got Unknown //IL_07c2: Unknown result type (might be due to invalid IL or missing references) //IL_07cc: Expected O, but got Unknown //IL_07e9: Unknown result type (might be due to invalid IL or missing references) //IL_07f3: Expected O, but got Unknown //IL_080a: Unknown result type (might be due to invalid IL or missing references) //IL_0814: Expected O, but got Unknown //IL_0831: Unknown result type (might be due to invalid IL or missing references) //IL_083b: Expected O, but got Unknown //IL_0852: Unknown result type (might be due to invalid IL or missing references) //IL_085c: Expected O, but got Unknown //IL_0876: Unknown result type (might be due to invalid IL or missing references) //IL_0880: Expected O, but got Unknown //IL_0923: Unknown result type (might be due to invalid IL or missing references) //IL_092d: Expected O, but got Unknown //IL_094a: Unknown result type (might be due to invalid IL or missing references) //IL_0954: Expected O, but got Unknown //IL_09f3: Unknown result type (might be due to invalid IL or missing references) //IL_09fd: Expected O, but got Unknown //IL_09f8: Unknown result type (might be due to invalid IL or missing references) //IL_0a02: Expected O, but got Unknown //IL_0a1f: Unknown result type (might be due to invalid IL or missing references) //IL_0a29: Expected O, but got Unknown //IL_0a3f: Unknown result type (might be due to invalid IL or missing references) //IL_0a49: Expected O, but got Unknown //IL_0a44: Unknown result type (might be due to invalid IL or missing references) //IL_0a4e: Expected O, but got Unknown //IL_0a6b: Unknown result type (might be due to invalid IL or missing references) //IL_0a75: Expected O, but got Unknown //IL_0a8f: Unknown result type (might be due to invalid IL or missing references) //IL_0a99: Expected O, but got Unknown //IL_0645: Unknown result type (might be due to invalid IL or missing references) //IL_064f: Expected O, but got Unknown //IL_07a1: Unknown result type (might be due to invalid IL or missing references) //IL_07ab: Expected O, but got Unknown //IL_08ff: Unknown result type (might be due to invalid IL or missing references) //IL_0909: Expected O, but got Unknown //IL_09d3: Unknown result type (might be due to invalid IL or missing references) //IL_09dd: Expected O, but got Unknown switch (<>1__state) { default: return false; case 0: <>1__state = -1; <>2__current = new Token((TokenType)59, (uint?)null); <>1__state = 1; return true; case 1: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_look_vec"); <>1__state = 2; return true; case 2: <>1__state = -1; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 3; return true; case 3: <>1__state = -1; <>2__current = (Token)new IdentifierToken("Input"); <>1__state = 4; return true; case 4: <>1__state = -1; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 5; return true; case 5: <>1__state = -1; <>2__current = (Token)new IdentifierToken("get_vector"); <>1__state = 6; return true; case 6: <>1__state = -1; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 7; return true; case 7: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("joy_look_left")); <>1__state = 8; return true; case 8: <>1__state = -1; <>2__current = new Token((TokenType)82, (uint?)null); <>1__state = 9; return true; case 9: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("joy_look_right")); <>1__state = 10; return true; case 10: <>1__state = -1; <>2__current = new Token((TokenType)82, (uint?)null); <>1__state = 11; return true; case 11: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("joy_look_up")); <>1__state = 12; return true; case 12: <>1__state = -1; <>2__current = new Token((TokenType)82, (uint?)null); <>1__state = 13; return true; case 13: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("joy_look_down")); <>1__state = 14; return true; case 14: <>1__state = -1; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 15; return true; case 15: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 16; return true; case 16: <>1__state = -1; <>2__current = new Token((TokenType)59, (uint?)null); <>1__state = 17; return true; case 17: <>1__state = -1; <>2__current = (Token)new IdentifierToken("mouse_sens"); <>1__state = 18; return true; case 18: <>1__state = -1; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 19; return true; case 19: <>1__state = -1; <>2__current = (Token)new IdentifierToken("OptionsMenu"); <>1__state = 20; return true; case 20: <>1__state = -1; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 21; return true; case 21: <>1__state = -1; <>2__current = (Token)new IdentifierToken("mouse_sens"); <>1__state = 22; return true; case 22: <>1__state = -1; <>2__current = new Token((TokenType)18, (uint?)1u); <>1__state = 23; return true; case 23: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new RealVariant(40.0, false)); <>1__state = 24; return true; case 24: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 25; return true; case 25: <>1__state = -1; 5__2 = (Token[])(object)new Token[5] { (Token)new IdentifierToken("cam_base"), new Token((TokenType)84, (uint?)null), (Token)new IdentifierToken("rotation_degrees"), new Token((TokenType)84, (uint?)null), (Token)new IdentifierToken("y") }; 5__3 = (Token[])(object)new Token[5] { (Token)new IdentifierToken("cam_pivot"), new Token((TokenType)84, (uint?)null), (Token)new IdentifierToken("rotation_degrees"), new Token((TokenType)84, (uint?)null), (Token)new IdentifierToken("x") }; <>2__current = new Token((TokenType)38, (uint?)null); <>1__state = 26; return true; case 26: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_using_controller"); <>1__state = 27; return true; case 27: <>1__state = -1; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 28; return true; case 28: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)2u); <>1__state = 29; return true; case 29: <>1__state = -1; <>7__wrap3 = 5__2; <>7__wrap4 = 0; goto IL_0622; case 30: <>1__state = -1; <>7__wrap4++; goto IL_0622; case 31: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_look_vec"); <>1__state = 32; return true; case 32: <>1__state = -1; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 33; return true; case 33: <>1__state = -1; <>2__current = (Token)new IdentifierToken("x"); <>1__state = 34; return true; case 34: <>1__state = -1; <>2__current = new Token((TokenType)18, (uint?)null); <>1__state = 35; return true; case 35: <>1__state = -1; <>2__current = (Token)new IdentifierToken("mouse_sens"); <>1__state = 36; return true; case 36: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)2u); <>1__state = 37; return true; case 37: <>1__state = -1; <>7__wrap3 = 5__3; <>7__wrap4 = 0; goto IL_077e; case 38: <>1__state = -1; <>7__wrap4++; goto IL_077e; case 39: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_look_vec"); <>1__state = 40; return true; case 40: <>1__state = -1; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 41; return true; case 41: <>1__state = -1; <>2__current = (Token)new IdentifierToken("y"); <>1__state = 42; return true; case 42: <>1__state = -1; <>2__current = new Token((TokenType)18, (uint?)null); <>1__state = 43; return true; case 43: <>1__state = -1; <>2__current = (Token)new IdentifierToken("mouse_sens"); <>1__state = 44; return true; case 44: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)2u); <>1__state = 45; return true; case 45: <>1__state = -1; <>7__wrap3 = 5__3; <>7__wrap4 = 0; goto IL_08dc; case 46: <>1__state = -1; <>7__wrap4++; goto IL_08dc; case 47: <>1__state = -1; <>2__current = new Token((TokenType)5, (uint?)53u); <>1__state = 48; return true; case 48: <>1__state = -1; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 49; return true; case 49: <>1__state = -1; <>7__wrap3 = 5__3; <>7__wrap4 = 0; goto IL_09b0; case 50: <>1__state = -1; <>7__wrap4++; goto IL_09b0; case 51: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(-80L, false)); <>1__state = 52; return true; case 52: <>1__state = -1; <>2__current = new Token((TokenType)82, (uint?)null); <>1__state = 53; return true; case 53: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(80L, false)); <>1__state = 54; return true; case 54: <>1__state = -1; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 55; return true; case 55: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 56; return true; case 56: { <>1__state = -1; return false; } IL_09b0: if (<>7__wrap4 < <>7__wrap3.Length) { Token val = <>7__wrap3[<>7__wrap4]; <>2__current = val; <>1__state = 50; return true; } <>7__wrap3 = null; <>2__current = new Token((TokenType)82, (uint?)null); <>1__state = 51; return true; IL_08dc: if (<>7__wrap4 < <>7__wrap3.Length) { Token val2 = <>7__wrap3[<>7__wrap4]; <>2__current = val2; <>1__state = 46; return true; } <>7__wrap3 = null; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 47; return true; IL_077e: if (<>7__wrap4 < <>7__wrap3.Length) { Token val3 = <>7__wrap3[<>7__wrap4]; <>2__current = val3; <>1__state = 38; return true; } <>7__wrap3 = null; <>2__current = new Token((TokenType)24, (uint?)null); <>1__state = 39; return true; IL_0622: if (<>7__wrap4 < <>7__wrap3.Length) { Token val4 = <>7__wrap3[<>7__wrap4]; <>2__current = val4; <>1__state = 30; return true; } <>7__wrap3 = null; <>2__current = new Token((TokenType)25, (uint?)null); <>1__state = 31; return true; } } bool global::System.Collections.IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } [DebuggerHidden] void global::System.Collections.IEnumerator.Reset() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) throw new NotSupportedException(); } [DebuggerHidden] global::System.Collections.Generic.IEnumerator global::System.Collections.Generic.IEnumerable.GetEnumerator() { if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; return this; } return new d__7(0); } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable)this).GetEnumerator(); } } [CompilerGenerated] private sealed class d__6 : global::System.Collections.Generic.IEnumerable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator, global::System.Collections.IEnumerator, global::System.IDisposable { private int <>1__state; private Token <>2__current; private int <>l__initialThreadId; Token global::System.Collections.Generic.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public d__6(int <>1__state) { this.<>1__state = <>1__state; <>l__initialThreadId = Environment.CurrentManagedThreadId; } [DebuggerHidden] void global::System.IDisposable.Dispose() { } private bool MoveNext() { //IL_0076: Unknown result type (might be due to invalid IL or missing references) //IL_0080: Expected O, but got Unknown //IL_0096: Unknown result type (might be due to invalid IL or missing references) //IL_00a0: Expected O, but got Unknown //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_00c6: Expected O, but got Unknown //IL_00d8: Unknown result type (might be due to invalid IL or missing references) //IL_00e2: Expected O, but got Unknown //IL_00dd: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Expected O, but got Unknown //IL_0103: Unknown result type (might be due to invalid IL or missing references) //IL_010d: Expected O, but got Unknown //IL_0129: Unknown result type (might be due to invalid IL or missing references) //IL_0133: Expected O, but got Unknown //IL_0149: Unknown result type (might be due to invalid IL or missing references) //IL_0153: Expected O, but got Unknown //IL_016f: Unknown result type (might be due to invalid IL or missing references) //IL_0179: Expected O, but got Unknown //IL_018d: Unknown result type (might be due to invalid IL or missing references) //IL_0197: Expected O, but got Unknown //IL_0192: Unknown result type (might be due to invalid IL or missing references) //IL_019c: Expected O, but got Unknown //IL_01b9: Unknown result type (might be due to invalid IL or missing references) //IL_01c3: Expected O, but got Unknown //IL_01e0: Unknown result type (might be due to invalid IL or missing references) //IL_01ea: Expected O, but got Unknown //IL_0201: Unknown result type (might be due to invalid IL or missing references) //IL_020b: Expected O, but got Unknown //IL_0228: Unknown result type (might be due to invalid IL or missing references) //IL_0232: Expected O, but got Unknown //IL_0245: Unknown result type (might be due to invalid IL or missing references) //IL_024f: Expected O, but got Unknown //IL_024a: Unknown result type (might be due to invalid IL or missing references) //IL_0254: Expected O, but got Unknown //IL_0271: Unknown result type (might be due to invalid IL or missing references) //IL_027b: Expected O, but got Unknown //IL_0298: Unknown result type (might be due to invalid IL or missing references) //IL_02a2: Expected O, but got Unknown //IL_02b9: Unknown result type (might be due to invalid IL or missing references) //IL_02c3: Expected O, but got Unknown //IL_02e0: Unknown result type (might be due to invalid IL or missing references) //IL_02ea: Expected O, but got Unknown //IL_02fd: Unknown result type (might be due to invalid IL or missing references) //IL_0307: Expected O, but got Unknown //IL_0302: Unknown result type (might be due to invalid IL or missing references) //IL_030c: Expected O, but got Unknown //IL_0329: Unknown result type (might be due to invalid IL or missing references) //IL_0333: Expected O, but got Unknown switch (<>1__state) { default: return false; case 0: <>1__state = -1; <>2__current = new Token((TokenType)59, (uint?)null); <>1__state = 1; return true; case 1: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_using_controller"); <>1__state = 2; return true; case 2: <>1__state = -1; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 3; return true; case 3: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new BoolVariant(false)); <>1__state = 4; return true; case 4: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)null); <>1__state = 5; return true; case 5: <>1__state = -1; <>2__current = new Token((TokenType)59, (uint?)null); <>1__state = 6; return true; case 6: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_current_hotbar"); <>1__state = 7; return true; case 7: <>1__state = -1; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 8; return true; case 8: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(-1L, false)); <>1__state = 9; return true; case 9: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)null); <>1__state = 10; return true; case 10: <>1__state = -1; <>2__current = new Token((TokenType)59, (uint?)null); <>1__state = 11; return true; case 11: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_wish_sprint"); <>1__state = 12; return true; case 12: <>1__state = -1; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 13; return true; case 13: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new BoolVariant(false)); <>1__state = 14; return true; case 14: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)null); <>1__state = 15; return true; case 15: <>1__state = -1; <>2__current = new Token((TokenType)59, (uint?)null); <>1__state = 16; return true; case 16: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_wish_walk"); <>1__state = 17; return true; case 17: <>1__state = -1; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 18; return true; case 18: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new BoolVariant(false)); <>1__state = 19; return true; case 19: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)null); <>1__state = 20; return true; case 20: <>1__state = -1; return false; } } bool global::System.Collections.IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } [DebuggerHidden] void global::System.Collections.IEnumerator.Reset() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) throw new NotSupportedException(); } [DebuggerHidden] global::System.Collections.Generic.IEnumerator global::System.Collections.Generic.IEnumerable.GetEnumerator() { if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; return this; } return new d__6(0); } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable)this).GetEnumerator(); } } [CompilerGenerated] private sealed class d__14 : global::System.Collections.Generic.IEnumerable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator, global::System.Collections.IEnumerator, global::System.IDisposable { private int <>1__state; private Token <>2__current; private int <>l__initialThreadId; public PlayerModifier <>4__this; private global::System.Collections.Generic.IEnumerator <>7__wrap1; Token global::System.Collections.Generic.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public d__14(int <>1__state) { this.<>1__state = <>1__state; <>l__initialThreadId = Environment.CurrentManagedThreadId; } [DebuggerHidden] void global::System.IDisposable.Dispose() { int num = <>1__state; if (num == -3 || num == 2) { try { } finally { <>m__Finally1(); } } } private bool MoveNext() { //IL_003a: Unknown result type (might be due to invalid IL or missing references) //IL_0044: Expected O, but got Unknown try { int num = <>1__state; PlayerModifier playerModifier = <>4__this; switch (num) { default: return false; case 0: <>1__state = -1; <>2__current = new Token((TokenType)14, (uint?)null); <>1__state = 1; return true; case 1: <>1__state = -1; <>7__wrap1 = playerModifier.IsActionPressedShort("joy_zoom_control").GetEnumerator(); <>1__state = -3; break; case 2: <>1__state = -3; break; } if (((global::System.Collections.IEnumerator)<>7__wrap1).MoveNext()) { Token current = <>7__wrap1.Current; <>2__current = current; <>1__state = 2; return true; } <>m__Finally1(); <>7__wrap1 = null; return false; } catch { //try-fault ((global::System.IDisposable)this).Dispose(); throw; } } bool global::System.Collections.IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } private void <>m__Finally1() { <>1__state = -1; if (<>7__wrap1 != null) { ((global::System.IDisposable)<>7__wrap1).Dispose(); } } [DebuggerHidden] void global::System.Collections.IEnumerator.Reset() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) throw new NotSupportedException(); } [DebuggerHidden] global::System.Collections.Generic.IEnumerator global::System.Collections.Generic.IEnumerable.GetEnumerator() { d__14 result; if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; result = this; } else { result = new d__14(0) { <>4__this = <>4__this }; } return result; } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable)this).GetEnumerator(); } } [CompilerGenerated] private sealed class d__11 : global::System.Collections.Generic.IEnumerable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator, global::System.Collections.IEnumerator, global::System.IDisposable { private int <>1__state; private Token <>2__current; private int <>l__initialThreadId; public PlayerModifier <>4__this; private global::System.Collections.Generic.IEnumerator <>7__wrap1; Token global::System.Collections.Generic.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public d__11(int <>1__state) { this.<>1__state = <>1__state; <>l__initialThreadId = Environment.CurrentManagedThreadId; } [DebuggerHidden] void global::System.IDisposable.Dispose() { switch (<>1__state) { case -3: case 6: try { break; } finally { <>m__Finally1(); } case -4: case 19: try { break; } finally { <>m__Finally2(); } } } private bool MoveNext() { //IL_00ca: Unknown result type (might be due to invalid IL or missing references) //IL_00d4: Expected O, but got Unknown //IL_00ef: Unknown result type (might be due to invalid IL or missing references) //IL_00f9: Expected O, but got Unknown //IL_011a: Unknown result type (might be due to invalid IL or missing references) //IL_0124: Expected O, but got Unknown //IL_0142: Unknown result type (might be due to invalid IL or missing references) //IL_014c: Expected O, but got Unknown //IL_016d: Unknown result type (might be due to invalid IL or missing references) //IL_0177: Expected O, but got Unknown //IL_0225: Unknown result type (might be due to invalid IL or missing references) //IL_022f: Expected O, but got Unknown //IL_024a: Unknown result type (might be due to invalid IL or missing references) //IL_0254: Expected O, but got Unknown //IL_0276: Unknown result type (might be due to invalid IL or missing references) //IL_0280: Expected O, but got Unknown //IL_0298: Unknown result type (might be due to invalid IL or missing references) //IL_02a2: Expected O, but got Unknown //IL_029d: Unknown result type (might be due to invalid IL or missing references) //IL_02a7: Expected O, but got Unknown //IL_02c6: Unknown result type (might be due to invalid IL or missing references) //IL_02d0: Expected O, but got Unknown //IL_02ec: Unknown result type (might be due to invalid IL or missing references) //IL_02f6: Expected O, but got Unknown //IL_0318: Unknown result type (might be due to invalid IL or missing references) //IL_0322: Expected O, but got Unknown //IL_0344: Unknown result type (might be due to invalid IL or missing references) //IL_034e: Expected O, but got Unknown //IL_036a: Unknown result type (might be due to invalid IL or missing references) //IL_0374: Expected O, but got Unknown //IL_0393: Unknown result type (might be due to invalid IL or missing references) //IL_039d: Expected O, but got Unknown //IL_03bf: Unknown result type (might be due to invalid IL or missing references) //IL_03c9: Expected O, but got Unknown //IL_047a: Unknown result type (might be due to invalid IL or missing references) //IL_0484: Expected O, but got Unknown //IL_04a0: Unknown result type (might be due to invalid IL or missing references) //IL_04aa: Expected O, but got Unknown //IL_04cc: Unknown result type (might be due to invalid IL or missing references) //IL_04d6: Expected O, but got Unknown //IL_04ee: Unknown result type (might be due to invalid IL or missing references) //IL_04f8: Expected O, but got Unknown //IL_04f3: Unknown result type (might be due to invalid IL or missing references) //IL_04fd: Expected O, but got Unknown //IL_051c: Unknown result type (might be due to invalid IL or missing references) //IL_0526: Expected O, but got Unknown //IL_0542: Unknown result type (might be due to invalid IL or missing references) //IL_054c: Expected O, but got Unknown //IL_056e: Unknown result type (might be due to invalid IL or missing references) //IL_0578: Expected O, but got Unknown //IL_059a: Unknown result type (might be due to invalid IL or missing references) //IL_05a4: Expected O, but got Unknown //IL_05c0: Unknown result type (might be due to invalid IL or missing references) //IL_05ca: Expected O, but got Unknown //IL_05e9: Unknown result type (might be due to invalid IL or missing references) //IL_05f3: Expected O, but got Unknown //IL_060f: Unknown result type (might be due to invalid IL or missing references) //IL_0619: Expected O, but got Unknown //IL_063b: Unknown result type (might be due to invalid IL or missing references) //IL_0645: Expected O, but got Unknown //IL_0661: Unknown result type (might be due to invalid IL or missing references) //IL_066b: Expected O, but got Unknown //IL_068a: Unknown result type (might be due to invalid IL or missing references) //IL_0694: Expected O, but got Unknown //IL_06b0: Unknown result type (might be due to invalid IL or missing references) //IL_06ba: Expected O, but got Unknown //IL_06dc: Unknown result type (might be due to invalid IL or missing references) //IL_06e6: Expected O, but got Unknown //IL_06ff: Unknown result type (might be due to invalid IL or missing references) //IL_0709: Expected O, but got Unknown //IL_0725: Unknown result type (might be due to invalid IL or missing references) //IL_072f: Expected O, but got Unknown //IL_01fd: Unknown result type (might be due to invalid IL or missing references) //IL_0207: Expected O, but got Unknown //IL_0451: Unknown result type (might be due to invalid IL or missing references) //IL_045b: Expected O, but got Unknown try { int num = <>1__state; PlayerModifier playerModifier = <>4__this; switch (num) { default: return false; case 0: <>1__state = -1; <>2__current = new Token((TokenType)38, (uint?)null); <>1__state = 1; return true; case 1: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_using_controller"); <>1__state = 2; return true; case 2: <>1__state = -1; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 3; return true; case 3: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)2u); <>1__state = 4; return true; case 4: <>1__state = -1; <>2__current = new Token((TokenType)38, (uint?)null); <>1__state = 5; return true; case 5: <>1__state = -1; <>7__wrap1 = playerModifier.IsActionJustPressedShort("joy_toggle_sprint").GetEnumerator(); <>1__state = -3; goto IL_01d7; case 6: <>1__state = -3; goto IL_01d7; case 7: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)3u); <>1__state = 8; return true; case 8: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_wish_walk"); <>1__state = 9; return true; case 9: <>1__state = -1; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 10; return true; case 10: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new BoolVariant(false)); <>1__state = 11; return true; case 11: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)3u); <>1__state = 12; return true; case 12: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_wish_sprint"); <>1__state = 13; return true; case 13: <>1__state = -1; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 14; return true; case 14: <>1__state = -1; <>2__current = new Token((TokenType)15, (uint?)null); <>1__state = 15; return true; case 15: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_wish_sprint"); <>1__state = 16; return true; case 16: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)2u); <>1__state = 17; return true; case 17: <>1__state = -1; <>2__current = new Token((TokenType)39, (uint?)null); <>1__state = 18; return true; case 18: <>1__state = -1; <>7__wrap1 = playerModifier.IsActionJustPressedShort("joy_toggle_walk").GetEnumerator(); <>1__state = -4; goto IL_042b; case 19: <>1__state = -4; goto IL_042b; case 20: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)3u); <>1__state = 21; return true; case 21: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_wish_sprint"); <>1__state = 22; return true; case 22: <>1__state = -1; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 23; return true; case 23: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new BoolVariant(false)); <>1__state = 24; return true; case 24: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)3u); <>1__state = 25; return true; case 25: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_wish_walk"); <>1__state = 26; return true; case 26: <>1__state = -1; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 27; return true; case 27: <>1__state = -1; <>2__current = new Token((TokenType)15, (uint?)null); <>1__state = 28; return true; case 28: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_wish_walk"); <>1__state = 29; return true; case 29: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)2u); <>1__state = 30; return true; case 30: <>1__state = -1; <>2__current = (Token)new IdentifierToken("sprinting"); <>1__state = 31; return true; case 31: <>1__state = -1; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 32; return true; case 32: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_wish_sprint"); <>1__state = 33; return true; case 33: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)2u); <>1__state = 34; return true; case 34: <>1__state = -1; <>2__current = (Token)new IdentifierToken("slow_walking"); <>1__state = 35; return true; case 35: <>1__state = -1; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 36; return true; case 36: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_wish_walk"); <>1__state = 37; return true; case 37: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 38; return true; case 38: { <>1__state = -1; return false; } IL_042b: if (((global::System.Collections.IEnumerator)<>7__wrap1).MoveNext()) { Token current = <>7__wrap1.Current; <>2__current = current; <>1__state = 19; return true; } <>m__Finally2(); <>7__wrap1 = null; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 20; return true; IL_01d7: if (((global::System.Collections.IEnumerator)<>7__wrap1).MoveNext()) { Token current2 = <>7__wrap1.Current; <>2__current = current2; <>1__state = 6; return true; } <>m__Finally1(); <>7__wrap1 = null; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 7; return true; } } catch { //try-fault ((global::System.IDisposable)this).Dispose(); throw; } } bool global::System.Collections.IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } private void <>m__Finally1() { <>1__state = -1; if (<>7__wrap1 != null) { ((global::System.IDisposable)<>7__wrap1).Dispose(); } } private void <>m__Finally2() { <>1__state = -1; if (<>7__wrap1 != null) { ((global::System.IDisposable)<>7__wrap1).Dispose(); } } [DebuggerHidden] void global::System.Collections.IEnumerator.Reset() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) throw new NotSupportedException(); } [DebuggerHidden] global::System.Collections.Generic.IEnumerator global::System.Collections.Generic.IEnumerable.GetEnumerator() { d__11 result; if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; result = this; } else { result = new d__11(0) { <>4__this = <>4__this }; } return result; } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable)this).GetEnumerator(); } } [CompilerGenerated] private sealed class d__8 : global::System.Collections.Generic.IEnumerable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator, global::System.Collections.IEnumerator, global::System.IDisposable { private int <>1__state; private Token <>2__current; private int <>l__initialThreadId; public PlayerModifier <>4__this; private global::System.Collections.Generic.IEnumerator <>7__wrap1; Token global::System.Collections.Generic.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public d__8(int <>1__state) { this.<>1__state = <>1__state; <>l__initialThreadId = Environment.CurrentManagedThreadId; } [DebuggerHidden] void global::System.IDisposable.Dispose() { switch (<>1__state) { case -3: case 4: try { break; } finally { <>m__Finally1(); } case -4: case 8: try { break; } finally { <>m__Finally2(); } case -5: case 11: try { break; } finally { <>m__Finally3(); } case -6: case 18: try { break; } finally { <>m__Finally4(); } case -7: case 21: try { break; } finally { <>m__Finally5(); } } } private bool MoveNext() { //IL_009a: Unknown result type (might be due to invalid IL or missing references) //IL_00a4: Expected O, but got Unknown //IL_00bf: Unknown result type (might be due to invalid IL or missing references) //IL_00c9: Expected O, but got Unknown //IL_00ea: Unknown result type (might be due to invalid IL or missing references) //IL_00f4: Expected O, but got Unknown //IL_01a2: Unknown result type (might be due to invalid IL or missing references) //IL_01ac: Expected O, but got Unknown //IL_01cd: Unknown result type (might be due to invalid IL or missing references) //IL_01d7: Expected O, but got Unknown //IL_0289: Unknown result type (might be due to invalid IL or missing references) //IL_0293: Expected O, but got Unknown //IL_0341: Unknown result type (might be due to invalid IL or missing references) //IL_034b: Expected O, but got Unknown //IL_036d: Unknown result type (might be due to invalid IL or missing references) //IL_0377: Expected O, but got Unknown //IL_0398: Unknown result type (might be due to invalid IL or missing references) //IL_03a2: Expected O, but got Unknown //IL_039d: Unknown result type (might be due to invalid IL or missing references) //IL_03a7: Expected O, but got Unknown //IL_03c6: Unknown result type (might be due to invalid IL or missing references) //IL_03d0: Expected O, but got Unknown //IL_03f2: Unknown result type (might be due to invalid IL or missing references) //IL_03fc: Expected O, but got Unknown //IL_04b0: Unknown result type (might be due to invalid IL or missing references) //IL_04ba: Expected O, but got Unknown //IL_0568: Unknown result type (might be due to invalid IL or missing references) //IL_0572: Expected O, but got Unknown //IL_0594: Unknown result type (might be due to invalid IL or missing references) //IL_059e: Expected O, but got Unknown //IL_05bc: Unknown result type (might be due to invalid IL or missing references) //IL_05c6: Expected O, but got Unknown //IL_05c1: Unknown result type (might be due to invalid IL or missing references) //IL_05cb: Expected O, but got Unknown //IL_05e7: Unknown result type (might be due to invalid IL or missing references) //IL_05f1: Expected O, but got Unknown //IL_017a: Unknown result type (might be due to invalid IL or missing references) //IL_0184: Expected O, but got Unknown //IL_025d: Unknown result type (might be due to invalid IL or missing references) //IL_0267: Expected O, but got Unknown //IL_031b: Unknown result type (might be due to invalid IL or missing references) //IL_0325: Expected O, but got Unknown //IL_0484: Unknown result type (might be due to invalid IL or missing references) //IL_048e: Expected O, but got Unknown //IL_0542: Unknown result type (might be due to invalid IL or missing references) //IL_054c: Expected O, but got Unknown try { int num = <>1__state; PlayerModifier playerModifier = <>4__this; switch (num) { default: return false; case 0: <>1__state = -1; <>2__current = new Token((TokenType)38, (uint?)null); <>1__state = 1; return true; case 1: <>1__state = -1; <>2__current = (Token)new IdentifierToken("joy_using_controller"); <>1__state = 2; return true; case 2: <>1__state = -1; <>2__current = new Token((TokenType)13, (uint?)null); <>1__state = 3; return true; case 3: <>1__state = -1; <>7__wrap1 = playerModifier.IsActionPressedShort("joy_zoom_control").GetEnumerator(); <>1__state = -3; goto IL_0154; case 4: <>1__state = -3; goto IL_0154; case 5: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)2u); <>1__state = 6; return true; case 6: <>1__state = -1; <>2__current = new Token((TokenType)38, (uint?)null); <>1__state = 7; return true; case 7: <>1__state = -1; <>7__wrap1 = playerModifier.IsActionPressedShort("joy_tab_next").GetEnumerator(); <>1__state = -4; goto IL_0237; case 8: <>1__state = -4; goto IL_0237; case 9: <>1__state = -1; <>2__current = new Token((TokenType)15, (uint?)null); <>1__state = 10; return true; case 10: <>1__state = -1; <>7__wrap1 = playerModifier.IsActionPressedShort("joy_tab_prev").GetEnumerator(); <>1__state = -5; goto IL_02f5; case 11: <>1__state = -5; goto IL_02f5; case 12: <>1__state = -1; <>2__current = (Token)new IdentifierToken("camera_zoom"); <>1__state = 13; return true; case 13: <>1__state = -1; <>2__current = new Token((TokenType)24, (uint?)null); <>1__state = 14; return true; case 14: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new RealVariant(0.2, false)); <>1__state = 15; return true; case 15: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)2u); <>1__state = 16; return true; case 16: <>1__state = -1; <>2__current = new Token((TokenType)38, (uint?)null); <>1__state = 17; return true; case 17: <>1__state = -1; <>7__wrap1 = playerModifier.IsActionPressedShort("joy_tab_prev").GetEnumerator(); <>1__state = -6; goto IL_045e; case 18: <>1__state = -6; goto IL_045e; case 19: <>1__state = -1; <>2__current = new Token((TokenType)15, (uint?)null); <>1__state = 20; return true; case 20: <>1__state = -1; <>7__wrap1 = playerModifier.IsActionPressedShort("joy_tab_next").GetEnumerator(); <>1__state = -7; goto IL_051c; case 21: <>1__state = -7; goto IL_051c; case 22: <>1__state = -1; <>2__current = (Token)new IdentifierToken("camera_zoom"); <>1__state = 23; return true; case 23: <>1__state = -1; <>2__current = new Token((TokenType)25, (uint?)null); <>1__state = 24; return true; case 24: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new RealVariant(0.2, false)); <>1__state = 25; return true; case 25: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 26; return true; case 26: { <>1__state = -1; return false; } IL_051c: if (((global::System.Collections.IEnumerator)<>7__wrap1).MoveNext()) { Token current = <>7__wrap1.Current; <>2__current = current; <>1__state = 21; return true; } <>m__Finally5(); <>7__wrap1 = null; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 22; return true; IL_045e: if (((global::System.Collections.IEnumerator)<>7__wrap1).MoveNext()) { Token current2 = <>7__wrap1.Current; <>2__current = current2; <>1__state = 18; return true; } <>m__Finally4(); <>7__wrap1 = null; <>2__current = new Token((TokenType)13, (uint?)null); <>1__state = 19; return true; IL_0154: if (((global::System.Collections.IEnumerator)<>7__wrap1).MoveNext()) { Token current3 = <>7__wrap1.Current; <>2__current = current3; <>1__state = 4; return true; } <>m__Finally1(); <>7__wrap1 = null; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 5; return true; IL_02f5: if (((global::System.Collections.IEnumerator)<>7__wrap1).MoveNext()) { Token current4 = <>7__wrap1.Current; <>2__current = current4; <>1__state = 11; return true; } <>m__Finally3(); <>7__wrap1 = null; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 12; return true; IL_0237: if (((global::System.Collections.IEnumerator)<>7__wrap1).MoveNext()) { Token current5 = <>7__wrap1.Current; <>2__current = current5; <>1__state = 8; return true; } <>m__Finally2(); <>7__wrap1 = null; <>2__current = new Token((TokenType)13, (uint?)null); <>1__state = 9; return true; } } catch { //try-fault ((global::System.IDisposable)this).Dispose(); throw; } } bool global::System.Collections.IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } private void <>m__Finally1() { <>1__state = -1; if (<>7__wrap1 != null) { ((global::System.IDisposable)<>7__wrap1).Dispose(); } } private void <>m__Finally2() { <>1__state = -1; if (<>7__wrap1 != null) { ((global::System.IDisposable)<>7__wrap1).Dispose(); } } private void <>m__Finally3() { <>1__state = -1; if (<>7__wrap1 != null) { ((global::System.IDisposable)<>7__wrap1).Dispose(); } } private void <>m__Finally4() { <>1__state = -1; if (<>7__wrap1 != null) { ((global::System.IDisposable)<>7__wrap1).Dispose(); } } private void <>m__Finally5() { <>1__state = -1; if (<>7__wrap1 != null) { ((global::System.IDisposable)<>7__wrap1).Dispose(); } } [DebuggerHidden] void global::System.Collections.IEnumerator.Reset() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) throw new NotSupportedException(); } [DebuggerHidden] global::System.Collections.Generic.IEnumerator global::System.Collections.Generic.IEnumerable.GetEnumerator() { d__8 result; if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; result = this; } else { result = new d__8(0) { <>4__this = <>4__this }; } return result; } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable)this).GetEnumerator(); } } private const string UsingController = "joy_using_controller"; private const string WishSprint = "joy_wish_sprint"; private const string WishWalk = "joy_wish_walk"; private const string CurrentHotbar = "joy_current_hotbar"; public bool ShouldRun(string path) { return path == "res://Scenes/Entities/Player/player.gdc"; } [IteratorStateMachine(typeof(d__5))] public global::System.Collections.Generic.IEnumerable Modify(string path, global::System.Collections.Generic.IEnumerable tokens) { MultiTokenWaiter extendsWaiter = new MultiTokenWaiter(new Func[2] { (Token t) => (int)t.Type == 51, (Token t) => (int)t.Type == 89 }, false, true); TokenWaiter bind5Waiter = new TokenWaiter((Func)delegate(Token t) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Invalid comparison between Unknown and I4 if ((int)t.Type == 89) { uint? associatedData4 = t.AssociatedData; if (associatedData4.HasValue) { return associatedData4.GetValueOrDefault() == 1; } return false; } return false; }, true); MultiTokenWaiter sprintingWaiter = new MultiTokenWaiter(new Func[3] { delegate(Token t) { IdentifierToken val13 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val13 != null && val13.Name == "slow_walking"; }, delegate(Token t) { ConstantToken val11 = (ConstantToken)(object)((t is ConstantToken) ? t : null); if (val11 != null) { Variant value4 = val11.Value; StringVariant val12 = (StringVariant)(object)((value4 is StringVariant) ? value4 : null); if (val12 != null) { return val12.Value == "move_walk"; } } return false; }, delegate(Token t) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Invalid comparison between Unknown and I4 if ((int)t.Type == 89) { uint? associatedData3 = t.AssociatedData; if (associatedData3.HasValue) { return associatedData3.GetValueOrDefault() == 1; } return false; } return false; } }, false, true); TokenWaiter inputWaiter = new TokenWaiter((Func)delegate(Token t) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Invalid comparison between Unknown and I4 if ((int)t.Type == 89) { uint? associatedData2 = t.AssociatedData; if (associatedData2.HasValue) { return associatedData2.GetValueOrDefault() == 1; } return false; } return false; }, true); TokenWaiter processMovementWaiter = new TokenWaiter((Func)delegate(Token t) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Invalid comparison between Unknown and I4 if ((int)t.Type == 89) { uint? associatedData = t.AssociatedData; if (associatedData.HasValue) { return associatedData.GetValueOrDefault() == 1; } return false; } return false; }, true); MultiTokenWaiter rodCastDistWaiter = new MultiTokenWaiter(new Func[10] { delegate(Token t) { IdentifierToken val10 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val10 != null && val10.Name == "rod_cast_dist"; }, (Token t) => (int)t.Type == 25, delegate(Token t) { ConstantToken val8 = (ConstantToken)(object)((t is ConstantToken) ? t : null); if (val8 != null) { Variant value3 = val8.Value; RealVariant val9 = (RealVariant)(object)((value3 is RealVariant) ? value3 : null); if (val9 != null) { return val9.Value == 0.04; } } return false; }, (Token t) => (int)t.Type == 38, delegate(Token t) { IdentifierToken val7 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val7 != null && val7.Name == "Input"; }, (Token t) => (int)t.Type == 84, delegate(Token t) { IdentifierToken val6 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val6 != null && val6.Name == "is_action_pressed"; }, (Token t) => (int)t.Type == 80, delegate(Token t) { ConstantToken val4 = (ConstantToken)(object)((t is ConstantToken) ? t : null); if (val4 != null) { Variant value2 = val4.Value; StringVariant val5 = (StringVariant)(object)((value2 is StringVariant) ? value2 : null); if (val5 != null) { return val5.Value == "move_sprint"; } } return false; }, (Token t) => (int)t.Type == 81 }, false, false); global::System.Collections.Generic.IEnumerator enumerator = tokens.GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { Token current = enumerator.Current; ConstantToken val = (ConstantToken)(object)((current is ConstantToken) ? current : null); if (val != null) { Variant value = val.Value; StringVariant val2 = (StringVariant)(object)((value is StringVariant) ? value : null); if (val2 != null && val2.Value == "bind_5") { bind5Waiter.SetReady(); } } IdentifierToken val3 = (IdentifierToken)(object)((current is IdentifierToken) ? current : null); if (val3 != null && val3.Name == "_input") { inputWaiter.SetReady(); } val3 = (IdentifierToken)(object)((current is IdentifierToken) ? current : null); if (val3 != null && val3.Name == "_process_movement") { processMovementWaiter.SetReady(); } if (extendsWaiter.Check(current)) { yield return current; global::System.Collections.Generic.IEnumerator enumerator2 = PatchSetupPlayerVars().GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator2).MoveNext()) { yield return enumerator2.Current; } } finally { ((global::System.IDisposable)enumerator2)?.Dispose(); } } else if (bind5Waiter.Check(current)) { yield return current; global::System.Collections.Generic.IEnumerator enumerator2 = PatchLook().GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator2).MoveNext()) { yield return enumerator2.Current; } } finally { ((global::System.IDisposable)enumerator2)?.Dispose(); } enumerator2 = PatchZoomControl().GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator2).MoveNext()) { yield return enumerator2.Current; } } finally { ((global::System.IDisposable)enumerator2)?.Dispose(); } enumerator2 = PatchHotbarControl().GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator2).MoveNext()) { yield return enumerator2.Current; } } finally { ((global::System.IDisposable)enumerator2)?.Dispose(); } } else if (sprintingWaiter.Check(current)) { yield return current; global::System.Collections.Generic.IEnumerator enumerator2 = PatchAnalogMovement().GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator2).MoveNext()) { yield return enumerator2.Current; } } finally { ((global::System.IDisposable)enumerator2)?.Dispose(); } enumerator2 = PatchToggleMovement().GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator2).MoveNext()) { yield return enumerator2.Current; } } finally { ((global::System.IDisposable)enumerator2)?.Dispose(); } } else if (inputWaiter.Check(current)) { yield return current; global::System.Collections.Generic.IEnumerator enumerator2 = PatchCheckController().GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator2).MoveNext()) { yield return enumerator2.Current; } } finally { ((global::System.IDisposable)enumerator2)?.Dispose(); } } else if (processMovementWaiter.Check(current)) { yield return current; if (!Mod.Config.ControllerVibration || !Mod.Config.ControllerVibrationLand) { continue; } global::System.Collections.Generic.IEnumerator enumerator2 = PatchLandVibration().GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator2).MoveNext()) { yield return enumerator2.Current; } } finally { ((global::System.IDisposable)enumerator2)?.Dispose(); } } else if (rodCastDistWaiter.Check(current)) { yield return current; global::System.Collections.Generic.IEnumerator enumerator2 = PatchSprintReel().GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator2).MoveNext()) { yield return enumerator2.Current; } } finally { ((global::System.IDisposable)enumerator2)?.Dispose(); } } else { yield return current; } } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } } [IteratorStateMachine(typeof(d__6))] private global::System.Collections.Generic.IEnumerable PatchSetupPlayerVars() { yield return new Token((TokenType)59, (uint?)null); yield return (Token)new IdentifierToken("joy_using_controller"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new ConstantToken((Variant)new BoolVariant(false)); yield return new Token((TokenType)89, (uint?)null); yield return new Token((TokenType)59, (uint?)null); yield return (Token)new IdentifierToken("joy_current_hotbar"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(-1L, false)); yield return new Token((TokenType)89, (uint?)null); yield return new Token((TokenType)59, (uint?)null); yield return (Token)new IdentifierToken("joy_wish_sprint"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new ConstantToken((Variant)new BoolVariant(false)); yield return new Token((TokenType)89, (uint?)null); yield return new Token((TokenType)59, (uint?)null); yield return (Token)new IdentifierToken("joy_wish_walk"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new ConstantToken((Variant)new BoolVariant(false)); yield return new Token((TokenType)89, (uint?)null); } [IteratorStateMachine(typeof(d__7))] private global::System.Collections.Generic.IEnumerable PatchLook() { yield return new Token((TokenType)59, (uint?)null); yield return (Token)new IdentifierToken("joy_look_vec"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new IdentifierToken("Input"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("get_vector"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("joy_look_left")); yield return new Token((TokenType)82, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("joy_look_right")); yield return new Token((TokenType)82, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("joy_look_up")); yield return new Token((TokenType)82, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("joy_look_down")); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); yield return new Token((TokenType)59, (uint?)null); yield return (Token)new IdentifierToken("mouse_sens"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new IdentifierToken("OptionsMenu"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("mouse_sens"); yield return new Token((TokenType)18, (uint?)1u); yield return (Token)new ConstantToken((Variant)new RealVariant(40.0, false)); yield return new Token((TokenType)89, (uint?)1u); Token[] camBaseRotation = (Token[])(object)new Token[5] { (Token)new IdentifierToken("cam_base"), new Token((TokenType)84, (uint?)null), (Token)new IdentifierToken("rotation_degrees"), new Token((TokenType)84, (uint?)null), (Token)new IdentifierToken("y") }; Token[] camPivotRotation = (Token[])(object)new Token[5] { (Token)new IdentifierToken("cam_pivot"), new Token((TokenType)84, (uint?)null), (Token)new IdentifierToken("rotation_degrees"), new Token((TokenType)84, (uint?)null), (Token)new IdentifierToken("x") }; yield return new Token((TokenType)38, (uint?)null); yield return (Token)new IdentifierToken("joy_using_controller"); yield return new Token((TokenType)86, (uint?)null); yield return new Token((TokenType)89, (uint?)2u); Token[] array = camBaseRotation; for (int i = 0; i < array.Length; i++) { yield return array[i]; } yield return new Token((TokenType)25, (uint?)null); yield return (Token)new IdentifierToken("joy_look_vec"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("x"); yield return new Token((TokenType)18, (uint?)null); yield return (Token)new IdentifierToken("mouse_sens"); yield return new Token((TokenType)89, (uint?)2u); array = camPivotRotation; for (int i = 0; i < array.Length; i++) { yield return array[i]; } yield return new Token((TokenType)24, (uint?)null); yield return (Token)new IdentifierToken("joy_look_vec"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("y"); yield return new Token((TokenType)18, (uint?)null); yield return (Token)new IdentifierToken("mouse_sens"); yield return new Token((TokenType)89, (uint?)2u); array = camPivotRotation; for (int i = 0; i < array.Length; i++) { yield return array[i]; } yield return new Token((TokenType)23, (uint?)null); yield return new Token((TokenType)5, (uint?)53u); yield return new Token((TokenType)80, (uint?)null); array = camPivotRotation; for (int i = 0; i < array.Length; i++) { yield return array[i]; } yield return new Token((TokenType)82, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(-80L, false)); yield return new Token((TokenType)82, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(80L, false)); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); } [IteratorStateMachine(typeof(d__8))] private global::System.Collections.Generic.IEnumerable PatchZoomControl() { yield return new Token((TokenType)38, (uint?)null); yield return (Token)new IdentifierToken("joy_using_controller"); yield return new Token((TokenType)13, (uint?)null); global::System.Collections.Generic.IEnumerator enumerator = IsActionPressedShort("joy_zoom_control").GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { yield return enumerator.Current; } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } yield return new Token((TokenType)86, (uint?)null); yield return new Token((TokenType)89, (uint?)2u); yield return new Token((TokenType)38, (uint?)null); enumerator = IsActionPressedShort("joy_tab_next").GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { yield return enumerator.Current; } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } yield return new Token((TokenType)13, (uint?)null); yield return new Token((TokenType)15, (uint?)null); enumerator = IsActionPressedShort("joy_tab_prev").GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { yield return enumerator.Current; } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } yield return new Token((TokenType)86, (uint?)null); yield return (Token)new IdentifierToken("camera_zoom"); yield return new Token((TokenType)24, (uint?)null); yield return (Token)new ConstantToken((Variant)new RealVariant(0.2, false)); yield return new Token((TokenType)89, (uint?)2u); yield return new Token((TokenType)38, (uint?)null); enumerator = IsActionPressedShort("joy_tab_prev").GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { yield return enumerator.Current; } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } yield return new Token((TokenType)13, (uint?)null); yield return new Token((TokenType)15, (uint?)null); enumerator = IsActionPressedShort("joy_tab_next").GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { yield return enumerator.Current; } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } yield return new Token((TokenType)86, (uint?)null); yield return (Token)new IdentifierToken("camera_zoom"); yield return new Token((TokenType)25, (uint?)null); yield return (Token)new ConstantToken((Variant)new RealVariant(0.2, false)); yield return new Token((TokenType)89, (uint?)1u); } [IteratorStateMachine(typeof(d__9))] private global::System.Collections.Generic.IEnumerable PatchHotbarControl() { yield return new Token((TokenType)38, (uint?)null); yield return (Token)new IdentifierToken("joy_using_controller"); yield return new Token((TokenType)13, (uint?)null); yield return new Token((TokenType)15, (uint?)null); global::System.Collections.Generic.IEnumerator enumerator = IsActionPressedShort("joy_zoom_control").GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { yield return enumerator.Current; } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } yield return new Token((TokenType)13, (uint?)null); yield return new Token((TokenType)15, (uint?)null); yield return (Token)new IdentifierToken("locked"); yield return new Token((TokenType)13, (uint?)null); yield return (Token)new IdentifierToken("state"); yield return new Token((TokenType)7, (uint?)null); yield return (Token)new IdentifierToken("STATES"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("DEFAULT"); yield return new Token((TokenType)86, (uint?)null); yield return new Token((TokenType)89, (uint?)2u); yield return new Token((TokenType)38, (uint?)null); enumerator = IsActionJustPressedShort("joy_tab_next").GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { yield return enumerator.Current; } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } yield return new Token((TokenType)86, (uint?)null); yield return new Token((TokenType)89, (uint?)3u); yield return (Token)new IdentifierToken("joy_current_hotbar"); yield return new Token((TokenType)24, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(1L, false)); yield return new Token((TokenType)89, (uint?)3u); yield return new Token((TokenType)38, (uint?)null); yield return (Token)new IdentifierToken("joy_current_hotbar"); yield return new Token((TokenType)11, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(4L, false)); yield return new Token((TokenType)86, (uint?)null); yield return (Token)new IdentifierToken("joy_current_hotbar"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(0L, false)); yield return new Token((TokenType)89, (uint?)3u); yield return (Token)new IdentifierToken("_equip_hotbar"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new IdentifierToken("joy_current_hotbar"); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)2u); yield return new Token((TokenType)39, (uint?)null); enumerator = IsActionJustPressedShort("joy_tab_prev").GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { yield return enumerator.Current; } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } yield return new Token((TokenType)86, (uint?)null); yield return new Token((TokenType)89, (uint?)3u); yield return (Token)new IdentifierToken("joy_current_hotbar"); yield return new Token((TokenType)25, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(1L, false)); yield return new Token((TokenType)89, (uint?)3u); yield return new Token((TokenType)38, (uint?)null); yield return (Token)new IdentifierToken("joy_current_hotbar"); yield return new Token((TokenType)9, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(0L, false)); yield return new Token((TokenType)86, (uint?)null); yield return (Token)new IdentifierToken("joy_current_hotbar"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(4L, false)); yield return new Token((TokenType)89, (uint?)3u); yield return (Token)new IdentifierToken("_equip_hotbar"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new IdentifierToken("joy_current_hotbar"); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); } [IteratorStateMachine(typeof(d__10))] private global::System.Collections.Generic.IEnumerable PatchAnalogMovement() { Token[] camBaseTransformBasis = (Token[])(object)new Token[5] { (Token)new IdentifierToken("cam_base"), new Token((TokenType)84, (uint?)null), (Token)new IdentifierToken("transform"), new Token((TokenType)84, (uint?)null), (Token)new IdentifierToken("basis") }; yield return new Token((TokenType)59, (uint?)null); yield return (Token)new IdentifierToken("joy_stick_input"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new IdentifierToken("Input"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("get_vector"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("move_right")); yield return new Token((TokenType)82, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("move_left")); yield return new Token((TokenType)82, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("move_back")); yield return new Token((TokenType)82, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("move_forward")); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); yield return new Token((TokenType)38, (uint?)null); yield return (Token)new IdentifierToken("joy_using_controller"); yield return new Token((TokenType)86, (uint?)null); yield return new Token((TokenType)89, (uint?)2u); yield return (Token)new IdentifierToken("direction"); yield return new Token((TokenType)23, (uint?)null); yield return new Token((TokenType)4, (uint?)7u); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new IdentifierToken("joy_stick_input"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("x"); yield return new Token((TokenType)82, (uint?)null); yield return (Token)new ConstantToken((Variant)new RealVariant(0.0, false)); yield return new Token((TokenType)82, (uint?)null); yield return (Token)new IdentifierToken("joy_stick_input"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("y"); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)2u); yield return (Token)new IdentifierToken("direction"); yield return new Token((TokenType)23, (uint?)null); yield return new Token((TokenType)17, (uint?)null); Token[] array = camBaseTransformBasis; for (int i = 0; i < array.Length; i++) { yield return array[i]; } yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("xform"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new IdentifierToken("direction"); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); } [IteratorStateMachine(typeof(d__11))] private global::System.Collections.Generic.IEnumerable PatchToggleMovement() { yield return new Token((TokenType)38, (uint?)null); yield return (Token)new IdentifierToken("joy_using_controller"); yield return new Token((TokenType)86, (uint?)null); yield return new Token((TokenType)89, (uint?)2u); yield return new Token((TokenType)38, (uint?)null); global::System.Collections.Generic.IEnumerator enumerator = IsActionJustPressedShort("joy_toggle_sprint").GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { yield return enumerator.Current; } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } yield return new Token((TokenType)86, (uint?)null); yield return new Token((TokenType)89, (uint?)3u); yield return (Token)new IdentifierToken("joy_wish_walk"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new ConstantToken((Variant)new BoolVariant(false)); yield return new Token((TokenType)89, (uint?)3u); yield return (Token)new IdentifierToken("joy_wish_sprint"); yield return new Token((TokenType)23, (uint?)null); yield return new Token((TokenType)15, (uint?)null); yield return (Token)new IdentifierToken("joy_wish_sprint"); yield return new Token((TokenType)89, (uint?)2u); yield return new Token((TokenType)39, (uint?)null); enumerator = IsActionJustPressedShort("joy_toggle_walk").GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { yield return enumerator.Current; } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } yield return new Token((TokenType)86, (uint?)null); yield return new Token((TokenType)89, (uint?)3u); yield return (Token)new IdentifierToken("joy_wish_sprint"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new ConstantToken((Variant)new BoolVariant(false)); yield return new Token((TokenType)89, (uint?)3u); yield return (Token)new IdentifierToken("joy_wish_walk"); yield return new Token((TokenType)23, (uint?)null); yield return new Token((TokenType)15, (uint?)null); yield return (Token)new IdentifierToken("joy_wish_walk"); yield return new Token((TokenType)89, (uint?)2u); yield return (Token)new IdentifierToken("sprinting"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new IdentifierToken("joy_wish_sprint"); yield return new Token((TokenType)89, (uint?)2u); yield return (Token)new IdentifierToken("slow_walking"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new IdentifierToken("joy_wish_walk"); yield return new Token((TokenType)89, (uint?)1u); } [IteratorStateMachine(typeof(d__12))] private global::System.Collections.Generic.IEnumerable PatchCheckController() { yield return new Token((TokenType)38, (uint?)null); yield return (Token)new IdentifierToken("event"); yield return new Token((TokenType)52, (uint?)null); yield return (Token)new IdentifierToken("InputEventJoypadButton"); yield return new Token((TokenType)14, (uint?)null); yield return (Token)new IdentifierToken("event"); yield return new Token((TokenType)52, (uint?)null); yield return (Token)new IdentifierToken("InputEventJoypadMotion"); yield return new Token((TokenType)86, (uint?)null); yield return (Token)new IdentifierToken("joy_using_controller"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new ConstantToken((Variant)new BoolVariant(true)); yield return new Token((TokenType)89, (uint?)1u); yield return new Token((TokenType)39, (uint?)null); yield return new Token((TokenType)15, (uint?)null); yield return (Token)new IdentifierToken("event"); yield return new Token((TokenType)52, (uint?)null); yield return (Token)new IdentifierToken("InputEventMouseMotion"); yield return new Token((TokenType)86, (uint?)null); yield return (Token)new IdentifierToken("joy_using_controller"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new ConstantToken((Variant)new BoolVariant(false)); yield return new Token((TokenType)89, (uint?)1u); } [IteratorStateMachine(typeof(d__13))] private global::System.Collections.Generic.IEnumerable PatchLandVibration() { yield return new Token((TokenType)38, (uint?)null); yield return (Token)new IdentifierToken("is_on_floor"); yield return new Token((TokenType)80, (uint?)null); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)13, (uint?)null); yield return (Token)new IdentifierToken("in_air"); yield return new Token((TokenType)86, (uint?)null); yield return new Token((TokenType)89, (uint?)2u); yield return new Token((TokenType)38, (uint?)null); yield return new Token((TokenType)15, (uint?)null); yield return (Token)new IdentifierToken("diving"); yield return new Token((TokenType)86, (uint?)null); global::System.Collections.Generic.IEnumerator enumerator = VibrateController(0.5, 0.0, 0.15).GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { yield return enumerator.Current; } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } yield return new Token((TokenType)89, (uint?)2u); yield return new Token((TokenType)40, (uint?)null); yield return new Token((TokenType)86, (uint?)null); enumerator = VibrateController(0.0, 0.5, 0.25).GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { yield return enumerator.Current; } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } yield return new Token((TokenType)89, (uint?)1u); } [IteratorStateMachine(typeof(d__14))] private global::System.Collections.Generic.IEnumerable PatchSprintReel() { yield return new Token((TokenType)14, (uint?)null); global::System.Collections.Generic.IEnumerator enumerator = IsActionPressedShort("joy_zoom_control").GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { yield return enumerator.Current; } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } } [IteratorStateMachine(typeof(d__15))] private global::System.Collections.Generic.IEnumerable IsActionPressedShort(string action) { yield return (Token)new IdentifierToken("Input"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("is_action_pressed"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant(action)); yield return new Token((TokenType)81, (uint?)null); } [IteratorStateMachine(typeof(d__16))] private global::System.Collections.Generic.IEnumerable IsActionJustPressedShort(string action) { yield return (Token)new IdentifierToken("Input"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("is_action_just_pressed"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant(action)); yield return new Token((TokenType)81, (uint?)null); } } public class Fishing3Modifier : IScriptMod { [CompilerGenerated] private sealed class d__1 : global::System.Collections.Generic.IEnumerable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator, global::System.Collections.IEnumerator, global::System.IDisposable { private int <>1__state; private Token <>2__current; private int <>l__initialThreadId; private global::System.Collections.Generic.IEnumerable tokens; public global::System.Collections.Generic.IEnumerable <>3__tokens; public Fishing3Modifier <>4__this; private MultiTokenWaiter 5__2; private MultiTokenWaiter 5__3; private global::System.Collections.Generic.IEnumerator <>7__wrap3; private global::System.Collections.Generic.IEnumerator <>7__wrap4; Token global::System.Collections.Generic.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public d__1(int <>1__state) { this.<>1__state = <>1__state; <>l__initialThreadId = Environment.CurrentManagedThreadId; } [DebuggerHidden] void global::System.IDisposable.Dispose() { int num = <>1__state; if ((uint)(num - -5) > 2u && (uint)(num - 1) > 4u) { return; } try { switch (num) { case -4: case 2: try { break; } finally { <>m__Finally2(); } case -5: case 4: try { break; } finally { <>m__Finally3(); } } } finally { <>m__Finally1(); } } private bool MoveNext() { //IL_00a9: Unknown result type (might be due to invalid IL or missing references) //IL_00b3: Expected O, but got Unknown //IL_0188: Unknown result type (might be due to invalid IL or missing references) //IL_0192: Expected O, but got Unknown try { int num = <>1__state; Fishing3Modifier fishing3Modifier = <>4__this; switch (num) { default: return false; case 0: <>1__state = -1; 5__2 = new MultiTokenWaiter(new Func[3] { (Token t) => (int)t.Type == 59, delegate(Token t) { IdentifierToken val4 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val4 != null && val4.Name == "reel_sound"; }, delegate(Token t) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Invalid comparison between Unknown and I4 if ((int)t.Type == 89) { uint? associatedData2 = t.AssociatedData; if (associatedData2.HasValue) { return associatedData2.GetValueOrDefault() == 1; } return false; } return false; } }, false, true); 5__3 = new MultiTokenWaiter(new Func[6] { (Token t) => (int)t.Type == 25, delegate(Token t) { IdentifierToken val3 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val3 != null && val3.Name == "params"; }, (Token t) => (int)t.Type == 76, delegate(Token t) { ConstantToken val = (ConstantToken)(object)((t is ConstantToken) ? t : null); if (val != null) { Variant value = val.Value; StringVariant val2 = (StringVariant)(object)((value is StringVariant) ? value : null); if (val2 != null) { return val2.Value == "damage"; } } return false; }, (Token t) => (int)t.Type == 77, delegate(Token t) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Invalid comparison between Unknown and I4 if ((int)t.Type == 89) { uint? associatedData = t.AssociatedData; if (associatedData.HasValue) { return associatedData.GetValueOrDefault() == 1; } return false; } return false; } }, false, false); <>7__wrap3 = tokens.GetEnumerator(); <>1__state = -3; break; case 1: <>1__state = -3; if (!Mod.Config.ControllerVibration || !Mod.Config.ControllerVibrationReel) { break; } <>7__wrap4 = fishing3Modifier.PatchReelVibration().GetEnumerator(); <>1__state = -4; goto IL_024e; case 2: <>1__state = -4; goto IL_024e; case 3: <>1__state = -3; if (!Mod.Config.ControllerVibration || !Mod.Config.ControllerVibrationYank) { break; } <>7__wrap4 = fishing3Modifier.PatchYankVibration().GetEnumerator(); <>1__state = -5; goto IL_02f9; case 4: <>1__state = -5; goto IL_02f9; case 5: { <>1__state = -3; break; } IL_02f9: if (((global::System.Collections.IEnumerator)<>7__wrap4).MoveNext()) { Token current = <>7__wrap4.Current; <>2__current = current; <>1__state = 4; return true; } <>m__Finally3(); <>7__wrap4 = null; break; IL_024e: if (((global::System.Collections.IEnumerator)<>7__wrap4).MoveNext()) { Token current2 = <>7__wrap4.Current; <>2__current = current2; <>1__state = 2; return true; } <>m__Finally2(); <>7__wrap4 = null; break; } if (((global::System.Collections.IEnumerator)<>7__wrap3).MoveNext()) { Token current3 = <>7__wrap3.Current; if (5__2.Check(current3)) { <>2__current = current3; <>1__state = 1; return true; } if (5__3.Check(current3)) { <>2__current = current3; <>1__state = 3; return true; } <>2__current = current3; <>1__state = 5; return true; } <>m__Finally1(); <>7__wrap3 = null; return false; } catch { //try-fault ((global::System.IDisposable)this).Dispose(); throw; } } bool global::System.Collections.IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } private void <>m__Finally1() { <>1__state = -1; if (<>7__wrap3 != null) { ((global::System.IDisposable)<>7__wrap3).Dispose(); } } private void <>m__Finally2() { <>1__state = -3; if (<>7__wrap4 != null) { ((global::System.IDisposable)<>7__wrap4).Dispose(); } } private void <>m__Finally3() { <>1__state = -3; if (<>7__wrap4 != null) { ((global::System.IDisposable)<>7__wrap4).Dispose(); } } [DebuggerHidden] void global::System.Collections.IEnumerator.Reset() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) throw new NotSupportedException(); } [DebuggerHidden] global::System.Collections.Generic.IEnumerator global::System.Collections.Generic.IEnumerable.GetEnumerator() { d__1 d__; if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; d__ = this; } else { d__ = new d__1(0) { <>4__this = <>4__this }; } d__.tokens = <>3__tokens; return d__; } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable)this).GetEnumerator(); } } [CompilerGenerated] private sealed class d__2 : global::System.Collections.Generic.IEnumerable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator, global::System.Collections.IEnumerator, global::System.IDisposable { private int <>1__state; private Token <>2__current; private int <>l__initialThreadId; private global::System.Collections.Generic.IEnumerator <>7__wrap1; Token global::System.Collections.Generic.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public d__2(int <>1__state) { this.<>1__state = <>1__state; <>l__initialThreadId = Environment.CurrentManagedThreadId; } [DebuggerHidden] void global::System.IDisposable.Dispose() { int num = <>1__state; if (num == -3 || num == 17) { try { } finally { <>m__Finally1(); } } } private bool MoveNext() { //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Expected O, but got Unknown //IL_0098: Unknown result type (might be due to invalid IL or missing references) //IL_00a2: Expected O, but got Unknown //IL_00c3: Unknown result type (might be due to invalid IL or missing references) //IL_00cd: Expected O, but got Unknown //IL_00e8: Unknown result type (might be due to invalid IL or missing references) //IL_00f2: Expected O, but got Unknown //IL_0113: Unknown result type (might be due to invalid IL or missing references) //IL_011d: Expected O, but got Unknown //IL_0138: Unknown result type (might be due to invalid IL or missing references) //IL_0142: Expected O, but got Unknown //IL_0163: Unknown result type (might be due to invalid IL or missing references) //IL_016d: Expected O, but got Unknown //IL_0188: Unknown result type (might be due to invalid IL or missing references) //IL_0192: Expected O, but got Unknown //IL_01b3: Unknown result type (might be due to invalid IL or missing references) //IL_01bd: Expected O, but got Unknown //IL_01d9: Unknown result type (might be due to invalid IL or missing references) //IL_01e3: Expected O, but got Unknown //IL_0205: Unknown result type (might be due to invalid IL or missing references) //IL_020f: Expected O, but got Unknown //IL_0229: Unknown result type (might be due to invalid IL or missing references) //IL_0233: Expected O, but got Unknown //IL_022e: Unknown result type (might be due to invalid IL or missing references) //IL_0238: Expected O, but got Unknown //IL_025a: Unknown result type (might be due to invalid IL or missing references) //IL_0264: Expected O, but got Unknown //IL_0286: Unknown result type (might be due to invalid IL or missing references) //IL_0290: Expected O, but got Unknown //IL_02ac: Unknown result type (might be due to invalid IL or missing references) //IL_02b6: Expected O, but got Unknown //IL_02d8: Unknown result type (might be due to invalid IL or missing references) //IL_02e2: Expected O, but got Unknown //IL_0377: Unknown result type (might be due to invalid IL or missing references) //IL_0381: Expected O, but got Unknown try { switch (<>1__state) { default: return false; case 0: <>1__state = -1; <>2__current = new Token((TokenType)38, (uint?)null); <>1__state = 1; return true; case 1: <>1__state = -1; <>2__current = (Token)new IdentifierToken("reeling"); <>1__state = 2; return true; case 2: <>1__state = -1; <>2__current = new Token((TokenType)13, (uint?)null); <>1__state = 3; return true; case 3: <>1__state = -1; <>2__current = (Token)new IdentifierToken("main_progress"); <>1__state = 4; return true; case 4: <>1__state = -1; <>2__current = new Token((TokenType)9, (uint?)null); <>1__state = 5; return true; case 5: <>1__state = -1; <>2__current = (Token)new IdentifierToken("end_goal"); <>1__state = 6; return true; case 6: <>1__state = -1; <>2__current = new Token((TokenType)13, (uint?)null); <>1__state = 7; return true; case 7: <>1__state = -1; <>2__current = (Token)new IdentifierToken("active"); <>1__state = 8; return true; case 8: <>1__state = -1; <>2__current = new Token((TokenType)13, (uint?)null); <>1__state = 9; return true; case 9: <>1__state = -1; <>2__current = (Token)new IdentifierToken("thrash_timer"); <>1__state = 10; return true; case 10: <>1__state = -1; <>2__current = new Token((TokenType)10, (uint?)null); <>1__state = 11; return true; case 11: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(0L, false)); <>1__state = 12; return true; case 12: <>1__state = -1; <>2__current = new Token((TokenType)13, (uint?)null); <>1__state = 13; return true; case 13: <>1__state = -1; <>2__current = new Token((TokenType)15, (uint?)null); <>1__state = 14; return true; case 14: <>1__state = -1; <>2__current = (Token)new IdentifierToken("at_yank"); <>1__state = 15; return true; case 15: <>1__state = -1; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 16; return true; case 16: <>1__state = -1; <>7__wrap1 = VibrateController(0.2, 0.0, 0.1).GetEnumerator(); <>1__state = -3; goto IL_0354; case 17: <>1__state = -3; goto IL_0354; case 18: { <>1__state = -1; return false; } IL_0354: if (((global::System.Collections.IEnumerator)<>7__wrap1).MoveNext()) { Token current = <>7__wrap1.Current; <>2__current = current; <>1__state = 17; return true; } <>m__Finally1(); <>7__wrap1 = null; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 18; return true; } } catch { //try-fault ((global::System.IDisposable)this).Dispose(); throw; } } bool global::System.Collections.IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } private void <>m__Finally1() { <>1__state = -1; if (<>7__wrap1 != null) { ((global::System.IDisposable)<>7__wrap1).Dispose(); } } [DebuggerHidden] void global::System.Collections.IEnumerator.Reset() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) throw new NotSupportedException(); } [DebuggerHidden] global::System.Collections.Generic.IEnumerator global::System.Collections.Generic.IEnumerable.GetEnumerator() { if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; return this; } return new d__2(0); } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable)this).GetEnumerator(); } } [CompilerGenerated] private sealed class d__3 : global::System.Collections.Generic.IEnumerable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator, global::System.Collections.IEnumerator, global::System.IDisposable { private int <>1__state; private Token <>2__current; private int <>l__initialThreadId; private global::System.Collections.Generic.IEnumerator <>7__wrap1; Token global::System.Collections.Generic.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public d__3(int <>1__state) { this.<>1__state = <>1__state; <>l__initialThreadId = Environment.CurrentManagedThreadId; } [DebuggerHidden] void global::System.IDisposable.Dispose() { switch (<>1__state) { case -3: case 9: try { break; } finally { <>m__Finally1(); } case -4: case 14: try { break; } finally { <>m__Finally2(); } } } private bool MoveNext() { //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_0071: Expected O, but got Unknown //IL_008c: Unknown result type (might be due to invalid IL or missing references) //IL_0096: Expected O, but got Unknown //IL_00b7: Unknown result type (might be due to invalid IL or missing references) //IL_00c1: Expected O, but got Unknown //IL_00dc: Unknown result type (might be due to invalid IL or missing references) //IL_00e6: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Expected O, but got Unknown //IL_012a: Unknown result type (might be due to invalid IL or missing references) //IL_0134: Expected O, but got Unknown //IL_012f: Unknown result type (might be due to invalid IL or missing references) //IL_0139: Expected O, but got Unknown //IL_015a: Unknown result type (might be due to invalid IL or missing references) //IL_0164: Expected O, but got Unknown //IL_0182: Unknown result type (might be due to invalid IL or missing references) //IL_018c: Expected O, but got Unknown //IL_024f: Unknown result type (might be due to invalid IL or missing references) //IL_0259: Expected O, but got Unknown //IL_027b: Unknown result type (might be due to invalid IL or missing references) //IL_0285: Expected O, but got Unknown //IL_02a4: Unknown result type (might be due to invalid IL or missing references) //IL_02ae: Expected O, but got Unknown //IL_0223: Unknown result type (might be due to invalid IL or missing references) //IL_022d: Expected O, but got Unknown //IL_0345: Unknown result type (might be due to invalid IL or missing references) //IL_034f: Expected O, but got Unknown try { switch (<>1__state) { default: return false; case 0: <>1__state = -1; <>2__current = new Token((TokenType)38, (uint?)null); <>1__state = 1; return true; case 1: <>1__state = -1; <>2__current = (Token)new IdentifierToken("ys"); <>1__state = 2; return true; case 2: <>1__state = -1; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 3; return true; case 3: <>1__state = -1; <>2__current = (Token)new IdentifierToken("health"); <>1__state = 4; return true; case 4: <>1__state = -1; <>2__current = new Token((TokenType)10, (uint?)null); <>1__state = 5; return true; case 5: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(0L, false)); <>1__state = 6; return true; case 6: <>1__state = -1; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 7; return true; case 7: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)2u); <>1__state = 8; return true; case 8: <>1__state = -1; <>7__wrap1 = VibrateController(0.0, 0.75, 0.2).GetEnumerator(); <>1__state = -3; goto IL_0200; case 9: <>1__state = -3; goto IL_0200; case 10: <>1__state = -1; <>2__current = new Token((TokenType)40, (uint?)null); <>1__state = 11; return true; case 11: <>1__state = -1; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 12; return true; case 12: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)2u); <>1__state = 13; return true; case 13: <>1__state = -1; <>7__wrap1 = VibrateController(0.0, 0.4, 0.2).GetEnumerator(); <>1__state = -4; goto IL_0322; case 14: <>1__state = -4; goto IL_0322; case 15: { <>1__state = -1; return false; } IL_0322: if (((global::System.Collections.IEnumerator)<>7__wrap1).MoveNext()) { Token current = <>7__wrap1.Current; <>2__current = current; <>1__state = 14; return true; } <>m__Finally2(); <>7__wrap1 = null; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 15; return true; IL_0200: if (((global::System.Collections.IEnumerator)<>7__wrap1).MoveNext()) { Token current2 = <>7__wrap1.Current; <>2__current = current2; <>1__state = 9; return true; } <>m__Finally1(); <>7__wrap1 = null; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 10; return true; } } catch { //try-fault ((global::System.IDisposable)this).Dispose(); throw; } } bool global::System.Collections.IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } private void <>m__Finally1() { <>1__state = -1; if (<>7__wrap1 != null) { ((global::System.IDisposable)<>7__wrap1).Dispose(); } } private void <>m__Finally2() { <>1__state = -1; if (<>7__wrap1 != null) { ((global::System.IDisposable)<>7__wrap1).Dispose(); } } [DebuggerHidden] void global::System.Collections.IEnumerator.Reset() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) throw new NotSupportedException(); } [DebuggerHidden] global::System.Collections.Generic.IEnumerator global::System.Collections.Generic.IEnumerable.GetEnumerator() { if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; return this; } return new d__3(0); } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable)this).GetEnumerator(); } } public bool ShouldRun(string path) { return path == "res://Scenes/Minigames/Fishing3/fishing3.gdc"; } [IteratorStateMachine(typeof(d__1))] public global::System.Collections.Generic.IEnumerable Modify(string path, global::System.Collections.Generic.IEnumerable tokens) { MultiTokenWaiter reelSoundWaiter = new MultiTokenWaiter(new Func[3] { (Token t) => (int)t.Type == 59, delegate(Token t) { IdentifierToken val4 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val4 != null && val4.Name == "reel_sound"; }, delegate(Token t) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Invalid comparison between Unknown and I4 if ((int)t.Type == 89) { uint? associatedData2 = t.AssociatedData; if (associatedData2.HasValue) { return associatedData2.GetValueOrDefault() == 1; } return false; } return false; } }, false, true); MultiTokenWaiter yankWaiter = new MultiTokenWaiter(new Func[6] { (Token t) => (int)t.Type == 25, delegate(Token t) { IdentifierToken val3 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val3 != null && val3.Name == "params"; }, (Token t) => (int)t.Type == 76, delegate(Token t) { ConstantToken val = (ConstantToken)(object)((t is ConstantToken) ? t : null); if (val != null) { Variant value = val.Value; StringVariant val2 = (StringVariant)(object)((value is StringVariant) ? value : null); if (val2 != null) { return val2.Value == "damage"; } } return false; }, (Token t) => (int)t.Type == 77, delegate(Token t) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Invalid comparison between Unknown and I4 if ((int)t.Type == 89) { uint? associatedData = t.AssociatedData; if (associatedData.HasValue) { return associatedData.GetValueOrDefault() == 1; } return false; } return false; } }, false, false); global::System.Collections.Generic.IEnumerator enumerator = tokens.GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { Token current = enumerator.Current; if (reelSoundWaiter.Check(current)) { yield return current; if (!Mod.Config.ControllerVibration || !Mod.Config.ControllerVibrationReel) { continue; } global::System.Collections.Generic.IEnumerator enumerator2 = PatchReelVibration().GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator2).MoveNext()) { yield return enumerator2.Current; } } finally { ((global::System.IDisposable)enumerator2)?.Dispose(); } } else if (yankWaiter.Check(current)) { yield return current; if (!Mod.Config.ControllerVibration || !Mod.Config.ControllerVibrationYank) { continue; } global::System.Collections.Generic.IEnumerator enumerator2 = PatchYankVibration().GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator2).MoveNext()) { yield return enumerator2.Current; } } finally { ((global::System.IDisposable)enumerator2)?.Dispose(); } } else { yield return current; } } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } } [IteratorStateMachine(typeof(d__2))] private global::System.Collections.Generic.IEnumerable PatchReelVibration() { yield return new Token((TokenType)38, (uint?)null); yield return (Token)new IdentifierToken("reeling"); yield return new Token((TokenType)13, (uint?)null); yield return (Token)new IdentifierToken("main_progress"); yield return new Token((TokenType)9, (uint?)null); yield return (Token)new IdentifierToken("end_goal"); yield return new Token((TokenType)13, (uint?)null); yield return (Token)new IdentifierToken("active"); yield return new Token((TokenType)13, (uint?)null); yield return (Token)new IdentifierToken("thrash_timer"); yield return new Token((TokenType)10, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(0L, false)); yield return new Token((TokenType)13, (uint?)null); yield return new Token((TokenType)15, (uint?)null); yield return (Token)new IdentifierToken("at_yank"); yield return new Token((TokenType)86, (uint?)null); global::System.Collections.Generic.IEnumerator enumerator = VibrateController(0.2, 0.0, 0.1).GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { yield return enumerator.Current; } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } yield return new Token((TokenType)89, (uint?)1u); } [IteratorStateMachine(typeof(d__3))] private global::System.Collections.Generic.IEnumerable PatchYankVibration() { yield return new Token((TokenType)38, (uint?)null); yield return (Token)new IdentifierToken("ys"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("health"); yield return new Token((TokenType)10, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(0L, false)); yield return new Token((TokenType)86, (uint?)null); yield return new Token((TokenType)89, (uint?)2u); global::System.Collections.Generic.IEnumerator enumerator = VibrateController(0.0, 0.75, 0.2).GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { yield return enumerator.Current; } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } yield return new Token((TokenType)89, (uint?)1u); yield return new Token((TokenType)40, (uint?)null); yield return new Token((TokenType)86, (uint?)null); yield return new Token((TokenType)89, (uint?)2u); enumerator = VibrateController(0.0, 0.4, 0.2).GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { yield return enumerator.Current; } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } yield return new Token((TokenType)89, (uint?)1u); } } public class InputRemapButtonModifier : IScriptMod { [CompilerGenerated] private sealed class d__1 : global::System.Collections.Generic.IEnumerable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator, global::System.Collections.IEnumerator, global::System.IDisposable { private int <>1__state; private Token <>2__current; private int <>l__initialThreadId; private global::System.Collections.Generic.IEnumerable tokens; public global::System.Collections.Generic.IEnumerable <>3__tokens; private TokenWaiter 5__2; private global::System.Collections.Generic.IEnumerator <>7__wrap2; private global::System.Collections.Generic.IEnumerator <>7__wrap3; Token global::System.Collections.Generic.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public d__1(int <>1__state) { this.<>1__state = <>1__state; <>l__initialThreadId = Environment.CurrentManagedThreadId; } [DebuggerHidden] void global::System.IDisposable.Dispose() { int num = <>1__state; if ((uint)(num - -13) > 10u && (uint)(num - 1) > 11u) { return; } try { switch (num) { case -4: case 2: try { break; } finally { <>m__Finally2(); } case -5: case 3: try { break; } finally { <>m__Finally3(); } case -6: case 4: try { break; } finally { <>m__Finally4(); } case -7: case 5: try { break; } finally { <>m__Finally5(); } case -8: case 6: try { break; } finally { <>m__Finally6(); } case -9: case 7: try { break; } finally { <>m__Finally7(); } case -10: case 8: try { break; } finally { <>m__Finally8(); } case -11: case 9: try { break; } finally { <>m__Finally9(); } case -12: case 10: try { break; } finally { <>m__Finally10(); } case -13: case 11: try { break; } finally { <>m__Finally11(); } case -3: case -2: case -1: case 0: case 1: break; } } finally { <>m__Finally1(); } } private bool MoveNext() { //IL_0070: Unknown result type (might be due to invalid IL or missing references) //IL_007a: Expected O, but got Unknown try { switch (<>1__state) { default: return false; case 0: <>1__state = -1; 5__2 = new TokenWaiter((Func)delegate(Token t) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Invalid comparison between Unknown and I4 if ((int)t.Type == 89) { uint? associatedData = t.AssociatedData; if (associatedData.HasValue) { return associatedData.GetValueOrDefault() == 1; } return false; } return false; }, true); <>7__wrap2 = tokens.GetEnumerator(); <>1__state = -3; break; case 1: <>1__state = -3; <>7__wrap3 = Register("move_left", 0, -1).GetEnumerator(); <>1__state = -4; goto IL_0145; case 2: <>1__state = -4; goto IL_0145; case 3: <>1__state = -5; goto IL_01ab; case 4: <>1__state = -6; goto IL_0211; case 5: <>1__state = -7; goto IL_0277; case 6: <>1__state = -8; goto IL_02de; case 7: <>1__state = -9; goto IL_0345; case 8: <>1__state = -10; goto IL_03ac; case 9: <>1__state = -11; goto IL_0413; case 10: <>1__state = -12; goto IL_047a; case 11: <>1__state = -13; goto IL_04df; case 12: { <>1__state = -3; break; } IL_0145: if (((global::System.Collections.IEnumerator)<>7__wrap3).MoveNext()) { Token current = <>7__wrap3.Current; <>2__current = current; <>1__state = 2; return true; } <>m__Finally2(); <>7__wrap3 = null; <>7__wrap3 = Register("move_right", 0, 1).GetEnumerator(); <>1__state = -5; goto IL_01ab; IL_03ac: if (((global::System.Collections.IEnumerator)<>7__wrap3).MoveNext()) { Token current2 = <>7__wrap3.Current; <>2__current = current2; <>1__state = 8; return true; } <>m__Finally8(); <>7__wrap3 = null; <>7__wrap3 = Register("move_jump", 0).GetEnumerator(); <>1__state = -11; goto IL_0413; IL_01ab: if (((global::System.Collections.IEnumerator)<>7__wrap3).MoveNext()) { Token current3 = <>7__wrap3.Current; <>2__current = current3; <>1__state = 3; return true; } <>m__Finally3(); <>7__wrap3 = null; <>7__wrap3 = Register("move_forward", 1, -1).GetEnumerator(); <>1__state = -6; goto IL_0211; IL_0413: if (((global::System.Collections.IEnumerator)<>7__wrap3).MoveNext()) { Token current4 = <>7__wrap3.Current; <>2__current = current4; <>1__state = 9; return true; } <>m__Finally9(); <>7__wrap3 = null; <>7__wrap3 = Register("interact", 2).GetEnumerator(); <>1__state = -12; goto IL_047a; IL_0211: if (((global::System.Collections.IEnumerator)<>7__wrap3).MoveNext()) { Token current5 = <>7__wrap3.Current; <>2__current = current5; <>1__state = 4; return true; } <>m__Finally4(); <>7__wrap3 = null; <>7__wrap3 = Register("move_back", 1, 1).GetEnumerator(); <>1__state = -7; goto IL_0277; IL_047a: if (((global::System.Collections.IEnumerator)<>7__wrap3).MoveNext()) { Token current6 = <>7__wrap3.Current; <>2__current = current6; <>1__state = 10; return true; } <>m__Finally10(); <>7__wrap3 = null; <>7__wrap3 = Register("menu_open", 10).GetEnumerator(); <>1__state = -13; goto IL_04df; IL_0277: if (((global::System.Collections.IEnumerator)<>7__wrap3).MoveNext()) { Token current7 = <>7__wrap3.Current; <>2__current = current7; <>1__state = 5; return true; } <>m__Finally5(); <>7__wrap3 = null; <>7__wrap3 = Register("bait_menu", 12).GetEnumerator(); <>1__state = -8; goto IL_02de; IL_04df: if (((global::System.Collections.IEnumerator)<>7__wrap3).MoveNext()) { Token current8 = <>7__wrap3.Current; <>2__current = current8; <>1__state = 11; return true; } <>m__Finally11(); <>7__wrap3 = null; break; IL_02de: if (((global::System.Collections.IEnumerator)<>7__wrap3).MoveNext()) { Token current9 = <>7__wrap3.Current; <>2__current = current9; <>1__state = 6; return true; } <>m__Finally6(); <>7__wrap3 = null; <>7__wrap3 = Register("emote_wheel", 15).GetEnumerator(); <>1__state = -9; goto IL_0345; IL_0345: if (((global::System.Collections.IEnumerator)<>7__wrap3).MoveNext()) { Token current10 = <>7__wrap3.Current; <>2__current = current10; <>1__state = 7; return true; } <>m__Finally7(); <>7__wrap3 = null; <>7__wrap3 = Register("build", 14).GetEnumerator(); <>1__state = -10; goto IL_03ac; } if (((global::System.Collections.IEnumerator)<>7__wrap2).MoveNext()) { Token current11 = <>7__wrap2.Current; IdentifierToken val = (IdentifierToken)(object)((current11 is IdentifierToken) ? current11 : null); if (val != null && val.Name == "action_add_event") { 5__2.SetReady(); } if (5__2.Check(current11)) { <>2__current = current11; <>1__state = 1; return true; } <>2__current = current11; <>1__state = 12; return true; } <>m__Finally1(); <>7__wrap2 = null; return false; } catch { //try-fault ((global::System.IDisposable)this).Dispose(); throw; } } bool global::System.Collections.IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } private void <>m__Finally1() { <>1__state = -1; if (<>7__wrap2 != null) { ((global::System.IDisposable)<>7__wrap2).Dispose(); } } private void <>m__Finally2() { <>1__state = -3; if (<>7__wrap3 != null) { ((global::System.IDisposable)<>7__wrap3).Dispose(); } } private void <>m__Finally3() { <>1__state = -3; if (<>7__wrap3 != null) { ((global::System.IDisposable)<>7__wrap3).Dispose(); } } private void <>m__Finally4() { <>1__state = -3; if (<>7__wrap3 != null) { ((global::System.IDisposable)<>7__wrap3).Dispose(); } } private void <>m__Finally5() { <>1__state = -3; if (<>7__wrap3 != null) { ((global::System.IDisposable)<>7__wrap3).Dispose(); } } private void <>m__Finally6() { <>1__state = -3; if (<>7__wrap3 != null) { ((global::System.IDisposable)<>7__wrap3).Dispose(); } } private void <>m__Finally7() { <>1__state = -3; if (<>7__wrap3 != null) { ((global::System.IDisposable)<>7__wrap3).Dispose(); } } private void <>m__Finally8() { <>1__state = -3; if (<>7__wrap3 != null) { ((global::System.IDisposable)<>7__wrap3).Dispose(); } } private void <>m__Finally9() { <>1__state = -3; if (<>7__wrap3 != null) { ((global::System.IDisposable)<>7__wrap3).Dispose(); } } private void <>m__Finally10() { <>1__state = -3; if (<>7__wrap3 != null) { ((global::System.IDisposable)<>7__wrap3).Dispose(); } } private void <>m__Finally11() { <>1__state = -3; if (<>7__wrap3 != null) { ((global::System.IDisposable)<>7__wrap3).Dispose(); } } [DebuggerHidden] void global::System.Collections.IEnumerator.Reset() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) throw new NotSupportedException(); } [DebuggerHidden] global::System.Collections.Generic.IEnumerator global::System.Collections.Generic.IEnumerable.GetEnumerator() { d__1 d__; if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; d__ = this; } else { d__ = new d__1(0); } d__.tokens = <>3__tokens; return d__; } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable)this).GetEnumerator(); } } public bool ShouldRun(string path) { return path == "res://Scenes/Singletons/OptionsMenu/input_remap_button.gdc"; } [IteratorStateMachine(typeof(d__1))] public global::System.Collections.Generic.IEnumerable Modify(string path, global::System.Collections.Generic.IEnumerable tokens) { TokenWaiter actionAddEventWaiter = new TokenWaiter((Func)delegate(Token t) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Invalid comparison between Unknown and I4 if ((int)t.Type == 89) { uint? associatedData = t.AssociatedData; if (associatedData.HasValue) { return associatedData.GetValueOrDefault() == 1; } return false; } return false; }, true); global::System.Collections.Generic.IEnumerator enumerator = tokens.GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { Token current = enumerator.Current; IdentifierToken val = (IdentifierToken)(object)((current is IdentifierToken) ? current : null); if (val != null && val.Name == "action_add_event") { actionAddEventWaiter.SetReady(); } if (actionAddEventWaiter.Check(current)) { yield return current; global::System.Collections.Generic.IEnumerator enumerator2 = Register("move_left", 0, -1).GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator2).MoveNext()) { yield return enumerator2.Current; } } finally { ((global::System.IDisposable)enumerator2)?.Dispose(); } enumerator2 = Register("move_right", 0, 1).GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator2).MoveNext()) { yield return enumerator2.Current; } } finally { ((global::System.IDisposable)enumerator2)?.Dispose(); } enumerator2 = Register("move_forward", 1, -1).GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator2).MoveNext()) { yield return enumerator2.Current; } } finally { ((global::System.IDisposable)enumerator2)?.Dispose(); } enumerator2 = Register("move_back", 1, 1).GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator2).MoveNext()) { yield return enumerator2.Current; } } finally { ((global::System.IDisposable)enumerator2)?.Dispose(); } enumerator2 = Register("bait_menu", 12).GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator2).MoveNext()) { yield return enumerator2.Current; } } finally { ((global::System.IDisposable)enumerator2)?.Dispose(); } enumerator2 = Register("emote_wheel", 15).GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator2).MoveNext()) { yield return enumerator2.Current; } } finally { ((global::System.IDisposable)enumerator2)?.Dispose(); } enumerator2 = Register("build", 14).GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator2).MoveNext()) { yield return enumerator2.Current; } } finally { ((global::System.IDisposable)enumerator2)?.Dispose(); } enumerator2 = Register("move_jump", 0).GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator2).MoveNext()) { yield return enumerator2.Current; } } finally { ((global::System.IDisposable)enumerator2)?.Dispose(); } enumerator2 = Register("interact", 2).GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator2).MoveNext()) { yield return enumerator2.Current; } } finally { ((global::System.IDisposable)enumerator2)?.Dispose(); } enumerator2 = Register("menu_open", 10).GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator2).MoveNext()) { yield return enumerator2.Current; } } finally { ((global::System.IDisposable)enumerator2)?.Dispose(); } } else { yield return current; } } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } } } [CompilerGenerated] private sealed class d__24 : global::System.Collections.Generic.IEnumerable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator, global::System.Collections.IEnumerator, global::System.IDisposable { private int <>1__state; private Token <>2__current; private int <>l__initialThreadId; private string map; public string <>3__map; private int code; public int <>3__code; private int axisValue; public int <>3__axisValue; Token global::System.Collections.Generic.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public d__24(int <>1__state) { this.<>1__state = <>1__state; <>l__initialThreadId = Environment.CurrentManagedThreadId; } [DebuggerHidden] void global::System.IDisposable.Dispose() { } private bool MoveNext() { //IL_0066: Unknown result type (might be due to invalid IL or missing references) //IL_0070: Expected O, but got Unknown //IL_008c: Unknown result type (might be due to invalid IL or missing references) //IL_0096: Expected O, but got Unknown //IL_00ac: Unknown result type (might be due to invalid IL or missing references) //IL_00b6: Expected O, but got Unknown //IL_00b1: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Expected O, but got Unknown //IL_00d7: Unknown result type (might be due to invalid IL or missing references) //IL_00e1: Expected O, but got Unknown //IL_00fd: Unknown result type (might be due to invalid IL or missing references) //IL_0107: Expected O, but got Unknown //IL_011d: Unknown result type (might be due to invalid IL or missing references) //IL_0127: Expected O, but got Unknown //IL_0122: Unknown result type (might be due to invalid IL or missing references) //IL_012c: Expected O, but got Unknown //IL_0148: Unknown result type (might be due to invalid IL or missing references) //IL_0152: Expected O, but got Unknown //IL_0168: Unknown result type (might be due to invalid IL or missing references) //IL_0172: Expected O, but got Unknown //IL_018e: Unknown result type (might be due to invalid IL or missing references) //IL_0198: Expected O, but got Unknown //IL_01b0: Unknown result type (might be due to invalid IL or missing references) //IL_01ba: Expected O, but got Unknown //IL_01b5: Unknown result type (might be due to invalid IL or missing references) //IL_01bf: Expected O, but got Unknown //IL_01dc: Unknown result type (might be due to invalid IL or missing references) //IL_01e6: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown //IL_0205: Unknown result type (might be due to invalid IL or missing references) //IL_020f: Expected O, but got Unknown //IL_0258: Unknown result type (might be due to invalid IL or missing references) //IL_0262: Expected O, but got Unknown //IL_025d: Unknown result type (might be due to invalid IL or missing references) //IL_0267: Expected O, but got Unknown //IL_02a8: Unknown result type (might be due to invalid IL or missing references) //IL_02b2: Expected O, but got Unknown //IL_0284: Unknown result type (might be due to invalid IL or missing references) //IL_028e: Expected O, but got Unknown //IL_0234: Unknown result type (might be due to invalid IL or missing references) //IL_023e: Expected O, but got Unknown switch (<>1__state) { default: return false; case 0: <>1__state = -1; <>2__current = new Token((TokenType)38, (uint?)null); <>1__state = 1; return true; case 1: <>1__state = -1; <>2__current = new Token((TokenType)87, (uint?)null); <>1__state = 2; return true; case 2: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("/root/WebfishingPlus")); <>1__state = 3; return true; case 3: <>1__state = -1; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 4; return true; case 4: <>1__state = -1; <>2__current = new Token((TokenType)87, (uint?)null); <>1__state = 5; return true; case 5: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("/root/WebfishingPlus")); <>1__state = 6; return true; case 6: <>1__state = -1; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 7; return true; case 7: <>1__state = -1; <>2__current = (Token)new IdentifierToken("create_controller_action"); <>1__state = 8; return true; case 8: <>1__state = -1; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 9; return true; case 9: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new StringVariant(map)); <>1__state = 10; return true; case 10: <>1__state = -1; <>2__current = new Token((TokenType)82, (uint?)null); <>1__state = 11; return true; case 11: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new IntVariant((long)code, false)); <>1__state = 12; return true; case 12: <>1__state = -1; if (axisValue != 0) { <>2__current = new Token((TokenType)82, (uint?)null); <>1__state = 13; return true; } goto IL_0278; case 13: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new RealVariant((double)axisValue, false)); <>1__state = 14; return true; case 14: <>1__state = -1; goto IL_0278; case 15: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 16; return true; case 16: { <>1__state = -1; return false; } IL_0278: <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 15; return true; } } bool global::System.Collections.IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } [DebuggerHidden] void global::System.Collections.IEnumerator.Reset() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) throw new NotSupportedException(); } [DebuggerHidden] global::System.Collections.Generic.IEnumerator global::System.Collections.Generic.IEnumerable.GetEnumerator() { d__24 d__; if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; d__ = this; } else { d__ = new d__24(0); } d__.map = <>3__map; d__.code = <>3__code; d__.axisValue = <>3__axisValue; return d__; } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable)this).GetEnumerator(); } } [CompilerGenerated] private sealed class d__26 : global::System.Collections.Generic.IEnumerable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator, global::System.Collections.IEnumerator, global::System.IDisposable { private int <>1__state; private Token <>2__current; private int <>l__initialThreadId; private double weak; public double <>3__weak; private double strong; public double <>3__strong; private double duration; public double <>3__duration; Token global::System.Collections.Generic.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public d__26(int <>1__state) { this.<>1__state = <>1__state; <>l__initialThreadId = Environment.CurrentManagedThreadId; } [DebuggerHidden] void global::System.IDisposable.Dispose() { } private bool MoveNext() { //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_0076: Unknown result type (might be due to invalid IL or missing references) //IL_0080: Expected O, but got Unknown //IL_0096: Unknown result type (might be due to invalid IL or missing references) //IL_00a0: Expected O, but got Unknown //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_00c6: Expected O, but got Unknown //IL_00da: Unknown result type (might be due to invalid IL or missing references) //IL_00e4: Expected O, but got Unknown //IL_00df: Unknown result type (might be due to invalid IL or missing references) //IL_00e9: Expected O, but got Unknown //IL_0105: Unknown result type (might be due to invalid IL or missing references) //IL_010f: Expected O, but got Unknown //IL_012c: Unknown result type (might be due to invalid IL or missing references) //IL_0136: Expected O, but got Unknown //IL_0131: Unknown result type (might be due to invalid IL or missing references) //IL_013b: Expected O, but got Unknown //IL_0157: Unknown result type (might be due to invalid IL or missing references) //IL_0161: Expected O, but got Unknown //IL_017e: Unknown result type (might be due to invalid IL or missing references) //IL_0188: Expected O, but got Unknown //IL_0183: Unknown result type (might be due to invalid IL or missing references) //IL_018d: Expected O, but got Unknown //IL_01aa: Unknown result type (might be due to invalid IL or missing references) //IL_01b4: Expected O, but got Unknown //IL_01cd: Unknown result type (might be due to invalid IL or missing references) //IL_01d7: Expected O, but got Unknown //IL_01d2: Unknown result type (might be due to invalid IL or missing references) //IL_01dc: Expected O, but got Unknown //IL_01f9: Unknown result type (might be due to invalid IL or missing references) //IL_0203: Expected O, but got Unknown switch (<>1__state) { default: return false; case 0: <>1__state = -1; <>2__current = (Token)new IdentifierToken("Input"); <>1__state = 1; return true; case 1: <>1__state = -1; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 2; return true; case 2: <>1__state = -1; <>2__current = (Token)new IdentifierToken("start_joy_vibration"); <>1__state = 3; return true; case 3: <>1__state = -1; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 4; return true; case 4: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(0L, false)); <>1__state = 5; return true; case 5: <>1__state = -1; <>2__current = new Token((TokenType)82, (uint?)null); <>1__state = 6; return true; case 6: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new RealVariant(CalcVibration(weak), false)); <>1__state = 7; return true; case 7: <>1__state = -1; <>2__current = new Token((TokenType)82, (uint?)null); <>1__state = 8; return true; case 8: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new RealVariant(CalcVibration(strong), false)); <>1__state = 9; return true; case 9: <>1__state = -1; <>2__current = new Token((TokenType)82, (uint?)null); <>1__state = 10; return true; case 10: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new RealVariant(duration, false)); <>1__state = 11; return true; case 11: <>1__state = -1; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 12; return true; case 12: <>1__state = -1; return false; } } bool global::System.Collections.IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } [DebuggerHidden] void global::System.Collections.IEnumerator.Reset() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) throw new NotSupportedException(); } [DebuggerHidden] global::System.Collections.Generic.IEnumerator global::System.Collections.Generic.IEnumerable.GetEnumerator() { d__26 d__; if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; d__ = this; } else { d__ = new d__26(0); } d__.weak = <>3__weak; d__.strong = <>3__strong; d__.duration = <>3__duration; return d__; } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable)this).GetEnumerator(); } } private const string LookLeft = "joy_look_left"; private const string LookRight = "joy_look_right"; private const string LookUp = "joy_look_up"; private const string LookDown = "joy_look_down"; private const string ZoomControl = "joy_zoom_control"; private const string TabNext = "joy_tab_next"; private const string TabPrevious = "joy_tab_prev"; private const string ToggleSprint = "joy_toggle_sprint"; private const string ToggleWalk = "joy_toggle_walk"; private const string MoveLeft = "move_left"; private const string MoveRight = "move_right"; private const string MoveForward = "move_forward"; private const string MoveBack = "move_back"; private const string MoveJump = "move_jump"; private const string Interact = "interact"; private const string MenuOpen = "menu_open"; private const string BaitMenu = "bait_menu"; private const string EmoteWheel = "emote_wheel"; private const string Build = "build"; [IteratorStateMachine(typeof(d__24))] private static global::System.Collections.Generic.IEnumerable Register(string map, int code, int axisValue = 0) { yield return new Token((TokenType)38, (uint?)null); yield return new Token((TokenType)87, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("/root/WebfishingPlus")); yield return new Token((TokenType)86, (uint?)null); yield return new Token((TokenType)87, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("/root/WebfishingPlus")); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("create_controller_action"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant(map)); yield return new Token((TokenType)82, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant((long)code, false)); if (axisValue != 0) { yield return new Token((TokenType)82, (uint?)null); yield return (Token)new ConstantToken((Variant)new RealVariant((double)axisValue, false)); } yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); } private static double CalcVibration(double toCalc) { return Math.Clamp(toCalc * Mod.Config.ControllerVibrationStrength, 0.0, 1.0); } [IteratorStateMachine(typeof(d__26))] private static global::System.Collections.Generic.IEnumerable VibrateController(double weak, double strong, double duration) { yield return (Token)new IdentifierToken("Input"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("start_joy_vibration"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(0L, false)); yield return new Token((TokenType)82, (uint?)null); yield return (Token)new ConstantToken((Variant)new RealVariant(CalcVibration(weak), false)); yield return new Token((TokenType)82, (uint?)null); yield return (Token)new ConstantToken((Variant)new RealVariant(CalcVibration(strong), false)); yield return new Token((TokenType)82, (uint?)null); yield return (Token)new ConstantToken((Variant)new RealVariant(duration, false)); yield return new Token((TokenType)81, (uint?)null); } } public class FixHotbar : IScriptMod { [CompilerGenerated] private sealed class d__1 : global::System.Collections.Generic.IEnumerable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator, global::System.Collections.IEnumerator, global::System.IDisposable { private int <>1__state; private Token <>2__current; private int <>l__initialThreadId; private global::System.Collections.Generic.IEnumerable tokens; public global::System.Collections.Generic.IEnumerable <>3__tokens; private MultiTokenWaiter 5__2; private MultiTokenWaiter 5__3; private global::System.Collections.Generic.IEnumerator <>7__wrap3; Token global::System.Collections.Generic.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public d__1(int <>1__state) { this.<>1__state = <>1__state; <>l__initialThreadId = Environment.CurrentManagedThreadId; } [DebuggerHidden] void global::System.IDisposable.Dispose() { int num = <>1__state; if (num == -3 || (uint)(num - 1) <= 38u) { try { } finally { <>m__Finally1(); } } } private bool MoveNext() { //IL_0338: Unknown result type (might be due to invalid IL or missing references) //IL_0342: Expected O, but got Unknown //IL_035e: Unknown result type (might be due to invalid IL or missing references) //IL_0368: Expected O, but got Unknown //IL_038a: Unknown result type (might be due to invalid IL or missing references) //IL_0394: Expected O, but got Unknown //IL_03ae: Unknown result type (might be due to invalid IL or missing references) //IL_03b8: Expected O, but got Unknown //IL_03b3: Unknown result type (might be due to invalid IL or missing references) //IL_03bd: Expected O, but got Unknown //IL_03dc: Unknown result type (might be due to invalid IL or missing references) //IL_03e6: Expected O, but got Unknown //IL_0408: Unknown result type (might be due to invalid IL or missing references) //IL_0412: Expected O, but got Unknown //IL_042e: Unknown result type (might be due to invalid IL or missing references) //IL_0438: Expected O, but got Unknown //IL_045b: Unknown result type (might be due to invalid IL or missing references) //IL_0465: Expected O, but got Unknown //IL_0485: Unknown result type (might be due to invalid IL or missing references) //IL_048f: Expected O, but got Unknown //IL_04b2: Unknown result type (might be due to invalid IL or missing references) //IL_04bc: Expected O, but got Unknown //IL_04d9: Unknown result type (might be due to invalid IL or missing references) //IL_04e3: Expected O, but got Unknown //IL_0505: Unknown result type (might be due to invalid IL or missing references) //IL_050f: Expected O, but got Unknown //IL_052c: Unknown result type (might be due to invalid IL or missing references) //IL_0536: Expected O, but got Unknown //IL_0559: Unknown result type (might be due to invalid IL or missing references) //IL_0563: Expected O, but got Unknown //IL_0583: Unknown result type (might be due to invalid IL or missing references) //IL_058d: Expected O, but got Unknown //IL_05b0: Unknown result type (might be due to invalid IL or missing references) //IL_05ba: Expected O, but got Unknown //IL_05d7: Unknown result type (might be due to invalid IL or missing references) //IL_05e1: Expected O, but got Unknown //IL_0604: Unknown result type (might be due to invalid IL or missing references) //IL_060e: Expected O, but got Unknown //IL_062b: Unknown result type (might be due to invalid IL or missing references) //IL_0635: Expected O, but got Unknown //IL_0630: Unknown result type (might be due to invalid IL or missing references) //IL_063a: Expected O, but got Unknown //IL_065d: Unknown result type (might be due to invalid IL or missing references) //IL_0667: Expected O, but got Unknown //IL_0689: Unknown result type (might be due to invalid IL or missing references) //IL_0693: Expected O, but got Unknown //IL_06b0: Unknown result type (might be due to invalid IL or missing references) //IL_06ba: Expected O, but got Unknown //IL_06dd: Unknown result type (might be due to invalid IL or missing references) //IL_06e7: Expected O, but got Unknown //IL_0704: Unknown result type (might be due to invalid IL or missing references) //IL_070e: Expected O, but got Unknown //IL_0709: Unknown result type (might be due to invalid IL or missing references) //IL_0713: Expected O, but got Unknown //IL_0736: Unknown result type (might be due to invalid IL or missing references) //IL_0740: Expected O, but got Unknown //IL_0763: Unknown result type (might be due to invalid IL or missing references) //IL_076d: Expected O, but got Unknown //IL_078d: Unknown result type (might be due to invalid IL or missing references) //IL_0797: Expected O, but got Unknown //IL_07b4: Unknown result type (might be due to invalid IL or missing references) //IL_07be: Expected O, but got Unknown //IL_07e1: Unknown result type (might be due to invalid IL or missing references) //IL_07eb: Expected O, but got Unknown //IL_0808: Unknown result type (might be due to invalid IL or missing references) //IL_0812: Expected O, but got Unknown //IL_0835: Unknown result type (might be due to invalid IL or missing references) //IL_083f: Expected O, but got Unknown //IL_085c: Unknown result type (might be due to invalid IL or missing references) //IL_0866: Expected O, but got Unknown //IL_0861: Unknown result type (might be due to invalid IL or missing references) //IL_086b: Expected O, but got Unknown //IL_088e: Unknown result type (might be due to invalid IL or missing references) //IL_0898: Expected O, but got Unknown //IL_08b8: Unknown result type (might be due to invalid IL or missing references) //IL_08c2: Expected O, but got Unknown //IL_08e5: Unknown result type (might be due to invalid IL or missing references) //IL_08ef: Expected O, but got Unknown //IL_090c: Unknown result type (might be due to invalid IL or missing references) //IL_0916: Expected O, but got Unknown //IL_02d9: Unknown result type (might be due to invalid IL or missing references) //IL_02e3: Expected O, but got Unknown //IL_01b2: Unknown result type (might be due to invalid IL or missing references) //IL_01bc: Expected O, but got Unknown //IL_0291: Unknown result type (might be due to invalid IL or missing references) //IL_029b: Expected O, but got Unknown try { switch (<>1__state) { default: return false; case 0: <>1__state = -1; 5__2 = new MultiTokenWaiter(new Func[7] { delegate(Token t) { IdentifierToken val7 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val7 != null && val7.Name == "inventory"; }, (Token t) => (int)t.Type == 84, delegate(Token t) { IdentifierToken val6 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val6 != null && val6.Name == "erase"; }, (Token t) => (int)t.Type == 80, delegate(Token t) { IdentifierToken val5 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val5 != null && val5.Name == "item"; }, (Token t) => (int)t.Type == 81, (Token t) => (int)t.Type == 89 }, false, false); 5__3 = new MultiTokenWaiter(new Func[6] { delegate(Token t) { IdentifierToken val4 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val4 != null && val4.Name == "hotbar"; }, (Token t) => (int)t.Type == 76, delegate(Token t) { IdentifierToken val3 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val3 != null && val3.Name == "key"; }, (Token t) => (int)t.Type == 77, (Token t) => (int)t.Type == 23, delegate(Token t) { ConstantToken val = (ConstantToken)(object)((t is ConstantToken) ? t : null); if (val != null) { Variant value = val.Value; IntVariant val2 = (IntVariant)(object)((value is IntVariant) ? value : null); if (val2 != null) { return val2.Value == 0; } } return false; } }, false, false); <>7__wrap3 = tokens.GetEnumerator(); <>1__state = -3; break; case 1: <>1__state = -3; break; case 2: <>1__state = -3; <>2__current = new Token((TokenType)59, (uint?)null); <>1__state = 3; return true; case 3: <>1__state = -3; <>2__current = (Token)new IdentifierToken("gdweave_replace"); <>1__state = 4; return true; case 4: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 5; return true; case 5: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(0L, false)); <>1__state = 6; return true; case 6: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 7; return true; case 7: <>1__state = -3; <>2__current = new Token((TokenType)38, (uint?)null); <>1__state = 8; return true; case 8: <>1__state = -3; <>2__current = (Token)new IdentifierToken("item"); <>1__state = 9; return true; case 9: <>1__state = -3; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 10; return true; case 10: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)2u); <>1__state = 11; return true; case 11: <>1__state = -3; <>2__current = new Token((TokenType)41, (uint?)null); <>1__state = 12; return true; case 12: <>1__state = -3; <>2__current = (Token)new IdentifierToken("i"); <>1__state = 13; return true; case 13: <>1__state = -3; <>2__current = new Token((TokenType)6, (uint?)null); <>1__state = 14; return true; case 14: <>1__state = -3; <>2__current = (Token)new IdentifierToken("inventory"); <>1__state = 15; return true; case 15: <>1__state = -3; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 16; return true; case 16: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)3u); <>1__state = 17; return true; case 17: <>1__state = -3; <>2__current = new Token((TokenType)38, (uint?)null); <>1__state = 18; return true; case 18: <>1__state = -3; <>2__current = (Token)new IdentifierToken("i"); <>1__state = 19; return true; case 19: <>1__state = -3; <>2__current = new Token((TokenType)76, (uint?)null); <>1__state = 20; return true; case 20: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("id")); <>1__state = 21; return true; case 21: <>1__state = -3; <>2__current = new Token((TokenType)77, (uint?)null); <>1__state = 22; return true; case 22: <>1__state = -3; <>2__current = new Token((TokenType)7, (uint?)null); <>1__state = 23; return true; case 23: <>1__state = -3; <>2__current = (Token)new IdentifierToken("item"); <>1__state = 24; return true; case 24: <>1__state = -3; <>2__current = new Token((TokenType)76, (uint?)null); <>1__state = 25; return true; case 25: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("id")); <>1__state = 26; return true; case 26: <>1__state = -3; <>2__current = new Token((TokenType)77, (uint?)null); <>1__state = 27; return true; case 27: <>1__state = -3; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 28; return true; case 28: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)4u); <>1__state = 29; return true; case 29: <>1__state = -3; <>2__current = (Token)new IdentifierToken("gdweave_replace"); <>1__state = 30; return true; case 30: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 31; return true; case 31: <>1__state = -3; <>2__current = (Token)new IdentifierToken("i"); <>1__state = 32; return true; case 32: <>1__state = -3; <>2__current = new Token((TokenType)76, (uint?)null); <>1__state = 33; return true; case 33: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("ref")); <>1__state = 34; return true; case 34: <>1__state = -3; <>2__current = new Token((TokenType)77, (uint?)null); <>1__state = 35; return true; case 35: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)4u); <>1__state = 36; return true; case 36: <>1__state = -3; <>2__current = new Token((TokenType)43, (uint?)null); <>1__state = 37; return true; case 37: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 38; return true; case 38: <>1__state = -3; break; case 39: <>1__state = -3; break; } if (((global::System.Collections.IEnumerator)<>7__wrap3).MoveNext()) { Token current = <>7__wrap3.Current; if (5__3.Check(current)) { <>2__current = (Token)new IdentifierToken("gdweave_replace"); <>1__state = 1; return true; } if (5__2.Check(current)) { <>2__current = current; <>1__state = 2; return true; } <>2__current = current; <>1__state = 39; return true; } <>m__Finally1(); <>7__wrap3 = null; return false; } catch { //try-fault ((global::System.IDisposable)this).Dispose(); throw; } } bool global::System.Collections.IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } private void <>m__Finally1() { <>1__state = -1; if (<>7__wrap3 != null) { ((global::System.IDisposable)<>7__wrap3).Dispose(); } } [DebuggerHidden] void global::System.Collections.IEnumerator.Reset() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) throw new NotSupportedException(); } [DebuggerHidden] global::System.Collections.Generic.IEnumerator global::System.Collections.Generic.IEnumerable.GetEnumerator() { d__1 d__; if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; d__ = this; } else { d__ = new d__1(0); } d__.tokens = <>3__tokens; return d__; } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable)this).GetEnumerator(); } } public bool ShouldRun(string path) { return path == "res://Scenes/Singletons/playerdata.gdc"; } [IteratorStateMachine(typeof(d__1))] public global::System.Collections.Generic.IEnumerable Modify(string path, global::System.Collections.Generic.IEnumerable tokens) { MultiTokenWaiter eraseMatch = new MultiTokenWaiter(new Func[7] { delegate(Token t) { IdentifierToken val7 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val7 != null && val7.Name == "inventory"; }, (Token t) => (int)t.Type == 84, delegate(Token t) { IdentifierToken val6 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val6 != null && val6.Name == "erase"; }, (Token t) => (int)t.Type == 80, delegate(Token t) { IdentifierToken val5 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val5 != null && val5.Name == "item"; }, (Token t) => (int)t.Type == 81, (Token t) => (int)t.Type == 89 }, false, false); MultiTokenWaiter zeroMatch = new MultiTokenWaiter(new Func[6] { delegate(Token t) { IdentifierToken val4 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val4 != null && val4.Name == "hotbar"; }, (Token t) => (int)t.Type == 76, delegate(Token t) { IdentifierToken val3 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val3 != null && val3.Name == "key"; }, (Token t) => (int)t.Type == 77, (Token t) => (int)t.Type == 23, delegate(Token t) { ConstantToken val = (ConstantToken)(object)((t is ConstantToken) ? t : null); if (val != null) { Variant value = val.Value; IntVariant val2 = (IntVariant)(object)((value is IntVariant) ? value : null); if (val2 != null) { return val2.Value == 0; } } return false; } }, false, false); global::System.Collections.Generic.IEnumerator enumerator = tokens.GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { Token current = enumerator.Current; if (zeroMatch.Check(current)) { yield return (Token)new IdentifierToken("gdweave_replace"); } else if (eraseMatch.Check(current)) { yield return current; yield return new Token((TokenType)59, (uint?)null); yield return (Token)new IdentifierToken("gdweave_replace"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(0L, false)); yield return new Token((TokenType)89, (uint?)1u); yield return new Token((TokenType)38, (uint?)null); yield return (Token)new IdentifierToken("item"); yield return new Token((TokenType)86, (uint?)null); yield return new Token((TokenType)89, (uint?)2u); yield return new Token((TokenType)41, (uint?)null); yield return (Token)new IdentifierToken("i"); yield return new Token((TokenType)6, (uint?)null); yield return (Token)new IdentifierToken("inventory"); yield return new Token((TokenType)86, (uint?)null); yield return new Token((TokenType)89, (uint?)3u); yield return new Token((TokenType)38, (uint?)null); yield return (Token)new IdentifierToken("i"); yield return new Token((TokenType)76, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("id")); yield return new Token((TokenType)77, (uint?)null); yield return new Token((TokenType)7, (uint?)null); yield return (Token)new IdentifierToken("item"); yield return new Token((TokenType)76, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("id")); yield return new Token((TokenType)77, (uint?)null); yield return new Token((TokenType)86, (uint?)null); yield return new Token((TokenType)89, (uint?)4u); yield return (Token)new IdentifierToken("gdweave_replace"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new IdentifierToken("i"); yield return new Token((TokenType)76, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("ref")); yield return new Token((TokenType)77, (uint?)null); yield return new Token((TokenType)89, (uint?)4u); yield return new Token((TokenType)43, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); } else { yield return current; } } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } } } public class InventorySorter : IScriptMod { [CompilerGenerated] private sealed class d__2 : global::System.Collections.Generic.IEnumerable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator, global::System.Collections.IEnumerator, global::System.IDisposable { private int <>1__state; private Token <>2__current; private int <>l__initialThreadId; Token global::System.Collections.Generic.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public d__2(int <>1__state) { this.<>1__state = <>1__state; <>l__initialThreadId = Environment.CurrentManagedThreadId; } [DebuggerHidden] void global::System.IDisposable.Dispose() { } private bool MoveNext() { //IL_008a: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Expected O, but got Unknown //IL_00aa: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Expected O, but got Unknown //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00da: Expected O, but got Unknown //IL_00f3: Unknown result type (might be due to invalid IL or missing references) //IL_00fd: Expected O, but got Unknown //IL_0119: Unknown result type (might be due to invalid IL or missing references) //IL_0123: Expected O, but got Unknown //IL_013f: Unknown result type (might be due to invalid IL or missing references) //IL_0149: Expected O, but got Unknown //IL_015f: Unknown result type (might be due to invalid IL or missing references) //IL_0169: Expected O, but got Unknown //IL_0185: Unknown result type (might be due to invalid IL or missing references) //IL_018f: Expected O, but got Unknown //IL_01a5: Unknown result type (might be due to invalid IL or missing references) //IL_01af: Expected O, but got Unknown //IL_01cc: Unknown result type (might be due to invalid IL or missing references) //IL_01d6: Expected O, but got Unknown //IL_01ed: Unknown result type (might be due to invalid IL or missing references) //IL_01f7: Expected O, but got Unknown //IL_0214: Unknown result type (might be due to invalid IL or missing references) //IL_021e: Expected O, but got Unknown //IL_023b: Unknown result type (might be due to invalid IL or missing references) //IL_0245: Expected O, but got Unknown //IL_025f: Unknown result type (might be due to invalid IL or missing references) //IL_0269: Expected O, but got Unknown //IL_0286: Unknown result type (might be due to invalid IL or missing references) //IL_0290: Expected O, but got Unknown //IL_02a7: Unknown result type (might be due to invalid IL or missing references) //IL_02b1: Expected O, but got Unknown //IL_02ce: Unknown result type (might be due to invalid IL or missing references) //IL_02d8: Expected O, but got Unknown //IL_02ef: Unknown result type (might be due to invalid IL or missing references) //IL_02f9: Expected O, but got Unknown //IL_02f4: Unknown result type (might be due to invalid IL or missing references) //IL_02fe: Expected O, but got Unknown //IL_031b: Unknown result type (might be due to invalid IL or missing references) //IL_0325: Expected O, but got Unknown //IL_0342: Unknown result type (might be due to invalid IL or missing references) //IL_034c: Expected O, but got Unknown //IL_0363: Unknown result type (might be due to invalid IL or missing references) //IL_036d: Expected O, but got Unknown //IL_038a: Unknown result type (might be due to invalid IL or missing references) //IL_0394: Expected O, but got Unknown //IL_03ab: Unknown result type (might be due to invalid IL or missing references) //IL_03b5: Expected O, but got Unknown //IL_03b0: Unknown result type (might be due to invalid IL or missing references) //IL_03ba: Expected O, but got Unknown //IL_03d7: Unknown result type (might be due to invalid IL or missing references) //IL_03e1: Expected O, but got Unknown //IL_03fe: Unknown result type (might be due to invalid IL or missing references) //IL_0408: Expected O, but got Unknown switch (<>1__state) { default: return false; case 0: <>1__state = -1; <>2__current = new Token((TokenType)49, (uint?)null); <>1__state = 1; return true; case 1: <>1__state = -1; <>2__current = (Token)new IdentifierToken("InventorySorter"); <>1__state = 2; return true; case 2: <>1__state = -1; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 3; return true; case 3: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 4; return true; case 4: <>1__state = -1; <>2__current = new Token((TokenType)55, (uint?)null); <>1__state = 5; return true; case 5: <>1__state = -1; <>2__current = new Token((TokenType)48, (uint?)null); <>1__state = 6; return true; case 6: <>1__state = -1; <>2__current = (Token)new IdentifierToken("sort_inventory"); <>1__state = 7; return true; case 7: <>1__state = -1; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 8; return true; case 8: <>1__state = -1; <>2__current = (Token)new IdentifierToken("a"); <>1__state = 9; return true; case 9: <>1__state = -1; <>2__current = new Token((TokenType)82, (uint?)null); <>1__state = 10; return true; case 10: <>1__state = -1; <>2__current = (Token)new IdentifierToken("b"); <>1__state = 11; return true; case 11: <>1__state = -1; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 12; return true; case 12: <>1__state = -1; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 13; return true; case 13: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)2u); <>1__state = 14; return true; case 14: <>1__state = -1; <>2__current = new Token((TokenType)46, (uint?)null); <>1__state = 15; return true; case 15: <>1__state = -1; <>2__current = (Token)new IdentifierToken("a"); <>1__state = 16; return true; case 16: <>1__state = -1; <>2__current = new Token((TokenType)76, (uint?)null); <>1__state = 17; return true; case 17: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("id")); <>1__state = 18; return true; case 18: <>1__state = -1; <>2__current = new Token((TokenType)77, (uint?)null); <>1__state = 19; return true; case 19: <>1__state = -1; <>2__current = new Token((TokenType)9, (uint?)null); <>1__state = 20; return true; case 20: <>1__state = -1; <>2__current = (Token)new IdentifierToken("b"); <>1__state = 21; return true; case 21: <>1__state = -1; <>2__current = new Token((TokenType)76, (uint?)null); <>1__state = 22; return true; case 22: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("id")); <>1__state = 23; return true; case 23: <>1__state = -1; <>2__current = new Token((TokenType)77, (uint?)null); <>1__state = 24; return true; case 24: <>1__state = -1; <>2__current = new Token((TokenType)89, (uint?)null); <>1__state = 25; return true; case 25: <>1__state = -1; return false; } } bool global::System.Collections.IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } [DebuggerHidden] void global::System.Collections.IEnumerator.Reset() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) throw new NotSupportedException(); } [DebuggerHidden] global::System.Collections.Generic.IEnumerator global::System.Collections.Generic.IEnumerable.GetEnumerator() { if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; return this; } return new d__2(0); } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable)this).GetEnumerator(); } } [CompilerGenerated] private sealed class d__4 : global::System.Collections.Generic.IEnumerable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator, global::System.Collections.IEnumerator, global::System.IDisposable { private int <>1__state; private Token <>2__current; private int <>l__initialThreadId; Token global::System.Collections.Generic.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public d__4(int <>1__state) { this.<>1__state = <>1__state; <>l__initialThreadId = Environment.CurrentManagedThreadId; } [DebuggerHidden] void global::System.IDisposable.Dispose() { } private bool MoveNext() { //IL_0034: Unknown result type (might be due to invalid IL or missing references) //IL_003e: Expected O, but got Unknown //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown //IL_007a: Unknown result type (might be due to invalid IL or missing references) //IL_0084: Expected O, but got Unknown //IL_00a0: Unknown result type (might be due to invalid IL or missing references) //IL_00aa: Expected O, but got Unknown //IL_00c6: Unknown result type (might be due to invalid IL or missing references) //IL_00d0: Expected O, but got Unknown switch (<>1__state) { default: return false; case 0: <>1__state = -1; <>2__current = (Token)new IdentifierToken("cosmetics_unlocked"); <>1__state = 1; return true; case 1: <>1__state = -1; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 2; return true; case 2: <>1__state = -1; <>2__current = (Token)new IdentifierToken("sort"); <>1__state = 3; return true; case 3: <>1__state = -1; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 4; return true; case 4: <>1__state = -1; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 5; return true; case 5: <>1__state = -1; return false; } } bool global::System.Collections.IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } [DebuggerHidden] void global::System.Collections.IEnumerator.Reset() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) throw new NotSupportedException(); } [DebuggerHidden] global::System.Collections.Generic.IEnumerator global::System.Collections.Generic.IEnumerable.GetEnumerator() { if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; return this; } return new d__4(0); } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable)this).GetEnumerator(); } } [CompilerGenerated] private sealed class d__3 : global::System.Collections.Generic.IEnumerable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator, global::System.Collections.IEnumerator, global::System.IDisposable { private int <>1__state; private Token <>2__current; private int <>l__initialThreadId; Token global::System.Collections.Generic.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public d__3(int <>1__state) { this.<>1__state = <>1__state; <>l__initialThreadId = Environment.CurrentManagedThreadId; } [DebuggerHidden] void global::System.IDisposable.Dispose() { } private bool MoveNext() { //IL_0040: Unknown result type (might be due to invalid IL or missing references) //IL_004a: Expected O, but got Unknown //IL_0066: Unknown result type (might be due to invalid IL or missing references) //IL_0070: Expected O, but got Unknown //IL_0086: Unknown result type (might be due to invalid IL or missing references) //IL_0090: Expected O, but got Unknown //IL_00ac: Unknown result type (might be due to invalid IL or missing references) //IL_00b6: Expected O, but got Unknown //IL_00cc: Unknown result type (might be due to invalid IL or missing references) //IL_00d6: Expected O, but got Unknown //IL_00f2: Unknown result type (might be due to invalid IL or missing references) //IL_00fc: Expected O, but got Unknown //IL_0112: Unknown result type (might be due to invalid IL or missing references) //IL_011c: Expected O, but got Unknown //IL_0117: Unknown result type (might be due to invalid IL or missing references) //IL_0121: Expected O, but got Unknown //IL_013d: Unknown result type (might be due to invalid IL or missing references) //IL_0147: Expected O, but got Unknown switch (<>1__state) { default: return false; case 0: <>1__state = -1; <>2__current = (Token)new IdentifierToken("inventory"); <>1__state = 1; return true; case 1: <>1__state = -1; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 2; return true; case 2: <>1__state = -1; <>2__current = (Token)new IdentifierToken("sort_custom"); <>1__state = 3; return true; case 3: <>1__state = -1; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 4; return true; case 4: <>1__state = -1; <>2__current = (Token)new IdentifierToken("InventorySorter"); <>1__state = 5; return true; case 5: <>1__state = -1; <>2__current = new Token((TokenType)82, (uint?)null); <>1__state = 6; return true; case 6: <>1__state = -1; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("sort_inventory")); <>1__state = 7; return true; case 7: <>1__state = -1; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 8; return true; case 8: <>1__state = -1; return false; } } bool global::System.Collections.IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } [DebuggerHidden] void global::System.Collections.IEnumerator.Reset() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) throw new NotSupportedException(); } [DebuggerHidden] global::System.Collections.Generic.IEnumerator global::System.Collections.Generic.IEnumerable.GetEnumerator() { if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; return this; } return new d__3(0); } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable)this).GetEnumerator(); } } [CompilerGenerated] private sealed class d__1 : global::System.Collections.Generic.IEnumerable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator, global::System.Collections.IEnumerator, global::System.IDisposable { private int <>1__state; private Token <>2__current; private int <>l__initialThreadId; private global::System.Collections.Generic.IEnumerable tokens; public global::System.Collections.Generic.IEnumerable <>3__tokens; public InventorySorter <>4__this; private MultiTokenWaiter 5__2; private MultiTokenWaiter 5__3; private MultiTokenWaiter 5__4; private TokenWaiter 5__5; private TokenWaiter 5__6; private bool 5__7; private bool 5__8; private global::System.Collections.Generic.IEnumerator <>7__wrap8; private Token 5__10; private global::System.Collections.Generic.IEnumerator <>7__wrap10; Token global::System.Collections.Generic.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public d__1(int <>1__state) { this.<>1__state = <>1__state; <>l__initialThreadId = Environment.CurrentManagedThreadId; } [DebuggerHidden] void global::System.IDisposable.Dispose() { int num = <>1__state; if ((uint)(num - -6) > 3u && (uint)(num - 1) > 10u) { return; } try { switch (num) { case -4: case 2: try { break; } finally { <>m__Finally2(); } case -5: case 7: try { break; } finally { <>m__Finally3(); } case -6: case 9: try { break; } finally { <>m__Finally4(); } } } finally { <>m__Finally1(); } } private bool MoveNext() { //IL_009f: Unknown result type (might be due to invalid IL or missing references) //IL_00a9: Expected O, but got Unknown //IL_013a: Unknown result type (might be due to invalid IL or missing references) //IL_0144: Expected O, but got Unknown //IL_01d5: Unknown result type (might be due to invalid IL or missing references) //IL_01df: Expected O, but got Unknown //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Expected O, but got Unknown //IL_022b: Unknown result type (might be due to invalid IL or missing references) //IL_0235: Expected O, but got Unknown try { int num = <>1__state; InventorySorter inventorySorter = <>4__this; switch (num) { default: return false; case 0: <>1__state = -1; 5__2 = new MultiTokenWaiter(new Func[2] { (Token t) => (int)t.Type == 51, (Token t) => (int)t.Type == 89 }, false, true); 5__3 = new MultiTokenWaiter(new Func[4] { delegate(Token t) { IdentifierToken val6 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val6 != null && val6.Name == "inventory"; }, (Token t) => (int)t.Type == 84, delegate(Token t) { IdentifierToken val5 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val5 != null && val5.Name == "append"; }, (Token t) => (int)t.Type == 80 }, false, false); 5__4 = new MultiTokenWaiter(new Func[4] { delegate(Token t) { IdentifierToken val4 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val4 != null && val4.Name == "cosmetics_unlocked"; }, (Token t) => (int)t.Type == 84, delegate(Token t) { IdentifierToken val3 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val3 != null && val3.Name == "append"; }, (Token t) => (int)t.Type == 80 }, false, false); 5__5 = new TokenWaiter((Func)delegate(Token t) { ConstantToken val = (ConstantToken)(object)((t is ConstantToken) ? t : null); if (val != null) { Variant value = val.Value; StringVariant val2 = (StringVariant)(object)((value is StringVariant) ? value : null); if (val2 != null) { return val2.Value == "Loaded Save"; } } return false; }, false); 5__6 = new TokenWaiter((Func)((Token t) => (int)t.Type == 89), true); 5__7 = false; 5__8 = false; <>7__wrap8 = tokens.GetEnumerator(); <>1__state = -3; break; case 1: <>1__state = -3; <>7__wrap10 = inventorySorter.AddSorter().GetEnumerator(); <>1__state = -4; goto IL_02ee; case 2: <>1__state = -4; goto IL_02ee; case 3: <>1__state = -3; 5__7 = true; 5__6.SetReady(); goto IL_058f; case 4: <>1__state = -3; 5__8 = true; 5__6.SetReady(); goto IL_058f; case 5: <>1__state = -3; 5__7 = true; 5__8 = true; 5__6.SetReady(); goto IL_058f; case 6: <>1__state = -3; if (5__7) { <>7__wrap10 = inventorySorter.CallInventorySorter().GetEnumerator(); <>1__state = -5; goto IL_0481; } goto IL_04c4; case 7: <>1__state = -5; goto IL_0481; case 8: <>1__state = -3; 5__7 = false; goto IL_04c4; case 9: <>1__state = -6; goto IL_0516; case 10: <>1__state = -3; 5__8 = false; goto IL_0557; case 11: { <>1__state = -3; goto IL_058f; } IL_0481: if (((global::System.Collections.IEnumerator)<>7__wrap10).MoveNext()) { Token current = <>7__wrap10.Current; <>2__current = current; <>1__state = 7; return true; } <>m__Finally3(); <>7__wrap10 = null; <>2__current = 5__10; <>1__state = 8; return true; IL_02ee: if (((global::System.Collections.IEnumerator)<>7__wrap10).MoveNext()) { Token current2 = <>7__wrap10.Current; <>2__current = current2; <>1__state = 2; return true; } <>m__Finally2(); <>7__wrap10 = null; goto IL_058f; IL_04c4: if (5__8) { <>7__wrap10 = inventorySorter.CallCosmeticSorter().GetEnumerator(); <>1__state = -6; goto IL_0516; } goto IL_0557; IL_0516: if (((global::System.Collections.IEnumerator)<>7__wrap10).MoveNext()) { Token current3 = <>7__wrap10.Current; <>2__current = current3; <>1__state = 9; return true; } <>m__Finally4(); <>7__wrap10 = null; <>2__current = 5__10; <>1__state = 10; return true; IL_058f: 5__10 = null; break; IL_0557: 5__3.Reset(); 5__6.Reset(); goto IL_058f; } if (((global::System.Collections.IEnumerator)<>7__wrap8).MoveNext()) { 5__10 = <>7__wrap8.Current; if (5__2.Check(5__10)) { <>2__current = 5__10; <>1__state = 1; return true; } if (5__3.Check(5__10)) { <>2__current = 5__10; <>1__state = 3; return true; } if (5__4.Check(5__10)) { <>2__current = 5__10; <>1__state = 4; return true; } if (5__5.Check(5__10)) { <>2__current = 5__10; <>1__state = 5; return true; } if (5__6.Check(5__10)) { <>2__current = 5__10; <>1__state = 6; return true; } <>2__current = 5__10; <>1__state = 11; return true; } <>m__Finally1(); <>7__wrap8 = null; return false; } catch { //try-fault ((global::System.IDisposable)this).Dispose(); throw; } } bool global::System.Collections.IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } private void <>m__Finally1() { <>1__state = -1; if (<>7__wrap8 != null) { ((global::System.IDisposable)<>7__wrap8).Dispose(); } } private void <>m__Finally2() { <>1__state = -3; if (<>7__wrap10 != null) { ((global::System.IDisposable)<>7__wrap10).Dispose(); } } private void <>m__Finally3() { <>1__state = -3; if (<>7__wrap10 != null) { ((global::System.IDisposable)<>7__wrap10).Dispose(); } } private void <>m__Finally4() { <>1__state = -3; if (<>7__wrap10 != null) { ((global::System.IDisposable)<>7__wrap10).Dispose(); } } [DebuggerHidden] void global::System.Collections.IEnumerator.Reset() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) throw new NotSupportedException(); } [DebuggerHidden] global::System.Collections.Generic.IEnumerator global::System.Collections.Generic.IEnumerable.GetEnumerator() { d__1 d__; if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; d__ = this; } else { d__ = new d__1(0) { <>4__this = <>4__this }; } d__.tokens = <>3__tokens; return d__; } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable)this).GetEnumerator(); } } public bool ShouldRun(string path) { return path == "res://Scenes/Singletons/playerdata.gdc"; } [IteratorStateMachine(typeof(d__1))] public global::System.Collections.Generic.IEnumerable Modify(string path, global::System.Collections.Generic.IEnumerable tokens) { MultiTokenWaiter extendsWaiter = new MultiTokenWaiter(new Func[2] { (Token t) => (int)t.Type == 51, (Token t) => (int)t.Type == 89 }, false, true); MultiTokenWaiter inventoryAppendWaiter = new MultiTokenWaiter(new Func[4] { delegate(Token t) { IdentifierToken val6 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val6 != null && val6.Name == "inventory"; }, (Token t) => (int)t.Type == 84, delegate(Token t) { IdentifierToken val5 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val5 != null && val5.Name == "append"; }, (Token t) => (int)t.Type == 80 }, false, false); MultiTokenWaiter cosmeticAppendWaiter = new MultiTokenWaiter(new Func[4] { delegate(Token t) { IdentifierToken val4 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val4 != null && val4.Name == "cosmetics_unlocked"; }, (Token t) => (int)t.Type == 84, delegate(Token t) { IdentifierToken val3 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val3 != null && val3.Name == "append"; }, (Token t) => (int)t.Type == 80 }, false, false); TokenWaiter loadedSaveWaiter = new TokenWaiter((Func)delegate(Token t) { ConstantToken val = (ConstantToken)(object)((t is ConstantToken) ? t : null); if (val != null) { Variant value = val.Value; StringVariant val2 = (StringVariant)(object)((value is StringVariant) ? value : null); if (val2 != null) { return val2.Value == "Loaded Save"; } } return false; }, false); TokenWaiter newlineWaiter = new TokenWaiter((Func)((Token t) => (int)t.Type == 89), true); bool sortingInventory = false; bool sortingCosmetics = false; global::System.Collections.Generic.IEnumerator enumerator = tokens.GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { Token token = enumerator.Current; if (extendsWaiter.Check(token)) { yield return token; global::System.Collections.Generic.IEnumerator enumerator2 = AddSorter().GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator2).MoveNext()) { yield return enumerator2.Current; } } finally { ((global::System.IDisposable)enumerator2)?.Dispose(); } } else if (inventoryAppendWaiter.Check(token)) { yield return token; sortingInventory = true; newlineWaiter.SetReady(); } else if (cosmeticAppendWaiter.Check(token)) { yield return token; sortingCosmetics = true; newlineWaiter.SetReady(); } else if (loadedSaveWaiter.Check(token)) { yield return token; sortingInventory = true; sortingCosmetics = true; newlineWaiter.SetReady(); } else if (newlineWaiter.Check(token)) { yield return token; if (sortingInventory) { global::System.Collections.Generic.IEnumerator enumerator2 = CallInventorySorter().GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator2).MoveNext()) { yield return enumerator2.Current; } } finally { ((global::System.IDisposable)enumerator2)?.Dispose(); } yield return token; sortingInventory = false; } if (sortingCosmetics) { global::System.Collections.Generic.IEnumerator enumerator2 = CallCosmeticSorter().GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator2).MoveNext()) { yield return enumerator2.Current; } } finally { ((global::System.IDisposable)enumerator2)?.Dispose(); } yield return token; sortingCosmetics = false; } inventoryAppendWaiter.Reset(); newlineWaiter.Reset(); } else { yield return token; } } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } } [IteratorStateMachine(typeof(d__2))] private global::System.Collections.Generic.IEnumerable AddSorter() { yield return new Token((TokenType)49, (uint?)null); yield return (Token)new IdentifierToken("InventorySorter"); yield return new Token((TokenType)86, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); yield return new Token((TokenType)55, (uint?)null); yield return new Token((TokenType)48, (uint?)null); yield return (Token)new IdentifierToken("sort_inventory"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new IdentifierToken("a"); yield return new Token((TokenType)82, (uint?)null); yield return (Token)new IdentifierToken("b"); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)86, (uint?)null); yield return new Token((TokenType)89, (uint?)2u); yield return new Token((TokenType)46, (uint?)null); yield return (Token)new IdentifierToken("a"); yield return new Token((TokenType)76, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("id")); yield return new Token((TokenType)77, (uint?)null); yield return new Token((TokenType)9, (uint?)null); yield return (Token)new IdentifierToken("b"); yield return new Token((TokenType)76, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("id")); yield return new Token((TokenType)77, (uint?)null); yield return new Token((TokenType)89, (uint?)null); } [IteratorStateMachine(typeof(d__3))] private global::System.Collections.Generic.IEnumerable CallInventorySorter() { yield return (Token)new IdentifierToken("inventory"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("sort_custom"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new IdentifierToken("InventorySorter"); yield return new Token((TokenType)82, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("sort_inventory")); yield return new Token((TokenType)81, (uint?)null); } [IteratorStateMachine(typeof(d__4))] private global::System.Collections.Generic.IEnumerable CallCosmeticSorter() { yield return (Token)new IdentifierToken("cosmetics_unlocked"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("sort"); yield return new Token((TokenType)80, (uint?)null); yield return new Token((TokenType)81, (uint?)null); } } public class MenuTweaks : IScriptMod { [CompilerGenerated] private sealed class d__1 : global::System.Collections.Generic.IEnumerable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator, global::System.Collections.IEnumerator, global::System.IDisposable { private int <>1__state; private Token <>2__current; private int <>l__initialThreadId; private global::System.Collections.Generic.IEnumerable tokens; public global::System.Collections.Generic.IEnumerable <>3__tokens; private MultiTokenWaiter 5__2; private TokenConsumer 5__3; private global::System.Collections.Generic.IEnumerator <>7__wrap3; private Token 5__5; Token global::System.Collections.Generic.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public d__1(int <>1__state) { this.<>1__state = <>1__state; <>l__initialThreadId = Environment.CurrentManagedThreadId; } [DebuggerHidden] void global::System.IDisposable.Dispose() { int num = <>1__state; if (num == -3 || (uint)(num - 1) <= 3u) { try { } finally { <>m__Finally1(); } } } private bool MoveNext() { //IL_01ee: Unknown result type (might be due to invalid IL or missing references) //IL_01f8: Expected O, but got Unknown //IL_01f3: Unknown result type (might be due to invalid IL or missing references) //IL_01fd: Expected O, but got Unknown //IL_0104: Unknown result type (might be due to invalid IL or missing references) //IL_010e: Expected O, but got Unknown //IL_012e: Unknown result type (might be due to invalid IL or missing references) //IL_0138: Expected O, but got Unknown try { switch (<>1__state) { default: return false; case 0: <>1__state = -1; 5__2 = new MultiTokenWaiter(new Func[6] { delegate(Token t) { IdentifierToken val3 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val3 != null && val3.Name == "HBoxContainer"; }, (Token t) => (int)t.Type == 19, delegate(Token t) { IdentifierToken val2 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val2 != null && val2.Name == "Button"; }, (Token t) => (int)t.Type == 84, delegate(Token t) { IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val != null && val.Name == "disabled"; }, (Token t) => (int)t.Type == 23 }, false, false); 5__3 = new TokenConsumer((Func)((Token t) => (int)t.Type == 89)); <>7__wrap3 = tokens.GetEnumerator(); <>1__state = -3; goto IL_024e; case 1: <>1__state = -3; 5__3.Reset(); goto IL_01b7; case 2: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new BoolVariant(false)); <>1__state = 3; return true; case 3: <>1__state = -3; 5__2.Reset(); 5__3.SetReady(); goto IL_0247; case 4: { <>1__state = -3; goto IL_0247; } IL_0247: 5__5 = null; goto IL_024e; IL_01b7: if (5__2.Check(5__5)) { <>2__current = 5__5; <>1__state = 2; return true; } <>2__current = 5__5; <>1__state = 4; return true; IL_024e: do { if (((global::System.Collections.IEnumerator)<>7__wrap3).MoveNext()) { 5__5 = <>7__wrap3.Current; continue; } <>m__Finally1(); <>7__wrap3 = null; return false; } while (5__3.Check(5__5)); if (5__3.Ready) { <>2__current = 5__5; <>1__state = 1; return true; } goto IL_01b7; } } catch { //try-fault ((global::System.IDisposable)this).Dispose(); throw; } } bool global::System.Collections.IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } private void <>m__Finally1() { <>1__state = -1; if (<>7__wrap3 != null) { ((global::System.IDisposable)<>7__wrap3).Dispose(); } } [DebuggerHidden] void global::System.Collections.IEnumerator.Reset() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) throw new NotSupportedException(); } [DebuggerHidden] global::System.Collections.Generic.IEnumerator global::System.Collections.Generic.IEnumerable.GetEnumerator() { d__1 d__; if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; d__ = this; } else { d__ = new d__1(0); } d__.tokens = <>3__tokens; return d__; } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable)this).GetEnumerator(); } } public bool ShouldRun(string path) { return path == "res://Scenes/Menus/Main Menu/main_menu.gdc"; } [IteratorStateMachine(typeof(d__1))] public global::System.Collections.Generic.IEnumerable Modify(string path, global::System.Collections.Generic.IEnumerable tokens) { MultiTokenWaiter disabledWaiter = new MultiTokenWaiter(new Func[6] { delegate(Token t) { IdentifierToken val3 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val3 != null && val3.Name == "HBoxContainer"; }, (Token t) => (int)t.Type == 19, delegate(Token t) { IdentifierToken val2 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val2 != null && val2.Name == "Button"; }, (Token t) => (int)t.Type == 84, delegate(Token t) { IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val != null && val.Name == "disabled"; }, (Token t) => (int)t.Type == 23 }, false, false); TokenConsumer newlineConsumer = new TokenConsumer((Func)((Token t) => (int)t.Type == 89)); global::System.Collections.Generic.IEnumerator enumerator = tokens.GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { Token token = enumerator.Current; if (!newlineConsumer.Check(token)) { if (newlineConsumer.Ready) { yield return token; newlineConsumer.Reset(); } if (disabledWaiter.Check(token)) { yield return token; yield return (Token)new ConstantToken((Variant)new BoolVariant(false)); disabledWaiter.Reset(); newlineConsumer.SetReady(); } else { yield return token; } } } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } } } public class NetcodeImprover : IScriptMod { [CompilerGenerated] private sealed class d__3 : global::System.Collections.Generic.IEnumerable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator, global::System.Collections.IEnumerator, global::System.IDisposable { private int <>1__state; private Token <>2__current; private int <>l__initialThreadId; private global::System.Collections.Generic.IEnumerable tokens; public global::System.Collections.Generic.IEnumerable <>3__tokens; private MultiTokenWaiter 5__2; private TokenWaiter 5__3; private global::System.Collections.Generic.IEnumerator <>7__wrap3; private Token 5__5; Token global::System.Collections.Generic.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public d__3(int <>1__state) { this.<>1__state = <>1__state; <>l__initialThreadId = Environment.CurrentManagedThreadId; } [DebuggerHidden] void global::System.IDisposable.Dispose() { int num = <>1__state; if (num == -3 || (uint)(num - 1) <= 18u) { try { } finally { <>m__Finally1(); } } } private bool MoveNext() { //IL_0160: Unknown result type (might be due to invalid IL or missing references) //IL_016a: Expected O, but got Unknown //IL_018c: Unknown result type (might be due to invalid IL or missing references) //IL_0196: Expected O, but got Unknown //IL_01b2: Unknown result type (might be due to invalid IL or missing references) //IL_01bc: Expected O, but got Unknown //IL_01b7: Unknown result type (might be due to invalid IL or missing references) //IL_01c1: Expected O, but got Unknown //IL_01e3: Unknown result type (might be due to invalid IL or missing references) //IL_01ed: Expected O, but got Unknown //IL_0263: Unknown result type (might be due to invalid IL or missing references) //IL_026d: Expected O, but got Unknown //IL_028f: Unknown result type (might be due to invalid IL or missing references) //IL_0299: Expected O, but got Unknown //IL_02b5: Unknown result type (might be due to invalid IL or missing references) //IL_02bf: Expected O, but got Unknown //IL_02ba: Unknown result type (might be due to invalid IL or missing references) //IL_02c4: Expected O, but got Unknown //IL_02e7: Unknown result type (might be due to invalid IL or missing references) //IL_02f1: Expected O, but got Unknown //IL_030e: Unknown result type (might be due to invalid IL or missing references) //IL_0318: Expected O, but got Unknown //IL_033b: Unknown result type (might be due to invalid IL or missing references) //IL_0345: Expected O, but got Unknown //IL_0362: Unknown result type (might be due to invalid IL or missing references) //IL_036c: Expected O, but got Unknown //IL_038f: Unknown result type (might be due to invalid IL or missing references) //IL_0399: Expected O, but got Unknown //IL_03bc: Unknown result type (might be due to invalid IL or missing references) //IL_03c6: Expected O, but got Unknown //IL_03e9: Unknown result type (might be due to invalid IL or missing references) //IL_03f3: Expected O, but got Unknown //IL_00b8: Unknown result type (might be due to invalid IL or missing references) //IL_00c2: Expected O, but got Unknown //IL_0237: Unknown result type (might be due to invalid IL or missing references) //IL_0241: Expected O, but got Unknown //IL_00e3: Unknown result type (might be due to invalid IL or missing references) //IL_00ed: Expected O, but got Unknown try { switch (<>1__state) { default: return false; case 0: <>1__state = -1; 5__2 = new MultiTokenWaiter(new Func[2] { (Token t) => (int)t.Type == 48, delegate(Token t) { IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val != null && val.Name == "_send_P2P_Packet"; } }, false, false); 5__3 = new TokenWaiter((Func)((Token t) => (int)t.Type == 89), true); <>7__wrap3 = tokens.GetEnumerator(); <>1__state = -3; break; case 1: <>1__state = -3; <>2__current = new Token((TokenType)38, (uint?)null); <>1__state = 2; return true; case 2: <>1__state = -3; <>2__current = new Token((TokenType)87, (uint?)null); <>1__state = 3; return true; case 3: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("/root/WebfishingPlus")); <>1__state = 4; return true; case 4: <>1__state = -3; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 5; return true; case 5: <>1__state = -3; <>2__current = new Token((TokenType)89, 5__5.AssociatedData + 1); <>1__state = 6; return true; case 6: <>1__state = -3; <>2__current = new Token((TokenType)38, (uint?)null); <>1__state = 7; return true; case 7: <>1__state = -3; <>2__current = new Token((TokenType)87, (uint?)null); <>1__state = 8; return true; case 8: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("/root/WebfishingPlus")); <>1__state = 9; return true; case 9: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 10; return true; case 10: <>1__state = -3; <>2__current = (Token)new IdentifierToken("process_netcode"); <>1__state = 11; return true; case 11: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 12; return true; case 12: <>1__state = -3; <>2__current = (Token)new IdentifierToken("packet_data"); <>1__state = 13; return true; case 13: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 14; return true; case 14: <>1__state = -3; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 15; return true; case 15: <>1__state = -3; <>2__current = new Token((TokenType)46, (uint?)null); <>1__state = 16; return true; case 16: <>1__state = -3; <>2__current = 5__5; <>1__state = 17; return true; case 17: <>1__state = -3; 5__3.Reset(); goto IL_049a; case 18: <>1__state = -3; 5__3.SetReady(); goto IL_049a; case 19: { <>1__state = -3; goto IL_049a; } IL_049a: 5__5 = null; break; } if (((global::System.Collections.IEnumerator)<>7__wrap3).MoveNext()) { 5__5 = <>7__wrap3.Current; if (5__3.Check(5__5)) { <>2__current = 5__5; <>1__state = 1; return true; } if (5__2.Check(5__5)) { <>2__current = 5__5; <>1__state = 18; return true; } <>2__current = 5__5; <>1__state = 19; return true; } <>m__Finally1(); <>7__wrap3 = null; return false; } catch { //try-fault ((global::System.IDisposable)this).Dispose(); throw; } } bool global::System.Collections.IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } private void <>m__Finally1() { <>1__state = -1; if (<>7__wrap3 != null) { ((global::System.IDisposable)<>7__wrap3).Dispose(); } } [DebuggerHidden] void global::System.Collections.IEnumerator.Reset() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) throw new NotSupportedException(); } [DebuggerHidden] global::System.Collections.Generic.IEnumerator global::System.Collections.Generic.IEnumerable.GetEnumerator() { d__3 d__; if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; d__ = this; } else { d__ = new d__3(0); } d__.tokens = <>3__tokens; return d__; } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable)this).GetEnumerator(); } } private const string ProcessNetcode = "process_netcode"; private const string Path = "/root/WebfishingPlus"; public bool ShouldRun(string path) { return path == "res://Scenes/Singletons/SteamNetwork.gdc"; } [IteratorStateMachine(typeof(d__3))] public global::System.Collections.Generic.IEnumerable Modify(string path, global::System.Collections.Generic.IEnumerable tokens) { MultiTokenWaiter sendWaiter = new MultiTokenWaiter(new Func[2] { (Token t) => (int)t.Type == 48, delegate(Token t) { IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val != null && val.Name == "_send_P2P_Packet"; } }, false, false); TokenWaiter newlineWaiter = new TokenWaiter((Func)((Token t) => (int)t.Type == 89), true); global::System.Collections.Generic.IEnumerator enumerator = tokens.GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { Token token = enumerator.Current; if (newlineWaiter.Check(token)) { yield return token; yield return new Token((TokenType)38, (uint?)null); yield return new Token((TokenType)87, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("/root/WebfishingPlus")); yield return new Token((TokenType)86, (uint?)null); yield return new Token((TokenType)89, token.AssociatedData + 1); yield return new Token((TokenType)38, (uint?)null); yield return new Token((TokenType)87, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("/root/WebfishingPlus")); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("process_netcode"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new IdentifierToken("packet_data"); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)86, (uint?)null); yield return new Token((TokenType)46, (uint?)null); yield return token; newlineWaiter.Reset(); } else if (sendWaiter.Check(token)) { yield return token; newlineWaiter.SetReady(); } else { yield return token; } } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } } } }