using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Text.Json.Serialization;
using GDWeave.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("GDWeave.Sample")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0.0+7bf2e44645be0128ec7ebaefc53c89b26f840f03")]
[assembly: AssemblyProduct("GDWeave.Sample")]
[assembly: AssemblyTitle("GDWeave.Sample")]
[assembly: AssemblyVersion("1.0.0.0")]
[module: RefSafetyRules(11)]
namespace GDWeave.Sample;
public class Config
{
[JsonInclude]
public bool SomeSetting = true;
}
public class Mod : IMod, global::System.IDisposable
{
public Config Config;
public Mod(IModInterface modInterface)
{
Config = modInterface.ReadConfig<Config>();
modInterface.Logger.Information("Initializing test mod!");
modInterface.RegisterScriptMod((IScriptMod)(object)new YankbarMod());
}
public void Dispose()
{
}
}
public class YankbarMod : 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 string path;
public string <>3__path;
private global::System.Collections.Generic.IEnumerable<Token> tokens;
public global::System.Collections.Generic.IEnumerable<Token> <>3__tokens;
public YankbarMod <>4__this;
private MultiTokenWaiter <waiter>5__1;
private MultiTokenWaiter <waiter2>5__2;
private global::System.Collections.Generic.IEnumerator<Token> <>s__3;
private Token <token>5__4;
Token global::System.Collections.Generic.IEnumerator<Token>.Current
{
[DebuggerHidden]
get
{
return <>2__current;
}
}
object global::System.Collections.IEnumerator.Current
{
[DebuggerHidden]
get
{
return <>2__current;
}
}
[DebuggerHidden]
public <Modify>d__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) > 78u)
{
return;
}
try
{
}
finally
{
<>m__Finally1();
}
}
private bool MoveNext()
{
//IL_05b1: Unknown result type (might be due to invalid IL or missing references)
//IL_05bb: Expected O, but got Unknown
//IL_05d7: Unknown result type (might be due to invalid IL or missing references)
//IL_05e1: Expected O, but got Unknown
//IL_0603: Unknown result type (might be due to invalid IL or missing references)
//IL_060d: Expected O, but got Unknown
//IL_0629: Unknown result type (might be due to invalid IL or missing references)
//IL_0633: Expected O, but got Unknown
//IL_0655: Unknown result type (might be due to invalid IL or missing references)
//IL_065f: Expected O, but got Unknown
//IL_067b: Unknown result type (might be due to invalid IL or missing references)
//IL_0685: Expected O, but got Unknown
//IL_06a7: Unknown result type (might be due to invalid IL or missing references)
//IL_06b1: Expected O, but got Unknown
//IL_06d3: Unknown result type (might be due to invalid IL or missing references)
//IL_06dd: Expected O, but got Unknown
//IL_06fd: Unknown result type (might be due to invalid IL or missing references)
//IL_0707: Expected O, but got Unknown
//IL_0724: Unknown result type (might be due to invalid IL or missing references)
//IL_072e: Expected O, but got Unknown
//IL_0751: Unknown result type (might be due to invalid IL or missing references)
//IL_075b: Expected O, but got Unknown
//IL_0778: Unknown result type (might be due to invalid IL or missing references)
//IL_0782: Expected O, but got Unknown
//IL_07a5: Unknown result type (might be due to invalid IL or missing references)
//IL_07af: Expected O, but got Unknown
//IL_07cf: Unknown result type (might be due to invalid IL or missing references)
//IL_07d9: Expected O, but got Unknown
//IL_07fc: Unknown result type (might be due to invalid IL or missing references)
//IL_0806: Expected O, but got Unknown
//IL_0823: Unknown result type (might be due to invalid IL or missing references)
//IL_082d: Expected O, but got Unknown
//IL_0828: Unknown result type (might be due to invalid IL or missing references)
//IL_0832: Expected O, but got Unknown
//IL_0855: Unknown result type (might be due to invalid IL or missing references)
//IL_085f: Expected O, but got Unknown
//IL_087f: Unknown result type (might be due to invalid IL or missing references)
//IL_0889: Expected O, but got Unknown
//IL_08ac: Unknown result type (might be due to invalid IL or missing references)
//IL_08b6: Expected O, but got Unknown
//IL_08d3: Unknown result type (might be due to invalid IL or missing references)
//IL_08dd: Expected O, but got Unknown
//IL_0900: Unknown result type (might be due to invalid IL or missing references)
//IL_090a: Expected O, but got Unknown
//IL_0927: Unknown result type (might be due to invalid IL or missing references)
//IL_0931: Expected O, but got Unknown
//IL_0954: Unknown result type (might be due to invalid IL or missing references)
//IL_095e: Expected O, but got Unknown
//IL_097b: Unknown result type (might be due to invalid IL or missing references)
//IL_0985: Expected O, but got Unknown
//IL_0980: Unknown result type (might be due to invalid IL or missing references)
//IL_098a: Expected O, but got Unknown
//IL_09ad: Unknown result type (might be due to invalid IL or missing references)
//IL_09b7: Expected O, but got Unknown
//IL_09da: Unknown result type (might be due to invalid IL or missing references)
//IL_09e4: Expected O, but got Unknown
//IL_0a07: Unknown result type (might be due to invalid IL or missing references)
//IL_0a11: Expected O, but got Unknown
//IL_0a2e: Unknown result type (might be due to invalid IL or missing references)
//IL_0a38: Expected O, but got Unknown
//IL_0a33: Unknown result type (might be due to invalid IL or missing references)
//IL_0a3d: Expected O, but got Unknown
//IL_0a60: Unknown result type (might be due to invalid IL or missing references)
//IL_0a6a: Expected O, but got Unknown
//IL_0a8a: Unknown result type (might be due to invalid IL or missing references)
//IL_0a94: Expected O, but got Unknown
//IL_0ab1: Unknown result type (might be due to invalid IL or missing references)
//IL_0abb: Expected O, but got Unknown
//IL_0ade: Unknown result type (might be due to invalid IL or missing references)
//IL_0ae8: Expected O, but got Unknown
//IL_0b05: Unknown result type (might be due to invalid IL or missing references)
//IL_0b0f: Expected O, but got Unknown
//IL_0b32: Unknown result type (might be due to invalid IL or missing references)
//IL_0b3c: Expected O, but got Unknown
//IL_0b59: Unknown result type (might be due to invalid IL or missing references)
//IL_0b63: Expected O, but got Unknown
//IL_0b5e: Unknown result type (might be due to invalid IL or missing references)
//IL_0b68: Expected O, but got Unknown
//IL_0b88: Unknown result type (might be due to invalid IL or missing references)
//IL_0b92: Expected O, but got Unknown
//IL_0baf: Unknown result type (might be due to invalid IL or missing references)
//IL_0bb9: Expected O, but got Unknown
//IL_0bdc: Unknown result type (might be due to invalid IL or missing references)
//IL_0be6: Expected O, but got Unknown
//IL_0c03: Unknown result type (might be due to invalid IL or missing references)
//IL_0c0d: Expected O, but got Unknown
//IL_0c30: Unknown result type (might be due to invalid IL or missing references)
//IL_0c3a: Expected O, but got Unknown
//IL_0c57: Unknown result type (might be due to invalid IL or missing references)
//IL_0c61: Expected O, but got Unknown
//IL_0c84: Unknown result type (might be due to invalid IL or missing references)
//IL_0c8e: Expected O, but got Unknown
//IL_0cae: Unknown result type (might be due to invalid IL or missing references)
//IL_0cb8: Expected O, but got Unknown
//IL_0d1f: Unknown result type (might be due to invalid IL or missing references)
//IL_0d29: Expected O, but got Unknown
//IL_0d46: Unknown result type (might be due to invalid IL or missing references)
//IL_0d50: Expected O, but got Unknown
//IL_0d73: Unknown result type (might be due to invalid IL or missing references)
//IL_0d7d: Expected O, but got Unknown
//IL_0d9a: Unknown result type (might be due to invalid IL or missing references)
//IL_0da4: Expected O, but got Unknown
//IL_0dc7: Unknown result type (might be due to invalid IL or missing references)
//IL_0dd1: Expected O, but got Unknown
//IL_0dee: Unknown result type (might be due to invalid IL or missing references)
//IL_0df8: Expected O, but got Unknown
//IL_0e1b: Unknown result type (might be due to invalid IL or missing references)
//IL_0e25: Expected O, but got Unknown
//IL_0e40: Unknown result type (might be due to invalid IL or missing references)
//IL_0e4a: Expected O, but got Unknown
//IL_0e45: Unknown result type (might be due to invalid IL or missing references)
//IL_0e4f: Expected O, but got Unknown
//IL_0e72: Unknown result type (might be due to invalid IL or missing references)
//IL_0e7c: Expected O, but got Unknown
//IL_0e9c: Unknown result type (might be due to invalid IL or missing references)
//IL_0ea6: Expected O, but got Unknown
//IL_0ec3: Unknown result type (might be due to invalid IL or missing references)
//IL_0ecd: Expected O, but got Unknown
//IL_0ef0: Unknown result type (might be due to invalid IL or missing references)
//IL_0efa: Expected O, but got Unknown
//IL_0f17: Unknown result type (might be due to invalid IL or missing references)
//IL_0f21: Expected O, but got Unknown
//IL_0f44: Unknown result type (might be due to invalid IL or missing references)
//IL_0f4e: 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_0f9b: Unknown result type (might be due to invalid IL or missing references)
//IL_0fa5: Expected O, but got Unknown
//IL_0fc2: Unknown result type (might be due to invalid IL or missing references)
//IL_0fcc: Expected O, but got Unknown
//IL_0fc7: Unknown result type (might be due to invalid IL or missing references)
//IL_0fd1: Expected O, but got Unknown
//IL_0ff4: Unknown result type (might be due to invalid IL or missing references)
//IL_0ffe: Expected O, but got Unknown
//IL_101e: Unknown result type (might be due to invalid IL or missing references)
//IL_1028: Expected O, but got Unknown
//IL_104b: Unknown result type (might be due to invalid IL or missing references)
//IL_1055: Expected O, but got Unknown
//IL_1072: Unknown result type (might be due to invalid IL or missing references)
//IL_107c: Expected O, but got Unknown
//IL_109f: Unknown result type (might be due to invalid IL or missing references)
//IL_10a9: Expected O, but got Unknown
//IL_10c6: Unknown result type (might be due to invalid IL or missing references)
//IL_10d0: Expected O, but got Unknown
//IL_10f3: Unknown result type (might be due to invalid IL or missing references)
//IL_10fd: Expected O, but got Unknown
//IL_111a: Unknown result type (might be due to invalid IL or missing references)
//IL_1124: Expected O, but got Unknown
//IL_1147: Unknown result type (might be due to invalid IL or missing references)
//IL_1151: Expected O, but got Unknown
//IL_116e: Unknown result type (might be due to invalid IL or missing references)
//IL_1178: Expected O, but got Unknown
//IL_1173: Unknown result type (might be due to invalid IL or missing references)
//IL_117d: Expected O, but got Unknown
//IL_11a0: Unknown result type (might be due to invalid IL or missing references)
//IL_11aa: Expected O, but got Unknown
//IL_11cd: Unknown result type (might be due to invalid IL or missing references)
//IL_11d7: Expected O, but got Unknown
//IL_11fa: Unknown result type (might be due to invalid IL or missing references)
//IL_1204: Expected O, but got Unknown
//IL_1221: Unknown result type (might be due to invalid IL or missing references)
//IL_122b: Expected O, but got Unknown
//IL_1226: Unknown result type (might be due to invalid IL or missing references)
//IL_1230: Expected O, but got Unknown
//IL_1253: Unknown result type (might be due to invalid IL or missing references)
//IL_125d: Expected O, but got Unknown
//IL_127d: Unknown result type (might be due to invalid IL or missing references)
//IL_1287: Expected O, but got Unknown
//IL_0450: Unknown result type (might be due to invalid IL or missing references)
//IL_045a: Expected O, but got Unknown
//IL_052f: Unknown result type (might be due to invalid IL or missing references)
//IL_0539: Expected O, but got Unknown
try
{
switch (<>1__state)
{
default:
return false;
case 0:
<>1__state = -1;
<waiter>5__1 = new MultiTokenWaiter(new Func<Token, bool>[10]
{
(Token t) => (int)t.Type == 59,
delegate(Token t)
{
IdentifierToken val4 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val4 != null && val4.Name == "tr";
},
(Token t) => (int)t.Type == 23,
(Token t) => (int)t.Type == 80,
(Token t) => (int)t.Type == 81,
(Token t) => (int)t.Type == 84,
delegate(Token t)
{
IdentifierToken val3 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val3 != null && val3.Name == "instance";
},
(Token t) => (int)t.Type == 80,
(Token t) => (int)t.Type == 81,
(Token t) => (int)t.Type == 89
}, false, true);
<waiter2>5__2 = new MultiTokenWaiter(new Func<Token, bool>[6]
{
delegate(Token t)
{
IdentifierToken val2 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val2 != null && val2.Name == "ys";
},
(Token t) => (int)t.Type == 84,
delegate(Token t)
{
IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val != null && val.Name == "health";
},
(Token t) => (int)t.Type == 25,
(Token t) => (int)t.Type == 77,
(Token t) => (int)t.Type == 89
}, false, true);
<>s__3 = 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("clicks_total_label");
<>1__state = 3;
return true;
case 3:
<>1__state = -3;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 4;
return true;
case 4:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("Label");
<>1__state = 5;
return true;
case 5:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 6;
return true;
case 6:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("new");
<>1__state = 7;
return true;
case 7:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 8;
return true;
case 8:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 9;
return true;
case 9:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 10;
return true;
case 10:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("clicks_total_label");
<>1__state = 11;
return true;
case 11:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 12;
return true;
case 12:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("text");
<>1__state = 13;
return true;
case 13:
<>1__state = -3;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 14;
return true;
case 14:
<>1__state = -3;
<>2__current = new Token((TokenType)5, (uint?)62u);
<>1__state = 15;
return true;
case 15:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 16;
return true;
case 16:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("("));
<>1__state = 17;
return true;
case 17:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 18;
return true;
case 18:
<>1__state = -3;
<>2__current = new Token((TokenType)5, (uint?)15u);
<>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("health");
<>1__state = 21;
return true;
case 21:
<>1__state = -3;
<>2__current = new Token((TokenType)19, (uint?)null);
<>1__state = 22;
return true;
case 22:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("params");
<>1__state = 23;
return true;
case 23:
<>1__state = -3;
<>2__current = new Token((TokenType)76, (uint?)null);
<>1__state = 24;
return true;
case 24:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("damage"));
<>1__state = 25;
return true;
case 25:
<>1__state = -3;
<>2__current = new Token((TokenType)77, (uint?)null);
<>1__state = 26;
return true;
case 26:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 27;
return true;
case 27:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 28;
return true;
case 28:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant(")"));
<>1__state = 29;
return true;
case 29:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 30;
return true;
case 30:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 31;
return true;
case 31:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("clicks_total_label");
<>1__state = 32;
return true;
case 32:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 33;
return true;
case 33:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("name");
<>1__state = 34;
return true;
case 34:
<>1__state = -3;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 35;
return true;
case 35:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("clicks_total_label"));
<>1__state = 36;
return true;
case 36:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 37;
return true;
case 37:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("tr");
<>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("add_child");
<>1__state = 40;
return true;
case 40:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 41;
return true;
case 41:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("clicks_total_label");
<>1__state = 42;
return true;
case 42:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 43;
return true;
case 43:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 44;
return true;
case 44:
<>1__state = -3;
goto IL_12c0;
case 45:
<>1__state = -3;
<>2__current = new Token((TokenType)59, (uint?)null);
<>1__state = 46;
return true;
case 46:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("ctl");
<>1__state = 47;
return true;
case 47:
<>1__state = -3;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 48;
return true;
case 48:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("ys");
<>1__state = 49;
return true;
case 49:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 50;
return true;
case 50:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("get_child");
<>1__state = 51;
return true;
case 51:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 52;
return true;
case 52:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new IntVariant(0L, false));
<>1__state = 53;
return true;
case 53:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 54;
return true;
case 54:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 55;
return true;
case 55:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("ctl");
<>1__state = 56;
return true;
case 56:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 57;
return true;
case 57:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("text");
<>1__state = 58;
return true;
case 58:
<>1__state = -3;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 59;
return true;
case 59:
<>1__state = -3;
<>2__current = new Token((TokenType)5, (uint?)62u);
<>1__state = 60;
return true;
case 60:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 61;
return true;
case 61:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("("));
<>1__state = 62;
return true;
case 62:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 63;
return true;
case 63:
<>1__state = -3;
<>2__current = new Token((TokenType)5, (uint?)15u);
<>1__state = 64;
return true;
case 64:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 65;
return true;
case 65:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("ys");
<>1__state = 66;
return true;
case 66:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 67;
return true;
case 67:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("health");
<>1__state = 68;
return true;
case 68:
<>1__state = -3;
<>2__current = new Token((TokenType)19, (uint?)null);
<>1__state = 69;
return true;
case 69:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("params");
<>1__state = 70;
return true;
case 70:
<>1__state = -3;
<>2__current = new Token((TokenType)76, (uint?)null);
<>1__state = 71;
return true;
case 71:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("damage"));
<>1__state = 72;
return true;
case 72:
<>1__state = -3;
<>2__current = new Token((TokenType)77, (uint?)null);
<>1__state = 73;
return true;
case 73:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 74;
return true;
case 74:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 75;
return true;
case 75:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant(")"));
<>1__state = 76;
return true;
case 76:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 77;
return true;
case 77:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 78;
return true;
case 78:
<>1__state = -3;
goto IL_12c0;
case 79:
{
<>1__state = -3;
goto IL_12c0;
}
IL_12c0:
<token>5__4 = null;
break;
}
if (((global::System.Collections.IEnumerator)<>s__3).MoveNext())
{
<token>5__4 = <>s__3.Current;
if (<waiter>5__1.Check(<token>5__4))
{
<>2__current = <token>5__4;
<>1__state = 1;
return true;
}
if (<waiter2>5__2.Check(<token>5__4))
{
<>2__current = <token>5__4;
<>1__state = 45;
return true;
}
<>2__current = <token>5__4;
<>1__state = 79;
return true;
}
<>m__Finally1();
<>s__3 = null;
return false;
}
catch
{
//try-fault
((global::System.IDisposable)this).Dispose();
throw;
}
}
bool global::System.Collections.IEnumerator.MoveNext()
{
//ILSpy generated this explicit interface implementation from .override directive in MoveNext
return this.MoveNext();
}
private void <>m__Finally1()
{
<>1__state = -1;
if (<>s__3 != null)
{
((global::System.IDisposable)<>s__3).Dispose();
}
}
[DebuggerHidden]
void global::System.Collections.IEnumerator.Reset()
{
//IL_0000: Unknown result type (might be due to invalid IL or missing references)
throw new NotSupportedException();
}
[DebuggerHidden]
global::System.Collections.Generic.IEnumerator<Token> global::System.Collections.Generic.IEnumerable<Token>.GetEnumerator()
{
<Modify>d__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)
{
<>4__this = <>4__this
};
}
<Modify>d__.path = <>3__path;
<Modify>d__.tokens = <>3__tokens;
return <Modify>d__;
}
[DebuggerHidden]
global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator()
{
return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable<Token>)this).GetEnumerator();
}
}
public bool ShouldRun(string path)
{
return path == "res://Scenes/Minigames/Fishing3/fishing3.gdc";
}
[IteratorStateMachine(typeof(<Modify>d__1))]
public global::System.Collections.Generic.IEnumerable<Token> Modify(string path, global::System.Collections.Generic.IEnumerable<Token> tokens)
{
MultiTokenWaiter waiter = new MultiTokenWaiter(new Func<Token, bool>[10]
{
(Token t) => (int)t.Type == 59,
delegate(Token t)
{
IdentifierToken val4 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val4 != null && val4.Name == "tr";
},
(Token t) => (int)t.Type == 23,
(Token t) => (int)t.Type == 80,
(Token t) => (int)t.Type == 81,
(Token t) => (int)t.Type == 84,
delegate(Token t)
{
IdentifierToken val3 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val3 != null && val3.Name == "instance";
},
(Token t) => (int)t.Type == 80,
(Token t) => (int)t.Type == 81,
(Token t) => (int)t.Type == 89
}, false, true);
MultiTokenWaiter waiter2 = new MultiTokenWaiter(new Func<Token, bool>[6]
{
delegate(Token t)
{
IdentifierToken val2 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val2 != null && val2.Name == "ys";
},
(Token t) => (int)t.Type == 84,
delegate(Token t)
{
IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val != null && val.Name == "health";
},
(Token t) => (int)t.Type == 25,
(Token t) => (int)t.Type == 77,
(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 token = enumerator.Current;
if (waiter.Check(token))
{
yield return token;
yield return new Token((TokenType)59, (uint?)null);
yield return (Token)new IdentifierToken("clicks_total_label");
yield return new Token((TokenType)23, (uint?)null);
yield return (Token)new IdentifierToken("Label");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("new");
yield return new Token((TokenType)80, (uint?)null);
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)89, (uint?)1u);
yield return (Token)new IdentifierToken("clicks_total_label");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("text");
yield return new Token((TokenType)23, (uint?)null);
yield return new Token((TokenType)5, (uint?)62u);
yield return new Token((TokenType)80, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("("));
yield return new Token((TokenType)82, (uint?)null);
yield return new Token((TokenType)5, (uint?)15u);
yield return new Token((TokenType)80, (uint?)null);
yield return (Token)new IdentifierToken("health");
yield return new Token((TokenType)19, (uint?)null);
yield return (Token)new IdentifierToken("params");
yield return new Token((TokenType)76, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("damage"));
yield return new Token((TokenType)77, (uint?)null);
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)82, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant(")"));
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)89, (uint?)1u);
yield return (Token)new IdentifierToken("clicks_total_label");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("name");
yield return new Token((TokenType)23, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("clicks_total_label"));
yield return new Token((TokenType)89, (uint?)1u);
yield return (Token)new IdentifierToken("tr");
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("clicks_total_label");
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)89, (uint?)1u);
}
else if (waiter2.Check(token))
{
yield return token;
yield return new Token((TokenType)59, (uint?)null);
yield return (Token)new IdentifierToken("ctl");
yield return new Token((TokenType)23, (uint?)null);
yield return (Token)new IdentifierToken("ys");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("get_child");
yield return new Token((TokenType)80, (uint?)null);
yield return (Token)new ConstantToken((Variant)new IntVariant(0L, false));
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)89, (uint?)1u);
yield return (Token)new IdentifierToken("ctl");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("text");
yield return new Token((TokenType)23, (uint?)null);
yield return new Token((TokenType)5, (uint?)62u);
yield return new Token((TokenType)80, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("("));
yield return new Token((TokenType)82, (uint?)null);
yield return new Token((TokenType)5, (uint?)15u);
yield return new Token((TokenType)80, (uint?)null);
yield return (Token)new IdentifierToken("ys");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("health");
yield return new Token((TokenType)19, (uint?)null);
yield return (Token)new IdentifierToken("params");
yield return new Token((TokenType)76, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("damage"));
yield return new Token((TokenType)77, (uint?)null);
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)82, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant(")"));
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)89, (uint?)1u);
}
else
{
yield return token;
}
}
}
finally
{
((global::System.IDisposable)enumerator)?.Dispose();
}
}
}