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("Waypoints")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0.0")]
[assembly: AssemblyProduct("Waypoints")]
[assembly: AssemblyTitle("Waypoints")]
[assembly: AssemblyVersion("1.0.0.0")]
[module: RefSafetyRules(11)]
namespace Waypoints;
public class EscMenuPatch : 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 <spawnPressedWaiter>5__2;
private FunctionWaiter <readyWaiter>5__3;
private global::System.Collections.Generic.IEnumerator<Token> <>7__wrap3;
Token global::System.Collections.Generic.IEnumerator<Token>.Current
{
[DebuggerHidden]
get
{
return <>2__current;
}
}
object global::System.Collections.IEnumerator.Current
{
[DebuggerHidden]
get
{
return <>2__current;
}
}
[DebuggerHidden]
public <Modify>d__1(int <>1__state)
{
this.<>1__state = <>1__state;
<>l__initialThreadId = Environment.CurrentManagedThreadId;
}
[DebuggerHidden]
void global::System.IDisposable.Dispose()
{
int num = <>1__state;
if (num == -3 || (uint)(num - 1) <= 75u)
{
try
{
}
finally
{
<>m__Finally1();
}
}
}
private bool MoveNext()
{
//IL_03a5: Unknown result type (might be due to invalid IL or missing references)
//IL_03af: Expected O, but got Unknown
//IL_03cb: Unknown result type (might be due to invalid IL or missing references)
//IL_03d5: Expected O, but got Unknown
//IL_03f7: Unknown result type (might be due to invalid IL or missing references)
//IL_0401: 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_044f: Unknown result type (might be due to invalid IL or missing references)
//IL_0459: Expected O, but got Unknown
//IL_0478: Unknown result type (might be due to invalid IL or missing references)
//IL_0482: Expected O, but got Unknown
//IL_04a4: Unknown result type (might be due to invalid IL or missing references)
//IL_04ae: Expected O, but got Unknown
//IL_04ca: Unknown result type (might be due to invalid IL or missing references)
//IL_04d4: Expected O, but got Unknown
//IL_04f7: Unknown result type (might be due to invalid IL or missing references)
//IL_0501: Expected O, but got Unknown
//IL_051e: Unknown result type (might be due to invalid IL or missing references)
//IL_0528: Expected O, but got Unknown
//IL_054b: Unknown result type (might be due to invalid IL or missing references)
//IL_0555: Expected O, but got Unknown
//IL_0578: Unknown result type (might be due to invalid IL or missing references)
//IL_0582: Expected O, but got Unknown
//IL_05e5: Unknown result type (might be due to invalid IL or missing references)
//IL_05ef: Expected O, but got Unknown
//IL_060c: Unknown result type (might be due to invalid IL or missing references)
//IL_0616: Expected O, but got Unknown
//IL_0639: Unknown result type (might be due to invalid IL or missing references)
//IL_0643: Expected O, but got Unknown
//IL_0660: Unknown result type (might be due to invalid IL or missing references)
//IL_066a: Expected O, but got Unknown
//IL_068d: Unknown result type (might be due to invalid IL or missing references)
//IL_0697: Expected O, but got Unknown
//IL_06b4: Unknown result type (might be due to invalid IL or missing references)
//IL_06be: Expected O, but got Unknown
//IL_06e1: Unknown result type (might be due to invalid IL or missing references)
//IL_06eb: Expected O, but got Unknown
//IL_0708: Unknown result type (might be due to invalid IL or missing references)
//IL_0712: Expected O, but got Unknown
//IL_0735: Unknown result type (might be due to invalid IL or missing references)
//IL_073f: Expected O, but got Unknown
//IL_0762: Unknown result type (might be due to invalid IL or missing references)
//IL_076c: Expected O, but got Unknown
//IL_078c: Unknown result type (might be due to invalid IL or missing references)
//IL_0796: Expected O, but got Unknown
//IL_07b3: Unknown result type (might be due to invalid IL or missing references)
//IL_07bd: 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_0807: Unknown result type (might be due to invalid IL or missing references)
//IL_0811: Expected O, but got Unknown
//IL_0834: Unknown result type (might be due to invalid IL or missing references)
//IL_083e: Expected O, but got Unknown
//IL_085b: Unknown result type (might be due to invalid IL or missing references)
//IL_0865: Expected O, but got Unknown
//IL_0888: Unknown result type (might be due to invalid IL or missing references)
//IL_0892: Expected O, but got Unknown
//IL_08b2: Unknown result type (might be due to invalid IL or missing references)
//IL_08bc: Expected O, but got Unknown
//IL_08d9: Unknown result type (might be due to invalid IL or missing references)
//IL_08e3: Expected O, but got Unknown
//IL_0906: Unknown result type (might be due to invalid IL or missing references)
//IL_0910: Expected O, but got Unknown
//IL_092d: Unknown result type (might be due to invalid IL or missing references)
//IL_0937: Expected O, but got Unknown
//IL_095a: Unknown result type (might be due to invalid IL or missing references)
//IL_0964: Expected O, but got Unknown
//IL_0981: Unknown result type (might be due to invalid IL or missing references)
//IL_098b: Expected O, but got Unknown
//IL_09ae: Unknown result type (might be due to invalid IL or missing references)
//IL_09b8: Expected O, but got Unknown
//IL_09d3: Unknown result type (might be due to invalid IL or missing references)
//IL_09dd: Expected O, but got Unknown
//IL_09d8: Unknown result type (might be due to invalid IL or missing references)
//IL_09e2: Expected O, but got Unknown
//IL_0a05: Unknown result type (might be due to invalid IL or missing references)
//IL_0a0f: Expected O, but got Unknown
//IL_0a2f: Unknown result type (might be due to invalid IL or missing references)
//IL_0a39: Expected O, but got Unknown
//IL_0a56: Unknown result type (might be due to invalid IL or missing references)
//IL_0a60: Expected O, but got Unknown
//IL_0a83: Unknown result type (might be due to invalid IL or missing references)
//IL_0a8d: Expected O, but got Unknown
//IL_0aaa: Unknown result type (might be due to invalid IL or missing references)
//IL_0ab4: Expected O, but got Unknown
//IL_0ad7: Unknown result type (might be due to invalid IL or missing references)
//IL_0ae1: Expected O, but got Unknown
//IL_0afe: Unknown result type (might be due to invalid IL or missing references)
//IL_0b08: Expected O, but got Unknown
//IL_0b03: Unknown result type (might be due to invalid IL or missing references)
//IL_0b0d: Expected O, but got Unknown
//IL_0b30: Unknown result type (might be due to invalid IL or missing references)
//IL_0b3a: Expected O, but got Unknown
//IL_0b5c: Unknown result type (might be due to invalid IL or missing references)
//IL_0b66: Expected O, but got Unknown
//IL_0b89: Unknown result type (might be due to invalid IL or missing references)
//IL_0b93: Expected O, but got Unknown
//IL_0bb0: Unknown result type (might be due to invalid IL or missing references)
//IL_0bba: Expected O, but got Unknown
//IL_0bb5: Unknown result type (might be due to invalid IL or missing references)
//IL_0bbf: Expected O, but got Unknown
//IL_0be2: Unknown result type (might be due to invalid IL or missing references)
//IL_0bec: Expected O, but got Unknown
//IL_0c0c: Unknown result type (might be due to invalid IL or missing references)
//IL_0c16: Expected O, but got Unknown
//IL_0c33: Unknown result type (might be due to invalid IL or missing references)
//IL_0c3d: Expected O, but got Unknown
//IL_0c60: Unknown result type (might be due to invalid IL or missing references)
//IL_0c6a: Expected O, but got Unknown
//IL_0c87: Unknown result type (might be due to invalid IL or missing references)
//IL_0c91: Expected O, but got Unknown
//IL_0cb4: Unknown result type (might be due to invalid IL or missing references)
//IL_0cbe: Expected O, but got Unknown
//IL_0cdb: Unknown result type (might be due to invalid IL or missing references)
//IL_0ce5: Expected O, but got Unknown
//IL_0d08: Unknown result type (might be due to invalid IL or missing references)
//IL_0d12: Expected O, but got Unknown
//IL_0d2f: Unknown result type (might be due to invalid IL or missing references)
//IL_0d39: Expected O, but got Unknown
//IL_0d5c: Unknown result type (might be due to invalid IL or missing references)
//IL_0d66: Expected O, but got Unknown
//IL_0d89: Unknown result type (might be due to invalid IL or missing references)
//IL_0d93: Expected O, but got Unknown
//IL_0db6: Unknown result type (might be due to invalid IL or missing references)
//IL_0dc0: Expected O, but got Unknown
//IL_0de0: Unknown result type (might be due to invalid IL or missing references)
//IL_0dea: Expected O, but got Unknown
//IL_0e07: Unknown result type (might be due to invalid IL or missing references)
//IL_0e11: Expected O, but got Unknown
//IL_0e34: Unknown result type (might be due to invalid IL or missing references)
//IL_0e3e: Expected O, but got Unknown
//IL_0e5b: Unknown result type (might be due to invalid IL or missing references)
//IL_0e65: Expected O, but got Unknown
//IL_0e88: Unknown result type (might be due to invalid IL or missing references)
//IL_0e92: Expected O, but got Unknown
//IL_0eae: Unknown result type (might be due to invalid IL or missing references)
//IL_0eb8: Expected O, but got Unknown
//IL_0eb3: Unknown result type (might be due to invalid IL or missing references)
//IL_0ebd: Expected O, but got Unknown
//IL_0edd: Unknown result type (might be due to invalid IL or missing references)
//IL_0ee7: Expected O, but got Unknown
//IL_0f04: Unknown result type (might be due to invalid IL or missing references)
//IL_0f0e: Expected O, but got Unknown
//IL_0f31: Unknown result type (might be due to invalid IL or missing references)
//IL_0f3b: Expected O, but got Unknown
//IL_0f58: Unknown result type (might be due to invalid IL or missing references)
//IL_0f62: Expected O, but got Unknown
//IL_0f85: Unknown result type (might be due to invalid IL or missing references)
//IL_0f8f: Expected O, but got Unknown
//IL_0fab: Unknown result type (might be due to invalid IL or missing references)
//IL_0fb5: Expected O, but got Unknown
//IL_0fb0: Unknown result type (might be due to invalid IL or missing references)
//IL_0fba: Expected O, but got Unknown
//IL_0fd7: Unknown result type (might be due to invalid IL or missing references)
//IL_0fe1: Expected O, but got Unknown
//IL_0379: Unknown result type (might be due to invalid IL or missing references)
//IL_0383: Expected O, but got Unknown
//IL_05b8: Unknown result type (might be due to invalid IL or missing references)
//IL_05c2: Expected O, but got Unknown
//IL_0317: Unknown result type (might be due to invalid IL or missing references)
//IL_0321: Expected O, but got Unknown
//IL_0328: Unknown result type (might be due to invalid IL or missing references)
//IL_0332: Expected O, but got Unknown
try
{
switch (<>1__state)
{
default:
return false;
case 0:
<>1__state = -1;
<spawnPressedWaiter>5__2 = new MultiTokenWaiter(new Func<Token, bool>[13]
{
(Token t) => (int)t.Type == 48,
delegate(Token t)
{
IdentifierToken val4 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val4 != null && val4.Name == "_on_spawn_pressed";
},
(Token t) => (int)t.Type == 80,
(Token t) => (int)t.Type == 81,
(Token t) => (int)t.Type == 86,
(Token t) => (int)t.Type == 89,
delegate(Token t)
{
IdentifierToken val3 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val3 != null && val3.Name == "PlayerData";
},
(Token t) => (int)t.Type == 84,
delegate(Token t)
{
IdentifierToken val2 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val2 != null && val2.Name == "emit_signal";
},
(Token t) => (int)t.Type == 80,
delegate(Token t)
{
ConstantToken val = (ConstantToken)(object)((t is ConstantToken) ? t : null);
return val != null && val.Value is StringVariant;
},
(Token t) => (int)t.Type == 81,
(Token t) => (int)t.Type == 89
}, false, false);
<readyWaiter>5__3 = new FunctionWaiter("_ready", false);
<>7__wrap3 = tokens.GetEnumerator();
<>1__state = -3;
break;
case 1:
<>1__state = -3;
<>2__current = new Token((TokenType)48, (uint?)null);
<>1__state = 2;
return true;
case 2:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("_on_waypoints_pressed");
<>1__state = 3;
return true;
case 3:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 4;
return true;
case 4:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 5;
return true;
case 5:
<>1__state = -3;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 6;
return true;
case 6:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 7;
return true;
case 7:
<>1__state = -3;
<>2__current = new Token((TokenType)87, (uint?)null);
<>1__state = 8;
return true;
case 8:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("waypoints_menu");
<>1__state = 9;
return true;
case 9:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 10;
return true;
case 10:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("_open");
<>1__state = 11;
return true;
case 11:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 12;
return true;
case 12:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 13;
return true;
case 13:
<>1__state = -3;
break;
case 14:
<>1__state = -3;
<>2__current = new Token((TokenType)59, (uint?)null);
<>1__state = 15;
return true;
case 15:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("waypoint_btn");
<>1__state = 16;
return true;
case 16:
<>1__state = -3;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 17;
return true;
case 17:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("Waypoints");
<>1__state = 18;
return true;
case 18:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 19;
return true;
case 19:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("MENU_BUTTON");
<>1__state = 20;
return true;
case 20:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 21;
return true;
case 21:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("instance");
<>1__state = 22;
return true;
case 22:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 23;
return true;
case 23:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 24;
return true;
case 24:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 25;
return true;
case 25:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("buttonlist");
<>1__state = 26;
return true;
case 26:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 27;
return true;
case 27:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("add_child");
<>1__state = 28;
return true;
case 28:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 29;
return true;
case 29:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("waypoint_btn");
<>1__state = 30;
return true;
case 30:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 31;
return true;
case 31:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 32;
return true;
case 32:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("buttonlist");
<>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("move_child");
<>1__state = 35;
return true;
case 35:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 36;
return true;
case 36:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("waypoint_btn");
<>1__state = 37;
return true;
case 37:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 38;
return true;
case 38:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new IntVariant(4L, false));
<>1__state = 39;
return true;
case 39:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 40;
return true;
case 40:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 41;
return true;
case 41:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("waypoint_btn");
<>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("connect");
<>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 = (Token)new ConstantToken((Variant)new StringVariant("pressed"));
<>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 = new Token((TokenType)3, (uint?)null);
<>1__state = 48;
return true;
case 48:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 49;
return true;
case 49:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("_on_waypoints_pressed"));
<>1__state = 50;
return true;
case 50:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 51;
return true;
case 51:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 52;
return true;
case 52:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("add_child");
<>1__state = 53;
return true;
case 53:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 54;
return true;
case 54:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("Waypoints");
<>1__state = 55;
return true;
case 55:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 56;
return true;
case 56:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("MENU_SCENE");
<>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("instance");
<>1__state = 59;
return true;
case 59:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 60;
return true;
case 60:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 61;
return true;
case 61:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 62;
return true;
case 62:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 63;
return true;
case 63:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("buttonlist");
<>1__state = 64;
return true;
case 64:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 65;
return true;
case 65:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("margin_top");
<>1__state = 66;
return true;
case 66:
<>1__state = -3;
<>2__current = new Token((TokenType)25, (uint?)null);
<>1__state = 67;
return true;
case 67:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new IntVariant(24L, false));
<>1__state = 68;
return true;
case 68:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 69;
return true;
case 69:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("buttonlist");
<>1__state = 70;
return true;
case 70:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 71;
return true;
case 71:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("margin_bottom");
<>1__state = 72;
return true;
case 72:
<>1__state = -3;
<>2__current = new Token((TokenType)24, (uint?)null);
<>1__state = 73;
return true;
case 73:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new IntVariant(24L, false));
<>1__state = 74;
return true;
case 74:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 75;
return true;
case 75:
<>1__state = -3;
break;
case 76:
<>1__state = -3;
break;
}
if (((global::System.Collections.IEnumerator)<>7__wrap3).MoveNext())
{
Token current = <>7__wrap3.Current;
if (<spawnPressedWaiter>5__2.Check(current))
{
<>2__current = new Token((TokenType)89, (uint?)null);
<>1__state = 1;
return true;
}
if (<readyWaiter>5__3.Check(current))
{
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 14;
return true;
}
<>2__current = current;
<>1__state = 76;
return true;
}
<>m__Finally1();
<>7__wrap3 = null;
return false;
}
catch
{
//try-fault
((global::System.IDisposable)this).Dispose();
throw;
}
}
bool global::System.Collections.IEnumerator.MoveNext()
{
//ILSpy generated this explicit interface implementation from .override directive in MoveNext
return this.MoveNext();
}
private void <>m__Finally1()
{
<>1__state = -1;
if (<>7__wrap3 != null)
{
((global::System.IDisposable)<>7__wrap3).Dispose();
}
}
[DebuggerHidden]
void global::System.Collections.IEnumerator.Reset()
{
//IL_0000: Unknown result type (might be due to invalid IL or missing references)
throw new NotSupportedException();
}
[DebuggerHidden]
global::System.Collections.Generic.IEnumerator<Token> global::System.Collections.Generic.IEnumerable<Token>.GetEnumerator()
{
<Modify>d__1 <Modify>d__;
if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId)
{
<>1__state = 0;
<Modify>d__ = this;
}
else
{
<Modify>d__ = new <Modify>d__1(0);
}
<Modify>d__.tokens = <>3__tokens;
return <Modify>d__;
}
[DebuggerHidden]
global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator()
{
return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable<Token>)this).GetEnumerator();
}
}
public bool ShouldRun(string path)
{
return path == "res://Scenes/HUD/Esc Menu/esc_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 spawnPressedWaiter = new MultiTokenWaiter(new Func<Token, bool>[13]
{
(Token t) => (int)t.Type == 48,
delegate(Token t)
{
IdentifierToken val4 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val4 != null && val4.Name == "_on_spawn_pressed";
},
(Token t) => (int)t.Type == 80,
(Token t) => (int)t.Type == 81,
(Token t) => (int)t.Type == 86,
(Token t) => (int)t.Type == 89,
delegate(Token t)
{
IdentifierToken val3 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val3 != null && val3.Name == "PlayerData";
},
(Token t) => (int)t.Type == 84,
delegate(Token t)
{
IdentifierToken val2 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val2 != null && val2.Name == "emit_signal";
},
(Token t) => (int)t.Type == 80,
delegate(Token t)
{
ConstantToken val = (ConstantToken)(object)((t is ConstantToken) ? t : null);
return val != null && val.Value is StringVariant;
},
(Token t) => (int)t.Type == 81,
(Token t) => (int)t.Type == 89
}, false, false);
FunctionWaiter readyWaiter = new FunctionWaiter("_ready", false);
global::System.Collections.Generic.IEnumerator<Token> enumerator = tokens.GetEnumerator();
try
{
while (((global::System.Collections.IEnumerator)enumerator).MoveNext())
{
Token current = enumerator.Current;
if (spawnPressedWaiter.Check(current))
{
yield return new Token((TokenType)89, (uint?)null);
yield return new Token((TokenType)48, (uint?)null);
yield return (Token)new IdentifierToken("_on_waypoints_pressed");
yield return new Token((TokenType)80, (uint?)null);
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)86, (uint?)null);
yield return new Token((TokenType)89, (uint?)1u);
yield return new Token((TokenType)87, (uint?)null);
yield return (Token)new IdentifierToken("waypoints_menu");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("_open");
yield return new Token((TokenType)80, (uint?)null);
yield return new Token((TokenType)81, (uint?)null);
}
else if (readyWaiter.Check(current))
{
yield return new Token((TokenType)89, (uint?)1u);
yield return new Token((TokenType)59, (uint?)null);
yield return (Token)new IdentifierToken("waypoint_btn");
yield return new Token((TokenType)23, (uint?)null);
yield return (Token)new IdentifierToken("Waypoints");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("MENU_BUTTON");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("instance");
yield return new Token((TokenType)80, (uint?)null);
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)89, (uint?)1u);
yield return (Token)new IdentifierToken("buttonlist");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("add_child");
yield return new Token((TokenType)80, (uint?)null);
yield return (Token)new IdentifierToken("waypoint_btn");
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)89, (uint?)1u);
yield return (Token)new IdentifierToken("buttonlist");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("move_child");
yield return new Token((TokenType)80, (uint?)null);
yield return (Token)new IdentifierToken("waypoint_btn");
yield return new Token((TokenType)82, (uint?)null);
yield return (Token)new ConstantToken((Variant)new IntVariant(4L, false));
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)89, (uint?)1u);
yield return (Token)new IdentifierToken("waypoint_btn");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("connect");
yield return new Token((TokenType)80, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("pressed"));
yield return new Token((TokenType)82, (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("_on_waypoints_pressed"));
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)89, (uint?)1u);
yield return (Token)new IdentifierToken("add_child");
yield return new Token((TokenType)80, (uint?)null);
yield return (Token)new IdentifierToken("Waypoints");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("MENU_SCENE");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("instance");
yield return new Token((TokenType)80, (uint?)null);
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)89, (uint?)1u);
yield return (Token)new IdentifierToken("buttonlist");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("margin_top");
yield return new Token((TokenType)25, (uint?)null);
yield return (Token)new ConstantToken((Variant)new IntVariant(24L, false));
yield return new Token((TokenType)89, (uint?)1u);
yield return (Token)new IdentifierToken("buttonlist");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("margin_bottom");
yield return new Token((TokenType)24, (uint?)null);
yield return (Token)new ConstantToken((Variant)new IntVariant(24L, false));
yield return new Token((TokenType)89, (uint?)1u);
}
else
{
yield return current;
}
}
}
finally
{
((global::System.IDisposable)enumerator)?.Dispose();
}
}
}
public class MenuInject : IScriptMod
{
[CompilerGenerated]
private sealed class <Modify>d__1 : global::System.Collections.Generic.IEnumerable<Token>, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator<Token>, global::System.Collections.IEnumerator, global::System.IDisposable
{
private int <>1__state;
private Token <>2__current;
private int <>l__initialThreadId;
private global::System.Collections.Generic.IEnumerable<Token> tokens;
public global::System.Collections.Generic.IEnumerable<Token> <>3__tokens;
private MultiTokenWaiter <extendsWaiter>5__2;
private global::System.Collections.Generic.IEnumerator<Token> <>7__wrap2;
Token global::System.Collections.Generic.IEnumerator<Token>.Current
{
[DebuggerHidden]
get
{
return <>2__current;
}
}
object global::System.Collections.IEnumerator.Current
{
[DebuggerHidden]
get
{
return <>2__current;
}
}
[DebuggerHidden]
public <Modify>d__1(int <>1__state)
{
this.<>1__state = <>1__state;
<>l__initialThreadId = Environment.CurrentManagedThreadId;
}
[DebuggerHidden]
void global::System.IDisposable.Dispose()
{
int num = <>1__state;
if (num == -3 || (uint)(num - 1) <= 11u)
{
try
{
}
finally
{
<>m__Finally1();
}
}
}
private bool MoveNext()
{
//IL_010a: Unknown result type (might be due to invalid IL or missing references)
//IL_0114: Expected O, but got Unknown
//IL_0136: Unknown result type (might be due to invalid IL or missing references)
//IL_0140: Expected O, but got Unknown
//IL_0162: Unknown result type (might be due to invalid IL or missing references)
//IL_016c: Expected O, but got Unknown
//IL_0188: Unknown result type (might be due to invalid IL or missing references)
//IL_0192: Expected O, but got Unknown
//IL_01b4: Unknown result type (might be due to invalid IL or missing references)
//IL_01be: Expected O, but got Unknown
//IL_01da: Unknown result type (might be due to invalid IL or missing references)
//IL_01e4: Expected O, but got Unknown
//IL_0206: Unknown result type (might be due to invalid IL or missing references)
//IL_0210: Expected O, but got Unknown
//IL_022c: Unknown result type (might be due to invalid IL or missing references)
//IL_0236: Expected O, but got Unknown
//IL_0231: Unknown result type (might be due to invalid IL or missing references)
//IL_023b: Expected O, but got Unknown
//IL_025e: Unknown result type (might be due to invalid IL or missing references)
//IL_0268: Expected O, but got Unknown
//IL_0288: Unknown result type (might be due to invalid IL or missing references)
//IL_0292: Expected O, but got Unknown
//IL_009c: Unknown result type (might be due to invalid IL or missing references)
//IL_00a6: 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);
<>7__wrap2 = tokens.GetEnumerator();
<>1__state = -3;
break;
case 1:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)null);
<>1__state = 2;
return true;
case 2:
<>1__state = -3;
<>2__current = new Token((TokenType)53, (uint?)null);
<>1__state = 3;
return true;
case 3:
<>1__state = -3;
<>2__current = new Token((TokenType)59, (uint?)null);
<>1__state = 4;
return true;
case 4:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("Waypoints");
<>1__state = 5;
return true;
case 5:
<>1__state = -3;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 6;
return true;
case 6:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("get_node");
<>1__state = 7;
return true;
case 7:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 8;
return true;
case 8:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("/root/Waypoints"));
<>1__state = 9;
return true;
case 9:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 10;
return true;
case 10:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)null);
<>1__state = 11;
return true;
case 11:
<>1__state = -3;
break;
case 12:
<>1__state = -3;
break;
}
if (((global::System.Collections.IEnumerator)<>7__wrap2).MoveNext())
{
Token current = <>7__wrap2.Current;
if (<extendsWaiter>5__2.Check(current))
{
<>2__current = current;
<>1__state = 1;
return true;
}
<>2__current = current;
<>1__state = 12;
return true;
}
<>m__Finally1();
<>7__wrap2 = null;
return false;
}
catch
{
//try-fault
((global::System.IDisposable)this).Dispose();
throw;
}
}
bool global::System.Collections.IEnumerator.MoveNext()
{
//ILSpy generated this explicit interface implementation from .override directive in MoveNext
return this.MoveNext();
}
private void <>m__Finally1()
{
<>1__state = -1;
if (<>7__wrap2 != null)
{
((global::System.IDisposable)<>7__wrap2).Dispose();
}
}
[DebuggerHidden]
void global::System.Collections.IEnumerator.Reset()
{
//IL_0000: Unknown result type (might be due to invalid IL or missing references)
throw new NotSupportedException();
}
[DebuggerHidden]
global::System.Collections.Generic.IEnumerator<Token> global::System.Collections.Generic.IEnumerable<Token>.GetEnumerator()
{
<Modify>d__1 <Modify>d__;
if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId)
{
<>1__state = 0;
<Modify>d__ = this;
}
else
{
<Modify>d__ = new <Modify>d__1(0);
}
<Modify>d__.tokens = <>3__tokens;
return <Modify>d__;
}
[DebuggerHidden]
global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator()
{
return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable<Token>)this).GetEnumerator();
}
}
public bool ShouldRun(string path)
{
if (!(path == "res://Scenes/HUD/Esc Menu/esc_menu.gdc"))
{
return path == "res://Scenes/HUD/playerhud.gdc";
}
return true;
}
[IteratorStateMachine(typeof(<Modify>d__1))]
public global::System.Collections.Generic.IEnumerable<Token> Modify(string path, global::System.Collections.Generic.IEnumerable<Token> tokens)
{
MultiTokenWaiter extendsWaiter = new MultiTokenWaiter(new Func<Token, bool>[2]
{
(Token t) => (int)t.Type == 51,
(Token t) => (int)t.Type == 89
}, false, true);
global::System.Collections.Generic.IEnumerator<Token> enumerator = tokens.GetEnumerator();
try
{
while (((global::System.Collections.IEnumerator)enumerator).MoveNext())
{
Token current = enumerator.Current;
if (extendsWaiter.Check(current))
{
yield return current;
yield return new Token((TokenType)89, (uint?)null);
yield return new Token((TokenType)53, (uint?)null);
yield return new Token((TokenType)59, (uint?)null);
yield return (Token)new IdentifierToken("Waypoints");
yield return new Token((TokenType)23, (uint?)null);
yield return (Token)new IdentifierToken("get_node");
yield return new Token((TokenType)80, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("/root/Waypoints"));
yield return new Token((TokenType)81, (uint?)null);
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("Loaded Waypoints! Trans rights!");
modInterface.RegisterScriptMod((IScriptMod)(object)new MenuInject());
modInterface.RegisterScriptMod((IScriptMod)(object)new PlayerHudPatch());
modInterface.RegisterScriptMod((IScriptMod)(object)new EscMenuPatch());
}
public void Dispose()
{
}
}
public class PlayerHudPatch : 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 <hideHudWaiter>5__2;
private FunctionWaiter <changeMenuWaiter>5__3;
private global::System.Collections.Generic.IEnumerator<Token> <>7__wrap3;
private Token <token>5__5;
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) <= 14u)
{
try
{
}
finally
{
<>m__Finally1();
}
}
}
private bool MoveNext()
{
//IL_020c: Unknown result type (might be due to invalid IL or missing references)
//IL_0216: Expected O, but got Unknown
//IL_0232: Unknown result type (might be due to invalid IL or missing references)
//IL_023c: Expected O, but got Unknown
//IL_025e: Unknown result type (might be due to invalid IL or missing references)
//IL_0268: Expected O, but got Unknown
//IL_0284: Unknown result type (might be due to invalid IL or missing references)
//IL_028e: Expected O, but got Unknown
//IL_0316: Unknown result type (might be due to invalid IL or missing references)
//IL_0320: Expected O, but got Unknown
//IL_033c: Unknown result type (might be due to invalid IL or missing references)
//IL_0346: Expected O, but got Unknown
//IL_0369: Unknown result type (might be due to invalid IL or missing references)
//IL_0373: Expected O, but got Unknown
//IL_0390: Unknown result type (might be due to invalid IL or missing references)
//IL_039a: Expected O, but got Unknown
//IL_03bd: Unknown result type (might be due to invalid IL or missing references)
//IL_03c7: Expected O, but got Unknown
//IL_03ea: Unknown result type (might be due to invalid IL or missing references)
//IL_03f4: Expected O, but got Unknown
//IL_0414: Unknown result type (might be due to invalid IL or missing references)
//IL_041e: Expected O, but got Unknown
//IL_01e0: Unknown result type (might be due to invalid IL or missing references)
//IL_01ea: Expected O, but got Unknown
//IL_02ea: Unknown result type (might be due to invalid IL or missing references)
//IL_02f4: Expected O, but got Unknown
//IL_0174: Unknown result type (might be due to invalid IL or missing references)
//IL_017e: Expected O, but got Unknown
//IL_0185: Unknown result type (might be due to invalid IL or missing references)
//IL_018f: Expected O, but got Unknown
try
{
switch (<>1__state)
{
default:
return false;
case 0:
<>1__state = -1;
<hideHudWaiter>5__2 = new MultiTokenWaiter(new Func<Token, bool>[8]
{
(Token t) => (int)t.Type == 38,
delegate(Token t)
{
IdentifierToken val4 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val4 != null && val4.Name == "Input";
},
(Token t) => (int)t.Type == 84,
delegate(Token t)
{
IdentifierToken val3 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val3 != null && val3.Name == "is_action_just_pressed";
},
(Token t) => (int)t.Type == 80,
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 == "hide_hud";
}
}
return false;
},
(Token t) => (int)t.Type == 81,
(Token t) => (int)t.Type == 86
}, false, true);
<changeMenuWaiter>5__3 = new FunctionWaiter("_change_menu", false);
<>7__wrap3 = tokens.GetEnumerator();
<>1__state = -3;
break;
case 1:
<>1__state = -3;
<>2__current = new Token((TokenType)15, (uint?)null);
<>1__state = 2;
return true;
case 2:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("Waypoints");
<>1__state = 3;
return true;
case 3:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 4;
return true;
case 4:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("menu_opened");
<>1__state = 5;
return true;
case 5:
<>1__state = -3;
<>2__current = <token>5__5;
<>1__state = 6;
return true;
case 6:
<>1__state = -3;
goto IL_0454;
case 7:
<>1__state = -3;
<>2__current = new Token((TokenType)38, (uint?)null);
<>1__state = 8;
return true;
case 8:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("Waypoints");
<>1__state = 9;
return true;
case 9:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 10;
return true;
case 10:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("menu_opened");
<>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)46, (uint?)null);
<>1__state = 13;
return true;
case 13:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 14;
return true;
case 14:
<>1__state = -3;
goto IL_0454;
case 15:
{
<>1__state = -3;
goto IL_0454;
}
IL_0454:
<token>5__5 = null;
break;
}
if (((global::System.Collections.IEnumerator)<>7__wrap3).MoveNext())
{
<token>5__5 = <>7__wrap3.Current;
if (<hideHudWaiter>5__2.Check(<token>5__5))
{
<>2__current = new Token((TokenType)13, (uint?)null);
<>1__state = 1;
return true;
}
if (<changeMenuWaiter>5__3.Check(<token>5__5))
{
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 7;
return true;
}
<>2__current = <token>5__5;
<>1__state = 15;
return true;
}
<>m__Finally1();
<>7__wrap3 = null;
return false;
}
catch
{
//try-fault
((global::System.IDisposable)this).Dispose();
throw;
}
}
bool global::System.Collections.IEnumerator.MoveNext()
{
//ILSpy generated this explicit interface implementation from .override directive in MoveNext
return this.MoveNext();
}
private void <>m__Finally1()
{
<>1__state = -1;
if (<>7__wrap3 != null)
{
((global::System.IDisposable)<>7__wrap3).Dispose();
}
}
[DebuggerHidden]
void global::System.Collections.IEnumerator.Reset()
{
//IL_0000: Unknown result type (might be due to invalid IL or missing references)
throw new NotSupportedException();
}
[DebuggerHidden]
global::System.Collections.Generic.IEnumerator<Token> global::System.Collections.Generic.IEnumerable<Token>.GetEnumerator()
{
<Modify>d__1 <Modify>d__;
if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId)
{
<>1__state = 0;
<Modify>d__ = this;
}
else
{
<Modify>d__ = new <Modify>d__1(0);
}
<Modify>d__.tokens = <>3__tokens;
return <Modify>d__;
}
[DebuggerHidden]
global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator()
{
return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable<Token>)this).GetEnumerator();
}
}
public bool ShouldRun(string path)
{
return path == "res://Scenes/HUD/playerhud.gdc";
}
[IteratorStateMachine(typeof(<Modify>d__1))]
public global::System.Collections.Generic.IEnumerable<Token> Modify(string path, global::System.Collections.Generic.IEnumerable<Token> tokens)
{
MultiTokenWaiter hideHudWaiter = new MultiTokenWaiter(new Func<Token, bool>[8]
{
(Token t) => (int)t.Type == 38,
delegate(Token t)
{
IdentifierToken val4 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val4 != null && val4.Name == "Input";
},
(Token t) => (int)t.Type == 84,
delegate(Token t)
{
IdentifierToken val3 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val3 != null && val3.Name == "is_action_just_pressed";
},
(Token t) => (int)t.Type == 80,
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 == "hide_hud";
}
}
return false;
},
(Token t) => (int)t.Type == 81,
(Token t) => (int)t.Type == 86
}, false, true);
FunctionWaiter changeMenuWaiter = new FunctionWaiter("_change_menu", false);
global::System.Collections.Generic.IEnumerator<Token> enumerator = tokens.GetEnumerator();
try
{
while (((global::System.Collections.IEnumerator)enumerator).MoveNext())
{
Token token = enumerator.Current;
if (hideHudWaiter.Check(token))
{
yield return new Token((TokenType)13, (uint?)null);
yield return new Token((TokenType)15, (uint?)null);
yield return (Token)new IdentifierToken("Waypoints");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("menu_opened");
yield return token;
}
else if (changeMenuWaiter.Check(token))
{
yield return new Token((TokenType)89, (uint?)1u);
yield return new Token((TokenType)38, (uint?)null);
yield return (Token)new IdentifierToken("Waypoints");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("menu_opened");
yield return new Token((TokenType)86, (uint?)null);
yield return new Token((TokenType)46, (uint?)null);
yield return new Token((TokenType)89, (uint?)1u);
}
else
{
yield return token;
}
}
}
finally
{
((global::System.IDisposable)enumerator)?.Dispose();
}
}
}