Decompiled source of EventAlert v1.0.9
GDWeave/mods/EventAlert/EventAlert.dll
Decompiled 3 days 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("EventAlert")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+b867ed6e7867204f1a5f7eeb36c13b1e5f73d5d1")] [assembly: AssemblyProduct("EventAlert")] [assembly: AssemblyTitle("EventAlert")] [assembly: AssemblyVersion("1.0.0.0")] [module: RefSafetyRules(11)] namespace EventAlert; public class Config { [JsonInclude] public bool HideVanillaChatPrompts = true; [JsonInclude] public bool ShowLogs = true; [JsonInclude] public bool ShowSeconds = true; [JsonInclude] public bool MeteorAlert = true; [JsonInclude] public bool RainAlert = true; [JsonInclude] public bool VoidPortalAlert = true; } public class MeteorSpawnPatch : IScriptMod { [CompilerGenerated] private sealed class <Modify>d__4 : 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 string path; public string <>3__path; private global::System.Collections.Generic.IEnumerable<Token> tokens; public global::System.Collections.Generic.IEnumerable<Token> <>3__tokens; public MeteorSpawnPatch <>4__this; private TokenConsumer <newlineConsumer>5__1; private MultiTokenWaiter <readyMatch>5__2; private global::System.Collections.Generic.IEnumerator<Token> <>s__3; private Token <token>5__4; 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__4(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) > 107u) { return; } try { } finally { <>m__Finally1(); } } private bool MoveNext() { //IL_05ab: Unknown result type (might be due to invalid IL or missing references) //IL_05b5: 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_05fe: Unknown result type (might be due to invalid IL or missing references) //IL_0608: 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_0651: Unknown result type (might be due to invalid IL or missing references) //IL_065b: Expected O, but got Unknown //IL_067e: Unknown result type (might be due to invalid IL or missing references) //IL_0688: Expected O, but got Unknown //IL_06ab: Unknown result type (might be due to invalid IL or missing references) //IL_06b5: 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_0741: Unknown result type (might be due to invalid IL or missing references) //IL_074b: Expected O, but got Unknown //IL_0768: Unknown result type (might be due to invalid IL or missing references) //IL_0772: Expected O, but got Unknown //IL_0796: Unknown result type (might be due to invalid IL or missing references) //IL_07a0: Expected O, but got Unknown //IL_07bd: Unknown result type (might be due to invalid IL or missing references) //IL_07c7: Expected O, but got Unknown //IL_07eb: Unknown result type (might be due to invalid IL or missing references) //IL_07f5: Expected O, but got Unknown //IL_0812: Unknown result type (might be due to invalid IL or missing references) //IL_081c: Expected O, but got Unknown //IL_0840: Unknown result type (might be due to invalid IL or missing references) //IL_084a: Expected O, but got Unknown //IL_086e: Unknown result type (might be due to invalid IL or missing references) //IL_0878: Expected O, but got Unknown //IL_089c: Unknown result type (might be due to invalid IL or missing references) //IL_08a6: Expected O, but got Unknown //IL_08c1: Unknown result type (might be due to invalid IL or missing references) //IL_08cb: Expected O, but got Unknown //IL_08c6: Unknown result type (might be due to invalid IL or missing references) //IL_08d0: Expected O, but got Unknown //IL_08f4: Unknown result type (might be due to invalid IL or missing references) //IL_08fe: Expected O, but got Unknown //IL_0919: Unknown result type (might be due to invalid IL or missing references) //IL_0923: Expected O, but got Unknown //IL_091e: Unknown result type (might be due to invalid IL or missing references) //IL_0928: 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_0976: Unknown result type (might be due to invalid IL or missing references) //IL_0980: Expected O, but got Unknown //IL_09cc: Unknown result type (might be due to invalid IL or missing references) //IL_09d6: 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_0a21: Unknown result type (might be due to invalid IL or missing references) //IL_0a2b: Expected O, but got Unknown //IL_0a48: Unknown result type (might be due to invalid IL or missing references) //IL_0a52: Expected O, but got Unknown //IL_0a76: Unknown result type (might be due to invalid IL or missing references) //IL_0a80: Expected O, but got Unknown //IL_0a9d: Unknown result type (might be due to invalid IL or missing references) //IL_0aa7: Expected O, but got Unknown //IL_0aa2: Unknown result type (might be due to invalid IL or missing references) //IL_0aac: Expected O, but got Unknown //IL_0ad0: Unknown result type (might be due to invalid IL or missing references) //IL_0ada: Expected O, but got Unknown //IL_0afa: Unknown result type (might be due to invalid IL or missing references) //IL_0b04: Expected O, but got Unknown //IL_0b21: Unknown result type (might be due to invalid IL or missing references) //IL_0b2b: Expected O, but got Unknown //IL_0b4f: Unknown result type (might be due to invalid IL or missing references) //IL_0b59: Expected O, but got Unknown //IL_0b76: Unknown result type (might be due to invalid IL or missing references) //IL_0b80: Expected O, but got Unknown //IL_0ba4: Unknown result type (might be due to invalid IL or missing references) //IL_0bae: Expected O, but got Unknown //IL_0bcb: Unknown result type (might be due to invalid IL or missing references) //IL_0bd5: Expected O, but got Unknown //IL_0bd0: Unknown result type (might be due to invalid IL or missing references) //IL_0bda: Expected O, but got Unknown //IL_0bfe: Unknown result type (might be due to invalid IL or missing references) //IL_0c08: Expected O, but got Unknown //IL_0c25: Unknown result type (might be due to invalid IL or missing references) //IL_0c2f: Expected O, but got Unknown //IL_0c53: Unknown result type (might be due to invalid IL or missing references) //IL_0c5d: Expected O, but got Unknown //IL_0c7a: Unknown result type (might be due to invalid IL or missing references) //IL_0c84: Expected O, but got Unknown //IL_0c7f: Unknown result type (might be due to invalid IL or missing references) //IL_0c89: Expected O, but got Unknown //IL_0cad: Unknown result type (might be due to invalid IL or missing references) //IL_0cb7: Expected O, but got Unknown //IL_0cd7: Unknown result type (might be due to invalid IL or missing references) //IL_0ce1: Expected O, but got Unknown //IL_0d2d: Unknown result type (might be due to invalid IL or missing references) //IL_0d37: Expected O, but got Unknown //IL_0d5b: Unknown result type (might be due to invalid IL or missing references) //IL_0d65: Expected O, but got Unknown //IL_0d82: Unknown result type (might be due to invalid IL or missing references) //IL_0d8c: Expected O, but got Unknown //IL_0db0: Unknown result type (might be due to invalid IL or missing references) //IL_0dba: Expected O, but got Unknown //IL_0dd7: Unknown result type (might be due to invalid IL or missing references) //IL_0de1: Expected O, but got Unknown //IL_0e05: Unknown result type (might be due to invalid IL or missing references) //IL_0e0f: Expected O, but got Unknown //IL_0e33: Unknown result type (might be due to invalid IL or missing references) //IL_0e3d: Expected O, but got Unknown //IL_0e5d: Unknown result type (might be due to invalid IL or missing references) //IL_0e67: Expected O, but got Unknown //IL_0e8b: Unknown result type (might be due to invalid IL or missing references) //IL_0e95: Expected O, but got Unknown //IL_0eb2: Unknown result type (might be due to invalid IL or missing references) //IL_0ebc: Expected O, but got Unknown //IL_0ee0: Unknown result type (might be due to invalid IL or missing references) //IL_0eea: Expected O, but got Unknown //IL_0f0a: Unknown result type (might be due to invalid IL or missing references) //IL_0f14: Expected O, but got Unknown //IL_0f38: Unknown result type (might be due to invalid IL or missing references) //IL_0f42: Expected O, but got Unknown //IL_0f5f: Unknown result type (might be due to invalid IL or missing references) //IL_0f69: Expected O, but got Unknown //IL_0f64: Unknown result type (might be due to invalid IL or missing references) //IL_0f6e: Expected O, but got Unknown //IL_0f92: Unknown result type (might be due to invalid IL or missing references) //IL_0f9c: Expected O, but got Unknown //IL_0fbc: Unknown result type (might be due to invalid IL or missing references) //IL_0fc6: Expected O, but got Unknown //IL_0fe3: Unknown result type (might be due to invalid IL or missing references) //IL_0fed: Expected O, but got Unknown //IL_1011: Unknown result type (might be due to invalid IL or missing references) //IL_101b: Expected O, but got Unknown //IL_1038: Unknown result type (might be due to invalid IL or missing references) //IL_1042: Expected O, but got Unknown //IL_1066: Unknown result type (might be due to invalid IL or missing references) //IL_1070: Expected O, but got Unknown //IL_1090: Unknown result type (might be due to invalid IL or missing references) //IL_109a: Expected O, but got Unknown //IL_10b7: Unknown result type (might be due to invalid IL or missing references) //IL_10c1: Expected O, but got Unknown //IL_10e5: Unknown result type (might be due to invalid IL or missing references) //IL_10ef: Expected O, but got Unknown //IL_110c: Unknown result type (might be due to invalid IL or missing references) //IL_1116: Expected O, but got Unknown //IL_113a: Unknown result type (might be due to invalid IL or missing references) //IL_1144: Expected O, but got Unknown //IL_1161: Unknown result type (might be due to invalid IL or missing references) //IL_116b: Expected O, but got Unknown //IL_118f: Unknown result type (might be due to invalid IL or missing references) //IL_1199: Expected O, but got Unknown //IL_11b9: Unknown result type (might be due to invalid IL or missing references) //IL_11c3: Expected O, but got Unknown //IL_11e0: Unknown result type (might be due to invalid IL or missing references) //IL_11ea: Expected O, but got Unknown //IL_120e: Unknown result type (might be due to invalid IL or missing references) //IL_1218: Expected O, but got Unknown //IL_1235: Unknown result type (might be due to invalid IL or missing references) //IL_123f: Expected O, but got Unknown //IL_1263: Unknown result type (might be due to invalid IL or missing references) //IL_126d: Expected O, but got Unknown //IL_1289: Unknown result type (might be due to invalid IL or missing references) //IL_1293: Expected O, but got Unknown //IL_128e: Unknown result type (might be due to invalid IL or missing references) //IL_1298: Expected O, but got Unknown //IL_12b8: Unknown result type (might be due to invalid IL or missing references) //IL_12c2: Expected O, but got Unknown //IL_12df: Unknown result type (might be due to invalid IL or missing references) //IL_12e9: Expected O, but got Unknown //IL_130d: Unknown result type (might be due to invalid IL or missing references) //IL_1317: Expected O, but got Unknown //IL_1334: Unknown result type (might be due to invalid IL or missing references) //IL_133e: Expected O, but got Unknown //IL_1362: Unknown result type (might be due to invalid IL or missing references) //IL_136c: Expected O, but got Unknown //IL_1387: Unknown result type (might be due to invalid IL or missing references) //IL_1391: Expected O, but got Unknown //IL_138c: Unknown result type (might be due to invalid IL or missing references) //IL_1396: Expected O, but got Unknown //IL_13b6: Unknown result type (might be due to invalid IL or missing references) //IL_13c0: Expected O, but got Unknown //IL_13dd: Unknown result type (might be due to invalid IL or missing references) //IL_13e7: Expected O, but got Unknown //IL_140b: Unknown result type (might be due to invalid IL or missing references) //IL_1415: Expected O, but got Unknown //IL_1432: Unknown result type (might be due to invalid IL or missing references) //IL_143c: Expected O, but got Unknown //IL_1460: Unknown result type (might be due to invalid IL or missing references) //IL_146a: Expected O, but got Unknown //IL_1487: Unknown result type (might be due to invalid IL or missing references) //IL_1491: Expected O, but got Unknown //IL_148c: Unknown result type (might be due to invalid IL or missing references) //IL_1496: Expected O, but got Unknown //IL_14b6: Unknown result type (might be due to invalid IL or missing references) //IL_14c0: Expected O, but got Unknown //IL_14dd: Unknown result type (might be due to invalid IL or missing references) //IL_14e7: Expected O, but got Unknown //IL_150b: Unknown result type (might be due to invalid IL or missing references) //IL_1515: Expected O, but got Unknown //IL_1532: Unknown result type (might be due to invalid IL or missing references) //IL_153c: Expected O, but got Unknown //IL_1560: Unknown result type (might be due to invalid IL or missing references) //IL_156a: Expected O, but got Unknown //IL_158e: Unknown result type (might be due to invalid IL or missing references) //IL_1598: Expected O, but got Unknown //IL_15b8: Unknown result type (might be due to invalid IL or missing references) //IL_15c2: Expected O, but got Unknown //IL_15df: Unknown result type (might be due to invalid IL or missing references) //IL_15e9: Expected O, but got Unknown //IL_160d: Unknown result type (might be due to invalid IL or missing references) //IL_1617: Expected O, but got Unknown //IL_1634: Unknown result type (might be due to invalid IL or missing references) //IL_163e: Expected O, but got Unknown //IL_1662: Unknown result type (might be due to invalid IL or missing references) //IL_166c: Expected O, but got Unknown //IL_1689: Unknown result type (might be due to invalid IL or missing references) //IL_1693: Expected O, but got Unknown //IL_168e: Unknown result type (might be due to invalid IL or missing references) //IL_1698: Expected O, but got Unknown //IL_16bc: Unknown result type (might be due to invalid IL or missing references) //IL_16c6: Expected O, but got Unknown //IL_16e1: Unknown result type (might be due to invalid IL or missing references) //IL_16eb: Expected O, but got Unknown //IL_16e6: Unknown result type (might be due to invalid IL or missing references) //IL_16f0: Expected O, but got Unknown //IL_1714: Unknown result type (might be due to invalid IL or missing references) //IL_171e: Expected O, but got Unknown //IL_0416: Unknown result type (might be due to invalid IL or missing references) //IL_0420: Expected O, but got Unknown //IL_0d06: Unknown result type (might be due to invalid IL or missing references) //IL_0d10: Expected O, but got Unknown //IL_0585: Unknown result type (might be due to invalid IL or missing references) //IL_058f: 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_0713: Unknown result type (might be due to invalid IL or missing references) //IL_071d: 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 try { switch (<>1__state) { default: return false; case 0: <>1__state = -1; <newlineConsumer>5__1 = new TokenConsumer((Func<Token, bool>)((Token t) => (int)t.Type == 89)); <readyMatch>5__2 = new MultiTokenWaiter(new Func<Token, bool>[5] { delegate(Token t) { IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val != null && val.Name == "_ready"; }, (Token t) => (int)t.Type == 80, (Token t) => (int)t.Type == 81, (Token t) => (int)t.Type == 86, (Token t) => (int)t.Type == 89 }, false, false); <>s__3 = tokens.GetEnumerator(); <>1__state = -3; break; case 1: <>1__state = -3; if (Mod.Config.ShowLogs) { <>2__current = new Token((TokenType)59, (uint?)null); <>1__state = 2; return true; } goto IL_0cf9; case 2: <>1__state = -3; <>2__current = (Token)new IdentifierToken("time"); <>1__state = 3; return true; case 3: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 4; return true; case 4: <>1__state = -3; <>2__current = (Token)new IdentifierToken("Time"); <>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_time_string_from_system"); <>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)89, (uint?)1u); <>1__state = 10; return true; case 10: <>1__state = -3; if (!Mod.Config.ShowSeconds) { <>2__current = (Token)new IdentifierToken("time"); <>1__state = 11; return true; } goto IL_0998; case 11: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 12; return true; case 12: <>1__state = -3; <>2__current = (Token)new IdentifierToken("erase"); <>1__state = 13; return true; case 13: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 14; return true; case 14: <>1__state = -3; <>2__current = (Token)new IdentifierToken("time"); <>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("length"); <>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 = new Token((TokenType)81, (uint?)null); <>1__state = 19; return true; case 19: <>1__state = -3; <>2__current = new Token((TokenType)17, (uint?)null); <>1__state = 20; return true; case 20: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(3L, false)); <>1__state = 21; return true; case 21: <>1__state = -3; <>2__current = new Token((TokenType)82, (uint?)null); <>1__state = 22; return true; case 22: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(3L, false)); <>1__state = 23; return true; case 23: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 24; return true; case 24: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 25; return true; case 25: <>1__state = -3; goto IL_0998; case 26: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 27; return true; case 27: <>1__state = -3; <>2__current = (Token)new IdentifierToken("time"); <>1__state = 28; return true; case 28: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 29; return true; case 29: <>1__state = -3; <>2__current = (Token)new IdentifierToken("trim_prefix"); <>1__state = 30; return true; case 30: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 31; return true; case 31: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("0")); <>1__state = 32; return true; case 32: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 33; return true; case 33: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 34; return true; case 34: <>1__state = -3; <>2__current = (Token)new IdentifierToken("Network"); <>1__state = 35; return true; case 35: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 36; return true; case 36: <>1__state = -3; <>2__current = (Token)new IdentifierToken("_update_chat"); <>1__state = 37; return true; case 37: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 38; return true; case 38: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("[color=#1e814e](")); <>1__state = 39; return true; case 39: <>1__state = -3; <>2__current = new Token((TokenType)16, (uint?)null); <>1__state = 40; return true; case 40: <>1__state = -3; <>2__current = (Token)new IdentifierToken("time"); <>1__state = 41; return true; case 41: <>1__state = -3; <>2__current = new Token((TokenType)16, (uint?)null); <>1__state = 42; return true; case 42: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant(" Meteor)[/color] a meteor has landed!")); <>1__state = 43; return true; case 43: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 44; return true; case 44: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 45; return true; case 45: <>1__state = -3; goto IL_0cf9; case 46: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notif"); <>1__state = 47; return true; case 47: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 48; return true; case 48: <>1__state = -3; <>2__current = (Token)new IdentifierToken("AudioStreamPlayer"); <>1__state = 49; return true; case 49: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 50; return true; case 50: <>1__state = -3; <>2__current = (Token)new IdentifierToken("new"); <>1__state = 51; return true; case 51: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 52; return true; case 52: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 53; return true; case 53: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 54; return true; case 54: <>1__state = -3; <>2__current = new Token((TokenType)59, (uint?)null); <>1__state = 55; return true; case 55: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notifsound"); <>1__state = 56; return true; case 56: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 57; return true; case 57: <>1__state = -3; <>2__current = new Token((TokenType)5, (uint?)76u); <>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 ConstantToken((Variant)new StringVariant("res://mods/EventAlert/Assets/drip3.ogg")); <>1__state = 60; return true; case 60: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 61; return true; case 61: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 62; return true; case 62: <>1__state = -3; <>2__current = (Token)new IdentifierToken("add_child"); <>1__state = 63; return true; case 63: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 64; return true; case 64: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notif"); <>1__state = 65; return true; case 65: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 66; return true; case 66: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 67; return true; case 67: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notif"); <>1__state = 68; return true; case 68: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 69; return true; case 69: <>1__state = -3; <>2__current = (Token)new IdentifierToken("set_stream"); <>1__state = 70; return true; case 70: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 71; return true; case 71: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notifsound"); <>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)89, (uint?)1u); <>1__state = 74; return true; case 74: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notif"); <>1__state = 75; return true; case 75: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 76; return true; case 76: <>1__state = -3; <>2__current = (Token)new IdentifierToken("volume_db"); <>1__state = 77; return true; case 77: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 78; return true; case 78: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(-16L, false)); <>1__state = 79; return true; 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 = (Token)new IdentifierToken("notif"); <>1__state = 81; return true; case 81: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 82; return true; case 82: <>1__state = -3; <>2__current = (Token)new IdentifierToken("pitch_scale"); <>1__state = 83; return true; case 83: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 84; return true; case 84: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(1L, false)); <>1__state = 85; return true; case 85: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 86; return true; case 86: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notif"); <>1__state = 87; return true; case 87: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 88; return true; case 88: <>1__state = -3; <>2__current = (Token)new IdentifierToken("bus"); <>1__state = 89; return true; case 89: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 90; return true; case 90: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("SFX")); <>1__state = 91; return true; case 91: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 92; return true; case 92: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notif"); <>1__state = 93; return true; case 93: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 94; return true; case 94: <>1__state = -3; <>2__current = (Token)new IdentifierToken("play"); <>1__state = 95; return true; case 95: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 96; return true; case 96: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 97; return true; case 97: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 98; return true; case 98: <>1__state = -3; <>2__current = (Token)new IdentifierToken("PlayerData"); <>1__state = 99; return true; case 99: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 100; return true; case 100: <>1__state = -3; <>2__current = (Token)new IdentifierToken("_send_notification"); <>1__state = 101; return true; case 101: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 102; return true; case 102: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("a meteor has landed!")); <>1__state = 103; return true; case 103: <>1__state = -3; <>2__current = new Token((TokenType)82, (uint?)null); <>1__state = 104; return true; case 104: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(1L, false)); <>1__state = 105; return true; case 105: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 106; return true; case 106: <>1__state = -3; if (Mod.Config.HideVanillaChatPrompts) { <newlineConsumer>5__1.SetReady(); goto IL_1798; } <>2__current = <token>5__4; <>1__state = 107; return true; case 107: <>1__state = -3; goto IL_1798; case 108: { <>1__state = -3; goto IL_1798; } IL_1798: <token>5__4 = null; break; IL_0cf9: <>2__current = new Token((TokenType)59, (uint?)null); <>1__state = 46; return true; IL_0998: <>2__current = (Token)new IdentifierToken("time"); <>1__state = 26; return true; } while (((global::System.Collections.IEnumerator)<>s__3).MoveNext()) { <token>5__4 = <>s__3.Current; if (<newlineConsumer>5__1.Check(<token>5__4)) { continue; } if (<readyMatch>5__2.Check(<token>5__4)) { <>2__current = <token>5__4; <>1__state = 1; return true; } <>2__current = <token>5__4; <>1__state = 108; return true; } <>m__Finally1(); <>s__3 = 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 (<>s__3 != null) { ((global::System.IDisposable)<>s__3).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__4 <Modify>d__; if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; <Modify>d__ = this; } else { <Modify>d__ = new <Modify>d__4(0) { <>4__this = <>4__this }; } <Modify>d__.path = <>3__path; <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(); } } private const string Time = "time"; private const string Notif = "notif"; private const string NotifSound = "notifsound"; public bool ShouldRun(string path) { return path == "res://Scenes/Entities/MeteorSpawn/meteor_spawn.gdc"; } [IteratorStateMachine(typeof(<Modify>d__4))] public global::System.Collections.Generic.IEnumerable<Token> Modify(string path, global::System.Collections.Generic.IEnumerable<Token> tokens) { TokenConsumer newlineConsumer = new TokenConsumer((Func<Token, bool>)((Token t) => (int)t.Type == 89)); MultiTokenWaiter readyMatch = new MultiTokenWaiter(new Func<Token, bool>[5] { delegate(Token t) { IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val != null && val.Name == "_ready"; }, (Token t) => (int)t.Type == 80, (Token t) => (int)t.Type == 81, (Token t) => (int)t.Type == 86, (Token t) => (int)t.Type == 89 }, false, false); global::System.Collections.Generic.IEnumerator<Token> enumerator = tokens.GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { Token token = enumerator.Current; if (newlineConsumer.Check(token)) { continue; } if (readyMatch.Check(token)) { yield return token; if (Mod.Config.ShowLogs) { yield return new Token((TokenType)59, (uint?)null); yield return (Token)new IdentifierToken("time"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new IdentifierToken("Time"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("get_time_string_from_system"); yield return new Token((TokenType)80, (uint?)null); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); if (!Mod.Config.ShowSeconds) { yield return (Token)new IdentifierToken("time"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("erase"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new IdentifierToken("time"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("length"); yield return new Token((TokenType)80, (uint?)null); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)17, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(3L, false)); yield return new Token((TokenType)82, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(3L, false)); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); } yield return (Token)new IdentifierToken("time"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new IdentifierToken("time"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("trim_prefix"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("0")); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); yield return (Token)new IdentifierToken("Network"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("_update_chat"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("[color=#1e814e](")); yield return new Token((TokenType)16, (uint?)null); yield return (Token)new IdentifierToken("time"); yield return new Token((TokenType)16, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant(" Meteor)[/color] a meteor has landed!")); 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("notif"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new IdentifierToken("AudioStreamPlayer"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("new"); yield return new Token((TokenType)80, (uint?)null); 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("notifsound"); yield return new Token((TokenType)23, (uint?)null); yield return new Token((TokenType)5, (uint?)76u); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("res://mods/EventAlert/Assets/drip3.ogg")); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); yield return (Token)new IdentifierToken("add_child"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new IdentifierToken("notif"); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); yield return (Token)new IdentifierToken("notif"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("set_stream"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new IdentifierToken("notifsound"); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); yield return (Token)new IdentifierToken("notif"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("volume_db"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(-16L, false)); yield return new Token((TokenType)89, (uint?)1u); yield return (Token)new IdentifierToken("notif"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("pitch_scale"); 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?)1u); yield return (Token)new IdentifierToken("notif"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("bus"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("SFX")); yield return new Token((TokenType)89, (uint?)1u); yield return (Token)new IdentifierToken("notif"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("play"); yield return new Token((TokenType)80, (uint?)null); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); 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("a meteor has landed!")); yield return new Token((TokenType)82, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(1L, false)); yield return new Token((TokenType)81, (uint?)null); if (Mod.Config.HideVanillaChatPrompts) { newlineConsumer.SetReady(); } else { yield return token; } } 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>(); if (Config.MeteorAlert) { modInterface.RegisterScriptMod((IScriptMod)(object)new MeteorSpawnPatch()); } if (Config.RainAlert) { modInterface.RegisterScriptMod((IScriptMod)(object)new RainCloudPatch()); } if (Config.VoidPortalAlert) { modInterface.RegisterScriptMod((IScriptMod)(object)new VoidPortalPatch()); } } public void Dispose() { } } public class RainCloudPatch : IScriptMod { [CompilerGenerated] private sealed class <Modify>d__4 : 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 string path; public string <>3__path; private global::System.Collections.Generic.IEnumerable<Token> tokens; public global::System.Collections.Generic.IEnumerable<Token> <>3__tokens; public RainCloudPatch <>4__this; private MultiTokenWaiter <readyMatch>5__1; private global::System.Collections.Generic.IEnumerator<Token> <>s__2; private Token <token>5__3; 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__4(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) > 107u) { return; } try { } finally { <>m__Finally1(); } } private bool MoveNext() { //IL_0564: Unknown result type (might be due to invalid IL or missing references) //IL_056e: Expected O, but got Unknown //IL_0591: Unknown result type (might be due to invalid IL or missing references) //IL_059b: Expected O, but got Unknown //IL_05b7: Unknown result type (might be due to invalid IL or missing references) //IL_05c1: Expected O, but got Unknown //IL_05e4: Unknown result type (might be due to invalid IL or missing references) //IL_05ee: Expected O, but got Unknown //IL_060a: Unknown result type (might be due to invalid IL or missing references) //IL_0614: 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_0664: Unknown result type (might be due to invalid IL or missing references) //IL_066e: Expected O, but got Unknown //IL_068e: Unknown result type (might be due to invalid IL or missing references) //IL_0698: Expected O, but got Unknown //IL_06fa: Unknown result type (might be due to invalid IL or missing references) //IL_0704: Expected O, but got Unknown //IL_0721: Unknown result type (might be due to invalid IL or missing references) //IL_072b: Expected O, but got Unknown //IL_074f: Unknown result type (might be due to invalid IL or missing references) //IL_0759: Expected O, but got Unknown //IL_0776: Unknown result type (might be due to invalid IL or missing references) //IL_0780: Expected O, but got Unknown //IL_07a4: Unknown result type (might be due to invalid IL or missing references) //IL_07ae: Expected O, but got Unknown //IL_07cb: Unknown result type (might be due to invalid IL or missing references) //IL_07d5: Expected O, but got Unknown //IL_07f9: Unknown result type (might be due to invalid IL or missing references) //IL_0803: Expected O, but got Unknown //IL_0827: Unknown result type (might be due to invalid IL or missing references) //IL_0831: Expected O, but got Unknown //IL_0855: Unknown result type (might be due to invalid IL or missing references) //IL_085f: Expected O, but got Unknown //IL_087a: Unknown result type (might be due to invalid IL or missing references) //IL_0884: Expected O, but got Unknown //IL_087f: Unknown result type (might be due to invalid IL or missing references) //IL_0889: Expected O, but got Unknown //IL_08ad: Unknown result type (might be due to invalid IL or missing references) //IL_08b7: Expected O, but got Unknown //IL_08d2: Unknown result type (might be due to invalid IL or missing references) //IL_08dc: Expected O, but got Unknown //IL_08d7: Unknown result type (might be due to invalid IL or missing references) //IL_08e1: Expected O, but got Unknown //IL_0905: Unknown result type (might be due to invalid IL or missing references) //IL_090f: Expected O, but got Unknown //IL_092f: Unknown result type (might be due to invalid IL or missing references) //IL_0939: 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_09ac: Unknown result type (might be due to invalid IL or missing references) //IL_09b6: Expected O, but got Unknown //IL_09da: Unknown result type (might be due to invalid IL or missing references) //IL_09e4: Expected O, but got Unknown //IL_0a01: Unknown result type (might be due to invalid IL or missing references) //IL_0a0b: Expected O, but got Unknown //IL_0a2f: Unknown result type (might be due to invalid IL or missing references) //IL_0a39: Expected O, but got Unknown //IL_0a56: Unknown result type (might be due to invalid IL or missing references) //IL_0a60: Expected O, but got Unknown //IL_0a5b: Unknown result type (might be due to invalid IL or missing references) //IL_0a65: Expected O, but got Unknown //IL_0a89: Unknown result type (might be due to invalid IL or missing references) //IL_0a93: Expected O, but got Unknown //IL_0ab3: Unknown result type (might be due to invalid IL or missing references) //IL_0abd: Expected O, but got Unknown //IL_0ada: Unknown result type (might be due to invalid IL or missing references) //IL_0ae4: Expected O, but got Unknown //IL_0b08: Unknown result type (might be due to invalid IL or missing references) //IL_0b12: Expected O, but got Unknown //IL_0b2f: Unknown result type (might be due to invalid IL or missing references) //IL_0b39: Expected O, but got Unknown //IL_0b5d: Unknown result type (might be due to invalid IL or missing references) //IL_0b67: Expected O, but got Unknown //IL_0b84: Unknown result type (might be due to invalid IL or missing references) //IL_0b8e: Expected O, but got Unknown //IL_0b89: Unknown result type (might be due to invalid IL or missing references) //IL_0b93: Expected O, but got Unknown //IL_0bb7: Unknown result type (might be due to invalid IL or missing references) //IL_0bc1: Expected O, but got Unknown //IL_0bde: Unknown result type (might be due to invalid IL or missing references) //IL_0be8: Expected O, but got Unknown //IL_0c0c: Unknown result type (might be due to invalid IL or missing references) //IL_0c16: Expected O, but got Unknown //IL_0c33: Unknown result type (might be due to invalid IL or missing references) //IL_0c3d: Expected O, but got Unknown //IL_0c38: Unknown result type (might be due to invalid IL or missing references) //IL_0c42: Expected O, but got Unknown //IL_0c66: Unknown result type (might be due to invalid IL or missing references) //IL_0c70: Expected O, but got Unknown //IL_0c90: Unknown result type (might be due to invalid IL or missing references) //IL_0c9a: Expected O, but got Unknown //IL_0ce6: Unknown result type (might be due to invalid IL or missing references) //IL_0cf0: 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_0d3b: Unknown result type (might be due to invalid IL or missing references) //IL_0d45: Expected O, but got Unknown //IL_0d69: Unknown result type (might be due to invalid IL or missing references) //IL_0d73: Expected O, but got Unknown //IL_0d90: Unknown result type (might be due to invalid IL or missing references) //IL_0d9a: Expected O, but got Unknown //IL_0dbe: Unknown result type (might be due to invalid IL or missing references) //IL_0dc8: Expected O, but got Unknown //IL_0dec: Unknown result type (might be due to invalid IL or missing references) //IL_0df6: Expected O, but got Unknown //IL_0e16: Unknown result type (might be due to invalid IL or missing references) //IL_0e20: Expected O, but got Unknown //IL_0e44: Unknown result type (might be due to invalid IL or missing references) //IL_0e4e: Expected O, but got Unknown //IL_0e6b: Unknown result type (might be due to invalid IL or missing references) //IL_0e75: Expected O, but got Unknown //IL_0e99: Unknown result type (might be due to invalid IL or missing references) //IL_0ea3: Expected O, but got Unknown //IL_0ec3: Unknown result type (might be due to invalid IL or missing references) //IL_0ecd: Expected O, but got Unknown //IL_0ef1: Unknown result type (might be due to invalid IL or missing references) //IL_0efb: Expected O, but got Unknown //IL_0f18: Unknown result type (might be due to invalid IL or missing references) //IL_0f22: Expected O, but got Unknown //IL_0f1d: Unknown result type (might be due to invalid IL or missing references) //IL_0f27: Expected O, but got Unknown //IL_0f4b: Unknown result type (might be due to invalid IL or missing references) //IL_0f55: Expected O, but got Unknown //IL_0f75: Unknown result type (might be due to invalid IL or missing references) //IL_0f7f: Expected O, but got Unknown //IL_0f9c: Unknown result type (might be due to invalid IL or missing references) //IL_0fa6: Expected O, but got Unknown //IL_0fca: Unknown result type (might be due to invalid IL or missing references) //IL_0fd4: Expected O, but got Unknown //IL_0ff1: Unknown result type (might be due to invalid IL or missing references) //IL_0ffb: Expected O, but got Unknown //IL_101f: Unknown result type (might be due to invalid IL or missing references) //IL_1029: Expected O, but got Unknown //IL_1049: Unknown result type (might be due to invalid IL or missing references) //IL_1053: Expected O, but got Unknown //IL_1070: Unknown result type (might be due to invalid IL or missing references) //IL_107a: Expected O, but got Unknown //IL_109e: Unknown result type (might be due to invalid IL or missing references) //IL_10a8: Expected O, but got Unknown //IL_10c5: Unknown result type (might be due to invalid IL or missing references) //IL_10cf: Expected O, but got Unknown //IL_10f3: Unknown result type (might be due to invalid IL or missing references) //IL_10fd: Expected O, but got Unknown //IL_111a: Unknown result type (might be due to invalid IL or missing references) //IL_1124: Expected O, but got Unknown //IL_1148: Unknown result type (might be due to invalid IL or missing references) //IL_1152: Expected O, but got Unknown //IL_1172: Unknown result type (might be due to invalid IL or missing references) //IL_117c: Expected O, but got Unknown //IL_1199: Unknown result type (might be due to invalid IL or missing references) //IL_11a3: Expected O, but got Unknown //IL_11c7: Unknown result type (might be due to invalid IL or missing references) //IL_11d1: Expected O, but got Unknown //IL_11ee: Unknown result type (might be due to invalid IL or missing references) //IL_11f8: Expected O, but got Unknown //IL_121c: Unknown result type (might be due to invalid IL or missing references) //IL_1226: Expected O, but got Unknown //IL_1242: Unknown result type (might be due to invalid IL or missing references) //IL_124c: Expected O, but got Unknown //IL_1247: Unknown result type (might be due to invalid IL or missing references) //IL_1251: Expected O, but got Unknown //IL_1271: Unknown result type (might be due to invalid IL or missing references) //IL_127b: Expected O, but got Unknown //IL_1298: Unknown result type (might be due to invalid IL or missing references) //IL_12a2: Expected O, but got Unknown //IL_12c6: Unknown result type (might be due to invalid IL or missing references) //IL_12d0: Expected O, but got Unknown //IL_12ed: Unknown result type (might be due to invalid IL or missing references) //IL_12f7: Expected O, but got Unknown //IL_131b: Unknown result type (might be due to invalid IL or missing references) //IL_1325: Expected O, but got Unknown //IL_1340: Unknown result type (might be due to invalid IL or missing references) //IL_134a: Expected O, but got Unknown //IL_1345: Unknown result type (might be due to invalid IL or missing references) //IL_134f: Expected O, but got Unknown //IL_136f: Unknown result type (might be due to invalid IL or missing references) //IL_1379: Expected O, but got Unknown //IL_1396: Unknown result type (might be due to invalid IL or missing references) //IL_13a0: Expected O, but got Unknown //IL_13c4: Unknown result type (might be due to invalid IL or missing references) //IL_13ce: Expected O, but got Unknown //IL_13eb: Unknown result type (might be due to invalid IL or missing references) //IL_13f5: Expected O, but got Unknown //IL_1419: Unknown result type (might be due to invalid IL or missing references) //IL_1423: Expected O, but got Unknown //IL_1440: Unknown result type (might be due to invalid IL or missing references) //IL_144a: Expected O, but got Unknown //IL_1445: Unknown result type (might be due to invalid IL or missing references) //IL_144f: Expected O, but got Unknown //IL_146f: Unknown result type (might be due to invalid IL or missing references) //IL_1479: Expected O, but got Unknown //IL_1496: Unknown result type (might be due to invalid IL or missing references) //IL_14a0: Expected O, but got Unknown //IL_14c4: Unknown result type (might be due to invalid IL or missing references) //IL_14ce: Expected O, but got Unknown //IL_14eb: Unknown result type (might be due to invalid IL or missing references) //IL_14f5: Expected O, but got Unknown //IL_1519: Unknown result type (might be due to invalid IL or missing references) //IL_1523: Expected O, but got Unknown //IL_1547: Unknown result type (might be due to invalid IL or missing references) //IL_1551: Expected O, but got Unknown //IL_1571: Unknown result type (might be due to invalid IL or missing references) //IL_157b: Expected O, but got Unknown //IL_1598: Unknown result type (might be due to invalid IL or missing references) //IL_15a2: Expected O, but got Unknown //IL_15c6: Unknown result type (might be due to invalid IL or missing references) //IL_15d0: Expected O, but got Unknown //IL_15ed: Unknown result type (might be due to invalid IL or missing references) //IL_15f7: Expected O, but got Unknown //IL_161b: Unknown result type (might be due to invalid IL or missing references) //IL_1625: Expected O, but got Unknown //IL_1642: Unknown result type (might be due to invalid IL or missing references) //IL_164c: Expected O, but got Unknown //IL_1647: Unknown result type (might be due to invalid IL or missing references) //IL_1651: Expected O, but got Unknown //IL_1675: Unknown result type (might be due to invalid IL or missing references) //IL_167f: Expected O, but got Unknown //IL_169a: Unknown result type (might be due to invalid IL or missing references) //IL_16a4: Expected O, but got Unknown //IL_169f: Unknown result type (might be due to invalid IL or missing references) //IL_16a9: Expected O, but got Unknown //IL_16cd: Unknown result type (might be due to invalid IL or missing references) //IL_16d7: Expected O, but got Unknown //IL_0cbf: Unknown result type (might be due to invalid IL or missing references) //IL_0cc9: Expected O, but got Unknown //IL_053e: Unknown result type (might be due to invalid IL or missing references) //IL_0548: Expected O, but got Unknown //IL_0957: Unknown result type (might be due to invalid IL or missing references) //IL_0961: Expected O, but got Unknown //IL_06cc: Unknown result type (might be due to invalid IL or missing references) //IL_06d6: Expected O, but got Unknown //IL_04a9: Unknown result type (might be due to invalid IL or missing references) //IL_04b3: Expected O, but got Unknown try { switch (<>1__state) { default: return false; case 0: <>1__state = -1; <readyMatch>5__1 = new MultiTokenWaiter(new Func<Token, bool>[5] { delegate(Token t) { IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val != null && val.Name == "_ready"; }, (Token t) => (int)t.Type == 80, (Token t) => (int)t.Type == 81, (Token t) => (int)t.Type == 86, (Token t) => (int)t.Type == 89 }, false, false); <>s__2 = tokens.GetEnumerator(); <>1__state = -3; break; case 1: <>1__state = -3; if (Mod.Config.ShowLogs) { <>2__current = new Token((TokenType)59, (uint?)null); <>1__state = 2; return true; } goto IL_0cb2; case 2: <>1__state = -3; <>2__current = (Token)new IdentifierToken("time"); <>1__state = 3; return true; case 3: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 4; return true; case 4: <>1__state = -3; <>2__current = (Token)new IdentifierToken("Time"); <>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_time_string_from_system"); <>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)89, (uint?)1u); <>1__state = 10; return true; case 10: <>1__state = -3; if (!Mod.Config.ShowSeconds) { <>2__current = (Token)new IdentifierToken("time"); <>1__state = 11; return true; } goto IL_0951; case 11: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 12; return true; case 12: <>1__state = -3; <>2__current = (Token)new IdentifierToken("erase"); <>1__state = 13; return true; case 13: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 14; return true; case 14: <>1__state = -3; <>2__current = (Token)new IdentifierToken("time"); <>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("length"); <>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 = new Token((TokenType)81, (uint?)null); <>1__state = 19; return true; case 19: <>1__state = -3; <>2__current = new Token((TokenType)17, (uint?)null); <>1__state = 20; return true; case 20: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(3L, false)); <>1__state = 21; return true; case 21: <>1__state = -3; <>2__current = new Token((TokenType)82, (uint?)null); <>1__state = 22; return true; case 22: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(3L, false)); <>1__state = 23; return true; case 23: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 24; return true; case 24: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 25; return true; case 25: <>1__state = -3; goto IL_0951; case 26: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 27; return true; case 27: <>1__state = -3; <>2__current = (Token)new IdentifierToken("time"); <>1__state = 28; return true; case 28: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 29; return true; case 29: <>1__state = -3; <>2__current = (Token)new IdentifierToken("trim_prefix"); <>1__state = 30; return true; case 30: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 31; return true; case 31: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("0")); <>1__state = 32; return true; case 32: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 33; return true; case 33: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 34; return true; case 34: <>1__state = -3; <>2__current = (Token)new IdentifierToken("Network"); <>1__state = 35; return true; case 35: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 36; return true; case 36: <>1__state = -3; <>2__current = (Token)new IdentifierToken("_update_chat"); <>1__state = 37; return true; case 37: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 38; return true; case 38: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("[color=#1e814e](")); <>1__state = 39; return true; case 39: <>1__state = -3; <>2__current = new Token((TokenType)16, (uint?)null); <>1__state = 40; return true; case 40: <>1__state = -3; <>2__current = (Token)new IdentifierToken("time"); <>1__state = 41; return true; case 41: <>1__state = -3; <>2__current = new Token((TokenType)16, (uint?)null); <>1__state = 42; return true; case 42: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant(" Rain)[/color] a raincloud has formed!")); <>1__state = 43; return true; case 43: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 44; return true; case 44: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 45; return true; case 45: <>1__state = -3; goto IL_0cb2; case 46: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notif"); <>1__state = 47; return true; case 47: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 48; return true; case 48: <>1__state = -3; <>2__current = (Token)new IdentifierToken("AudioStreamPlayer"); <>1__state = 49; return true; case 49: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 50; return true; case 50: <>1__state = -3; <>2__current = (Token)new IdentifierToken("new"); <>1__state = 51; return true; case 51: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 52; return true; case 52: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 53; return true; case 53: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 54; return true; case 54: <>1__state = -3; <>2__current = new Token((TokenType)59, (uint?)null); <>1__state = 55; return true; case 55: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notifsound"); <>1__state = 56; return true; case 56: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 57; return true; case 57: <>1__state = -3; <>2__current = new Token((TokenType)5, (uint?)76u); <>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 ConstantToken((Variant)new StringVariant("res://mods/EventAlert/Assets/drip3.ogg")); <>1__state = 60; return true; case 60: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 61; return true; case 61: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 62; return true; case 62: <>1__state = -3; <>2__current = (Token)new IdentifierToken("add_child"); <>1__state = 63; return true; case 63: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 64; return true; case 64: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notif"); <>1__state = 65; return true; case 65: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 66; return true; case 66: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 67; return true; case 67: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notif"); <>1__state = 68; return true; case 68: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 69; return true; case 69: <>1__state = -3; <>2__current = (Token)new IdentifierToken("set_stream"); <>1__state = 70; return true; case 70: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 71; return true; case 71: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notifsound"); <>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)89, (uint?)1u); <>1__state = 74; return true; case 74: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notif"); <>1__state = 75; return true; case 75: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 76; return true; case 76: <>1__state = -3; <>2__current = (Token)new IdentifierToken("volume_db"); <>1__state = 77; return true; case 77: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 78; return true; case 78: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(-16L, false)); <>1__state = 79; return true; 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 = (Token)new IdentifierToken("notif"); <>1__state = 81; return true; case 81: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 82; return true; case 82: <>1__state = -3; <>2__current = (Token)new IdentifierToken("pitch_scale"); <>1__state = 83; return true; case 83: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 84; return true; case 84: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(1L, false)); <>1__state = 85; return true; case 85: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 86; return true; case 86: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notif"); <>1__state = 87; return true; case 87: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 88; return true; case 88: <>1__state = -3; <>2__current = (Token)new IdentifierToken("bus"); <>1__state = 89; return true; case 89: <>1__state = -3; <>2__current = new Token((TokenType)23, (uint?)null); <>1__state = 90; return true; case 90: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("SFX")); <>1__state = 91; return true; case 91: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 92; return true; case 92: <>1__state = -3; <>2__current = (Token)new IdentifierToken("notif"); <>1__state = 93; return true; case 93: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 94; return true; case 94: <>1__state = -3; <>2__current = (Token)new IdentifierToken("play"); <>1__state = 95; return true; case 95: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 96; return true; case 96: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 97; return true; case 97: <>1__state = -3; <>2__current = new Token((TokenType)89, (uint?)1u); <>1__state = 98; return true; case 98: <>1__state = -3; <>2__current = (Token)new IdentifierToken("PlayerData"); <>1__state = 99; return true; case 99: <>1__state = -3; <>2__current = new Token((TokenType)84, (uint?)null); <>1__state = 100; return true; case 100: <>1__state = -3; <>2__current = (Token)new IdentifierToken("_send_notification"); <>1__state = 101; return true; case 101: <>1__state = -3; <>2__current = new Token((TokenType)80, (uint?)null); <>1__state = 102; return true; case 102: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new StringVariant("a raincloud has formed!")); <>1__state = 103; return true; case 103: <>1__state = -3; <>2__current = new Token((TokenType)82, (uint?)null); <>1__state = 104; return true; case 104: <>1__state = -3; <>2__current = (Token)new ConstantToken((Variant)new IntVariant(1L, false)); <>1__state = 105; return true; case 105: <>1__state = -3; <>2__current = new Token((TokenType)81, (uint?)null); <>1__state = 106; return true; case 106: <>1__state = -3; <>2__current = <token>5__3; <>1__state = 107; return true; case 107: <>1__state = -3; goto IL_1730; case 108: { <>1__state = -3; goto IL_1730; } IL_1730: <token>5__3 = null; break; IL_0951: <>2__current = (Token)new IdentifierToken("time"); <>1__state = 26; return true; IL_0cb2: <>2__current = new Token((TokenType)59, (uint?)null); <>1__state = 46; return true; } if (((global::System.Collections.IEnumerator)<>s__2).MoveNext()) { <token>5__3 = <>s__2.Current; if (<readyMatch>5__1.Check(<token>5__3)) { <>2__current = <token>5__3; <>1__state = 1; return true; } <>2__current = <token>5__3; <>1__state = 108; return true; } <>m__Finally1(); <>s__2 = 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 (<>s__2 != null) { ((global::System.IDisposable)<>s__2).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__4 <Modify>d__; if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId) { <>1__state = 0; <Modify>d__ = this; } else { <Modify>d__ = new <Modify>d__4(0) { <>4__this = <>4__this }; } <Modify>d__.path = <>3__path; <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(); } } private const string Time = "time"; private const string Notif = "notif"; private const string NotifSound = "notifsound"; public bool ShouldRun(string path) { return path == "res://Scenes/Entities/RainCloud/raincloud.gdc"; } [IteratorStateMachine(typeof(<Modify>d__4))] public global::System.Collections.Generic.IEnumerable<Token> Modify(string path, global::System.Collections.Generic.IEnumerable<Token> tokens) { MultiTokenWaiter readyMatch = new MultiTokenWaiter(new Func<Token, bool>[5] { delegate(Token t) { IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val != null && val.Name == "_ready"; }, (Token t) => (int)t.Type == 80, (Token t) => (int)t.Type == 81, (Token t) => (int)t.Type == 86, (Token t) => (int)t.Type == 89 }, false, false); global::System.Collections.Generic.IEnumerator<Token> enumerator = tokens.GetEnumerator(); try { while (((global::System.Collections.IEnumerator)enumerator).MoveNext()) { Token token = enumerator.Current; if (readyMatch.Check(token)) { yield return token; if (Mod.Config.ShowLogs) { yield return new Token((TokenType)59, (uint?)null); yield return (Token)new IdentifierToken("time"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new IdentifierToken("Time"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("get_time_string_from_system"); yield return new Token((TokenType)80, (uint?)null); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); if (!Mod.Config.ShowSeconds) { yield return (Token)new IdentifierToken("time"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("erase"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new IdentifierToken("time"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("length"); yield return new Token((TokenType)80, (uint?)null); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)17, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(3L, false)); yield return new Token((TokenType)82, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(3L, false)); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); } yield return (Token)new IdentifierToken("time"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new IdentifierToken("time"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("trim_prefix"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("0")); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); yield return (Token)new IdentifierToken("Network"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("_update_chat"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("[color=#1e814e](")); yield return new Token((TokenType)16, (uint?)null); yield return (Token)new IdentifierToken("time"); yield return new Token((TokenType)16, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant(" Rain)[/color] a raincloud has formed!")); 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("notif"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new IdentifierToken("AudioStreamPlayer"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("new"); yield return new Token((TokenType)80, (uint?)null); 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("notifsound"); yield return new Token((TokenType)23, (uint?)null); yield return new Token((TokenType)5, (uint?)76u); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("res://mods/EventAlert/Assets/drip3.ogg")); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); yield return (Token)new IdentifierToken("add_child"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new IdentifierToken("notif"); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); yield return (Token)new IdentifierToken("notif"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("set_stream"); yield return new Token((TokenType)80, (uint?)null); yield return (Token)new IdentifierToken("notifsound"); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); yield return (Token)new IdentifierToken("notif"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("volume_db"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(-16L, false)); yield return new Token((TokenType)89, (uint?)1u); yield return (Token)new IdentifierToken("notif"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("pitch_scale"); 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?)1u); yield return (Token)new IdentifierToken("notif"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("bus"); yield return new Token((TokenType)23, (uint?)null); yield return (Token)new ConstantToken((Variant)new StringVariant("SFX")); yield return new Token((TokenType)89, (uint?)1u); yield return (Token)new IdentifierToken("notif"); yield return new Token((TokenType)84, (uint?)null); yield return (Token)new IdentifierToken("play"); yield return new Token((TokenType)80, (uint?)null); yield return new Token((TokenType)81, (uint?)null); yield return new Token((TokenType)89, (uint?)1u); 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("a raincloud has formed!")); yield return new Token((TokenType)82, (uint?)null); yield return (Token)new ConstantToken((Variant)new IntVariant(1L, false)); yield return new Token((TokenType)81, (uint?)null); yield return token; } else { yield return token; } } } finally { ((global::System.IDisposable)enumerator)?.Dispose(); } } } public class VoidPortalPatch : IScriptMod { [CompilerGenerated] private sealed class <Modify>d__4 : 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 string path; public string <>3__path; private global::System.Collections.Generic.IEnumerable<Token> tokens; public global::System.Collections.Generic.IEnumerable<Token> <>3__tokens; public VoidPortalPatch <>4__this; private MultiTokenWaiter <readyMatch>5__1; private global::System.Collections.Generic.IEnumerator<Token> <>s__2; private Token <token>5__3; 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__4(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) > 107u) { return; } try { } finally { <>m__Finally1(); } } private bool MoveNext() { //IL_0564: Unknown result type (might be due to invalid IL or missing references) //IL_056e: Expected O, but got Unknown //IL_0591: Unknown result type (might be due to invalid IL or missing references) //IL_059b: Expected O, but got Unknown //IL_05b7: Unknown result type (might be due to invalid IL or missing references) //IL_05c1: Expected O, but got Unknown //IL_05e4: Unknown result type (might be due to invalid IL or missing references) //IL_05ee: Expected O, but got Unknown //IL_060a: Unknown result type (might be due to invalid IL or missing references) //IL_0614: 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_0664: Unknown result type (might be due to invalid IL or missing references) //IL_066e: Expected O, but got Unknown //IL_068e: Unknown result type (might be due to invalid IL or missing references) //IL_0698: Expected O, but got Unknown //IL_06fa: Unknown result type (might be due to invalid IL or missing references) //IL_0704: Expected O, but got Unknown //IL_0721: Unknown result type (might be due to invalid IL or missing references) //IL_072b: Expected O, but got Unknown //IL_074f: Unknown result type (might be due to invalid IL or missing references) //IL_0759: Expected O, but got Unknown //IL_0776: Unknown result type (might be due to invalid IL or missing references) //IL_0780: Expected O, but got Unknown //IL_07a4: Unknown result type (might be due to invalid IL or missing references) //IL_07ae: Expected O, but got Unknown //IL_07cb: Unknown result type (might be due to invalid IL or missing references) //IL_07d5: Expected O, but got Unknown //IL_07f9: Unknown result type (might be due to invalid IL or missing references) //IL_0803: Expected O, but got Unknown //IL_0827: Unknown result type (might be due to invalid IL or missing references) //IL_0831: Expected O, but got Unknown //IL_0855: Unknown result type (might be due to invalid IL or missing references) //IL_085f: Expected O, but got Unknown //IL_087a: Unknown result type (might be due to invalid IL or missing references) //IL_0884: Expected O, but got Unknown //IL_087f: Unknown result type (might be due to invalid IL or missing references) //IL_0889: Expected O, but got Unknown //IL_08ad: Unknown result type (might be due to invalid IL or missing references) //IL_08b7: Expected O, but got Unknown //IL_08d2: Unknown result type (might be due to invalid IL or missing references) //IL_08dc: Expected O, but got Unknown //IL_08d7: Unknown result type (might be due to invalid IL or missing references) //IL_08e1: Expected O, but got Unknown //IL_0905: Unknown result type (might be due to invalid IL or missing references) //IL_090f: Expected O, but got Unknown //IL_092f: Unknown result type (might be due to invalid IL or missing references) //IL_0939: 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_09ac: Unknown result type (might be due to invalid IL or missing references) //IL_09b6: Expected O, but got Unknown //IL_09da: Unknown result type (might be due to invalid IL or missing references) //IL_09e4: Expected O, but got Unknown //IL_0a01: Unknown result type (might be due to invalid IL or missing references) //IL_0a0b: Expected O, but got Unknown //IL_0a2f: Unknown result type (might be due to invalid IL or missing references) //IL_0a39: Expected O, but got Unknown //IL_0a56: Unknown result type (might be due to invalid IL or missing references) //IL_0a60: Expected O, but got Unknown //IL_0a5b: Unknown result type (might be due to invalid IL or missing references) //IL_0a65: Expected O, but got Unknown //IL_0a89: Unknown result type (might be due to invalid IL or missing references) //IL_0a93: Expected O, but got Unknown //IL_0ab3: Unknown result type (might be due to invalid IL or missing references) //IL_0abd: Expected O, but got Unknown //IL_0ada: Unknown result type (might be due to invalid IL or missing references) //IL_0ae4: Expected O, but got Unknown //IL_0b08: Unknown result type (might be due to invalid IL or missing references) //IL_0b12: Expected O, but got Unknown //IL_0b2f: Unknown result type (might be due to invalid IL or missing references) //IL_0b39: Expected O, but got Unknown //IL_0b5d: Unknown result type (might be due to invalid IL or missing references) //IL_0b67: Expected O, but got Unknown //IL_0b84: Unknown result type (might be due to invalid IL or missing references) //IL_0b8e: Expected O, but got Unknown //IL_0b89: Unknown result type (might be due to invalid IL or missing references) //IL_0b93: Expected O, but got Unknown //IL_0bb7: Unknown result type (might be due to invalid IL or missing references) //IL_0bc1: Expected O, but got Unknown //IL_0bde: Unknown result type (might be due to invalid IL or missing references) //IL_0be8: Expected O, but got Unknown //IL_0c0c: Unknown result type (might be due to invalid IL or missing references) //IL_0c16: Expected O, but got Unknown //IL_0c33: Unknown result type (might be due to invalid IL or missing references) //IL_0c3d: Expected O, but got Unknown //IL_0c38: Unknown result type (might be due to invalid IL or missing references) //IL_0c42: Expected O, but got Unknown //IL_0c66: Unknown result type (might be due to invalid IL or missing references) //IL_0c70: Expected O, but got Unknown //IL_0c90: Unknown result type (might be due to invalid IL or missing references) //IL_0c9a: Expected O, but got Unknown //IL_0ce6: Unknown result type (might be due to invalid IL or missing references) //IL_0cf0: 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_0d3b: Unknown result type (might be due to invalid IL or missing references) //IL_0d45: Expected O, but got Unknown //IL_0d69: Unknown result type (might be due to invalid IL or missing references) //IL_0d73: Expected O, but got Unknown //IL_0d90: Unknown result type (might be due to invalid IL or missing references) //IL_0d9a: Expected O, but got Unknown //IL_0dbe: Unknown result type (might be due to invalid IL or missing references) //IL_0dc8: Expected O, but got Unknown //IL_0dec: Unknown result type (might be due to invalid IL or missing references) //IL_0df6: Expected O, but got Unknown //IL_0e16: Unknown result type (might be due to invalid IL or missing references) //IL_0e20: Expected O, but got Unknown //IL_0e44: Unknown result type (might be due to invalid IL or missing references) //IL_0e4e: Expected O, but got Unknown //IL_0e6b: Unknown result type (might be due to invalid IL or missing references) //IL_0e75: Expected O, but got Unknown //IL_0e99: Unknown result type (might be due to invalid IL or missing references) //IL_0ea3: Expected O, but got Unknown //IL_0ec3: Unknown result type (might be due to invalid IL or missing references) //IL_0ecd: Expected O, but got Unknown //IL_0ef1: Unknown result type (might be due to invalid IL or missing references) //IL_0efb: Expected O, but got Unknown //IL_0f18: Unknown result type (might be due to invalid IL or missing references) //IL_0f22: Expected O, but got Unknown //IL_0f1d: Unknown result type (might be due to invalid IL or missing references) //IL_0f27: Expected O, but got Unknown //IL_0f4b: Unknown result type (might be due to invalid IL or missing references) //IL_0f55: Expected O, but got Unknown //IL_0f75: Unknown result type (might be due to invalid IL or missing references) //IL_0f7f: Expected O, but got Unknown //IL_0f9c: Unknown result type (might be due to invalid IL or missing references) //IL_0fa6: Expected O, but got Unknown //IL_0fca: Unknown result type (might be due to invalid IL or missing references) //IL_0fd4: Expected O, but got Unknown //IL_0ff1: Unknown result type (might be due to invalid IL or missing references) //IL_0ffb: Expected O, but got Unknown //IL_101f: Unknown result type (might be due to invalid IL or missing references) //IL_1029: Expected O, but got Unknown //IL_1049: Unknown result type (might be due to invalid IL or missing references) //IL_1053: Expected O, but got Unknown //IL_1070: Unknown result type (might be due to invalid IL or missing references) //IL_107a: Expected O, but got Unknown //IL_109e: Unknown result type (might be due to invalid IL or missing references) //IL_10a8: Expected O, but got Unknown //IL_10c5: Unknown result type (might be due to invalid IL or missing references) //IL_10cf: Expected O, but got Unknown //IL_10f3: Unknown result type (might be due to invalid IL or missing references) //IL_10fd: Expected O, but got Unknown //IL_111a: Unknown result type (might be due to invalid IL or missing references) //IL_1124: Expected O, but got Unknown //IL_1148: Unknown result type (might be due to invalid IL or missing references) //IL_1152: Expected O, but got Unknown //IL_1172: Unknown result type (might be due to invalid IL or missing references) //IL_117c: Expected O, but got Unknown //IL_1199: Unknown result type (might be due to invalid IL or missing references) //IL_11a3: Expected O, but got Unknown //IL_11c7: Unknown result type (might be due to invalid IL or missing references) //IL_11d1: Expected O, but got Unknown //IL_11ee: Unknown result type (might be due to invalid IL or missing references) //IL_11f8: Expected O, but got Unknown //IL_121c: Unknown result type (might be due to invalid IL or missing references) //IL_1226: Expected O, but got Unknown //IL_1242: Unknown result type (might be due to invalid IL or missing references) //IL_124c: Expected O, but got Unknown //IL_1247: Unknown result type (might be due to invalid IL or missing references) //IL_1251: Expected O, but got Unknown //IL_1271: Unknown result type (might be due to invalid IL or missing references) //IL_127b: Expected O, but got Unknown //IL_1298: Unknown result type (might be due to invalid IL or missing references) //IL_12a2: Expected O, but got Unknown //IL_12c6: Unknown result type (might be due to invalid IL or missing references) //IL_12d0: Expected O, but got Unknown //IL_12ed: Unknown result type (might be due to invalid IL or missing references) //IL_12f7: Expected O, but got Unknown //IL_131b: Unknown result type (might be due to invalid IL or missing references) //IL_1325: Expected O, but got Unknown //IL_1340: Unknown result type (might be due to invalid IL or missing references) //IL_134a: Expected O, but got Unknown //IL_1345: Unknown result type (might be due to invalid IL or missing references) //IL_134f: Expected O, but got Unknown //IL_136f: Unknown result type (might be due to invalid IL or missing references) //IL_1379: Expected O, but got Unknown //IL_1396: Unknown result type (might be due to invalid IL or missing references) //IL_13a0: Expected O, but got Unknown //IL_13c4: Unknown result type (might be due to invalid IL or missing references) //IL_13ce: Expected O, but got Unknown //IL_13eb: Unknown result type (might be due to invalid IL or missing references) //IL_13f5: Expected O, but got Unknown //IL_1419: Unknown result type (might be due to invalid IL or missing references) //IL_1423: Expected O, but got Unknown //IL_1440: Unknown result type (might be due to invalid IL or missing references) //IL_144a: Expected O, but got Unknown //IL_1445: Unknown result type (might be due to invalid IL or missing references) //IL_144f: Expected O, but got Unknown //IL_146f: Unknown result type (might be due to invalid IL or missing references) //IL_1479: Expected O, but got Unknown //IL_1496: Unknown result type (might be due to invalid IL or missing references) //IL_14a0: Expected O, but got Unknown //IL_14c4: Unknown result type (might be due to invalid IL or missing references) //IL_14ce: Expected O, but got Unknown //IL_14eb: Unknown result type (might be due to invalid IL or missing references) //IL_14f5: Expected O, but got Unknown //IL_1519: Unknown result type (might be due to invalid IL or missing references) //IL_1523: Expected O, but got Unknown //IL_1547: Unknown result type (might be due to invalid IL or missing references) //IL_1551: Expected O, but got Unknown //IL_1571: Unknown result type (might be due to invalid IL or missing references) //IL_157b: Expected O, but got Unknown //IL_1598: Unknown result type (might be due to invalid IL or missing references) //IL_15a2: Expected O, but got Unknown //IL_15c6: Unknown result type (might be due to invalid IL or missing references) //IL_15d0: Expected O, but got Unknown //IL_15ed: Unknown result type (might be due to invalid IL or missing references) //IL_15f7: Expected O, but got Unknown //IL_161b: Unknown result type (might be due to invalid IL or missing references) //IL_1625: Expected O, but got Unknown //IL_1642: Unknown result type (might be due to invalid IL or missing references) //IL_164c: Expected O, but got Unknown //IL_1647: Unknown result type (might be due to invalid IL or missing references) //IL_1651: Expected O, but got Unknown //IL_1675: Unknown result type (might be due to invalid IL or missing references) //IL_167f: Expected O, but got Unknown //IL_169a: Unknown result type (might be due to invalid IL or missing references) //IL_16a4: Expected O, but got Unknown //IL_169f: Unknown result type (might be due to invalid IL or missing references) //IL_16a9: Expected O, but got Unknown //IL_16cd: Unknown result type (might be due to invalid IL or missing references) //IL_16d7: Expected O, but got Unknown //IL_0cbf: Unknown result type (might be due to invalid IL or missing references) //IL_0cc9: Expected O, but got Unknown //IL_053e: Unknown result type (might be due to invalid IL or missing references) //IL_0548: Expected O, but got Unknown //IL_0957: Unknown result type (might be due to invalid IL or missing references) //IL_0961: Expected O, but got Unknown //IL_06cc: Unknown result type (might be due to invalid IL or missing references) //IL_06d6: Expected O, but got Unknown //IL_04a9: Unknown result type (might be due to invalid IL or missing references) //IL_04b3: Expected O, but got Unknown try { switch (<>1__state) { default: return false; case 0: <>1__state = -1; <readyMatch>5__1 = new MultiTokenWaiter(new Func<Token, bool>[5] { delegate(Token t) { IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null); return val != null && val.Name == "_ready"; }, (Token t) => (int)t.Type == 80, (Token t) => (int)t.Type == 81, (Token t) => (int)t.Type == 86, (Token t) => (int)t.Type == 89 }, false, false); <>s__2 = tokens.GetEnum