using System;
using System.CodeDom.Compiler;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Text.Json.Serialization;
using GDWeave;
using GDWeave.Godot;
using GDWeave.Godot.Variants;
using GDWeave.Modding;
using macrottie.letemknow.Patches;
[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("macrottie.letemknow")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0.0+a61e13739a95d4840f0963a2734af154186b2b8a")]
[assembly: AssemblyProduct("macrottie.letemknow")]
[assembly: AssemblyTitle("macrottie.letemknow")]
[assembly: AssemblyVersion("1.0.0.0")]
[module: RefSafetyRules(11)]
namespace macrottie.letemknow
{
public class Config
{
[JsonInclude]
public bool UseLastFm;
[JsonInclude]
public string LastFmUsername = "";
[JsonInclude]
public string LastFmApikey = "";
}
public class Mod : IMod, global::System.IDisposable
{
public Config Config;
public Mod(IModInterface modInterface)
{
Config = modInterface.ReadConfig<Config>();
modInterface.RegisterScriptMod((IScriptMod)(object)new NetworkPatcher());
modInterface.RegisterScriptMod((IScriptMod)(object)new TitlePatcher());
}
public void Dispose()
{
}
}
}
namespace macrottie.letemknow.Properties
{
[GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[DebuggerNonUserCode]
[CompilerGenerated]
internal class Resources
{
private static ResourceManager resourceMan;
private static CultureInfo resourceCulture;
[EditorBrowsable(/*Could not decode attribute arguments.*/)]
internal static ResourceManager ResourceManager
{
get
{
//IL_001b: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Expected O, but got Unknown
if (resourceMan == null)
{
resourceMan = new ResourceManager("macrottie.letemknow.Properties.Resources", typeof(Resources).Assembly);
}
return resourceMan;
}
}
[EditorBrowsable(/*Could not decode attribute arguments.*/)]
internal static CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
internal Resources()
{
}
}
}
namespace macrottie.letemknow.Patches
{
public class NetworkPatcher : IScriptMod
{
[CompilerGenerated]
private sealed class <Modify>d__1 : global::System.Collections.Generic.IEnumerable<Token>, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator<Token>, global::System.Collections.IEnumerator, global::System.IDisposable
{
private int <>1__state;
private Token <>2__current;
private int <>l__initialThreadId;
private global::System.Collections.Generic.IEnumerable<Token> tokens;
public global::System.Collections.Generic.IEnumerable<Token> <>3__tokens;
private MultiTokenWaiter <packetParserWaiter>5__2;
private MultiTokenWaiter <beginningWaiter>5__3;
private global::System.Collections.Generic.IEnumerator<Token> <>7__wrap3;
Token global::System.Collections.Generic.IEnumerator<Token>.Current
{
[DebuggerHidden]
get
{
return <>2__current;
}
}
object global::System.Collections.IEnumerator.Current
{
[DebuggerHidden]
get
{
return <>2__current;
}
}
[DebuggerHidden]
public <Modify>d__1(int <>1__state)
{
this.<>1__state = <>1__state;
<>l__initialThreadId = Environment.CurrentManagedThreadId;
}
[DebuggerHidden]
void global::System.IDisposable.Dispose()
{
int num = <>1__state;
if (num == -3 || (uint)(num - 1) <= 107u)
{
try
{
}
finally
{
<>m__Finally1();
}
}
}
private bool MoveNext()
{
//IL_0325: Unknown result type (might be due to invalid IL or missing references)
//IL_032f: Expected O, but got Unknown
//IL_0351: Unknown result type (might be due to invalid IL or missing references)
//IL_035b: Expected O, but got Unknown
//IL_0377: Unknown result type (might be due to invalid IL or missing references)
//IL_0381: Expected O, but got Unknown
//IL_03a3: Unknown result type (might be due to invalid IL or missing references)
//IL_03ad: Expected O, but got Unknown
//IL_03cf: Unknown result type (might be due to invalid IL or missing references)
//IL_03d9: Expected O, but got Unknown
//IL_03fb: Unknown result type (might be due to invalid IL or missing references)
//IL_0405: Expected O, but got Unknown
//IL_0457: Unknown result type (might be due to invalid IL or missing references)
//IL_0461: Expected O, but got Unknown
//IL_0481: Unknown result type (might be due to invalid IL or missing references)
//IL_048b: Expected O, but got Unknown
//IL_04a8: Unknown result type (might be due to invalid IL or missing references)
//IL_04b2: Expected O, but got Unknown
//IL_04ad: Unknown result type (might be due to invalid IL or missing references)
//IL_04b7: Expected O, but got Unknown
//IL_04da: Unknown result type (might be due to invalid IL or missing references)
//IL_04e4: Expected O, but got Unknown
//IL_0504: Unknown result type (might be due to invalid IL or missing references)
//IL_050e: Expected O, but got Unknown
//IL_052e: Unknown result type (might be due to invalid IL or missing references)
//IL_0538: Expected O, but got Unknown
//IL_055b: Unknown result type (might be due to invalid IL or missing references)
//IL_0565: Expected O, but got Unknown
//IL_0582: Unknown result type (might be due to invalid IL or missing references)
//IL_058c: Expected O, but got Unknown
//IL_0587: Unknown result type (might be due to invalid IL or missing references)
//IL_0591: Expected O, but got Unknown
//IL_05b4: Unknown result type (might be due to invalid IL or missing references)
//IL_05be: Expected O, but got Unknown
//IL_05db: Unknown result type (might be due to invalid IL or missing references)
//IL_05e5: Expected O, but got Unknown
//IL_0608: Unknown result type (might be due to invalid IL or missing references)
//IL_0612: Expected O, but got Unknown
//IL_0632: Unknown result type (might be due to invalid IL or missing references)
//IL_063c: Expected O, but got Unknown
//IL_065f: Unknown result type (might be due to invalid IL or missing references)
//IL_0669: Expected O, but got Unknown
//IL_068c: Unknown result type (might be due to invalid IL or missing references)
//IL_0696: Expected O, but got Unknown
//IL_06b3: Unknown result type (might be due to invalid IL or missing references)
//IL_06bd: Expected O, but got Unknown
//IL_06e0: Unknown result type (might be due to invalid IL or missing references)
//IL_06ea: Expected O, but got Unknown
//IL_0707: Unknown result type (might be due to invalid IL or missing references)
//IL_0711: Expected O, but got Unknown
//IL_0734: Unknown result type (might be due to invalid IL or missing references)
//IL_073e: Expected O, but got Unknown
//IL_0761: Unknown result type (might be due to invalid IL or missing references)
//IL_076b: Expected O, but got Unknown
//IL_0788: Unknown result type (might be due to invalid IL or missing references)
//IL_0792: Expected O, but got Unknown
//IL_078d: Unknown result type (might be due to invalid IL or missing references)
//IL_0797: Expected O, but got Unknown
//IL_07ba: Unknown result type (might be due to invalid IL or missing references)
//IL_07c4: Expected O, but got Unknown
//IL_07e1: Unknown result type (might be due to invalid IL or missing references)
//IL_07eb: Expected O, but got Unknown
//IL_07e6: Unknown result type (might be due to invalid IL or missing references)
//IL_07f0: Expected O, but got Unknown
//IL_0813: Unknown result type (might be due to invalid IL or missing references)
//IL_081d: 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_086d: Unknown result type (might be due to invalid IL or missing references)
//IL_0877: Expected O, but got Unknown
//IL_0894: Unknown result type (might be due to invalid IL or missing references)
//IL_089e: 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_08e8: Unknown result type (might be due to invalid IL or missing references)
//IL_08f2: Expected O, but got Unknown
//IL_0915: Unknown result type (might be due to invalid IL or missing references)
//IL_091f: Expected O, but got Unknown
//IL_0942: Unknown result type (might be due to invalid IL or missing references)
//IL_094c: Expected O, but got Unknown
//IL_096f: Unknown result type (might be due to invalid IL or missing references)
//IL_0979: Expected O, but got Unknown
//IL_099c: Unknown result type (might be due to invalid IL or missing references)
//IL_09a6: Expected O, but got Unknown
//IL_09c6: Unknown result type (might be due to invalid IL or missing references)
//IL_09d0: 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_0a1a: Unknown result type (might be due to invalid IL or missing references)
//IL_0a24: Expected O, but got Unknown
//IL_0a46: Unknown result type (might be due to invalid IL or missing references)
//IL_0a50: Expected O, but got Unknown
//IL_0a6d: Unknown result type (might be due to invalid IL or missing references)
//IL_0a77: Expected O, but got Unknown
//IL_0a9a: Unknown result type (might be due to invalid IL or missing references)
//IL_0aa4: Expected O, but got Unknown
//IL_0ac7: Unknown result type (might be due to invalid IL or missing references)
//IL_0ad1: Expected O, but got Unknown
//IL_0af4: Unknown result type (might be due to invalid IL or missing references)
//IL_0afe: Expected O, but got Unknown
//IL_0b1b: Unknown result type (might be due to invalid IL or missing references)
//IL_0b25: Expected O, but got Unknown
//IL_0b48: Unknown result type (might be due to invalid IL or missing references)
//IL_0b52: Expected O, but got Unknown
//IL_0b6f: Unknown result type (might be due to invalid IL or missing references)
//IL_0b79: Expected O, but got Unknown
//IL_0b74: Unknown result type (might be due to invalid IL or missing references)
//IL_0b7e: Expected O, but got Unknown
//IL_0ba1: Unknown result type (might be due to invalid IL or missing references)
//IL_0bab: Expected O, but got Unknown
//IL_0bce: Unknown result type (might be due to invalid IL or missing references)
//IL_0bd8: Expected O, but got Unknown
//IL_0bf8: Unknown result type (might be due to invalid IL or missing references)
//IL_0c02: 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_0c4c: Unknown result type (might be due to invalid IL or missing references)
//IL_0c56: Expected O, but got Unknown
//IL_0c79: Unknown result type (might be due to invalid IL or missing references)
//IL_0c83: Expected O, but got Unknown
//IL_0ca0: Unknown result type (might be due to invalid IL or missing references)
//IL_0caa: Expected O, but got Unknown
//IL_0ccc: Unknown result type (might be due to invalid IL or missing references)
//IL_0cd6: Expected O, but got Unknown
//IL_0cf3: Unknown result type (might be due to invalid IL or missing references)
//IL_0cfd: Expected O, but got Unknown
//IL_0cf8: Unknown result type (might be due to invalid IL or missing references)
//IL_0d02: Expected O, but got Unknown
//IL_0d25: Unknown result type (might be due to invalid IL or missing references)
//IL_0d2f: Expected O, but got Unknown
//IL_0d4c: Unknown result type (might be due to invalid IL or missing references)
//IL_0d56: Expected O, but got Unknown
//IL_0d79: Unknown result type (might be due to invalid IL or missing references)
//IL_0d83: Expected O, but got Unknown
//IL_0da0: Unknown result type (might be due to invalid IL or missing references)
//IL_0daa: Expected O, but got Unknown
//IL_0dcc: Unknown result type (might be due to invalid IL or missing references)
//IL_0dd6: Expected O, but got Unknown
//IL_0df3: Unknown result type (might be due to invalid IL or missing references)
//IL_0dfd: Expected O, but got Unknown
//IL_0e20: Unknown result type (might be due to invalid IL or missing references)
//IL_0e2a: Expected O, but got Unknown
//IL_0e4a: Unknown result type (might be due to invalid IL or missing references)
//IL_0e54: Expected O, but got Unknown
//IL_0e71: Unknown result type (might be due to invalid IL or missing references)
//IL_0e7b: Expected O, but got Unknown
//IL_0e9e: Unknown result type (might be due to invalid IL or missing references)
//IL_0ea8: Expected O, but got Unknown
//IL_0ec5: Unknown result type (might be due to invalid IL or missing references)
//IL_0ecf: Expected O, but got Unknown
//IL_0ef2: Unknown result type (might be due to invalid IL or missing references)
//IL_0efc: Expected O, but got Unknown
//IL_0f1f: Unknown result type (might be due to invalid IL or missing references)
//IL_0f29: Expected O, but got Unknown
//IL_0f46: Unknown result type (might be due to invalid IL or missing references)
//IL_0f50: 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_0fa2: Unknown result type (might be due to invalid IL or missing references)
//IL_0fac: Expected O, but got Unknown
//IL_0fc9: Unknown result type (might be due to invalid IL or missing references)
//IL_0fd3: Expected O, but got Unknown
//IL_0ff6: Unknown result type (might be due to invalid IL or missing references)
//IL_1000: Expected O, but got Unknown
//IL_101d: Unknown result type (might be due to invalid IL or missing references)
//IL_1027: 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_1075: Unknown result type (might be due to invalid IL or missing references)
//IL_107f: Expected O, but got Unknown
//IL_10a2: Unknown result type (might be due to invalid IL or missing references)
//IL_10ac: Expected O, but got Unknown
//IL_10c9: Unknown result type (might be due to invalid IL or missing references)
//IL_10d3: Expected O, but got Unknown
//IL_10f6: Unknown result type (might be due to invalid IL or missing references)
//IL_1100: Expected O, but got Unknown
//IL_111d: Unknown result type (might be due to invalid IL or missing references)
//IL_1127: Expected O, but got Unknown
//IL_114a: Unknown result type (might be due to invalid IL or missing references)
//IL_1154: Expected O, but got Unknown
//IL_1177: Unknown result type (might be due to invalid IL or missing references)
//IL_1181: Expected O, but got Unknown
//IL_119e: Unknown result type (might be due to invalid IL or missing references)
//IL_11a8: Expected O, but got Unknown
//IL_11a3: Unknown result type (might be due to invalid IL or missing references)
//IL_11ad: Expected O, but got Unknown
//IL_11d0: Unknown result type (might be due to invalid IL or missing references)
//IL_11da: Expected O, but got Unknown
//IL_11f7: Unknown result type (might be due to invalid IL or missing references)
//IL_1201: Expected O, but got Unknown
//IL_1224: Unknown result type (might be due to invalid IL or missing references)
//IL_122e: Expected O, but got Unknown
//IL_124b: Unknown result type (might be due to invalid IL or missing references)
//IL_1255: Expected O, but got Unknown
//IL_1278: Unknown result type (might be due to invalid IL or missing references)
//IL_1282: Expected O, but got Unknown
//IL_129f: Unknown result type (might be due to invalid IL or missing references)
//IL_12a9: Expected O, but got Unknown
//IL_12a4: Unknown result type (might be due to invalid IL or missing references)
//IL_12ae: Expected O, but got Unknown
//IL_12d1: Unknown result type (might be due to invalid IL or missing references)
//IL_12db: Expected O, but got Unknown
//IL_12f8: Unknown result type (might be due to invalid IL or missing references)
//IL_1302: Expected O, but got Unknown
//IL_1325: Unknown result type (might be due to invalid IL or missing references)
//IL_132f: Expected O, but got Unknown
//IL_134c: Unknown result type (might be due to invalid IL or missing references)
//IL_1356: Expected O, but got Unknown
//IL_1376: Unknown result type (might be due to invalid IL or missing references)
//IL_1380: Expected O, but got Unknown
//IL_139d: Unknown result type (might be due to invalid IL or missing references)
//IL_13a7: Expected O, but got Unknown
//IL_13ca: Unknown result type (might be due to invalid IL or missing references)
//IL_13d4: Expected O, but got Unknown
//IL_13f1: Unknown result type (might be due to invalid IL or missing references)
//IL_13fb: Expected O, but got Unknown
//IL_141e: Unknown result type (might be due to invalid IL or missing references)
//IL_1428: 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_1472: Unknown result type (might be due to invalid IL or missing references)
//IL_147c: Expected O, but got Unknown
//IL_149f: Unknown result type (might be due to invalid IL or missing references)
//IL_14a9: Expected O, but got Unknown
//IL_14c6: Unknown result type (might be due to invalid IL or missing references)
//IL_14d0: Expected O, but got Unknown
//IL_0260: Unknown result type (might be due to invalid IL or missing references)
//IL_026a: Expected O, but got Unknown
//IL_02b7: Unknown result type (might be due to invalid IL or missing references)
//IL_02c1: Expected O, but got Unknown
try
{
switch (<>1__state)
{
default:
return false;
case 0:
<>1__state = -1;
<packetParserWaiter>5__2 = new MultiTokenWaiter(new Func<Token, bool>[4]
{
(Token t) => (int)t.Type == 47,
delegate(Token t)
{
IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val != null && val.Name == "type";
},
(Token t) => (int)t.Type == 86,
delegate(Token t)
{
//IL_0004: Unknown result type (might be due to invalid IL or missing references)
//IL_000b: Invalid comparison between Unknown and I4
if (t != null && (int)t.Type == 89)
{
uint? associatedData = t.AssociatedData;
if (associatedData.HasValue)
{
return associatedData.GetValueOrDefault() == 3;
}
}
return false;
}
}, false, false);
<beginningWaiter>5__3 = new MultiTokenWaiter(new Func<Token, bool>[2]
{
(Token t) => (int)t.Type == 51,
(Token t) => (int)t.Type == 1
}, false, false);
<>7__wrap3 = tokens.GetEnumerator();
<>1__state = -3;
break;
case 1:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)null);
<>1__state = 2;
return true;
case 2:
<>1__state = -3;
<>2__current = new Token((TokenType)59, (uint?)null);
<>1__state = 3;
return true;
case 3:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("ID_SONG_MAP");
<>1__state = 4;
return true;
case 4:
<>1__state = -3;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 5;
return true;
case 5:
<>1__state = -3;
<>2__current = new Token((TokenType)78, (uint?)null);
<>1__state = 6;
return true;
case 6:
<>1__state = -3;
<>2__current = new Token((TokenType)79, (uint?)null);
<>1__state = 7;
return true;
case 7:
<>1__state = -3;
break;
case 8:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)3u);
<>1__state = 9;
return true;
case 9:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)3u);
<>1__state = 10;
return true;
case 10:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("update_song"));
<>1__state = 11;
return true;
case 11:
<>1__state = -3;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 12;
return true;
case 12:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)4u);
<>1__state = 13;
return true;
case 13:
<>1__state = -3;
<>2__current = new Token((TokenType)5, (uint?)63u);
<>1__state = 14;
return true;
case 14:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 15;
return true;
case 15:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("RECEIVED SONG UPDATE PACKET FROM "));
<>1__state = 16;
return true;
case 16:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 17;
return true;
case 17:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("PACKET_SENDER");
<>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)89, (uint?)4u);
<>1__state = 20;
return true;
case 20:
<>1__state = -3;
<>2__current = new Token((TokenType)38, (uint?)null);
<>1__state = 21;
return true;
case 21:
<>1__state = -3;
<>2__current = new Token((TokenType)15, (uint?)null);
<>1__state = 22;
return true;
case 22:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("_validate_packet_information");
<>1__state = 23;
return true;
case 23:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 24;
return true;
case 24:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("DATA");
<>1__state = 25;
return true;
case 25:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 26;
return true;
case 26:
<>1__state = -3;
<>2__current = new Token((TokenType)76, (uint?)null);
<>1__state = 27;
return true;
case 27:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("song"));
<>1__state = 28;
return true;
case 28:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 29;
return true;
case 29:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("artist"));
<>1__state = 30;
return true;
case 30:
<>1__state = -3;
<>2__current = new Token((TokenType)77, (uint?)null);
<>1__state = 31;
return true;
case 31:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 32;
return true;
case 32:
<>1__state = -3;
<>2__current = new Token((TokenType)76, (uint?)null);
<>1__state = 33;
return true;
case 33:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("TYPE_STRING");
<>1__state = 34;
return true;
case 34:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 35;
return true;
case 35:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("TYPE_STRING");
<>1__state = 36;
return true;
case 36:
<>1__state = -3;
<>2__current = new Token((TokenType)77, (uint?)null);
<>1__state = 37;
return true;
case 37:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 38;
return true;
case 38:
<>1__state = -3;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 39;
return true;
case 39:
<>1__state = -3;
<>2__current = new Token((TokenType)46, (uint?)null);
<>1__state = 40;
return true;
case 40:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)4u);
<>1__state = 41;
return true;
case 41:
<>1__state = -3;
<>2__current = new Token((TokenType)41, (uint?)null);
<>1__state = 42;
return true;
case 42:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("actor");
<>1__state = 43;
return true;
case 43:
<>1__state = -3;
<>2__current = new Token((TokenType)6, (uint?)null);
<>1__state = 44;
return true;
case 44:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("get_tree");
<>1__state = 45;
return true;
case 45:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 46;
return true;
case 46:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 47;
return true;
case 47:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 48;
return true;
case 48:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("get_nodes_in_group");
<>1__state = 49;
return true;
case 49:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 50;
return true;
case 50:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("actor"));
<>1__state = 51;
return true;
case 51:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 52;
return true;
case 52:
<>1__state = -3;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 53;
return true;
case 53:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)5u);
<>1__state = 54;
return true;
case 54:
<>1__state = -3;
<>2__current = new Token((TokenType)38, (uint?)null);
<>1__state = 55;
return true;
case 55:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("actor");
<>1__state = 56;
return true;
case 56:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 57;
return true;
case 57:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("actor_type");
<>1__state = 58;
return true;
case 58:
<>1__state = -3;
<>2__current = new Token((TokenType)7, (uint?)null);
<>1__state = 59;
return true;
case 59:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("player"));
<>1__state = 60;
return true;
case 60:
<>1__state = -3;
<>2__current = new Token((TokenType)13, (uint?)null);
<>1__state = 61;
return true;
case 61:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("actor");
<>1__state = 62;
return true;
case 62:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 63;
return true;
case 63:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("owner_id");
<>1__state = 64;
return true;
case 64:
<>1__state = -3;
<>2__current = new Token((TokenType)7, (uint?)null);
<>1__state = 65;
return true;
case 65:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("PACKET_SENDER");
<>1__state = 66;
return true;
case 66:
<>1__state = -3;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 67;
return true;
case 67:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)6u);
<>1__state = 68;
return true;
case 68:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("ID_SONG_MAP");
<>1__state = 69;
return true;
case 69:
<>1__state = -3;
<>2__current = new Token((TokenType)76, (uint?)null);
<>1__state = 70;
return true;
case 70:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("PACKET_SENDER");
<>1__state = 71;
return true;
case 71:
<>1__state = -3;
<>2__current = new Token((TokenType)77, (uint?)null);
<>1__state = 72;
return true;
case 72:
<>1__state = -3;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 73;
return true;
case 73:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant(""));
<>1__state = 74;
return true;
case 74:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)6u);
<>1__state = 75;
return true;
case 75:
<>1__state = -3;
<>2__current = new Token((TokenType)38, (uint?)null);
<>1__state = 76;
return true;
case 76:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("DATA");
<>1__state = 77;
return true;
case 77:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 78;
return true;
case 78:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("song");
<>1__state = 79;
return true;
case 79:
<>1__state = -3;
<>2__current = new Token((TokenType)8, (uint?)null);
<>1__state = 80;
return true;
case 80:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant(""));
<>1__state = 81;
return true;
case 81:
<>1__state = -3;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 82;
return true;
case 82:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("ID_SONG_MAP");
<>1__state = 83;
return true;
case 83:
<>1__state = -3;
<>2__current = new Token((TokenType)76, (uint?)null);
<>1__state = 84;
return true;
case 84:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("PACKET_SENDER");
<>1__state = 85;
return true;
case 85:
<>1__state = -3;
<>2__current = new Token((TokenType)77, (uint?)null);
<>1__state = 86;
return true;
case 86:
<>1__state = -3;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 87;
return true;
case 87:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("\n"));
<>1__state = 88;
return true;
case 88:
<>1__state = -3;
<>2__current = new Token((TokenType)16, (uint?)null);
<>1__state = 89;
return true;
case 89:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("DATA");
<>1__state = 90;
return true;
case 90:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 91;
return true;
case 91:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("song");
<>1__state = 92;
return true;
case 92:
<>1__state = -3;
<>2__current = new Token((TokenType)16, (uint?)null);
<>1__state = 93;
return true;
case 93:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant(" - "));
<>1__state = 94;
return true;
case 94:
<>1__state = -3;
<>2__current = new Token((TokenType)16, (uint?)null);
<>1__state = 95;
return true;
case 95:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("DATA");
<>1__state = 96;
return true;
case 96:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 97;
return true;
case 97:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("artist");
<>1__state = 98;
return true;
case 98:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)6u);
<>1__state = 99;
return true;
case 99:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("actor");
<>1__state = 100;
return true;
case 100:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 101;
return true;
case 101:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("title");
<>1__state = 102;
return true;
case 102:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 103;
return true;
case 103:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("_update_title");
<>1__state = 104;
return true;
case 104:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>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 = new Token((TokenType)89, (uint?)3u);
<>1__state = 107;
return true;
case 107:
<>1__state = -3;
break;
case 108:
<>1__state = -3;
break;
}
if (((global::System.Collections.IEnumerator)<>7__wrap3).MoveNext())
{
Token current = <>7__wrap3.Current;
if (<beginningWaiter>5__3.Check(current))
{
<>2__current = current;
<>1__state = 1;
return true;
}
if (<packetParserWaiter>5__2.Check(current))
{
<>2__current = current;
<>1__state = 8;
return true;
}
<>2__current = current;
<>1__state = 108;
return true;
}
<>m__Finally1();
<>7__wrap3 = null;
return false;
}
catch
{
//try-fault
((global::System.IDisposable)this).Dispose();
throw;
}
}
bool global::System.Collections.IEnumerator.MoveNext()
{
//ILSpy generated this explicit interface implementation from .override directive in MoveNext
return this.MoveNext();
}
private void <>m__Finally1()
{
<>1__state = -1;
if (<>7__wrap3 != null)
{
((global::System.IDisposable)<>7__wrap3).Dispose();
}
}
[DebuggerHidden]
void global::System.Collections.IEnumerator.Reset()
{
//IL_0000: Unknown result type (might be due to invalid IL or missing references)
throw new NotSupportedException();
}
[DebuggerHidden]
global::System.Collections.Generic.IEnumerator<Token> global::System.Collections.Generic.IEnumerable<Token>.GetEnumerator()
{
<Modify>d__1 <Modify>d__;
if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId)
{
<>1__state = 0;
<Modify>d__ = this;
}
else
{
<Modify>d__ = new <Modify>d__1(0);
}
<Modify>d__.tokens = <>3__tokens;
return <Modify>d__;
}
[DebuggerHidden]
global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator()
{
return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable<Token>)this).GetEnumerator();
}
}
public bool ShouldRun(string path)
{
return path == "res://Scenes/Singletons/SteamNetwork.gdc";
}
[IteratorStateMachine(typeof(<Modify>d__1))]
public global::System.Collections.Generic.IEnumerable<Token> Modify(string path, global::System.Collections.Generic.IEnumerable<Token> tokens)
{
MultiTokenWaiter packetParserWaiter = new MultiTokenWaiter(new Func<Token, bool>[4]
{
(Token t) => (int)t.Type == 47,
delegate(Token t)
{
IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val != null && val.Name == "type";
},
(Token t) => (int)t.Type == 86,
delegate(Token t)
{
//IL_0004: Unknown result type (might be due to invalid IL or missing references)
//IL_000b: Invalid comparison between Unknown and I4
if (t != null && (int)t.Type == 89)
{
uint? associatedData = t.AssociatedData;
if (associatedData.HasValue)
{
return associatedData.GetValueOrDefault() == 3;
}
}
return false;
}
}, false, false);
MultiTokenWaiter beginningWaiter = new MultiTokenWaiter(new Func<Token, bool>[2]
{
(Token t) => (int)t.Type == 51,
(Token t) => (int)t.Type == 1
}, false, false);
global::System.Collections.Generic.IEnumerator<Token> enumerator = tokens.GetEnumerator();
try
{
while (((global::System.Collections.IEnumerator)enumerator).MoveNext())
{
Token current = enumerator.Current;
if (beginningWaiter.Check(current))
{
yield return current;
yield return new Token((TokenType)89, (uint?)null);
yield return new Token((TokenType)59, (uint?)null);
yield return (Token)new IdentifierToken("ID_SONG_MAP");
yield return new Token((TokenType)23, (uint?)null);
yield return new Token((TokenType)78, (uint?)null);
yield return new Token((TokenType)79, (uint?)null);
}
else if (packetParserWaiter.Check(current))
{
yield return current;
yield return new Token((TokenType)89, (uint?)3u);
yield return new Token((TokenType)89, (uint?)3u);
yield return (Token)new ConstantToken((Variant)new StringVariant("update_song"));
yield return new Token((TokenType)86, (uint?)null);
yield return new Token((TokenType)89, (uint?)4u);
yield return new Token((TokenType)5, (uint?)63u);
yield return new Token((TokenType)80, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("RECEIVED SONG UPDATE PACKET FROM "));
yield return new Token((TokenType)82, (uint?)null);
yield return (Token)new IdentifierToken("PACKET_SENDER");
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)89, (uint?)4u);
yield return new Token((TokenType)38, (uint?)null);
yield return new Token((TokenType)15, (uint?)null);
yield return (Token)new IdentifierToken("_validate_packet_information");
yield return new Token((TokenType)80, (uint?)null);
yield return (Token)new IdentifierToken("DATA");
yield return new Token((TokenType)82, (uint?)null);
yield return new Token((TokenType)76, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("song"));
yield return new Token((TokenType)82, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("artist"));
yield return new Token((TokenType)77, (uint?)null);
yield return new Token((TokenType)82, (uint?)null);
yield return new Token((TokenType)76, (uint?)null);
yield return (Token)new IdentifierToken("TYPE_STRING");
yield return new Token((TokenType)82, (uint?)null);
yield return (Token)new IdentifierToken("TYPE_STRING");
yield return new Token((TokenType)77, (uint?)null);
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)86, (uint?)null);
yield return new Token((TokenType)46, (uint?)null);
yield return new Token((TokenType)89, (uint?)4u);
yield return new Token((TokenType)41, (uint?)null);
yield return (Token)new IdentifierToken("actor");
yield return new Token((TokenType)6, (uint?)null);
yield return (Token)new IdentifierToken("get_tree");
yield return new Token((TokenType)80, (uint?)null);
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("get_nodes_in_group");
yield return new Token((TokenType)80, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("actor"));
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)86, (uint?)null);
yield return new Token((TokenType)89, (uint?)5u);
yield return new Token((TokenType)38, (uint?)null);
yield return (Token)new IdentifierToken("actor");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("actor_type");
yield return new Token((TokenType)7, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("player"));
yield return new Token((TokenType)13, (uint?)null);
yield return (Token)new IdentifierToken("actor");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("owner_id");
yield return new Token((TokenType)7, (uint?)null);
yield return (Token)new IdentifierToken("PACKET_SENDER");
yield return new Token((TokenType)86, (uint?)null);
yield return new Token((TokenType)89, (uint?)6u);
yield return (Token)new IdentifierToken("ID_SONG_MAP");
yield return new Token((TokenType)76, (uint?)null);
yield return (Token)new IdentifierToken("PACKET_SENDER");
yield return new Token((TokenType)77, (uint?)null);
yield return new Token((TokenType)23, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant(""));
yield return new Token((TokenType)89, (uint?)6u);
yield return new Token((TokenType)38, (uint?)null);
yield return (Token)new IdentifierToken("DATA");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("song");
yield return new Token((TokenType)8, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant(""));
yield return new Token((TokenType)86, (uint?)null);
yield return (Token)new IdentifierToken("ID_SONG_MAP");
yield return new Token((TokenType)76, (uint?)null);
yield return (Token)new IdentifierToken("PACKET_SENDER");
yield return new Token((TokenType)77, (uint?)null);
yield return new Token((TokenType)23, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("\n"));
yield return new Token((TokenType)16, (uint?)null);
yield return (Token)new IdentifierToken("DATA");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("song");
yield return new Token((TokenType)16, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant(" - "));
yield return new Token((TokenType)16, (uint?)null);
yield return (Token)new IdentifierToken("DATA");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("artist");
yield return new Token((TokenType)89, (uint?)6u);
yield return (Token)new IdentifierToken("actor");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("title");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("_update_title");
yield return new Token((TokenType)80, (uint?)null);
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)89, (uint?)3u);
}
else
{
yield return current;
}
}
}
finally
{
((global::System.IDisposable)enumerator)?.Dispose();
}
}
}
public class TitlePatcher : IScriptMod
{
[CompilerGenerated]
private sealed class <Modify>d__1 : global::System.Collections.Generic.IEnumerable<Token>, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator<Token>, global::System.Collections.IEnumerator, global::System.IDisposable
{
private int <>1__state;
private Token <>2__current;
private int <>l__initialThreadId;
private global::System.Collections.Generic.IEnumerable<Token> tokens;
public global::System.Collections.Generic.IEnumerable<Token> <>3__tokens;
private MultiTokenWaiter <titleUpdateWaiter>5__2;
private MultiTokenWaiter <beginningWaiter>5__3;
private global::System.Collections.Generic.IEnumerator<Token> <>7__wrap3;
Token global::System.Collections.Generic.IEnumerator<Token>.Current
{
[DebuggerHidden]
get
{
return <>2__current;
}
}
object global::System.Collections.IEnumerator.Current
{
[DebuggerHidden]
get
{
return <>2__current;
}
}
[DebuggerHidden]
public <Modify>d__1(int <>1__state)
{
this.<>1__state = <>1__state;
<>l__initialThreadId = Environment.CurrentManagedThreadId;
}
[DebuggerHidden]
void global::System.IDisposable.Dispose()
{
int num = <>1__state;
if (num == -3 || (uint)(num - 1) <= 43u)
{
try
{
}
finally
{
<>m__Finally1();
}
}
}
private bool MoveNext()
{
//IL_0247: Unknown result type (might be due to invalid IL or missing references)
//IL_0251: Expected O, but got Unknown
//IL_0273: Unknown result type (might be due to invalid IL or missing references)
//IL_027d: Expected O, but got Unknown
//IL_0299: Unknown result type (might be due to invalid IL or missing references)
//IL_02a3: Expected O, but got Unknown
//IL_02c5: Unknown result type (might be due to invalid IL or missing references)
//IL_02cf: Expected O, but got Unknown
//IL_02eb: Unknown result type (might be due to invalid IL or missing references)
//IL_02f5: Expected O, but got Unknown
//IL_02f0: Unknown result type (might be due to invalid IL or missing references)
//IL_02fa: Expected O, but got Unknown
//IL_031c: Unknown result type (might be due to invalid IL or missing references)
//IL_0326: Expected O, but got Unknown
//IL_037b: Unknown result type (might be due to invalid IL or missing references)
//IL_0385: Expected O, but got Unknown
//IL_03a2: Unknown result type (might be due to invalid IL or missing references)
//IL_03ac: Expected O, but got Unknown
//IL_03ce: Unknown result type (might be due to invalid IL or missing references)
//IL_03d8: Expected O, but got Unknown
//IL_03f5: Unknown result type (might be due to invalid IL or missing references)
//IL_03ff: Expected O, but got Unknown
//IL_0422: Unknown result type (might be due to invalid IL or missing references)
//IL_042c: Expected O, but got Unknown
//IL_0449: Unknown result type (might be due to invalid IL or missing references)
//IL_0453: Expected O, but got Unknown
//IL_0476: Unknown result type (might be due to invalid IL or missing references)
//IL_0480: Expected O, but got Unknown
//IL_04a0: Unknown result type (might be due to invalid IL or missing references)
//IL_04aa: Expected O, but got Unknown
//IL_04c7: Unknown result type (might be due to invalid IL or missing references)
//IL_04d1: Expected O, but got Unknown
//IL_04f4: Unknown result type (might be due to invalid IL or missing references)
//IL_04fe: Expected O, but got Unknown
//IL_0520: Unknown result type (might be due to invalid IL or missing references)
//IL_052a: Expected O, but got Unknown
//IL_054d: Unknown result type (might be due to invalid IL or missing references)
//IL_0557: Expected O, but got Unknown
//IL_0574: Unknown result type (might be due to invalid IL or missing references)
//IL_057e: Expected O, but got Unknown
//IL_0579: Unknown result type (might be due to invalid IL or missing references)
//IL_0583: Expected O, but got Unknown
//IL_05a6: Unknown result type (might be due to invalid IL or missing references)
//IL_05b0: Expected O, but got Unknown
//IL_05d3: Unknown result type (might be due to invalid IL or missing references)
//IL_05dd: Expected O, but got Unknown
//IL_05fa: Unknown result type (might be due to invalid IL or missing references)
//IL_0604: Expected O, but got Unknown
//IL_0627: Unknown result type (might be due to invalid IL or missing references)
//IL_0631: Expected O, but got Unknown
//IL_064e: Unknown result type (might be due to invalid IL or missing references)
//IL_0658: Expected O, but got Unknown
//IL_067b: Unknown result type (might be due to invalid IL or missing references)
//IL_0685: Expected O, but got Unknown
//IL_06a2: Unknown result type (might be due to invalid IL or missing references)
//IL_06ac: Expected O, but got Unknown
//IL_06a7: Unknown result type (might be due to invalid IL or missing references)
//IL_06b1: Expected O, but got Unknown
//IL_06d4: Unknown result type (might be due to invalid IL or missing references)
//IL_06de: Expected O, but got Unknown
//IL_06fe: Unknown result type (might be due to invalid IL or missing references)
//IL_0708: Expected O, but got Unknown
//IL_0725: Unknown result type (might be due to invalid IL or missing references)
//IL_072f: Expected O, but got Unknown
//IL_0752: Unknown result type (might be due to invalid IL or missing references)
//IL_075c: Expected O, but got Unknown
//IL_0779: Unknown result type (might be due to invalid IL or missing references)
//IL_0783: Expected O, but got Unknown
//IL_07a6: Unknown result type (might be due to invalid IL or missing references)
//IL_07b0: Expected O, but got Unknown
//IL_07cd: Unknown result type (might be due to invalid IL or missing references)
//IL_07d7: Expected O, but got Unknown
//IL_07fa: Unknown result type (might be due to invalid IL or missing references)
//IL_0804: Expected O, but got Unknown
//IL_0821: Unknown result type (might be due to invalid IL or missing references)
//IL_082b: Expected O, but got Unknown
//IL_084e: Unknown result type (might be due to invalid IL or missing references)
//IL_0858: Expected O, but got Unknown
//IL_0878: Unknown result type (might be due to invalid IL or missing references)
//IL_0882: Expected O, but got Unknown
//IL_089f: Unknown result type (might be due to invalid IL or missing references)
//IL_08a9: Expected O, but got Unknown
//IL_08cc: Unknown result type (might be due to invalid IL or missing references)
//IL_08d6: Expected O, but got Unknown
//IL_08f3: Unknown result type (might be due to invalid IL or missing references)
//IL_08fd: Expected O, but got Unknown
//IL_091a: Unknown result type (might be due to invalid IL or missing references)
//IL_0924: Expected O, but got Unknown
//IL_0182: Unknown result type (might be due to invalid IL or missing references)
//IL_018c: Expected O, but got Unknown
//IL_01d9: Unknown result type (might be due to invalid IL or missing references)
//IL_01e3: Expected O, but got Unknown
try
{
switch (<>1__state)
{
default:
return false;
case 0:
<>1__state = -1;
<titleUpdateWaiter>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 == "_update_title";
},
(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);
<beginningWaiter>5__3 = new MultiTokenWaiter(new Func<Token, bool>[2]
{
(Token t) => (int)t.Type == 51,
(Token t) => (int)t.Type == 1
}, false, false);
<>7__wrap3 = tokens.GetEnumerator();
<>1__state = -3;
break;
case 1:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)null);
<>1__state = 2;
return true;
case 2:
<>1__state = -3;
<>2__current = new Token((TokenType)59, (uint?)null);
<>1__state = 3;
return true;
case 3:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("current_song");
<>1__state = 4;
return true;
case 4:
<>1__state = -3;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 5;
return true;
case 5:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant(""));
<>1__state = 6;
return true;
case 6:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)null);
<>1__state = 7;
return true;
case 7:
<>1__state = -3;
break;
case 8:
<>1__state = -3;
<>2__current = new Token((TokenType)38, (uint?)null);
<>1__state = 9;
return true;
case 9:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("player_id");
<>1__state = 10;
return true;
case 10:
<>1__state = -3;
<>2__current = new Token((TokenType)6, (uint?)null);
<>1__state = 11;
return true;
case 11:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("Network");
<>1__state = 12;
return true;
case 12:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 13;
return true;
case 13:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("ID_SONG_MAP");
<>1__state = 14;
return true;
case 14:
<>1__state = -3;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 15;
return true;
case 15:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)2u);
<>1__state = 16;
return true;
case 16:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("title");
<>1__state = 17;
return true;
case 17:
<>1__state = -3;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 18;
return true;
case 18:
<>1__state = -3;
<>2__current = new Token((TokenType)3, (uint?)null);
<>1__state = 19;
return true;
case 19:
<>1__state = -3;
<>2__current = new Token((TokenType)76, (uint?)null);
<>1__state = 20;
return true;
case 20:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("title"));
<>1__state = 21;
return true;
case 21:
<>1__state = -3;
<>2__current = new Token((TokenType)77, (uint?)null);
<>1__state = 22;
return true;
case 22:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 23;
return true;
case 23:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("replace");
<>1__state = 24;
return true;
case 24:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 25;
return true;
case 25:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("current_song");
<>1__state = 26;
return true;
case 26:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 27;
return true;
case 27:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant(""));
<>1__state = 28;
return true;
case 28:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 29;
return true;
case 29:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)2u);
<>1__state = 30;
return true;
case 30:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("current_song");
<>1__state = 31;
return true;
case 31:
<>1__state = -3;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 32;
return true;
case 32:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("Network");
<>1__state = 33;
return true;
case 33:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 34;
return true;
case 34:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("ID_SONG_MAP");
<>1__state = 35;
return true;
case 35:
<>1__state = -3;
<>2__current = new Token((TokenType)76, (uint?)null);
<>1__state = 36;
return true;
case 36:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("player_id");
<>1__state = 37;
return true;
case 37:
<>1__state = -3;
<>2__current = new Token((TokenType)77, (uint?)null);
<>1__state = 38;
return true;
case 38:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)2u);
<>1__state = 39;
return true;
case 39:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("title");
<>1__state = 40;
return true;
case 40:
<>1__state = -3;
<>2__current = new Token((TokenType)24, (uint?)null);
<>1__state = 41;
return true;
case 41:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("current_song");
<>1__state = 42;
return true;
case 42:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 43;
return true;
case 43:
<>1__state = -3;
break;
case 44:
<>1__state = -3;
break;
}
if (((global::System.Collections.IEnumerator)<>7__wrap3).MoveNext())
{
Token current = <>7__wrap3.Current;
if (<beginningWaiter>5__3.Check(current))
{
<>2__current = current;
<>1__state = 1;
return true;
}
if (<titleUpdateWaiter>5__2.Check(current))
{
<>2__current = current;
<>1__state = 8;
return true;
}
<>2__current = current;
<>1__state = 44;
return true;
}
<>m__Finally1();
<>7__wrap3 = null;
return false;
}
catch
{
//try-fault
((global::System.IDisposable)this).Dispose();
throw;
}
}
bool global::System.Collections.IEnumerator.MoveNext()
{
//ILSpy generated this explicit interface implementation from .override directive in MoveNext
return this.MoveNext();
}
private void <>m__Finally1()
{
<>1__state = -1;
if (<>7__wrap3 != null)
{
((global::System.IDisposable)<>7__wrap3).Dispose();
}
}
[DebuggerHidden]
void global::System.Collections.IEnumerator.Reset()
{
//IL_0000: Unknown result type (might be due to invalid IL or missing references)
throw new NotSupportedException();
}
[DebuggerHidden]
global::System.Collections.Generic.IEnumerator<Token> global::System.Collections.Generic.IEnumerable<Token>.GetEnumerator()
{
<Modify>d__1 <Modify>d__;
if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId)
{
<>1__state = 0;
<Modify>d__ = this;
}
else
{
<Modify>d__ = new <Modify>d__1(0);
}
<Modify>d__.tokens = <>3__tokens;
return <Modify>d__;
}
[DebuggerHidden]
global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator()
{
return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable<Token>)this).GetEnumerator();
}
}
public bool ShouldRun(string path)
{
return path == "res://Scenes/Entities/Player/player_label.gdc";
}
[IteratorStateMachine(typeof(<Modify>d__1))]
public global::System.Collections.Generic.IEnumerable<Token> Modify(string path, global::System.Collections.Generic.IEnumerable<Token> tokens)
{
MultiTokenWaiter titleUpdateWaiter = new MultiTokenWaiter(new Func<Token, bool>[5]
{
delegate(Token t)
{
IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val != null && val.Name == "_update_title";
},
(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);
MultiTokenWaiter beginningWaiter = new MultiTokenWaiter(new Func<Token, bool>[2]
{
(Token t) => (int)t.Type == 51,
(Token t) => (int)t.Type == 1
}, false, false);
global::System.Collections.Generic.IEnumerator<Token> enumerator = tokens.GetEnumerator();
try
{
while (((global::System.Collections.IEnumerator)enumerator).MoveNext())
{
Token current = enumerator.Current;
if (beginningWaiter.Check(current))
{
yield return current;
yield return new Token((TokenType)89, (uint?)null);
yield return new Token((TokenType)59, (uint?)null);
yield return (Token)new IdentifierToken("current_song");
yield return new Token((TokenType)23, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant(""));
yield return new Token((TokenType)89, (uint?)null);
}
else if (titleUpdateWaiter.Check(current))
{
yield return current;
yield return new Token((TokenType)38, (uint?)null);
yield return (Token)new IdentifierToken("player_id");
yield return new Token((TokenType)6, (uint?)null);
yield return (Token)new IdentifierToken("Network");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("ID_SONG_MAP");
yield return new Token((TokenType)86, (uint?)null);
yield return new Token((TokenType)89, (uint?)2u);
yield return (Token)new IdentifierToken("title");
yield return new Token((TokenType)23, (uint?)null);
yield return new Token((TokenType)3, (uint?)null);
yield return new Token((TokenType)76, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("title"));
yield return new Token((TokenType)77, (uint?)null);
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("replace");
yield return new Token((TokenType)80, (uint?)null);
yield return (Token)new IdentifierToken("current_song");
yield return new Token((TokenType)82, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant(""));
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)89, (uint?)2u);
yield return (Token)new IdentifierToken("current_song");
yield return new Token((TokenType)23, (uint?)null);
yield return (Token)new IdentifierToken("Network");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("ID_SONG_MAP");
yield return new Token((TokenType)76, (uint?)null);
yield return (Token)new IdentifierToken("player_id");
yield return new Token((TokenType)77, (uint?)null);
yield return new Token((TokenType)89, (uint?)2u);
yield return (Token)new IdentifierToken("title");
yield return new Token((TokenType)24, (uint?)null);
yield return (Token)new IdentifierToken("current_song");
yield return new Token((TokenType)89, (uint?)1u);
}
else
{
yield return current;
}
}
}
finally
{
((global::System.IDisposable)enumerator)?.Dispose();
}
}
}
}