Decompiled source of YAAM v1.3.2
GDWeave/mods/YAAM/YAAM.dll
Decompiled 2 weeks ago
The result has been truncated due to the large size, download it to view full contents!
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; [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("YAAM")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0.0")] [assembly: AssemblyProduct("YAAM")] [assembly: AssemblyTitle("YAAM")] [assembly: AssemblyVersion("1.0.0.0")] [module: RefSafetyRules(11)] namespace YAAM; public class Config { [JsonInclude] public bool Autocast = true; [JsonInclude] public bool Autoreel = true; [JsonInclude] public bool Automash = true; [JsonInclude] public double CastDistance = 1.5; [JsonInclude] public bool AutocastRequiresBait = true; [JsonInclude] public bool BaitAutoRefill = true; [JsonInclude] public Dictionary<string, bool> CatchQualities; public Config() { Dictionary<string, bool> obj = new Dictionary<string, bool>(); obj.Add("Normal", true); obj.Add("Shining", true); obj.Add("Glistening", true); obj.Add("Opulent", true); obj.Add("Radiant", true); obj.Add("Alpha", true); CatchQualities = obj; base..ctor(); } } public class MinigamePatch : IScriptMod { [CompilerGenerated] private sealed class <Modify>d__1 : global::System.Collections.Generic.IEnumerable<Token>, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator<Token>, 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<Token> tokens; public global::System.Collections.Generic.IEnumerable<Token> <>3__tokens; private FunctionWaiter <processWaiter>5__2; private FunctionWaiter <readyWaiter>5__3; private TokenConsumer <newlineConsumer>5__4; private MultiTokenWaiter <mashWaiter>5__5; private MultiTokenWaiter <reelWaiter>5__6; private global::System.Collections.Generic.IEnumerator<Token> <>7__wrap6; private Token <token>5__8; Token global::System.Collections.Generic.IEnumerator<Token>.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public <Modify>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) <= 103u) { try { } finally { <>m__Finally1(); } } } private bool MoveNext() { //IL_01c6: Unknown result type (might be due to invalid IL or missing references) //IL_01d0: Expected O, but got Unknown //IL_01d7: Unknown result type (might be due to invalid IL or missing references) //IL_01e1: Expected O, but got Unknown //IL_0434: Unknown result type (might be due to invalid IL or missing references) //IL_043e: Expected O, but got Unknown //IL_0460: Unknown result type (might be due to invalid IL or missing references) //IL_046a: Expected O, but got Unknown //IL_0486: Unknown result type (might be due to invalid IL or missing references) //IL_0490: 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_04d8: Unknown result type (might be due to invalid IL or missing references) //IL_04e2: Expected O, but got Unknown //IL_0504: Unknown result type (might be due to invalid IL or missing references) //IL_050e: Expected O, but got Unknown //IL_0530: Unknown result type (might be due to invalid IL or missing references) //IL_053a: Expected O, but got Unknown //IL_055d: Unknown result type (might be due to invalid IL or missing references) //IL_0567: Expected O, but got Unknown //IL_0584: Unknown result type (might be due to invalid IL or missing references) //IL_058e: Expected O, but got Unknown //IL_05b1: Unknown result type (might be due to invalid IL or missing references) //IL_05bb: Expected O, but got Unknown //IL_05d8: Unknown result type (might be due to invalid IL or missing references) //IL_05e2: Expected O, but got Unknown //IL_0605: Unknown result type (might be due to invalid IL or missing references) //IL_060f: Expected O, but got Unknown //IL_062c: Unknown result type (might be due to invalid IL or missing references) //IL_0636: Expected O, but got Unknown //IL_0631: Unknown result type (might be due to invalid IL or missing references) //IL_063b: 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_068b: Unknown result type (might be due to invalid IL or missing references) //IL_0695: Expected O, but got Unknown //IL_06b8: Unknown result type (might be due to invalid IL or missing references) //IL_06c2: Expected O, but got Unknown //IL_06e2: Unknown result type (might be due to invalid IL or missing references) //IL_06ec: 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_075d: Unknown result type (might be due to invalid IL or missing references) //IL_0767: Expected O, but got Unknown //IL_078a: Unknown result type (might be due to invalid IL or missing references) //IL_0794: Expected O, but got Unknown //IL_07b1: Unknown result type (might be due to invalid IL or missing references) //IL_07bb: Expected O, but got Unknown //IL_07b6: Unknown result type (might be due to invalid IL or missing references) //IL_07c0: Expected O, but got Unknown //IL_07e3: Unknown result type (might be due to invalid IL or missing references) //IL_07ed: 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_0837: Unknown result type (might be due to invalid IL or missing references) //IL_0841: Expected O, but got Unknown //IL_085e: Unknown result type (might be due to invalid IL or missing references) //IL_0868: Expected O, but got Unknown //IL_088b: Unknown result type (might be due to invalid IL or missing references) //IL_0895: Expected O, but got Unknown //IL_08b2: Unknown result type (might be due to invalid IL or missing references) //IL_08bc: Expected O, but got Unknown //IL_08df: Unknown result type (might be due to invalid IL or missing references) //IL_08e9: Expected O, but got Unknown //IL_0906: Unknown result type (might be due to invalid IL or missing references) //IL_0910: Expected O, but got Unknown //IL_090b: Unknown result type (might be due to invalid IL or missing references) //IL_0915: Expected O, but got Unknown //IL_0938: Unknown result type (might be due to invalid IL or missing references) //IL_0942: Expected O, but got Unknown //IL_0965: Unknown result type (might be due to invalid IL or missing references) //IL_096f: Expected O, but got Unknown //IL_0992: Unknown result type (might be due to invalid IL or missing references) //IL_099c: Expected O, but got Unknown //IL_09b9: Unknown result type (might be due to invalid IL or missing references) //IL_09c3: Expected O, but got Unknown //IL_09be: Unknown result type (might be due to invalid IL or missing references) //IL_09c8: Expected O, but got Unknown //IL_09eb: Unknown result type (might be due to invalid IL or missing references) //IL_09f5: Expected O, but got Unknown //IL_0a15: Unknown result type (might be due to invalid IL or missing references) //IL_0a1f: Expected O, but got Unknown //IL_0a3c: Unknown result type (might be due to invalid IL or missing references) //IL_0a46: 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_0a96: Unknown result type (might be due to invalid IL or missing references) //IL_0aa0: Expected O, but got Unknown //IL_0ac0: Unknown result type (might be due to invalid IL or missing references) //IL_0aca: Expected O, but got Unknown //IL_0ae7: Unknown result type (might be due to invalid IL or missing references) //IL_0af1: Expected O, but got Unknown //IL_0b14: Unknown result type (might be due to invalid IL or missing references) //IL_0b1e: Expected O, but got Unknown //IL_0b37: Unknown result type (might be due to invalid IL or missing references) //IL_0b41: Expected O, but got Unknown //IL_0b3c: Unknown result type (might be due to invalid IL or missing references) //IL_0b46: Expected O, but got Unknown //IL_0b69: Unknown result type (might be due to invalid IL or missing references) //IL_0b73: Expected O, but got Unknown //IL_0b93: Unknown result type (might be due to invalid IL or missing references) //IL_0b9d: Expected O, but got Unknown //IL_0bc0: Unknown result type (might be due to invalid IL or missing references) //IL_0bca: Expected O, but got Unknown //IL_0bea: Unknown result type (might be due to invalid IL or missing references) //IL_0bf4: Expected O, but got Unknown //IL_0c55: Unknown result type (might be due to invalid IL or missing references) //IL_0c5f: Expected O, but got Unknown //IL_0c7c: Unknown result type (might be due to invalid IL or missing references) //IL_0c86: Expected O, but got Unknown //IL_0ca9: Unknown result type (might be due to invalid IL or missing references) //IL_0cb3: Expected O, but got Unknown //IL_0cd0: Unknown result type (might be due to invalid IL or missing references) //IL_0cda: Expected O, but got Unknown //IL_0cfd: Unknown result type (might be due to invalid IL or missing references) //IL_0d07: Expected O, but got Unknown //IL_0d24: Unknown result type (might be due to invalid IL or missing references) //IL_0d2e: Expected O, but got Unknown //IL_0d51: Unknown result type (might be due to invalid IL or missing references) //IL_0d5b: Expected O, but got Unknown //IL_0d7e: Unknown result type (might be due to invalid IL or missing references) //IL_0d88: Expected O, but got Unknown //IL_0dab: Unknown result type (might be due to invalid IL or missing references) //IL_0db5: Expected O, but got Unknown //IL_0dd2: Unknown result type (might be due to invalid IL or missing references) //IL_0ddc: Expected O, but got Unknown //IL_0dff: Unknown result type (might be due to invalid IL or missing references) //IL_0e09: Expected O, but got Unknown //IL_0e26: Unknown result type (might be due to invalid IL or missing references) //IL_0e30: Expected O, but got Unknown //IL_0e53: Unknown result type (might be due to invalid IL or missing references) //IL_0e5d: Expected O, but got Unknown //IL_0e7a: Unknown result type (might be due to invalid IL or missing references) //IL_0e84: Expected O, but got Unknown //IL_0e7f: Unknown result type (might be due to invalid IL or missing references) //IL_0e89: Expected O, but got Unknown //IL_0eac: Unknown result type (might be due to invalid IL or missing references) //IL_0eb6: Expected O, but got Unknown //IL_0ed9: Unknown result type (might be due to invalid IL or missing references) //IL_0ee3: Expected O, but got Unknown //IL_0f00: Unknown result type (might be due to invalid IL or missing references) //IL_0f0a: Expected O, but got Unknown //IL_0f2d: Unknown result type (might be due to invalid IL or missing references) //IL_0f37: Expected O, but got Unknown //IL_0f54: Unknown result type (might be due to invalid IL or missing references) //IL_0f5e: Expected O, but got Unknown //IL_0f81: Unknown result type (might be due to invalid IL or missing references) //IL_0f8b: Expected O, but got Unknown //IL_0fa8: Unknown result type (might be due to invalid IL or missing references) //IL_0fb2: Expected O, but got Unknown //IL_0fad: Unknown result type (might be due to invalid IL or missing references) //IL_0fb7: Expected O, but got Unknown //IL_0fda: Unknown result type (might be due to invalid IL or missing references) //IL_0fe4: Expected O, but got Unknown //IL_1007: Unknown result type (might be due to invalid IL or missing references) //IL_1011: Expected O, but got Unknown //IL_1034: Unknown result type (might be due to invalid IL or missing references) //IL_103e: Expected O, but got Unknown //IL_1061: Unknown result type (might be due to invalid IL or missing references) //IL_106b: Expected O, but got Unknown //IL_1088: Unknown result type (might be due to invalid IL or missing references) //IL_1092: Expected O, but got Unknown //IL_10b5: Unknown result type (might be due to invalid IL or missing references) //IL_10bf: Expected O, but got Unknown //IL_10e2: Unknown result type (might be due to invalid IL or missing references) //IL_10ec: Expected O, but got Unknown //IL_1155: Unknown result type (might be due to invalid IL or missing references) //IL_115f: Expected O, but got Unknown //IL_1182: Unknown result type (might be due to invalid IL or missing references) //IL_118c: Expected O, but got Unknown //IL_11a9: Unknown result type (might be due to invalid IL or missing references) //IL_11b3: Expected O, but got Unknown //IL_11d6: Unknown result type (might be due to invalid IL or missing references) //IL_11e0: Expected O, but got Unknown //IL_11fd: Unknown result type (might be due to invalid IL or missing references) //IL_1207: Expected O, but got Unknown //IL_122a: Unknown result type (might be due to invalid IL or missing references) //IL_1234: Expected O, but got Unknown //IL_1251: Unknown result type (might be due to invalid IL or missing references) //IL_125b: Expected O, but got Unknown //IL_127e: Unknown result type (might be due to invalid IL or missing references) //IL_1288: Expected O, but got Unknown //IL_12ab: Unknown result type (might be due to invalid IL or missing references) //IL_12b5: Expected O, but got Unknown //IL_12d2: Unknown result type (might be due to invalid IL or missing references) //IL_12dc: Expected O, but got Unknown //IL_12ff: Unknown result type (might be due to invalid IL or missing references) //IL_1309: Expected O, but got Unknown //IL_1326: Unknown result type (might be due to invalid IL or missing references) //IL_1330: Expected O, but got Unknown //IL_1353: Unknown result type (might be due to invalid IL or missing references) //IL_135d: Expected O, but got Unknown //IL_137a: Unknown result type (might be due to invalid IL or missing references) //IL_1384: Expected O, but got Unknown //IL_137f: Unknown result type (might be due to invalid IL or missing references) //IL_1389: Expected O, but got Unknown //IL_13ac: Unknown result type (might be due to invalid IL or missing references) //IL_13b6: Expected O, but got Unknown //IL_13d9: Unknown result type (might be due to invalid IL or missing references) //IL_13e3: Expected O, but got Unknown //IL_1400: Unknown result type (might be due to invalid IL or missing references) //IL_140a: Expected O, but got Unknown //IL_142d: Unknown result type (might be due to invalid IL or missing references) //IL_1437: Expected O, but got Unknown //IL_1454: Unknown result type (might be due to invalid IL or missing references) //IL_145e: Expected O, but got Unknown //IL_1481: Unknown result type (might be due to invalid IL or missing references) //IL_148b: Expected O, but got Unknown //IL_14a8: Unknown result type (might be due to invalid IL or missing references) //IL_14b2: Expected O, but got Unknown //IL_14ad: Unknown result type (might be due to invalid IL or missing references) //IL_14b7: Expected O, but got Unknown //IL_14da: Unknown result type (might be due to invalid IL or missing references) //IL_14e4: Expected O, but got Unknown //IL_1507: Unknown result type (might be due to invalid IL or missing references) //IL_1511: Expected O, but got Unknown //IL_1534: Unknown result type (might be due to invalid IL or missing references) //IL_153e: 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_0408: Unknown result type (might be due to invalid IL or missing references) //IL_0412: Expected O, but got Unknown //IL_029c: Unknown result type (might be due to invalid IL or missing references) //IL_02a6: 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 try { switch (<>1__state) { default: return false; case 0: <>1__state = -1; <processWaiter>5__2 = new FunctionWaiter("_physics_process", false); <readyWaiter>5__3 = new FunctionWaiter("_ready", false); <newlineConsumer>5__4 = new TokenConsumer((Func<Token, bool>)((Token t) => (int)t.Type == 89)); <mashWaiter>5__5 = new MultiTokenWaiter(new Func<Token, bool>[4] { (Token t) => (int)t.Type == 38, delegate(Token t) { IdentifierToken val2 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val2 != null && val2.Name == "active"; }, (Token t) => (int)t.Type == 86, (Token t) => (int)t.Type == 89 }, true, true); <reelWaiter>5__6 = new MultiTokenWaiter(new Func<Token, bool>[4] { delegate(Token t) { IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val != null && val.Name == "_on_Button_pressed"; }, (Token t) => (int)t.Type == 80, (Token t) => (int)t.Type == 81, (Token t) => (int)t.Type == 89 }, true, true); <>7__wrap6 = tokens.GetEnumerator(); <>1__state = -3; goto IL_1586; case 1: <>1__state = -3; <newlineConsumer>5__4.Reset(); goto IL_03e9; case 2: <>1__state = -3; <>2__current = new Token((TokenType)38, (uint?)null); <>1__state = 3; return true; case 3: <>1__state = -3; <>2__current = new Token((TokenType)15, (uint?)null); <>1__state = 4; return true; case 4: <>1__state = -3; <>2__current = (Token)new IdentifierToken("YAAM"); <>1__state = 5; return true; case 5: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 6; return true; case 6: <>1__state = -3; <>2__current = (Token)new IdentifierToken("get_catch_qualities"); <>1__state = 7; return true; case 7: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 8; return true; case 8: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>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("has"); <>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("params"); <>1__state = 13; return true; case 13: <>1__state = -3; <>2__current = new Token((TokenType)76, (uint?)null); <>1__state = 14; return true; case 14: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("quality")); <>1__state = 15; return true; case 15: <>1__state = -3; <>2__current = new Token((TokenType)77, (uint?)null); <>1__state = 16; return true; case 16: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 17; return true; case 17: <>1__state = -3; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 18; return true; case 18: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)2u); <>1__state = 19; return true; case 19: <>1__state = -3; <>2__current = (Token)new IdentifierToken("PlayerData"); <>1__state = 20; return true; case 20: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 21; return true; case 21: <>1__state = -3; <>2__current = (Token)new IdentifierToken("_send_notification"); <>1__state = 22; return true; case 22: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 23; return true; case 23: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("The fish was let off the hook due to being of ")); <>1__state = 24; return true; case 24: <>1__state = -3; <>2__current = new Token((TokenType)16, (uint?)null); <>1__state = 25; return true; case 25: <>1__state = -3; <>2__current = (Token)new IdentifierToken("YAAM"); <>1__state = 26; return true; case 26: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 27; return true; case 27: <>1__state = -3; <>2__current = (Token)new IdentifierToken("_get_quality_name"); <>1__state = 28; return true; case 28: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 29; return true; case 29: <>1__state = -3; <>2__current = (Token)new IdentifierToken("params"); <>1__state = 30; return true; case 30: <>1__state = -3; <>2__current = new Token((TokenType)76, (uint?)null); <>1__state = 31; return true; case 31: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("quality")); <>1__state = 32; return true; case 32: <>1__state = -3; <>2__current = new Token((TokenType)77, (uint?)null); <>1__state = 33; return true; case 33: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 34; return true; case 34: <>1__state = -3; <>2__current = new Token((TokenType)16, (uint?)null); <>1__state = 35; return true; case 35: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant(" quality!")); <>1__state = 36; return true; case 36: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 37; return true; case 37: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)2u); <>1__state = 38; return true; case 38: <>1__state = -3; <>2__current = (Token)new IdentifierToken("_kill"); <>1__state = 39; return true; case 39: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 40; return true; case 40: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 41; return true; case 41: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)2u); <>1__state = 42; return true; case 42: <>1__state = -3; <>2__current = (Token)new IdentifierToken("_reached_end"); <>1__state = 43; return true; case 43: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 44; return true; case 44: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new BoolVariant(false)); <>1__state = 45; return true; case 45: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 46; return true; case 46: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)2u); <>1__state = 47; return true; case 47: <>1__state = -3; <>2__current = new Token((TokenType)46, (uint?)null); <>1__state = 48; return true; case 48: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 49; return true; case 49: <>1__state = -3; goto IL_157f; case 50: <>1__state = -3; <>2__current = new Token((TokenType)38, (uint?)null); <>1__state = 51; return true; case 51: <>1__state = -3; <>2__current = (Token)new IdentifierToken("YAAM"); <>1__state = 52; return true; case 52: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 53; return true; case 53: <>1__state = -3; <>2__current = (Token)new IdentifierToken("config"); <>1__state = 54; return true; case 54: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 55; return true; case 55: <>1__state = -3; <>2__current = (Token)new IdentifierToken("Automash"); <>1__state = 56; return true; case 56: <>1__state = -3; <>2__current = new Token((TokenType)14, (uint?)null); <>1__state = 57; return true; case 57: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 58; return true; case 58: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 59; return true; case 59: <>1__state = -3; <>2__current = (Token)new IdentifierToken("Input"); <>1__state = 60; return true; case 60: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 61; return true; case 61: <>1__state = -3; <>2__current = (Token)new IdentifierToken("is_action_just_pressed"); <>1__state = 62; return true; case 62: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 63; return true; case 63: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("primary_action")); <>1__state = 64; return true; case 64: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 65; return true; case 65: <>1__state = -3; <>2__current = new Token((TokenType)14, (uint?)null); <>1__state = 66; return true; case 66: <>1__state = -3; <>2__current = (Token)new IdentifierToken("Input"); <>1__state = 67; return true; case 67: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 68; return true; case 68: <>1__state = -3; <>2__current = (Token)new IdentifierToken("is_action_just_pressed"); <>1__state = 69; return true; case 69: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 70; return true; case 70: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("alt_primary")); <>1__state = 71; return true; case 71: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 72; return true; case 72: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 73; return true; case 73: <>1__state = -3; <>2__current = new Token((TokenType)13, (uint?)null); <>1__state = 74; return true; case 74: <>1__state = -3; <>2__current = new Token((TokenType)15, (uint?)null); <>1__state = 75; return true; case 75: <>1__state = -3; <>2__current = (Token)new IdentifierToken("reeling"); <>1__state = 76; return true; case 76: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 77; return true; case 77: <>1__state = -3; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 78; return true; case 78: <>1__state = -3; <newlineConsumer>5__4.SetReady(); goto IL_157f; case 79: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 80; return true; case 80: <>1__state = -3; <>2__current = new Token((TokenType)38, (uint?)null); <>1__state = 81; return true; case 81: <>1__state = -3; <>2__current = (Token)new IdentifierToken("YAAM"); <>1__state = 82; return true; case 82: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 83; return true; case 83: <>1__state = -3; <>2__current = (Token)new IdentifierToken("config"); <>1__state = 84; return true; case 84: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 85; return true; case 85: <>1__state = -3; <>2__current = (Token)new IdentifierToken("Autoreel"); <>1__state = 86; return true; case 86: <>1__state = -3; <>2__current = new Token((TokenType)14, (uint?)null); <>1__state = 87; return true; case 87: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 88; return true; case 88: <>1__state = -3; <>2__current = (Token)new IdentifierToken("Input"); <>1__state = 89; return true; case 89: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 90; return true; case 90: <>1__state = -3; <>2__current = (Token)new IdentifierToken("is_action_pressed"); <>1__state = 91; return true; case 91: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 92; return true; case 92: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("primary_action")); <>1__state = 93; return true; case 93: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 94; return true; case 94: <>1__state = -3; <>2__current = new Token((TokenType)14, (uint?)null); <>1__state = 95; return true; case 95: <>1__state = -3; <>2__current = (Token)new IdentifierToken("Input"); <>1__state = 96; return true; case 96: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 97; return true; case 97: <>1__state = -3; <>2__current = (Token)new IdentifierToken("is_action_pressed"); <>1__state = 98; return true; case 98: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 99; return true; case 99: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("alt_primary")); <>1__state = 100; return true; case 100: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 101; return true; case 101: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 102; return true; case 102: <>1__state = -3; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 103; return true; case 103: <>1__state = -3; <newlineConsumer>5__4.SetReady(); goto IL_157f; case 104: { <>1__state = -3; goto IL_157f; } IL_157f: <token>5__8 = null; goto IL_1586; IL_03e9: if (<readyWaiter>5__3.Check(<token>5__8)) { <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 2; return true; } if (<mashWaiter>5__5.Check(<token>5__8)) { <>2__current = <token>5__8; <>1__state = 50; return true; } if (<reelWaiter>5__6.Check(<token>5__8)) { <>2__current = <token>5__8; <>1__state = 79; return true; } <>2__current = <token>5__8; <>1__state = 104; return true; IL_1586: do { if (((global::System.Collections.IEnumerator)<>7__wrap6).MoveNext()) { <token>5__8 = <>7__wrap6.Current; if (<processWaiter>5__2.Check(<token>5__8)) { <mashWaiter>5__5.SetReady(); <reelWaiter>5__6.SetReady(); } continue; } <>m__Finally1(); <>7__wrap6 = null; return false; } while (<newlineConsumer>5__4.Check(<token>5__8)); if (<newlineConsumer>5__4.Ready) { <>2__current = <token>5__8; <>1__state = 1; return true; } goto IL_03e9; } } 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__wrap6 != null) { ((global::System.IDisposable)<>7__wrap6).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<Token> global::System.Collections.Generic.IEnumerable<Token>.GetEnumerator() { <Modify>d__1 <Modify>d__; if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; <Modify>d__ = this; } else { <Modify>d__ = new <Modify>d__1(0); } <Modify>d__.tokens = <>3__tokens; return <Modify>d__; } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable<Token>)this).GetEnumerator(); } } public bool ShouldRun(string path) { return path == "res://Scenes/Minigames/Fishing3/fishing3.gdc"; } [IteratorStateMachine(typeof(<Modify>d__1))] public global::System.Collections.Generic.IEnumerable<Token> Modify(string path, global::System.Collections.Generic.IEnumerable<Token> tokens) { FunctionWaiter processWaiter = new FunctionWaiter("_physics_process", false); FunctionWaiter readyWaiter = new FunctionWaiter("_ready", false); TokenConsumer newlineConsumer = new TokenConsumer((Func<Token, bool>)((Token t) => (int)t.Type == 89)); MultiTokenWaiter mashWaiter = new MultiTokenWaiter(new Func<Token, bool>[4] { (Token t) => (int)t.Type == 38, delegate(Token t) { IdentifierToken val2 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val2 != null && val2.Name == "active"; }, (Token t) => (int)t.Type == 86, (Token t) => (int)t.Type == 89 }, true, true); MultiTokenWaiter reelWaiter = new MultiTokenWaiter(new Func<Token, bool>[4] { delegate(Token t) { IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val != null && val.Name == "_on_Button_pressed"; }, (Token t) => (int)t.Type == 80, (Token t) => (int)t.Type == 81, (Token t) => (int)t.Type == 89 }, true, true); global::System.Collections.Generic.IEnumerator<Token> enumerator = tokens.GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { Token token = enumerator.Current; if (processWaiter.Check(token)) { mashWaiter.SetReady(); reelWaiter.SetReady(); } if (!newlineConsumer.Check(token)) { if (newlineConsumer.Ready) { yield return token; newlineConsumer.Reset(); } if (readyWaiter.Check(token)) { yield return new Token((TokenType)89, (uint?)1u); yield return new Token((TokenType)38, (uint?)null); yield return new Token((TokenType)15, (uint?)null); yield return (Token)new IdentifierToken("YAAM"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("get_catch_qualities"); yield return new Token((TokenType)80, (uint?)null); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("has"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new IdentifierToken("params"); yield return new Token((TokenType)76, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("quality")); yield return new Token((TokenType)77, (uint?)null); 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 (Token)new IdentifierToken("PlayerData"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("_send_notification"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("The fish was let off the hook due to being of ")); yield return new Token((TokenType)16, (uint?)null); yield return (Token)new IdentifierToken("YAAM"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("_get_quality_name"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new IdentifierToken("params"); yield return new Token((TokenType)76, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("quality")); yield return new Token((TokenType)77, (uint?)null); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)16, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant(" quality!")); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)2u); yield return (Token)new IdentifierToken("_kill"); yield return new Token((TokenType)80, (uint?)null); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)2u); yield return (Token)new IdentifierToken("_reached_end"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new ConstantToken((Variant)new BoolVariant(false)); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)2u); yield return new Token((TokenType)46, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); } else if (mashWaiter.Check(token)) { yield return token; yield return new Token((TokenType)38, (uint?)null); yield return (Token)new IdentifierToken("YAAM"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("config"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("Automash"); yield return new Token((TokenType)14, (uint?)null); yield return new Token((TokenType)80, (uint?)null); yield return new Token((TokenType)80, (uint?)null); 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("primary_action")); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)14, (uint?)null); 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("alt_primary")); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)13, (uint?)null); yield return new Token((TokenType)15, (uint?)null); yield return (Token)new IdentifierToken("reeling"); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)86, (uint?)null); newlineConsumer.SetReady(); } else if (reelWaiter.Check(token)) { yield return token; yield return new Token((TokenType)89, (uint?)1u); yield return new Token((TokenType)38, (uint?)null); yield return (Token)new IdentifierToken("YAAM"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("config"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("Autoreel"); yield return new Token((TokenType)14, (uint?)null); yield return new Token((TokenType)80, (uint?)null); 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("primary_action")); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)14, (uint?)null); 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("alt_primary")); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)86, (uint?)null); newlineConsumer.SetReady(); } else { yield return token; } } } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } } } public class Mod : IMod, global::System.IDisposable { public static Config Config; public Mod(IModInterface modInterface) { Config = modInterface.ReadConfig<Config>(); modInterface.RegisterScriptMod((IScriptMod)(object)new InjectConfig()); modInterface.RegisterScriptMod((IScriptMod)(object)new InjectMenu()); modInterface.RegisterScriptMod((IScriptMod)(object)new FishingRodPatch()); modInterface.RegisterScriptMod((IScriptMod)(object)new ControllerProcessPatch()); modInterface.RegisterScriptMod((IScriptMod)(object)new MinigamePatch()); modInterface.RegisterScriptMod((IScriptMod)(object)new PlayerData()); modInterface.RegisterScriptMod((IScriptMod)(object)new MyOCWouldDoThis()); modInterface.Logger.Information("Loaded YAAM!"); } public void Dispose() { } } public class InjectConfig : IScriptMod { [CompilerGenerated] private sealed class <Modify>d__1 : global::System.Collections.Generic.IEnumerable<Token>, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator<Token>, 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<Token> tokens; public global::System.Collections.Generic.IEnumerable<Token> <>3__tokens; private MultiTokenWaiter <extendsWaiter>5__2; private global::System.Collections.Generic.IEnumerator<Token> <>7__wrap2; Token global::System.Collections.Generic.IEnumerator<Token>.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public <Modify>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) <= 9u) { try { } finally { <>m__Finally1(); } } } private bool MoveNext() { //IL_010e: Unknown result type (might be due to invalid IL or missing references) //IL_0118: 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_0166: Unknown result type (might be due to invalid IL or missing references) //IL_0170: 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_01b8: Unknown result type (might be due to invalid IL or missing references) //IL_01c2: Expected O, but got Unknown //IL_01e4: Unknown result type (might be due to invalid IL or missing references) //IL_01ee: Expected O, but got Unknown //IL_020a: Unknown result type (might be due to invalid IL or missing references) //IL_0214: Expected O, but got Unknown //IL_020f: Unknown result type (might be due to invalid IL or missing references) //IL_0219: Expected O, but got Unknown //IL_0238: Unknown result type (might be due to invalid IL or missing references) //IL_0242: Expected O, but got Unknown //IL_0094: Unknown result type (might be due to invalid IL or missing references) //IL_009e: Expected O, but got Unknown //IL_00a4: Unknown result type (might be due to invalid IL or missing references) try { switch (<>1__state) { default: return false; case 0: <>1__state = -1; <extendsWaiter>5__2 = new MultiTokenWaiter(new Func<Token, bool>[2] { (Token t) => (int)t.Type == 51, (Token t) => (int)t.Type == 89 }, false, true); new FunctionWaiter("_ready", false); <>7__wrap2 = tokens.GetEnumerator(); <>1__state = -3; break; case 1: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)null); <>1__state = 2; return true; case 2: <>1__state = -3; <>2__current = new Token((TokenType)53, (uint?)null); <>1__state = 3; return true; case 3: <>1__state = -3; <>2__current = new Token((TokenType)59, (uint?)null); <>1__state = 4; return true; case 4: <>1__state = -3; <>2__current = (Token)new IdentifierToken("YAAM"); <>1__state = 5; return true; case 5: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 6; return true; case 6: <>1__state = -3; <>2__current = new Token((TokenType)87, (uint?)null); <>1__state = 7; return true; case 7: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("/root/YAAM")); <>1__state = 8; return true; case 8: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)null); <>1__state = 9; return true; case 9: <>1__state = -3; break; case 10: <>1__state = -3; break; } if (((global::System.Collections.IEnumerator)<>7__wrap2).MoveNext()) { Token current = <>7__wrap2.Current; if (<extendsWaiter>5__2.Check(current)) { <>2__current = current; <>1__state = 1; return true; } <>2__current = current; <>1__state = 10; 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(); } } [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<Token> global::System.Collections.Generic.IEnumerable<Token>.GetEnumerator() { <Modify>d__1 <Modify>d__; if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; <Modify>d__ = this; } else { <Modify>d__ = new <Modify>d__1(0); } <Modify>d__.tokens = <>3__tokens; return <Modify>d__; } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable<Token>)this).GetEnumerator(); } } public bool ShouldRun(string path) { if (!(path == "res://Scenes/Entities/Player/player.gdc")) { return path == "res://Scenes/Minigames/Fishing3/fishing3.gdc"; } return true; } [IteratorStateMachine(typeof(<Modify>d__1))] public global::System.Collections.Generic.IEnumerable<Token> Modify(string path, global::System.Collections.Generic.IEnumerable<Token> tokens) { MultiTokenWaiter extendsWaiter = new MultiTokenWaiter(new Func<Token, bool>[2] { (Token t) => (int)t.Type == 51, (Token t) => (int)t.Type == 89 }, false, true); new FunctionWaiter("_ready", false); global::System.Collections.Generic.IEnumerator<Token> enumerator = tokens.GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { Token current = enumerator.Current; if (extendsWaiter.Check(current)) { yield return current; yield return new Token((TokenType)89, (uint?)null); yield return new Token((TokenType)53, (uint?)null); yield return new Token((TokenType)59, (uint?)null); yield return (Token)new IdentifierToken("YAAM"); yield return new Token((TokenType)23, (uint?)null); yield return new Token((TokenType)87, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("/root/YAAM")); yield return new Token((TokenType)89, (uint?)null); } else { yield return current; } } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } } } public class InjectMenu : IScriptMod { [CompilerGenerated] private sealed class <Modify>d__1 : global::System.Collections.Generic.IEnumerable<Token>, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator<Token>, 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<Token> tokens; public global::System.Collections.Generic.IEnumerable<Token> <>3__tokens; private MultiTokenWaiter <extendsWaiter>5__2; private FunctionWaiter <readyWaiter>5__3; private global::System.Collections.Generic.IEnumerator<Token> <>7__wrap3; Token global::System.Collections.Generic.IEnumerator<Token>.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public <Modify>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) <= 27u) { try { } finally { <>m__Finally1(); } } } private bool MoveNext() { //IL_015b: Unknown result type (might be due to invalid IL or missing references) //IL_0165: Expected O, but got Unknown //IL_0187: Unknown result type (might be due to invalid IL or missing references) //IL_0191: 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_0231: Unknown result type (might be due to invalid IL or missing references) //IL_023b: Expected O, but got Unknown //IL_0257: Unknown result type (might be due to invalid IL or missing references) //IL_0261: Expected O, but got Unknown //IL_025c: Unknown result type (might be due to invalid IL or missing references) //IL_0266: Expected O, but got Unknown //IL_0288: Unknown result type (might be due to invalid IL or missing references) //IL_0292: Expected O, but got Unknown //IL_02e6: Unknown result type (might be due to invalid IL or missing references) //IL_02f0: Expected O, but got Unknown //IL_0313: Unknown result type (might be due to invalid IL or missing references) //IL_031d: Expected O, but got Unknown //IL_033a: Unknown result type (might be due to invalid IL or missing references) //IL_0344: Expected O, but got Unknown //IL_0367: Unknown result type (might be due to invalid IL or missing references) //IL_0371: Expected O, but got Unknown //IL_038e: Unknown result type (might be due to invalid IL or missing references) //IL_0398: Expected O, but got Unknown //IL_03bb: Unknown result type (might be due to invalid IL or missing references) //IL_03c5: Expected O, but got Unknown //IL_03e2: Unknown result type (might be due to invalid IL or missing references) //IL_03ec: 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_0463: Unknown result type (might be due to invalid IL or missing references) //IL_046d: Expected O, but got Unknown //IL_048a: Unknown result type (might be due to invalid IL or missing references) //IL_0494: Expected O, but got Unknown //IL_04b7: Unknown result type (might be due to invalid IL or missing references) //IL_04c1: Expected O, but got Unknown //IL_04de: Unknown result type (might be due to invalid IL or missing references) //IL_04e8: Expected O, but got Unknown //IL_050b: Unknown result type (might be due to invalid IL or missing references) //IL_0515: Expected O, but got Unknown //IL_0538: Unknown result type (might be due to invalid IL or missing references) //IL_0542: Expected O, but got Unknown //IL_0565: Unknown result type (might be due to invalid IL or missing references) //IL_056f: Expected O, but got Unknown //IL_058c: Unknown result type (might be due to invalid IL or missing references) //IL_0596: 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_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Expected O, but got Unknown try { switch (<>1__state) { default: return false; case 0: <>1__state = -1; <extendsWaiter>5__2 = new MultiTokenWaiter(new Func<Token, bool>[2] { (Token t) => (int)t.Type == 51, (Token t) => (int)t.Type == 89 }, false, true); <readyWaiter>5__3 = new FunctionWaiter("_ready", false); <>7__wrap3 = tokens.GetEnumerator(); <>1__state = -3; break; case 1: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)null); <>1__state = 2; return true; case 2: <>1__state = -3; <>2__current = new Token((TokenType)53, (uint?)null); <>1__state = 3; return true; case 3: <>1__state = -3; <>2__current = new Token((TokenType)59, (uint?)null); <>1__state = 4; return true; case 4: <>1__state = -3; <>2__current = (Token)new IdentifierToken("YAAM"); <>1__state = 5; return true; case 5: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 6; return true; case 6: <>1__state = -3; <>2__current = new Token((TokenType)87, (uint?)null); <>1__state = 7; return true; case 7: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("/root/YAAM")); <>1__state = 8; return true; case 8: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)null); <>1__state = 9; return true; case 9: <>1__state = -3; break; case 10: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 11; return true; case 11: <>1__state = -3; <>2__current = new Token((TokenType)87, (uint?)null); <>1__state = 12; return true; case 12: <>1__state = -3; <>2__current = (Token)new IdentifierToken("main"); <>1__state = 13; return true; case 13: <>1__state = -3; <>2__current = new Token((TokenType)19, (uint?)null); <>1__state = 14; return true; case 14: <>1__state = -3; <>2__current = (Token)new IdentifierToken("in_game"); <>1__state = 15; return true; case 15: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 16; return true; case 16: <>1__state = -3; <>2__current = (Token)new IdentifierToken("add_child"); <>1__state = 17; return true; case 17: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 18; return true; case 18: <>1__state = -3; <>2__current = (Token)new IdentifierToken("YAAM"); <>1__state = 19; return true; case 19: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 20; return true; case 20: <>1__state = -3; <>2__current = (Token)new IdentifierToken("quick_menu"); <>1__state = 21; return true; case 21: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 22; return true; case 22: <>1__state = -3; <>2__current = (Token)new IdentifierToken("instance"); <>1__state = 23; return true; case 23: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 24; return true; case 24: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 25; return true; case 25: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 26; return true; case 26: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 27; return true; case 27: <>1__state = -3; break; case 28: <>1__state = -3; break; } if (((global::System.Collections.IEnumerator)<>7__wrap3).MoveNext()) { Token current = <>7__wrap3.Current; if (<extendsWaiter>5__2.Check(current)) { <>2__current = current; <>1__state = 1; return true; } if (<readyWaiter>5__3.Check(current)) { <>2__current = current; <>1__state = 10; return true; } <>2__current = current; <>1__state = 28; 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<Token> global::System.Collections.Generic.IEnumerable<Token>.GetEnumerator() { <Modify>d__1 <Modify>d__; if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; <Modify>d__ = this; } else { <Modify>d__ = new <Modify>d__1(0); } <Modify>d__.tokens = <>3__tokens; return <Modify>d__; } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable<Token>)this).GetEnumerator(); } } public bool ShouldRun(string path) { return path == "res://Scenes/HUD/playerhud.gdc"; } [IteratorStateMachine(typeof(<Modify>d__1))] public global::System.Collections.Generic.IEnumerable<Token> Modify(string path, global::System.Collections.Generic.IEnumerable<Token> tokens) { MultiTokenWaiter extendsWaiter = new MultiTokenWaiter(new Func<Token, bool>[2] { (Token t) => (int)t.Type == 51, (Token t) => (int)t.Type == 89 }, false, true); FunctionWaiter readyWaiter = new FunctionWaiter("_ready", false); global::System.Collections.Generic.IEnumerator<Token> enumerator = tokens.GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { Token current = enumerator.Current; if (extendsWaiter.Check(current)) { yield return current; yield return new Token((TokenType)89, (uint?)null); yield return new Token((TokenType)53, (uint?)null); yield return new Token((TokenType)59, (uint?)null); yield return (Token)new IdentifierToken("YAAM"); yield return new Token((TokenType)23, (uint?)null); yield return new Token((TokenType)87, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("/root/YAAM")); yield return new Token((TokenType)89, (uint?)null); } else if (readyWaiter.Check(current)) { yield return current; yield return new Token((TokenType)89, (uint?)1u); yield return new Token((TokenType)87, (uint?)null); yield return (Token)new IdentifierToken("main"); yield return new Token((TokenType)19, (uint?)null); yield return (Token)new IdentifierToken("in_game"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("add_child"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new IdentifierToken("YAAM"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("quick_menu"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("instance"); yield return new Token((TokenType)80, (uint?)null); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); } else { yield return current; } } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } } } public class MyOCWouldDoThis : IScriptMod { [CompilerGenerated] private sealed class <Modify>d__1 : global::System.Collections.Generic.IEnumerable<Token>, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator<Token>, 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<Token> tokens; public global::System.Collections.Generic.IEnumerable<Token> <>3__tokens; private MultiTokenWaiter <postContributorWaiter>5__2; private global::System.Collections.Generic.IEnumerator<Token> <>7__wrap2; Token global::System.Collections.Generic.IEnumerator<Token>.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public <Modify>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) <= 20u) { try { } finally { <>m__Finally1(); } } } private bool MoveNext() { //IL_031b: Unknown result type (might be due to invalid IL or missing references) //IL_0325: Expected O, but got Unknown //IL_0347: Unknown result type (might be due to invalid IL or missing references) //IL_0351: 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_0399: Unknown result type (might be due to invalid IL or missing references) //IL_03a3: Expected O, but got Unknown //IL_03c2: Unknown result type (might be due to invalid IL or missing references) //IL_03cc: 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_0417: Unknown result type (might be due to invalid IL or missing references) //IL_0421: Expected O, but got Unknown //IL_0443: Unknown result type (might be due to invalid IL or missing references) //IL_044d: Expected O, but got Unknown //IL_046a: Unknown result type (might be due to invalid IL or missing references) //IL_0474: Expected O, but got Unknown //IL_0497: Unknown result type (might be due to invalid IL or missing references) //IL_04a1: Expected O, but got Unknown //IL_04c3: Unknown result type (might be due to invalid IL or missing references) //IL_04cd: Expected O, but got Unknown //IL_04ea: Unknown result type (might be due to invalid IL or missing references) //IL_04f4: Expected O, but got Unknown //IL_04ef: Unknown result type (might be due to invalid IL or missing references) //IL_04f9: 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_0543: Unknown result type (might be due to invalid IL or missing references) //IL_054d: Expected O, but got Unknown //IL_0570: Unknown result type (might be due to invalid IL or missing references) //IL_057a: Expected O, but got Unknown //IL_0597: Unknown result type (might be due to invalid IL or missing references) //IL_05a1: Expected O, but got Unknown //IL_059c: Unknown result type (might be due to invalid IL or missing references) //IL_05a6: Expected O, but got Unknown //IL_05c9: Unknown result type (might be due to invalid IL or missing references) //IL_05d3: Expected O, but got Unknown //IL_05f0: Unknown result type (might be due to invalid IL or missing references) //IL_05fa: Expected O, but got Unknown //IL_0617: Unknown result type (might be due to invalid IL or missing references) //IL_0621: Expected O, but got Unknown //IL_02f2: Unknown result type (might be due to invalid IL or missing references) //IL_02fc: 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 try { switch (<>1__state) { default: return false; case 0: <>1__state = -1; <postContributorWaiter>5__2 = new MultiTokenWaiter(new Func<Token, bool>[16] { (Token t) => (int)t.Type == 38, delegate(Token t) { IdentifierToken val7 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val7 != null && val7.Name == "Network"; }, (Token t) => (int)t.Type == 84, delegate(Token t) { IdentifierToken val6 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val6 != null && val6.Name == "KNOWN_CONTRIBUTORS"; }, (Token t) => (int)t.Type == 84, delegate(Token t) { IdentifierToken val5 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val5 != null && val5.Name == "has"; }, (Token t) => (int)t.Type == 80, delegate(Token t) { IdentifierToken val4 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val4 != null && val4.Name == "player_id"; }, (Token t) => (int)t.Type == 81, (Token t) => (int)t.Type == 86, delegate(Token t) { IdentifierToken val3 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val3 != null && val3.Name == "_name"; }, (Token t) => (int)t.Type == 23, delegate(Token t) { ConstantToken val2 = (ConstantToken)(object)((t is ConstantToken) ? t : null); return val2 != null && val2.Value is StringVariant; }, (Token t) => (int)t.Type == 16, delegate(Token t) { IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val != null && val.Name == "_name"; }, (Token t) => (int)t.Type == 89 }, false, true); <>7__wrap2 = tokens.GetEnumerator(); <>1__state = -3; break; case 1: <>1__state = -3; <>2__current = new Token((TokenType)5, (uint?)63u); <>1__state = 2; return true; case 2: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 3; return true; case 3: <>1__state = -3; <>2__current = (Token)new IdentifierToken("player_id"); <>1__state = 4; return true; case 4: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 5; return true; case 5: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>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)5, (uint?)62u); <>1__state = 8; return true; case 8: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 9; return true; case 9: <>1__state = -3; <>2__current = (Token)new IdentifierToken("player_id"); <>1__state = 10; return true; case 10: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 11; return true; case 11: <>1__state = -3; <>2__current = new Token((TokenType)7, (uint?)null); <>1__state = 12; return true; case 12: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("76561198420614020")); <>1__state = 13; return true; case 13: <>1__state = -3; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 14; return true; case 14: <>1__state = -3; <>2__current = (Token)new IdentifierToken("_name"); <>1__state = 15; return true; case 15: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 16; return true; case 16: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("[color=#DB5EFF][YAAM CREATOR][/color]\n")); <>1__state = 17; return true; case 17: <>1__state = -3; <>2__current = new Token((TokenType)16, (uint?)null); <>1__state = 18; return true; case 18: <>1__state = -3; <>2__current = (Token)new IdentifierToken("_name"); <>1__state = 19; return true; case 19: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 20; return true; case 20: <>1__state = -3; break; case 21: <>1__state = -3; break; } if (((global::System.Collections.IEnumerator)<>7__wrap2).MoveNext()) { Token current = <>7__wrap2.Current; if (<postContributorWaiter>5__2.Check(current)) { <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 1; return true; } <>2__current = current; <>1__state = 21; 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(); } } [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<Token> global::System.Collections.Generic.IEnumerable<Token>.GetEnumerator() { <Modify>d__1 <Modify>d__; if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; <Modify>d__ = this; } else { <Modify>d__ = new <Modify>d__1(0); } <Modify>d__.tokens = <>3__tokens; return <Modify>d__; } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable<Token>)this).GetEnumerator(); } } public bool ShouldRun(string path) { return path == "res://Scenes/Entities/Player/player_label.gdc"; } [IteratorStateMachine(typeof(<Modify>d__1))] public global::System.Collections.Generic.IEnumerable<Token> Modify(string path, global::System.Collections.Generic.IEnumerable<Token> tokens) { MultiTokenWaiter postContributorWaiter = new MultiTokenWaiter(new Func<Token, bool>[16] { (Token t) => (int)t.Type == 38, delegate(Token t) { IdentifierToken val7 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val7 != null && val7.Name == "Network"; }, (Token t) => (int)t.Type == 84, delegate(Token t) { IdentifierToken val6 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val6 != null && val6.Name == "KNOWN_CONTRIBUTORS"; }, (Token t) => (int)t.Type == 84, delegate(Token t) { IdentifierToken val5 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val5 != null && val5.Name == "has"; }, (Token t) => (int)t.Type == 80, delegate(Token t) { IdentifierToken val4 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val4 != null && val4.Name == "player_id"; }, (Token t) => (int)t.Type == 81, (Token t) => (int)t.Type == 86, delegate(Token t) { IdentifierToken val3 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val3 != null && val3.Name == "_name"; }, (Token t) => (int)t.Type == 23, delegate(Token t) { ConstantToken val2 = (ConstantToken)(object)((t is ConstantToken) ? t : null); return val2 != null && val2.Value is StringVariant; }, (Token t) => (int)t.Type == 16, delegate(Token t) { IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val != null && val.Name == "_name"; }, (Token t) => (int)t.Type == 89 }, false, true); global::System.Collections.Generic.IEnumerator<Token> enumerator = tokens.GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { Token current = enumerator.Current; if (postContributorWaiter.Check(current)) { yield return new Token((TokenType)89, (uint?)1u); yield return new Token((TokenType)5, (uint?)63u); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new IdentifierToken("player_id"); 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 new Token((TokenType)5, (uint?)62u); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new IdentifierToken("player_id"); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)7, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("76561198420614020")); yield return new Token((TokenType)86, (uint?)null); yield return (Token)new IdentifierToken("_name"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("[color=#DB5EFF][YAAM CREATOR][/color]\n")); yield return new Token((TokenType)16, (uint?)null); yield return (Token)new IdentifierToken("_name"); yield return new Token((TokenType)89, (uint?)1u); } else { yield return current; } } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } } } public class FishingRodPatch : IScriptMod { [CompilerGenerated] private sealed class <Modify>d__1 : global::System.Collections.Generic.IEnumerable<Token>, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator<Token>, 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<Token> tokens; public global::System.Collections.Generic.IEnumerable<Token> <>3__tokens; private FunctionWaiter <functionWaiter>5__2; private MultiTokenWaiter <cfrWaiter1>5__3; private MultiTokenWaiter <crfWaiter2>5__4; private TokenConsumer <newlineConsumer>5__5; private global::System.Collections.Generic.IEnumerator<Token> <>7__wrap5; private Token <token>5__7; Token global::System.Collections.Generic.IEnumerator<Token>.Current { [DebuggerHidden] get { return <>2__current; } } object global::System.Collections.IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public <Modify>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) <= 50u) { try { } finally { <>m__Finally1(); } } } private bool MoveNext() { //IL_00f2: Unknown result type (might be due to invalid IL or missing references) //IL_00fc: Expected O, but got Unknown //IL_0593: Unknown result type (might be due to invalid IL or missing references) //IL_059d: Expected O, but got Unknown //IL_05bf: Unknown result type (might be due to invalid IL or missing references) //IL_05c9: Expected O, but got Unknown //IL_05e5: Unknown result type (might be due to invalid IL or missing references) //IL_05ef: Expected O, but got Unknown //IL_0611: Unknown result type (might be due to invalid IL or missing references) //IL_061b: 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_0663: Unknown result type (might be due to invalid IL or missing references) //IL_066d: 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_06b6: Unknown result type (might be due to invalid IL or missing references) //IL_06c0: Expected O, but got Unknown //IL_06e3: Unknown result type (might be due to invalid IL or missing references) //IL_06ed: Expected O, but got Unknown //IL_0710: Unknown result type (might be due to invalid IL or missing references) //IL_071a: Expected O, but got Unknown //IL_073c: Unknown result type (might be due to invalid IL or missing references) //IL_0746: Expected O, but got Unknown //IL_0769: Unknown result type (might be due to invalid IL or missing references) //IL_0773: Expected O, but got Unknown //IL_0790: Unknown result type (might be due to invalid IL or missing references) //IL_079a: 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_07c2: Unknown result type (might be due to invalid IL or missing references) //IL_07cc: Expected O, but got Unknown //IL_0838: Unknown result type (might be due to invalid IL or missing references) //IL_0842: Expected O, but got Unknown //IL_085f: Unknown result type (might be due to invalid IL or missing references) //IL_0869: Expected O, but got Unknown //IL_0889: Unknown result type (might be due to invalid IL or missing references) //IL_0893: Expected O, but got Unknown //IL_08b6: Unknown result type (might be due to invalid IL or missing references) //IL_08c0: Expected O, but got Unknown //IL_08dd: Unknown result type (might be due to invalid IL or missing references) //IL_08e7: Expected O, but got Unknown //IL_090a: Unknown result type (might be due to invalid IL or missing references) //IL_0914: Expected O, but got Unknown //IL_0931: Unknown result type (might be due to invalid IL or missing references) //IL_093b: Expected O, but got Unknown //IL_095e: Unknown result type (might be due to invalid IL or missing references) //IL_0968: Expected O, but got Unknown //IL_0985: Unknown result type (might be due to invalid IL or missing references) //IL_098f: Expected O, but got Unknown //IL_09b2: Unknown result type (might be due to invalid IL or missing references) //IL_09bc: Expected O, but got Unknown //IL_09d9: Unknown result type (might be due to invalid IL or missing references) //IL_09e3: Expected O, but got Unknown //IL_0a06: Unknown result type (might be due to invalid IL or missing references) //IL_0a10: Expected O, but got Unknown //IL_0a2d: Unknown result type (might be due to invalid IL or missing references) //IL_0a37: Expected O, but got Unknown //IL_0a5a: Unknown result type (might be due to invalid IL or missing references) //IL_0a64: Expected O, but got Unknown //IL_0a81: Unknown result type (might be due to invalid IL or missing references) //IL_0a8b: Expected O, but got Unknown //IL_0aae: Unknown result type (might be due to invalid IL or missing references) //IL_0ab8: Expected O, but got Unknown //IL_0ad5: Unknown result type (might be due to invalid IL or missing references) //IL_0adf: Expected O, but got Unknown //IL_0aff: Unknown result type (might be due to invalid IL or missing references) //IL_0b09: Expected O, but got Unknown //IL_0b2c: Unknown result type (might be due to invalid IL or missing references) //IL_0b36: Expected O, but got Unknown //IL_0b59: Unknown result type (might be due to invalid IL or missing references) //IL_0b63: Expected O, but got Unknown //IL_0b80: Unknown result type (might be due to invalid IL or missing references) //IL_0b8a: Expected O, but got Unknown //IL_0bad: Unknown result type (might be due to invalid IL or missing references) //IL_0bb7: Expected O, but got Unknown //IL_0bd7: Unknown result type (might be due to invalid IL or missing references) //IL_0be1: Expected O, but got Unknown //IL_0c04: Unknown result type (might be due to invalid IL or missing references) //IL_0c0e: Expected O, but got Unknown //IL_0c2b: Unknown result type (might be due to invalid IL or missing references) //IL_0c35: Expected O, but got Unknown //IL_0c58: Unknown result type (might be due to invalid IL or missing references) //IL_0c62: Expected O, but got Unknown //IL_0c84: Unknown result type (might be due to invalid IL or missing references) //IL_0c8e: Expected O, but got Unknown //IL_0c89: Unknown result type (might be due to invalid IL or missing references) //IL_0c93: Expected O, but got Unknown //IL_0cb6: Unknown result type (might be due to invalid IL or missing references) //IL_0cc0: Expected O, but got Unknown //IL_0ce2: Unknown result type (might be due to invalid IL or missing references) //IL_0cec: Expected O, but got Unknown //IL_0ce7: Unknown result type (might be due to invalid IL or missing references) //IL_0cf1: Expected O, but got Unknown //IL_0d14: Unknown result type (might be due to invalid IL or missing references) //IL_0d1e: Expected O, but got Unknown //IL_0d40: Unknown result type (might be due to invalid IL or missing references) //IL_0d4a: Expected O, but got Unknown //IL_0d45: Unknown result type (might be due to invalid IL or missing references) //IL_0d4f: Expected O, but got Unknown //IL_0d72: Unknown result type (might be due to invalid IL or missing references) //IL_0d7c: Expected O, but got Unknown //IL_0d9c: Unknown result type (might be due to invalid IL or missing references) //IL_0da6: 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_0473: Unknown result type (might be due to invalid IL or missing references) //IL_047d: Expected O, but got Unknown //IL_049d: Unknown result type (might be due to invalid IL or missing references) //IL_04a7: Expected O, but got Unknown try { switch (<>1__state) { default: return false; case 0: <>1__state = -1; <functionWaiter>5__2 = new FunctionWaiter("_cast_fishing_rod", false); <cfrWaiter1>5__3 = new MultiTokenWaiter(new Func<Token, bool>[14] { delegate(Token t) { IdentifierToken val19 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val19 != null && val19.Name == "_enter_animation"; }, (Token t) => (int)t.Type == 80, delegate(Token t) { ConstantToken val17 = (ConstantToken)(object)((t is ConstantToken) ? t : null); if (val17 != null) { Variant value8 = val17.Value; StringVariant val18 = (StringVariant)(object)((value8 is StringVariant) ? value8 : null); if (val18 != null) { return val18.Value == "rod_wind"; } } return false; }, (Token t) => (int)t.Type == 82, delegate(Token t) { ConstantToken val15 = (ConstantToken)(object)((t is ConstantToken) ? t : null); if (val15 != null) { Variant value7 = val15.Value; BoolVariant val16 = (BoolVariant)(object)((value7 is BoolVariant) ? value7 : null); if (val16 != null) { return val16.Value; } } return false; }, (Token t) => (int)t.Type == 82, delegate(Token t) { ConstantToken val13 = (ConstantToken)(object)((t is ConstantToken) ? t : null); if (val13 != null) { Variant value6 = val13.Value; BoolVariant val14 = (BoolVariant)(object)((value6 is BoolVariant) ? value6 : null); if (val14 != null) { return !val14.Value; } } return false; }, (Token t) => (int)t.Type == 82, (Token t) => (int)t.Type == 17, delegate(Token t) { ConstantToken val11 = (ConstantToken)(object)((t is ConstantToken) ? t : null); if (val11 != null) { Variant value5 = val11.Value; IntVariant val12 = (IntVariant)(object)((value5 is IntVariant) ? value5 : null); if (val12 != null) { return val12.Value == 1; } } return false; }, (Token t) => (int)t.Type == 82, delegate(Token t) { ConstantToken val9 = (ConstantToken)(object)((t is ConstantToken) ? t : null); if (val9 != null) { Variant value4 = val9.Value; BoolVariant val10 = (BoolVariant)(object)((value4 is BoolVariant) ? value4 : null); if (val10 != null) { return !val10.Value; } } return false; }, (Token t) => (int)t.Type == 81, (Token t) => (int)t.Type == 89 }, true, true); <crfWaiter2>5__4 = new MultiTokenWaiter(new Func<Token, bool>[11] { delegate(Token t) { IdentifierToken val8 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val8 != null && val8.Name == "_sync_sfx"; }, (Token t) => (int)t.Type == 80, delegate(Token t) { ConstantToken val6 = (ConstantToken)(object)((t is ConstantToken) ? t : null); if (val6 != null) { Variant value3 = val6.Value; StringVariant val7 = (StringVariant)(object)((value3 is StringVariant) ? value3 : null); if (val7 != null) { return val7.Value == "woosh"; } } return false; }, (Token t) => (int)t.Type == 82, delegate(Token t) { ConstantToken val5 = (ConstantToken)(object)((t is ConstantToken) ? t : null); return val5 != null && val5.Value is NilVariant; }, (Token t) => (int)t.Type == 82, delegate(Token t) { ConstantToken val3 = (ConstantToken)(object)((t is ConstantToken) ? t : null); if (val3 != null) { Variant value2 = val3.Value; RealVariant val4 = (RealVariant)(object)((value2 is RealVariant) ? value2 : null); if (val4 != null) { return val4.Value == 1.0; } } return false; }, (Token t) => (int)t.Type == 82, delegate(Token t) { ConstantToken val = (ConstantToken)(object)((t is ConstantToken) ? t : null); if (val != null) { Variant value = val.Value; RealVariant val2 = (RealVariant)(object)((value is RealVariant) ? value : null); if (val2 != null) { return val2.Value == 0.4; } } return false; }, (Token t) => (int)t.Type == 81, (Token t) => (int)t.Type == 89 }, true, true); <newlineConsumer>5__5 = new TokenConsumer((Func<Token, bool>)((Token t) => (int)t.Type == 89)); <>7__wrap5 = tokens.GetEnumerator(); <>1__state = -3; goto IL_0dee; case 1: <>1__state = -3; <newlineConsumer>5__5.Reset(); goto IL_054f; case 2: <>1__state = -3; <>2__current = new Token((TokenType)38, (uint?)null); <>1__state = 3; return true; case 3: <>1__state = -3; <>2__current = new Token((TokenType)15, (uint?)null); <>1__state = 4; return true; case 4: <>1__state = -3; <>2__current = (Token)new IdentifierToken("YAAM"); <>1__state = 5; return true; case 5: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 6; return true; case 6: <>1__state = -3; <>2__current = (Token)new IdentifierToken("config"); <>1__state = 7; return true; case 7: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 8; return true; case 8: <>1__state = -3; <>2__current = (Token)new IdentifierToken("Autocast"); <>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)65, (uint?)null); <>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 = new Token((TokenType)3, (uint?)null); <>1__state = 13; return true; case 13: <>1__state = -3; <>2__current = new Token((TokenType)82, (uint?)null); <>1__state = 14; return true; case 14: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("_primary_release")); <>1__state = 15; return true; case 15: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 16; return true; case 16: <>1__state = -3; <newlineConsumer>5__5.SetReady(); goto IL_0de7; case 17: <>1__state = -3; <>2__current = new Token((TokenType)59, (uint?)null); <>1__state = 18; return true; case 18: <>1__state = -3; <>2__current = (Token)new IdentifierToken("strength"); <>1__state = 19; return true; case 19: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 20; return true; case 20: <>1__state = -3; <>2__current = new Token((TokenType)38, (uint?)null); <>1__state = 21; return true; case 21: <>1__state = -3; <>2__current = (Token)new IdentifierToken("YAAM"); <>1__state = 22; return true; case 22: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 23; return true; case 23: <>1__state = -3; <>2__current = (Token)new IdentifierToken("config"); <>1__state = 24; return true; case 24: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 25; return true; case 25: <>1__state = -3; <>2__current = (Token)new IdentifierToken("Autocast"); <>1__state = 26; return true; case 26: <>1__state = -3; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 27; return true; case 27: <>1__state = -3; <>2__current = (Token)new IdentifierToken("strength"); <>1__state = 28; return true; case 28: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 29; return true; case 29: <>1__state = -3; <>2__current = (Token)new IdentifierToken("YAAM"); <>1__state = 30; return true; case 30: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 31; return true; case 31: <>1__state = -3; <>2__current = (Token)new IdentifierToken("config"); <>1__state = 32; return true; case 32: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 33; return true; case 33: <>1__state = -3; <>2__current = (Token)new IdentifierToken("CastDistance"); <>1__state = 34; return true; case 34: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 35; return true; case 35: <>1__state = -3; <>2__current = new Token((TokenType)40, (uint?)null); <>1__state = 36; return true; case 36: <>1__state = -3; <>2__current = new Token((TokenType)86, (uint?)null); <>1__state = 37; return true; case 37: <>1__state = -3; <>2__current = (Token)new IdentifierToken("strength"); <>1__state = 38; return true; case 38: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 39; return true; case 39: <>1__state = -3; <>2__current = new Token((TokenType)5, (uint?)53u); <>1__state = 40; return true; case 40: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 41; return true; case 41: <>1__state = -3; <>2__current = (Token)new IdentifierToken("primary_hold_timer"); <>1__state = 42; return true; case 42: <>1__state = -3; <>2__current = new Token((TokenType)18, (uint?)null); <>1__state = 43; return true; case 43: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new RealVariant(0.06, false)); <>1__state = 44; return true; case 44: <>1__state = -3; <>2__current = new Token((TokenType)82, (uint?)null); <>1__state = 45; return true; case 45: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new RealVariant(1.5, false)); <>1__state = 46; return true; case 46: <>1__state = -3; <>2__current = new Token((TokenType)82, (uint?)null); <>1__state = 47; return true; case 47: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new RealVariant(9.0, false)); <>1__state = 48; return true; case 48: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 49; return true; case 49: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 50; return true; case 50: <>1__state = -3; <newlineConsumer>5__5.SetReady(); goto IL_0de7; case 51: { <>1__state = -3; goto IL_0de7; } IL_0de7: <token>5__7 = null; goto IL_0dee; IL_0dee: do { if (((global::System.Collections.IEnumerator)<>7__wrap5).MoveNext()) { <token>5__7 = <>7__wrap5.Current; if (<functionWaiter>5__2.Check(<token>5__7)) { <cfrWaiter1>5__3.SetReady(); <crfWaiter2>5__4.SetReady(); } continue; } <>m__Finally1(); <>7__wrap5 = null; return false; } while (<newlineConsumer>5__5.Check(<token>5__7)); if (<newlineConsumer>5__5.Ready) { <>2__current = <token>5__7; <>1__state = 1; return true; } goto IL_054f; IL_054f: if (<cfrWaiter1>5__3.Check(<token>5__7)) { <>2__current = <token>5__7; <>1__state = 2; return true; } if (<crfWaiter2>5__4.Check(<token>5__7)) { <>2__current = <token>5__7; <>1__state = 17; return true; } <>2__current = <token>5__7; <>1__state = 51; 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__wrap5 != null) { ((global::System.IDisposable)<>7__wrap5).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<Token> global::System.Collections.Generic.IEnumerable<Token>.GetEnumerator() { <Modify>d__1 <Modify>d__; if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; <Modify>d__ = this; } else { <Modify>d__ = new <Modify>d__1(0); } <Modify>d__.tokens = <>3__tokens; return <Modify>d__; } [DebuggerHidden] global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() { return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable<Token>)this).GetEnumerator(); } } public bool ShouldRun(string path) { return path == "res://Scenes/Entities/Player/player.gdc"; } [IteratorStateMachine(typeof(<Modify>d__1))] public global::System.Collections.Generic.IEnumerable<Token>