using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
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("TenTeypek.BetterLobbyList")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0.0+c1e25eee60d054dc6b0a0a699db1a45265f89491")]
[assembly: AssemblyProduct("TenTeypek.BetterLobbyList")]
[assembly: AssemblyTitle("TenTeypek.BetterLobbyList")]
[assembly: AssemblyVersion("1.0.0.0")]
[module: RefSafetyRules(11)]
namespace TenTeypek.BetterLobbyList;
public class MainMenuScript : 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 <lobbySortWaiter>5__2;
private MultiTokenWaiter <validatedListWaiter>5__3;
private MultiTokenWaiter <matchLobbySorterWaiter>5__4;
private MultiTokenWaiter <ifLobbySearchSortWaiter>5__5;
private MultiTokenWaiter <matchLobbySearchSortWaiter>5__6;
private global::System.Collections.Generic.IEnumerator<Token> <>7__wrap6;
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) <= 96u)
{
try
{
}
finally
{
<>m__Finally1();
}
}
}
private bool MoveNext()
{
//IL_07ba: Unknown result type (might be due to invalid IL or missing references)
//IL_07c4: Expected O, but got Unknown
//IL_07e0: Unknown result type (might be due to invalid IL or missing references)
//IL_07ea: Expected O, but got Unknown
//IL_080c: Unknown result type (might be due to invalid IL or missing references)
//IL_0816: Expected O, but got Unknown
//IL_0832: Unknown result type (might be due to invalid IL or missing references)
//IL_083c: Expected O, but got Unknown
//IL_0891: Unknown result type (might be due to invalid IL or missing references)
//IL_089b: Expected O, but got Unknown
//IL_08b7: Unknown result type (might be due to invalid IL or missing references)
//IL_08c1: Expected O, but got Unknown
//IL_08e3: Unknown result type (might be due to invalid IL or missing references)
//IL_08ed: Expected O, but got Unknown
//IL_090a: Unknown result type (might be due to invalid IL or missing references)
//IL_0914: Expected O, but got Unknown
//IL_0937: Unknown result type (might be due to invalid IL or missing references)
//IL_0941: Expected O, but got Unknown
//IL_095e: Unknown result type (might be due to invalid IL or missing references)
//IL_0968: Expected O, but got Unknown
//IL_098b: Unknown result type (might be due to invalid IL or missing references)
//IL_0995: Expected O, but got Unknown
//IL_09b2: Unknown result type (might be due to invalid IL or missing references)
//IL_09bc: Expected O, but got Unknown
//IL_09b7: Unknown result type (might be due to invalid IL or missing references)
//IL_09c1: Expected O, but got Unknown
//IL_09e4: Unknown result type (might be due to invalid IL or missing references)
//IL_09ee: Expected O, but got Unknown
//IL_0a11: Unknown result type (might be due to invalid IL or missing references)
//IL_0a1b: Expected O, but got Unknown
//IL_0a38: Unknown result type (might be due to invalid IL or missing references)
//IL_0a42: Expected O, but got Unknown
//IL_0a65: Unknown result type (might be due to invalid IL or missing references)
//IL_0a6f: Expected O, but got Unknown
//IL_0a8c: Unknown result type (might be due to invalid IL or missing references)
//IL_0a96: Expected O, but got Unknown
//IL_0ab9: Unknown result type (might be due to invalid IL or missing references)
//IL_0ac3: Expected O, but got Unknown
//IL_0ae0: Unknown result type (might be due to invalid IL or missing references)
//IL_0aea: Expected O, but got Unknown
//IL_0b0d: Unknown result type (might be due to invalid IL or missing references)
//IL_0b17: Expected O, but got Unknown
//IL_0b34: Unknown result type (might be due to invalid IL or missing references)
//IL_0b3e: Expected O, but got Unknown
//IL_0b39: Unknown result type (might be due to invalid IL or missing references)
//IL_0b43: Expected O, but got Unknown
//IL_0b66: Unknown result type (might be due to invalid IL or missing references)
//IL_0b70: Expected O, but got Unknown
//IL_0b92: Unknown result type (might be due to invalid IL or missing references)
//IL_0b9c: Expected O, but got Unknown
//IL_0bb9: Unknown result type (might be due to invalid IL or missing references)
//IL_0bc3: Expected O, but got Unknown
//IL_0bbe: Unknown result type (might be due to invalid IL or missing references)
//IL_0bc8: Expected O, but got Unknown
//IL_0beb: Unknown result type (might be due to invalid IL or missing references)
//IL_0bf5: Expected O, but got Unknown
//IL_0c12: Unknown result type (might be due to invalid IL or missing references)
//IL_0c1c: Expected O, but got Unknown
//IL_0c3f: Unknown result type (might be due to invalid IL or missing references)
//IL_0c49: 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_0c93: Unknown result type (might be due to invalid IL or missing references)
//IL_0c9d: Expected O, but got Unknown
//IL_0cba: Unknown result type (might be due to invalid IL or missing references)
//IL_0cc4: Expected O, but got Unknown
//IL_0ce7: Unknown result type (might be due to invalid IL or missing references)
//IL_0cf1: Expected O, but got Unknown
//IL_0d0e: Unknown result type (might be due to invalid IL or missing references)
//IL_0d18: Expected O, but got Unknown
//IL_0d13: Unknown result type (might be due to invalid IL or missing references)
//IL_0d1d: Expected O, but got Unknown
//IL_0d40: Unknown result type (might be due to invalid IL or missing references)
//IL_0d4a: Expected O, but got Unknown
//IL_0d9e: Unknown result type (might be due to invalid IL or missing references)
//IL_0da8: Expected O, but got Unknown
//IL_0dc5: Unknown result type (might be due to invalid IL or missing references)
//IL_0dcf: Expected O, but got Unknown
//IL_0df2: Unknown result type (might be due to invalid IL or missing references)
//IL_0dfc: Expected O, but got Unknown
//IL_0e19: Unknown result type (might be due to invalid IL or missing references)
//IL_0e23: Expected O, but got Unknown
//IL_0e46: Unknown result type (might be due to invalid IL or missing references)
//IL_0e50: Expected O, but got Unknown
//IL_0e6d: Unknown result type (might be due to invalid IL or missing references)
//IL_0e77: Expected O, but got Unknown
//IL_0e9a: Unknown result type (might be due to invalid IL or missing references)
//IL_0ea4: Expected O, but got Unknown
//IL_0ec1: Unknown result type (might be due to invalid IL or missing references)
//IL_0ecb: Expected O, but got Unknown
//IL_0eee: Unknown result type (might be due to invalid IL or missing references)
//IL_0ef8: Expected O, but got Unknown
//IL_0f1a: Unknown result type (might be due to invalid IL or missing references)
//IL_0f24: Expected O, but got Unknown
//IL_0f47: Unknown result type (might be due to invalid IL or missing references)
//IL_0f51: Expected O, but got Unknown
//IL_0f6e: Unknown result type (might be due to invalid IL or missing references)
//IL_0f78: Expected O, but got Unknown
//IL_0f73: Unknown result type (might be due to invalid IL or missing references)
//IL_0f7d: Expected O, but got Unknown
//IL_0fa0: Unknown result type (might be due to invalid IL or missing references)
//IL_0faa: Expected O, but got Unknown
//IL_103b: Unknown result type (might be due to invalid IL or missing references)
//IL_1045: Expected O, but got Unknown
//IL_1062: Unknown result type (might be due to invalid IL or missing references)
//IL_106c: Expected O, but got Unknown
//IL_108f: Unknown result type (might be due to invalid IL or missing references)
//IL_1099: Expected O, but got Unknown
//IL_10b6: Unknown result type (might be due to invalid IL or missing references)
//IL_10c0: Expected O, but got Unknown
//IL_10e3: Unknown result type (might be due to invalid IL or missing references)
//IL_10ed: Expected O, but got Unknown
//IL_110a: Unknown result type (might be due to invalid IL or missing references)
//IL_1114: Expected O, but got Unknown
//IL_1137: Unknown result type (might be due to invalid IL or missing references)
//IL_1141: Expected O, but got Unknown
//IL_115e: Unknown result type (might be due to invalid IL or missing references)
//IL_1168: Expected O, but got Unknown
//IL_118b: Unknown result type (might be due to invalid IL or missing references)
//IL_1195: Expected O, but got Unknown
//IL_11b2: Unknown result type (might be due to invalid IL or missing references)
//IL_11bc: Expected O, but got Unknown
//IL_11b7: Unknown result type (might be due to invalid IL or missing references)
//IL_11c1: Expected O, but got Unknown
//IL_11e1: Unknown result type (might be due to invalid IL or missing references)
//IL_11eb: Expected O, but got Unknown
//IL_1208: Unknown result type (might be due to invalid IL or missing references)
//IL_1212: 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_125c: Unknown result type (might be due to invalid IL or missing references)
//IL_1266: 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_12b0: Unknown result type (might be due to invalid IL or missing references)
//IL_12ba: Expected O, but got Unknown
//IL_12dd: Unknown result type (might be due to invalid IL or missing references)
//IL_12e7: Expected O, but got Unknown
//IL_1304: Unknown result type (might be due to invalid IL or missing references)
//IL_130e: Expected O, but got Unknown
//IL_1331: Unknown result type (might be due to invalid IL or missing references)
//IL_133b: Expected O, but got Unknown
//IL_1358: Unknown result type (might be due to invalid IL or missing references)
//IL_1362: Expected O, but got Unknown
//IL_135d: Unknown result type (might be due to invalid IL or missing references)
//IL_1367: Expected O, but got Unknown
//IL_138a: Unknown result type (might be due to invalid IL or missing references)
//IL_1394: Expected O, but got Unknown
//IL_13b7: Unknown result type (might be due to invalid IL or missing references)
//IL_13c1: Expected O, but got Unknown
//IL_13de: Unknown result type (might be due to invalid IL or missing references)
//IL_13e8: 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_145f: Unknown result type (might be due to invalid IL or missing references)
//IL_1469: Expected O, but got Unknown
//IL_1486: Unknown result type (might be due to invalid IL or missing references)
//IL_1490: Expected O, but got Unknown
//IL_14b3: Unknown result type (might be due to invalid IL or missing references)
//IL_14bd: Expected O, but got Unknown
//IL_14e0: Unknown result type (might be due to invalid IL or missing references)
//IL_14ea: Expected O, but got Unknown
//IL_150d: Unknown result type (might be due to invalid IL or missing references)
//IL_1517: Expected O, but got Unknown
//IL_1534: Unknown result type (might be due to invalid IL or missing references)
//IL_153e: Expected O, but got Unknown
//IL_1561: Unknown result type (might be due to invalid IL or missing references)
//IL_156b: Expected O, but got Unknown
//IL_1586: Unknown result type (might be due to invalid IL or missing references)
//IL_1590: Expected O, but got Unknown
//IL_158b: Unknown result type (might be due to invalid IL or missing references)
//IL_1595: 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_15e5: Unknown result type (might be due to invalid IL or missing references)
//IL_15ef: Expected O, but got Unknown
//IL_160c: Unknown result type (might be due to invalid IL or missing references)
//IL_1616: Expected O, but got Unknown
//IL_1639: Unknown result type (might be due to invalid IL or missing references)
//IL_1643: Expected O, but got Unknown
//IL_1660: Unknown result type (might be due to invalid IL or missing references)
//IL_166a: Expected O, but got Unknown
//IL_168d: Unknown result type (might be due to invalid IL or missing references)
//IL_1697: Expected O, but got Unknown
//IL_16b2: Unknown result type (might be due to invalid IL or missing references)
//IL_16bc: Expected O, but got Unknown
//IL_16b7: Unknown result type (might be due to invalid IL or missing references)
//IL_16c1: Expected O, but got Unknown
//IL_16e4: Unknown result type (might be due to invalid IL or missing references)
//IL_16ee: Expected O, but got Unknown
//IL_1711: Unknown result type (might be due to invalid IL or missing references)
//IL_171b: Expected O, but got Unknown
//IL_173e: Unknown result type (might be due to invalid IL or missing references)
//IL_1748: Expected O, but got Unknown
//IL_1763: Unknown result type (might be due to invalid IL or missing references)
//IL_176d: Expected O, but got Unknown
//IL_1768: Unknown result type (might be due to invalid IL or missing references)
//IL_1772: Expected O, but got Unknown
//IL_1792: Unknown result type (might be due to invalid IL or missing references)
//IL_179c: Expected O, but got Unknown
//IL_0fd8: Unknown result type (might be due to invalid IL or missing references)
//IL_0fe2: Expected O, but got Unknown
//IL_0fdd: Unknown result type (might be due to invalid IL or missing references)
//IL_0fe7: Expected O, but got Unknown
//IL_0302: Unknown result type (might be due to invalid IL or missing references)
//IL_030c: Expected O, but got Unknown
//IL_0425: Unknown result type (might be due to invalid IL or missing references)
//IL_042f: Expected O, but got Unknown
//IL_056b: Unknown result type (might be due to invalid IL or missing references)
//IL_0575: Expected O, but got Unknown
//IL_0606: Unknown result type (might be due to invalid IL or missing references)
//IL_0610: Expected O, but got Unknown
//IL_074c: Unknown result type (might be due to invalid IL or missing references)
//IL_0756: Expected O, but got Unknown
try
{
switch (<>1__state)
{
default:
return false;
case 0:
<>1__state = -1;
<lobbySortWaiter>5__2 = new MultiTokenWaiter(new Func<Token, bool>[10]
{
(Token t) => (int)t.Type == 51,
(Token t) => (int)t.Type == 89,
(Token t) => (int)t.Type == 62,
delegate(Token t)
{
IdentifierToken val21 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val21 != null && val21.Name == "LOBBY_SORT";
},
(Token t) => (int)t.Type == 78,
delegate(Token t)
{
IdentifierToken val20 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val20 != null && val20.Name == "PLAYER_HIGH";
},
(Token t) => (int)t.Type == 82,
delegate(Token t)
{
IdentifierToken val19 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val19 != null && val19.Name == "PLAYER_LOW";
},
(Token t) => (int)t.Type == 82,
delegate(Token t)
{
IdentifierToken val18 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val18 != null && val18.Name == "RANDOM";
}
}, false, true);
<validatedListWaiter>5__3 = new MultiTokenWaiter(new Func<Token, bool>[8]
{
delegate(Token t)
{
IdentifierToken val17 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val17 != null && val17.Name == "validated_list";
},
(Token t) => (int)t.Type == 84,
delegate(Token t)
{
IdentifierToken val16 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val16 != null && val16.Name == "append";
},
(Token t) => (int)t.Type == 80,
(Token t) => (int)t.Type == 76,
delegate(Token t)
{
IdentifierToken val15 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val15 != null && val15.Name == "lobby";
},
(Token t) => (int)t.Type == 82,
delegate(Token t)
{
IdentifierToken val14 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val14 != null && val14.Name == "lobby_num_members";
}
}, false, false);
<matchLobbySorterWaiter>5__4 = new MultiTokenWaiter(new Func<Token, bool>[9]
{
delegate(Token t)
{
IdentifierToken val13 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val13 != null && val13.Name == "LOBBY_SORT";
},
(Token t) => (int)t.Type == 84,
delegate(Token t)
{
IdentifierToken val12 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val12 != null && val12.Name == "RANDOM";
},
(Token t) => (int)t.Type == 86,
delegate(Token t)
{
IdentifierToken val11 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val11 != null && val11.Name == "sorted_list";
},
(Token t) => (int)t.Type == 84,
delegate(Token t)
{
IdentifierToken val10 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val10 != null && val10.Name == "sort_custom";
},
(Token t) => (int)t.Type == 80,
(Token t) => (int)t.Type == 81
}, false, true);
<ifLobbySearchSortWaiter>5__5 = new MultiTokenWaiter(new Func<Token, bool>[4]
{
(Token t) => (int)t.Type == 38,
delegate(Token t)
{
IdentifierToken val9 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val9 != null && val9.Name == "lobby_search_sort";
},
(Token t) => (int)t.Type == 11,
delegate(Token t)
{
ConstantToken val7 = (ConstantToken)(object)((t is ConstantToken) ? t : null);
if (val7 != null)
{
Variant value2 = val7.Value;
IntVariant val8 = (IntVariant)(object)((value2 is IntVariant) ? value2 : null);
if (val8 != null)
{
return val8.Value == 2;
}
}
return false;
}
}, false, false);
<matchLobbySearchSortWaiter>5__6 = new MultiTokenWaiter(new Func<Token, bool>[9]
{
delegate(Token t)
{
IdentifierToken val6 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val6 != null && val6.Name == "LOBBY_SORT";
},
(Token t) => (int)t.Type == 84,
delegate(Token t)
{
IdentifierToken val5 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val5 != null && val5.Name == "RANDOM";
},
(Token t) => (int)t.Type == 86,
delegate(Token t)
{
IdentifierToken val4 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val4 != null && val4.Name == "search_button";
},
(Token t) => (int)t.Type == 84,
delegate(Token t)
{
IdentifierToken val3 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val3 != null && val3.Name == "text";
},
(Token t) => (int)t.Type == 23,
delegate(Token t)
{
ConstantToken val = (ConstantToken)(object)((t is ConstantToken) ? t : null);
if (val != null)
{
Variant value = val.Value;
StringVariant val2 = (StringVariant)(object)((value is StringVariant) ? value : null);
if (val2 != null)
{
return val2.Value == "Random";
}
}
return false;
}
}, false, false);
<>7__wrap6 = tokens.GetEnumerator();
<>1__state = -3;
break;
case 1:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 2;
return true;
case 2:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("PING");
<>1__state = 3;
return true;
case 3:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 4;
return true;
case 4:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("NAME");
<>1__state = 5;
return true;
case 5:
<>1__state = -3;
break;
case 6:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 7;
return true;
case 7:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("Steam");
<>1__state = 8;
return true;
case 8:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 9;
return true;
case 9:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("getLobbyData");
<>1__state = 10;
return true;
case 10:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 11;
return true;
case 11:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("lobby");
<>1__state = 12;
return true;
case 12:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 13;
return true;
case 13:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("lobby_name"));
<>1__state = 14;
return true;
case 14:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 15;
return true;
case 15:
<>1__state = -3;
<>2__current = new Token((TokenType)38, (uint?)null);
<>1__state = 16;
return true;
case 16:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("Steam");
<>1__state = 17;
return true;
case 17:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 18;
return true;
case 18:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("getLobbyData");
<>1__state = 19;
return true;
case 19:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 20;
return true;
case 20:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("lobby");
<>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 StringVariant("lobby_name"));
<>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)8, (uint?)null);
<>1__state = 25;
return true;
case 25:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant(""));
<>1__state = 26;
return true;
case 26:
<>1__state = -3;
<>2__current = new Token((TokenType)40, (uint?)null);
<>1__state = 27;
return true;
case 27:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("Steam");
<>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("getLobbyData");
<>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 IdentifierToken("lobby");
<>1__state = 32;
return true;
case 32:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 33;
return true;
case 33:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("name"));
<>1__state = 34;
return true;
case 34:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 35;
return true;
case 35:
<>1__state = -3;
break;
case 36:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)2u);
<>1__state = 37;
return true;
case 37:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("LOBBY_SORT");
<>1__state = 38;
return true;
case 38:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 39;
return true;
case 39:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("NAME");
<>1__state = 40;
return true;
case 40:
<>1__state = -3;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 41;
return true;
case 41:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("sorted_list");
<>1__state = 42;
return true;
case 42:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 43;
return true;
case 43:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("sort_custom");
<>1__state = 44;
return true;
case 44:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 45;
return true;
case 45:
<>1__state = -3;
<>2__current = new Token((TokenType)3, (uint?)null);
<>1__state = 46;
return true;
case 46:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 47;
return true;
case 47:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("_lobby_sort_name"));
<>1__state = 48;
return true;
case 48:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 49;
return true;
case 49:
<>1__state = -3;
break;
case 50:
<>1__state = -3;
break;
case 51:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)2u);
<>1__state = 52;
return true;
case 52:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("LOBBY_SORT");
<>1__state = 53;
return true;
case 53:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 54;
return true;
case 54:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("PING");
<>1__state = 55;
return true;
case 55:
<>1__state = -3;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 56;
return true;
case 56:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("search_button");
<>1__state = 57;
return true;
case 57:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 58;
return true;
case 58:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("text");
<>1__state = 59;
return true;
case 59:
<>1__state = -3;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 60;
return true;
case 60:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("Closest"));
<>1__state = 61;
return true;
case 61:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)2u);
<>1__state = 62;
return true;
case 62:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("LOBBY_SORT");
<>1__state = 63;
return true;
case 63:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 64;
return true;
case 64:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("NAME");
<>1__state = 65;
return true;
case 65:
<>1__state = -3;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 66;
return true;
case 66:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("search_button");
<>1__state = 67;
return true;
case 67:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 68;
return true;
case 68:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("text");
<>1__state = 69;
return true;
case 69:
<>1__state = -3;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 70;
return true;
case 70:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("A-Z"));
<>1__state = 71;
return true;
case 71:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)null);
<>1__state = 72;
return true;
case 72:
<>1__state = -3;
<>2__current = new Token((TokenType)48, (uint?)null);
<>1__state = 73;
return true;
case 73:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("_lobby_sort_name");
<>1__state = 74;
return true;
case 74:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 75;
return true;
case 75:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("a");
<>1__state = 76;
return true;
case 76:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 77;
return true;
case 77:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("b");
<>1__state = 78;
return true;
case 78:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 79;
return true;
case 79:
<>1__state = -3;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 80;
return true;
case 80:
<>1__state = -3;
<>2__current = new Token((TokenType)46, (uint?)null);
<>1__state = 81;
return true;
case 81:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("a");
<>1__state = 82;
return true;
case 82:
<>1__state = -3;
<>2__current = new Token((TokenType)76, (uint?)null);
<>1__state = 83;
return true;
case 83:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new IntVariant(2L, false));
<>1__state = 84;
return true;
case 84:
<>1__state = -3;
<>2__current = new Token((TokenType)77, (uint?)null);
<>1__state = 85;
return true;
case 85:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 86;
return true;
case 86:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("nocasecmp_to");
<>1__state = 87;
return true;
case 87:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 88;
return true;
case 88:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("b");
<>1__state = 89;
return true;
case 89:
<>1__state = -3;
<>2__current = new Token((TokenType)76, (uint?)null);
<>1__state = 90;
return true;
case 90:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new IntVariant(2L, false));
<>1__state = 91;
return true;
case 91:
<>1__state = -3;
<>2__current = new Token((TokenType)77, (uint?)null);
<>1__state = 92;
return true;
case 92:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 93;
return true;
case 93:
<>1__state = -3;
<>2__current = new Token((TokenType)9, (uint?)null);
<>1__state = 94;
return true;
case 94:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new IntVariant(0L, false));
<>1__state = 95;
return true;
case 95:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)null);
<>1__state = 96;
return true;
case 96:
<>1__state = -3;
break;
case 97:
<>1__state = -3;
break;
}
if (((global::System.Collections.IEnumerator)<>7__wrap6).MoveNext())
{
Token current = <>7__wrap6.Current;
if (<lobbySortWaiter>5__2.Check(current))
{
<>2__current = current;
<>1__state = 1;
return true;
}
if (<validatedListWaiter>5__3.Check(current))
{
<>2__current = current;
<>1__state = 6;
return true;
}
if (<matchLobbySorterWaiter>5__4.Check(current))
{
<>2__current = current;
<>1__state = 36;
return true;
}
if (<ifLobbySearchSortWaiter>5__5.Check(current))
{
<>2__current = (Token)new ConstantToken((Variant)new IntVariant(4L, false));
<>1__state = 50;
return true;
}
if (<matchLobbySearchSortWaiter>5__6.Check(current))
{
<>2__current = current;
<>1__state = 51;
return true;
}
<>2__current = current;
<>1__state = 97;
return true;
}
<>m__Finally1();
<>7__wrap6 = 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__wrap6 != null)
{
((global::System.IDisposable)<>7__wrap6).Dispose();
}
}
[DebuggerHidden]
void global::System.Collections.IEnumerator.Reset()
{
//IL_0000: Unknown result type (might be due to invalid IL or missing references)
throw new NotSupportedException();
}
[DebuggerHidden]
global::System.Collections.Generic.IEnumerator<Token> global::System.Collections.Generic.IEnumerable<Token>.GetEnumerator()
{
<Modify>d__1 <Modify>d__;
if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId)
{
<>1__state = 0;
<Modify>d__ = this;
}
else
{
<Modify>d__ = new <Modify>d__1(0);
}
<Modify>d__.tokens = <>3__tokens;
return <Modify>d__;
}
[DebuggerHidden]
global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator()
{
return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable<Token>)this).GetEnumerator();
}
}
public bool ShouldRun(string path)
{
return path == "res://Scenes/Menus/Main Menu/main_menu.gdc";
}
[IteratorStateMachine(typeof(<Modify>d__1))]
public global::System.Collections.Generic.IEnumerable<Token> Modify(string path, global::System.Collections.Generic.IEnumerable<Token> tokens)
{
MultiTokenWaiter lobbySortWaiter = new MultiTokenWaiter(new Func<Token, bool>[10]
{
(Token t) => (int)t.Type == 51,
(Token t) => (int)t.Type == 89,
(Token t) => (int)t.Type == 62,
delegate(Token t)
{
IdentifierToken val21 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val21 != null && val21.Name == "LOBBY_SORT";
},
(Token t) => (int)t.Type == 78,
delegate(Token t)
{
IdentifierToken val20 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val20 != null && val20.Name == "PLAYER_HIGH";
},
(Token t) => (int)t.Type == 82,
delegate(Token t)
{
IdentifierToken val19 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val19 != null && val19.Name == "PLAYER_LOW";
},
(Token t) => (int)t.Type == 82,
delegate(Token t)
{
IdentifierToken val18 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val18 != null && val18.Name == "RANDOM";
}
}, false, true);
MultiTokenWaiter validatedListWaiter = new MultiTokenWaiter(new Func<Token, bool>[8]
{
delegate(Token t)
{
IdentifierToken val17 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val17 != null && val17.Name == "validated_list";
},
(Token t) => (int)t.Type == 84,
delegate(Token t)
{
IdentifierToken val16 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val16 != null && val16.Name == "append";
},
(Token t) => (int)t.Type == 80,
(Token t) => (int)t.Type == 76,
delegate(Token t)
{
IdentifierToken val15 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val15 != null && val15.Name == "lobby";
},
(Token t) => (int)t.Type == 82,
delegate(Token t)
{
IdentifierToken val14 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val14 != null && val14.Name == "lobby_num_members";
}
}, false, false);
MultiTokenWaiter matchLobbySorterWaiter = new MultiTokenWaiter(new Func<Token, bool>[9]
{
delegate(Token t)
{
IdentifierToken val13 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val13 != null && val13.Name == "LOBBY_SORT";
},
(Token t) => (int)t.Type == 84,
delegate(Token t)
{
IdentifierToken val12 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val12 != null && val12.Name == "RANDOM";
},
(Token t) => (int)t.Type == 86,
delegate(Token t)
{
IdentifierToken val11 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val11 != null && val11.Name == "sorted_list";
},
(Token t) => (int)t.Type == 84,
delegate(Token t)
{
IdentifierToken val10 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val10 != null && val10.Name == "sort_custom";
},
(Token t) => (int)t.Type == 80,
(Token t) => (int)t.Type == 81
}, false, true);
MultiTokenWaiter ifLobbySearchSortWaiter = new MultiTokenWaiter(new Func<Token, bool>[4]
{
(Token t) => (int)t.Type == 38,
delegate(Token t)
{
IdentifierToken val9 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val9 != null && val9.Name == "lobby_search_sort";
},
(Token t) => (int)t.Type == 11,
delegate(Token t)
{
ConstantToken val7 = (ConstantToken)(object)((t is ConstantToken) ? t : null);
if (val7 != null)
{
Variant value2 = val7.Value;
IntVariant val8 = (IntVariant)(object)((value2 is IntVariant) ? value2 : null);
if (val8 != null)
{
return val8.Value == 2;
}
}
return false;
}
}, false, false);
MultiTokenWaiter matchLobbySearchSortWaiter = new MultiTokenWaiter(new Func<Token, bool>[9]
{
delegate(Token t)
{
IdentifierToken val6 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val6 != null && val6.Name == "LOBBY_SORT";
},
(Token t) => (int)t.Type == 84,
delegate(Token t)
{
IdentifierToken val5 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val5 != null && val5.Name == "RANDOM";
},
(Token t) => (int)t.Type == 86,
delegate(Token t)
{
IdentifierToken val4 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val4 != null && val4.Name == "search_button";
},
(Token t) => (int)t.Type == 84,
delegate(Token t)
{
IdentifierToken val3 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val3 != null && val3.Name == "text";
},
(Token t) => (int)t.Type == 23,
delegate(Token t)
{
ConstantToken val = (ConstantToken)(object)((t is ConstantToken) ? t : null);
if (val != null)
{
Variant value = val.Value;
StringVariant val2 = (StringVariant)(object)((value is StringVariant) ? value : null);
if (val2 != null)
{
return val2.Value == "Random";
}
}
return false;
}
}, false, false);
global::System.Collections.Generic.IEnumerator<Token> enumerator = tokens.GetEnumerator();
try
{
while (((global::System.Collections.IEnumerator)enumerator).MoveNext())
{
Token current = enumerator.Current;
if (lobbySortWaiter.Check(current))
{
yield return current;
yield return new Token((TokenType)82, (uint?)null);
yield return (Token)new IdentifierToken("PING");
yield return new Token((TokenType)82, (uint?)null);
yield return (Token)new IdentifierToken("NAME");
}
else if (validatedListWaiter.Check(current))
{
yield return current;
yield return new Token((TokenType)82, (uint?)null);
yield return (Token)new IdentifierToken("Steam");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("getLobbyData");
yield return new Token((TokenType)80, (uint?)null);
yield return (Token)new IdentifierToken("lobby");
yield return new Token((TokenType)82, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("lobby_name"));
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)38, (uint?)null);
yield return (Token)new IdentifierToken("Steam");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("getLobbyData");
yield return new Token((TokenType)80, (uint?)null);
yield return (Token)new IdentifierToken("lobby");
yield return new Token((TokenType)82, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("lobby_name"));
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)8, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant(""));
yield return new Token((TokenType)40, (uint?)null);
yield return (Token)new IdentifierToken("Steam");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("getLobbyData");
yield return new Token((TokenType)80, (uint?)null);
yield return (Token)new IdentifierToken("lobby");
yield return new Token((TokenType)82, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("name"));
yield return new Token((TokenType)81, (uint?)null);
}
else if (matchLobbySorterWaiter.Check(current))
{
yield return current;
yield return new Token((TokenType)89, (uint?)2u);
yield return (Token)new IdentifierToken("LOBBY_SORT");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("NAME");
yield return new Token((TokenType)86, (uint?)null);
yield return (Token)new IdentifierToken("sorted_list");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("sort_custom");
yield return new Token((TokenType)80, (uint?)null);
yield return new Token((TokenType)3, (uint?)null);
yield return new Token((TokenType)82, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("_lobby_sort_name"));
yield return new Token((TokenType)81, (uint?)null);
}
else if (ifLobbySearchSortWaiter.Check(current))
{
yield return (Token)new ConstantToken((Variant)new IntVariant(4L, false));
}
else if (matchLobbySearchSortWaiter.Check(current))
{
yield return current;
yield return new Token((TokenType)89, (uint?)2u);
yield return (Token)new IdentifierToken("LOBBY_SORT");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("PING");
yield return new Token((TokenType)86, (uint?)null);
yield return (Token)new IdentifierToken("search_button");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("text");
yield return new Token((TokenType)23, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("Closest"));
yield return new Token((TokenType)89, (uint?)2u);
yield return (Token)new IdentifierToken("LOBBY_SORT");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("NAME");
yield return new Token((TokenType)86, (uint?)null);
yield return (Token)new IdentifierToken("search_button");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("text");
yield return new Token((TokenType)23, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("A-Z"));
yield return new Token((TokenType)89, (uint?)null);
yield return new Token((TokenType)48, (uint?)null);
yield return (Token)new IdentifierToken("_lobby_sort_name");
yield return new Token((TokenType)80, (uint?)null);
yield return (Token)new IdentifierToken("a");
yield return new Token((TokenType)82, (uint?)null);
yield return (Token)new IdentifierToken("b");
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)86, (uint?)null);
yield return new Token((TokenType)46, (uint?)null);
yield return (Token)new IdentifierToken("a");
yield return new Token((TokenType)76, (uint?)null);
yield return (Token)new ConstantToken((Variant)new IntVariant(2L, false));
yield return new Token((TokenType)77, (uint?)null);
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("nocasecmp_to");
yield return new Token((TokenType)80, (uint?)null);
yield return (Token)new IdentifierToken("b");
yield return new Token((TokenType)76, (uint?)null);
yield return (Token)new ConstantToken((Variant)new IntVariant(2L, false));
yield return new Token((TokenType)77, (uint?)null);
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)9, (uint?)null);
yield return (Token)new ConstantToken((Variant)new IntVariant(0L, false));
yield return new Token((TokenType)89, (uint?)null);
}
else
{
yield return current;
}
}
}
finally
{
((global::System.IDisposable)enumerator)?.Dispose();
}
}
}
public class Mod : IMod, global::System.IDisposable
{
public Mod(IModInterface modInterface)
{
modInterface.Logger.Information("Hello, world!");
modInterface.RegisterScriptMod((IScriptMod)(object)new MainMenuScript());
modInterface.RegisterScriptMod((IScriptMod)(object)new ServerButtonScript());
modInterface.RegisterScriptMod((IScriptMod)(object)new SteamNetworkScript());
}
public void Dispose()
{
}
}
public class ServerButtonScript : 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 <updateLobbyNameWaiter>5__2;
private global::System.Collections.Generic.IEnumerator<Token> <>7__wrap2;
Token global::System.Collections.Generic.IEnumerator<Token>.Current
{
[DebuggerHidden]
get
{
return <>2__current;
}
}
object global::System.Collections.IEnumerator.Current
{
[DebuggerHidden]
get
{
return <>2__current;
}
}
[DebuggerHidden]
public <Modify>d__1(int <>1__state)
{
this.<>1__state = <>1__state;
<>l__initialThreadId = Environment.CurrentManagedThreadId;
}
[DebuggerHidden]
void global::System.IDisposable.Dispose()
{
int num = <>1__state;
if (num == -3 || (uint)(num - 1) <= 15u)
{
try
{
}
finally
{
<>m__Finally1();
}
}
}
private bool MoveNext()
{
//IL_022c: Unknown result type (might be due to invalid IL or missing references)
//IL_0236: Expected O, but got Unknown
//IL_0258: Unknown result type (might be due to invalid IL or missing references)
//IL_0262: Expected O, but got Unknown
//IL_027e: Unknown result type (might be due to invalid IL or missing references)
//IL_0288: Expected O, but got Unknown
//IL_02aa: Unknown result type (might be due to invalid IL or missing references)
//IL_02b4: Expected O, but got Unknown
//IL_02d0: Unknown result type (might be due to invalid IL or missing references)
//IL_02da: Expected O, but got Unknown
//IL_02fc: Unknown result type (might be due to invalid IL or missing references)
//IL_0306: Expected O, but got Unknown
//IL_0325: Unknown result type (might be due to invalid IL or missing references)
//IL_032f: Expected O, but got Unknown
//IL_034b: Unknown result type (might be due to invalid IL or missing references)
//IL_0355: Expected O, but got Unknown
//IL_0378: Unknown result type (might be due to invalid IL or missing references)
//IL_0382: Expected O, but got Unknown
//IL_039f: Unknown result type (might be due to invalid IL or missing references)
//IL_03a9: Expected O, but got Unknown
//IL_03c9: Unknown result type (might be due to invalid IL or missing references)
//IL_03d3: Expected O, but got Unknown
//IL_03f6: Unknown result type (might be due to invalid IL or missing references)
//IL_0400: Expected O, but got Unknown
//IL_0423: Unknown result type (might be due to invalid IL or missing references)
//IL_042d: Expected O, but got Unknown
//IL_044a: Unknown result type (might be due to invalid IL or missing references)
//IL_0454: Expected O, but got Unknown
//IL_01be: Unknown result type (might be due to invalid IL or missing references)
//IL_01c8: Expected O, but got Unknown
try
{
switch (<>1__state)
{
default:
return false;
case 0:
<>1__state = -1;
<updateLobbyNameWaiter>5__2 = new MultiTokenWaiter(new Func<Token, bool>[10]
{
(Token t) => (int)t.Type == 48,
delegate(Token t)
{
IdentifierToken val3 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val3 != null && val3.Name == "_update_lobby_name";
},
(Token t) => (int)t.Type == 38,
delegate(Token t)
{
IdentifierToken val2 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val2 != null && val2.Name == "label_toggle";
},
(Token t) => (int)t.Type == 13,
delegate(Token t)
{
IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val != null && val.Name == "custom_name";
},
(Token t) => (int)t.Type == 8,
(Token t) => t is ConstantToken,
(Token t) => (int)t.Type == 86,
(Token t) => (int)t.Type == 89
}, false, true);
<>7__wrap2 = tokens.GetEnumerator();
<>1__state = -3;
break;
case 1:
<>1__state = -3;
<>2__current = new Token((TokenType)38, (uint?)null);
<>1__state = 2;
return true;
case 2:
<>1__state = -3;
<>2__current = new Token((TokenType)15, (uint?)null);
<>1__state = 3;
return true;
case 3:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("OptionsMenu");
<>1__state = 4;
return true;
case 4:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 5;
return true;
case 5:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("chat_filter");
<>1__state = 6;
return true;
case 6:
<>1__state = -3;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 7;
return true;
case 7:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)3u);
<>1__state = 8;
return true;
case 8:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("new_name");
<>1__state = 9;
return true;
case 9:
<>1__state = -3;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 10;
return true;
case 10:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("custom_name");
<>1__state = 11;
return true;
case 11:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)2u);
<>1__state = 12;
return true;
case 12:
<>1__state = -3;
<>2__current = new Token((TokenType)40, (uint?)null);
<>1__state = 13;
return true;
case 13:
<>1__state = -3;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 14;
return true;
case 14:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)3u);
<>1__state = 15;
return true;
case 15:
<>1__state = -3;
break;
case 16:
<>1__state = -3;
break;
}
if (((global::System.Collections.IEnumerator)<>7__wrap2).MoveNext())
{
Token current = <>7__wrap2.Current;
if (<updateLobbyNameWaiter>5__2.Check(current))
{
<>2__current = current;
<>1__state = 1;
return true;
}
<>2__current = current;
<>1__state = 16;
return true;
}
<>m__Finally1();
<>7__wrap2 = null;
return false;
}
catch
{
//try-fault
((global::System.IDisposable)this).Dispose();
throw;
}
}
bool global::System.Collections.IEnumerator.MoveNext()
{
//ILSpy generated this explicit interface implementation from .override directive in MoveNext
return this.MoveNext();
}
private void <>m__Finally1()
{
<>1__state = -1;
if (<>7__wrap2 != null)
{
((global::System.IDisposable)<>7__wrap2).Dispose();
}
}
[DebuggerHidden]
void global::System.Collections.IEnumerator.Reset()
{
//IL_0000: Unknown result type (might be due to invalid IL or missing references)
throw new NotSupportedException();
}
[DebuggerHidden]
global::System.Collections.Generic.IEnumerator<Token> global::System.Collections.Generic.IEnumerable<Token>.GetEnumerator()
{
<Modify>d__1 <Modify>d__;
if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId)
{
<>1__state = 0;
<Modify>d__ = this;
}
else
{
<Modify>d__ = new <Modify>d__1(0);
}
<Modify>d__.tokens = <>3__tokens;
return <Modify>d__;
}
[DebuggerHidden]
global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator()
{
return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable<Token>)this).GetEnumerator();
}
}
public bool ShouldRun(string path)
{
return path == "res://Scenes/Menus/Main Menu/ServerButton/server_button.gdc";
}
[IteratorStateMachine(typeof(<Modify>d__1))]
public global::System.Collections.Generic.IEnumerable<Token> Modify(string path, global::System.Collections.Generic.IEnumerable<Token> tokens)
{
MultiTokenWaiter updateLobbyNameWaiter = new MultiTokenWaiter(new Func<Token, bool>[10]
{
(Token t) => (int)t.Type == 48,
delegate(Token t)
{
IdentifierToken val3 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val3 != null && val3.Name == "_update_lobby_name";
},
(Token t) => (int)t.Type == 38,
delegate(Token t)
{
IdentifierToken val2 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val2 != null && val2.Name == "label_toggle";
},
(Token t) => (int)t.Type == 13,
delegate(Token t)
{
IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val != null && val.Name == "custom_name";
},
(Token t) => (int)t.Type == 8,
(Token t) => t is ConstantToken,
(Token t) => (int)t.Type == 86,
(Token t) => (int)t.Type == 89
}, false, true);
global::System.Collections.Generic.IEnumerator<Token> enumerator = tokens.GetEnumerator();
try
{
while (((global::System.Collections.IEnumerator)enumerator).MoveNext())
{
Token current = enumerator.Current;
if (updateLobbyNameWaiter.Check(current))
{
yield return current;
yield return new Token((TokenType)38, (uint?)null);
yield return new Token((TokenType)15, (uint?)null);
yield return (Token)new IdentifierToken("OptionsMenu");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("chat_filter");
yield return new Token((TokenType)86, (uint?)null);
yield return new Token((TokenType)89, (uint?)3u);
yield return (Token)new IdentifierToken("new_name");
yield return new Token((TokenType)23, (uint?)null);
yield return (Token)new IdentifierToken("custom_name");
yield return new Token((TokenType)89, (uint?)2u);
yield return new Token((TokenType)40, (uint?)null);
yield return new Token((TokenType)86, (uint?)null);
yield return new Token((TokenType)89, (uint?)3u);
}
else
{
yield return current;
}
}
}
finally
{
((global::System.IDisposable)enumerator)?.Dispose();
}
}
}
public class SteamNetworkScript : IScriptMod
{
[CompilerGenerated]
private sealed class <Modify>d__1 : global::System.Collections.Generic.IEnumerable<Token>, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator<Token>, global::System.Collections.IEnumerator, global::System.IDisposable
{
private int <>1__state;
private Token <>2__current;
private int <>l__initialThreadId;
private global::System.Collections.Generic.IEnumerable<Token> tokens;
public global::System.Collections.Generic.IEnumerable<Token> <>3__tokens;
private MultiTokenWaiter <extendsWaiter>5__2;
private MultiTokenWaiter <lobbyDistanceWaiter>5__3;
private TokenConsumer <consumer>5__4;
private global::System.Collections.Generic.IEnumerator<Token> <>7__wrap4;
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) <= 6u)
{
try
{
}
finally
{
<>m__Finally1();
}
}
}
private bool MoveNext()
{
//IL_01e4: Unknown result type (might be due to invalid IL or missing references)
//IL_01ee: Expected O, but got Unknown
//IL_020a: Unknown result type (might be due to invalid IL or missing references)
//IL_0214: Expected O, but got Unknown
//IL_0236: Unknown result type (might be due to invalid IL or missing references)
//IL_0240: Expected O, but got Unknown
//IL_0286: Unknown result type (might be due to invalid IL or missing references)
//IL_0290: Expected O, but got Unknown
//IL_0088: Unknown result type (might be due to invalid IL or missing references)
//IL_0092: Expected O, but got Unknown
//IL_0123: Unknown result type (might be due to invalid IL or missing references)
//IL_012d: Expected O, but got Unknown
//IL_014d: Unknown result type (might be due to invalid IL or missing references)
//IL_0157: Expected O, but got Unknown
try
{
switch (<>1__state)
{
default:
return false;
case 0:
<>1__state = -1;
<extendsWaiter>5__2 = new MultiTokenWaiter(new Func<Token, bool>[2]
{
(Token t) => (int)t.Type == 51,
(Token t) => (int)t.Type == 89
}, false, true);
<lobbyDistanceWaiter>5__3 = new MultiTokenWaiter(new Func<Token, bool>[4]
{
(Token t) => (int)t.Type == 48,
delegate(Token t)
{
IdentifierToken val2 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val2 != null && val2.Name == "_find_all_webfishing_lobbies";
},
delegate(Token t)
{
IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val != null && val.Name == "addRequestLobbyListDistanceFilter";
},
(Token t) => (int)t.Type == 80
}, false, true);
<consumer>5__4 = new TokenConsumer((Func<Token, bool>)((Token t) => (int)t.Type == 81));
<>7__wrap4 = tokens.GetEnumerator();
<>1__state = -3;
break;
case 1:
<>1__state = -3;
<>2__current = new Token((TokenType)59, (uint?)null);
<>1__state = 2;
return true;
case 2:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("distance");
<>1__state = 3;
return true;
case 3:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)null);
<>1__state = 4;
return true;
case 4:
<>1__state = -3;
break;
case 5:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("distance");
<>1__state = 6;
return true;
case 6:
<>1__state = -3;
<consumer>5__4.SetReady();
break;
case 7:
<>1__state = -3;
break;
}
while (((global::System.Collections.IEnumerator)<>7__wrap4).MoveNext())
{
Token current = <>7__wrap4.Current;
if (!<consumer>5__4.Check(current))
{
if (<consumer>5__4.Ready)
{
<consumer>5__4.Reset();
}
if (<extendsWaiter>5__2.Check(current))
{
<>2__current = current;
<>1__state = 1;
return true;
}
if (<lobbyDistanceWaiter>5__3.Check(current))
{
<>2__current = current;
<>1__state = 5;
return true;
}
<>2__current = current;
<>1__state = 7;
return true;
}
}
<>m__Finally1();
<>7__wrap4 = 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__wrap4 != null)
{
((global::System.IDisposable)<>7__wrap4).Dispose();
}
}
[DebuggerHidden]
void global::System.Collections.IEnumerator.Reset()
{
//IL_0000: Unknown result type (might be due to invalid IL or missing references)
throw new NotSupportedException();
}
[DebuggerHidden]
global::System.Collections.Generic.IEnumerator<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 extendsWaiter = new MultiTokenWaiter(new Func<Token, bool>[2]
{
(Token t) => (int)t.Type == 51,
(Token t) => (int)t.Type == 89
}, false, true);
MultiTokenWaiter lobbyDistanceWaiter = new MultiTokenWaiter(new Func<Token, bool>[4]
{
(Token t) => (int)t.Type == 48,
delegate(Token t)
{
IdentifierToken val2 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val2 != null && val2.Name == "_find_all_webfishing_lobbies";
},
delegate(Token t)
{
IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val != null && val.Name == "addRequestLobbyListDistanceFilter";
},
(Token t) => (int)t.Type == 80
}, false, true);
TokenConsumer consumer = new TokenConsumer((Func<Token, bool>)((Token t) => (int)t.Type == 81));
global::System.Collections.Generic.IEnumerator<Token> enumerator = tokens.GetEnumerator();
try
{
while (((global::System.Collections.IEnumerator)enumerator).MoveNext())
{
Token current = enumerator.Current;
if (!consumer.Check(current))
{
if (consumer.Ready)
{
consumer.Reset();
}
if (extendsWaiter.Check(current))
{
yield return current;
yield return new Token((TokenType)59, (uint?)null);
yield return (Token)new IdentifierToken("distance");
yield return new Token((TokenType)89, (uint?)null);
}
else if (lobbyDistanceWaiter.Check(current))
{
yield return current;
yield return (Token)new IdentifierToken("distance");
consumer.SetReady();
}
else
{
yield return current;
}
}
}
}
finally
{
((global::System.IDisposable)enumerator)?.Dispose();
}
}
}