using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Text.Json.Serialization;
using GDWeave;
using GDWeave.Godot;
using GDWeave.Godot.Variants;
using GDWeave.Modding;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(/*Could not decode attribute arguments.*/)]
[assembly: TargetFramework(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
[assembly: AssemblyCompany("officerballs.sortfishbysize")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0.0")]
[assembly: AssemblyProduct("officerballs.sortfishbysize")]
[assembly: AssemblyTitle("officerballs.sortfishbysize")]
[assembly: AssemblyVersion("1.0.0.0")]
[module: RefSafetyRules(11)]
namespace sortfishbysize;
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.RegisterScriptMod((IScriptMod)(object)new sortfishbysizeMod());
modInterface.Logger.Information("Hello, world!");
}
public void Dispose()
{
}
}
public class sortfishbysizeMod : 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 sortfishbysizeMod <>4__this;
private MultiTokenWaiter <waiter>5__1;
private MultiTokenWaiter <addsort>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) > 94u)
{
return;
}
try
{
}
finally
{
<>m__Finally1();
}
}
private bool MoveNext()
{
//IL_052c: Unknown result type (might be due to invalid IL or missing references)
//IL_0536: Expected O, but got Unknown
//IL_0558: Unknown result type (might be due to invalid IL or missing references)
//IL_0562: Expected O, but got Unknown
//IL_057e: Unknown result type (might be due to invalid IL or missing references)
//IL_0588: Expected O, but got Unknown
//IL_05a9: Unknown result type (might be due to invalid IL or missing references)
//IL_05b3: Expected O, but got Unknown
//IL_05cf: Unknown result type (might be due to invalid IL or missing references)
//IL_05d9: Expected O, but got Unknown
//IL_05d4: Unknown result type (might be due to invalid IL or missing references)
//IL_05de: Expected O, but got Unknown
//IL_0600: Unknown result type (might be due to invalid IL or missing references)
//IL_060a: Expected O, but got Unknown
//IL_0626: Unknown result type (might be due to invalid IL or missing references)
//IL_0630: Expected O, but got Unknown
//IL_0652: Unknown result type (might be due to invalid IL or missing references)
//IL_065c: Expected O, but got Unknown
//IL_0679: Unknown result type (might be due to invalid IL or missing references)
//IL_0683: Expected O, but got Unknown
//IL_06a6: Unknown result type (might be due to invalid IL or missing references)
//IL_06b0: Expected O, but got Unknown
//IL_06d2: Unknown result type (might be due to invalid IL or missing references)
//IL_06dc: Expected O, but got Unknown
//IL_06ff: Unknown result type (might be due to invalid IL or missing references)
//IL_0709: Expected O, but got Unknown
//IL_0726: Unknown result type (might be due to invalid IL or missing references)
//IL_0730: Expected O, but got Unknown
//IL_072b: Unknown result type (might be due to invalid IL or missing references)
//IL_0735: Expected O, but got Unknown
//IL_0758: Unknown result type (might be due to invalid IL or missing references)
//IL_0762: Expected O, but got Unknown
//IL_07c9: Unknown result type (might be due to invalid IL or missing references)
//IL_07d3: Expected O, but got Unknown
//IL_07f6: Unknown result type (might be due to invalid IL or missing references)
//IL_0800: Expected O, but got Unknown
//IL_081d: Unknown result type (might be due to invalid IL or missing references)
//IL_0827: Expected O, but got Unknown
//IL_084a: Unknown result type (might be due to invalid IL or missing references)
//IL_0854: Expected O, but got Unknown
//IL_0871: Unknown result type (might be due to invalid IL or missing references)
//IL_087b: Expected O, but got Unknown
//IL_089e: Unknown result type (might be due to invalid IL or missing references)
//IL_08a8: Expected O, but got Unknown
//IL_08c5: Unknown result type (might be due to invalid IL or missing references)
//IL_08cf: Expected O, but got Unknown
//IL_08f2: Unknown result type (might be due to invalid IL or missing references)
//IL_08fc: Expected O, but got Unknown
//IL_091f: Unknown result type (might be due to invalid IL or missing references)
//IL_0929: Expected O, but got Unknown
//IL_0949: Unknown result type (might be due to invalid IL or missing references)
//IL_0953: Expected O, but got Unknown
//IL_0976: Unknown result type (might be due to invalid IL or missing references)
//IL_0980: Expected O, but got Unknown
//IL_099d: Unknown result type (might be due to invalid IL or missing references)
//IL_09a7: Expected O, but got Unknown
//IL_09ca: Unknown result type (might be due to invalid IL or missing references)
//IL_09d4: Expected O, but got Unknown
//IL_09f4: Unknown result type (might be due to invalid IL or missing references)
//IL_09fe: Expected O, but got Unknown
//IL_0a21: Unknown result type (might be due to invalid IL or missing references)
//IL_0a2b: Expected O, but got Unknown
//IL_0a48: Unknown result type (might be due to invalid IL or missing references)
//IL_0a52: Expected O, but got Unknown
//IL_0a75: Unknown result type (might be due to invalid IL or missing references)
//IL_0a7f: Expected O, but got Unknown
//IL_0a9c: Unknown result type (might be due to invalid IL or missing references)
//IL_0aa6: Expected O, but got Unknown
//IL_0ac9: Unknown result type (might be due to invalid IL or missing references)
//IL_0ad3: Expected O, but got Unknown
//IL_0af0: Unknown result type (might be due to invalid IL or missing references)
//IL_0afa: Expected O, but got Unknown
//IL_0b1d: Unknown result type (might be due to invalid IL or missing references)
//IL_0b27: Expected O, but got Unknown
//IL_0b44: Unknown result type (might be due to invalid IL or missing references)
//IL_0b4e: Expected O, but got Unknown
//IL_0b49: Unknown result type (might be due to invalid IL or missing references)
//IL_0b53: Expected O, but got Unknown
//IL_0b76: Unknown result type (might be due to invalid IL or missing references)
//IL_0b80: Expected O, but got Unknown
//IL_0ba3: Unknown result type (might be due to invalid IL or missing references)
//IL_0bad: Expected O, but got Unknown
//IL_0bd0: Unknown result type (might be due to invalid IL or missing references)
//IL_0bda: Expected O, but got Unknown
//IL_0bf7: Unknown result type (might be due to invalid IL or missing references)
//IL_0c01: Expected O, but got Unknown
//IL_0bfc: Unknown result type (might be due to invalid IL or missing references)
//IL_0c06: Expected O, but got Unknown
//IL_0c29: Unknown result type (might be due to invalid IL or missing references)
//IL_0c33: Expected O, but got Unknown
//IL_0c56: Unknown result type (might be due to invalid IL or missing references)
//IL_0c60: Expected O, but got Unknown
//IL_0c7d: Unknown result type (might be due to invalid IL or missing references)
//IL_0c87: Expected O, but got Unknown
//IL_0caa: Unknown result type (might be due to invalid IL or missing references)
//IL_0cb4: Expected O, but got Unknown
//IL_0cd4: Unknown result type (might be due to invalid IL or missing references)
//IL_0cde: Expected O, but got Unknown
//IL_0d01: Unknown result type (might be due to invalid IL or missing references)
//IL_0d0b: Expected O, but got Unknown
//IL_0d28: Unknown result type (might be due to invalid IL or missing references)
//IL_0d32: Expected O, but got Unknown
//IL_0d55: Unknown result type (might be due to invalid IL or missing references)
//IL_0d5f: Expected O, but got Unknown
//IL_0d7f: Unknown result type (might be due to invalid IL or missing references)
//IL_0d89: Expected O, but got Unknown
//IL_0dac: Unknown result type (might be due to invalid IL or missing references)
//IL_0db6: Expected O, but got Unknown
//IL_0dd3: Unknown result type (might be due to invalid IL or missing references)
//IL_0ddd: Expected O, but got Unknown
//IL_0e00: Unknown result type (might be due to invalid IL or missing references)
//IL_0e0a: Expected O, but got Unknown
//IL_0e27: Unknown result type (might be due to invalid IL or missing references)
//IL_0e31: Expected O, but got Unknown
//IL_0e54: Unknown result type (might be due to invalid IL or missing references)
//IL_0e5e: Expected O, but got Unknown
//IL_0e7b: Unknown result type (might be due to invalid IL or missing references)
//IL_0e85: Expected O, but got Unknown
//IL_0ea8: Unknown result type (might be due to invalid IL or missing references)
//IL_0eb2: Expected O, but got Unknown
//IL_0ecf: Unknown result type (might be due to invalid IL or missing references)
//IL_0ed9: Expected O, but got Unknown
//IL_0ed4: Unknown result type (might be due to invalid IL or missing references)
//IL_0ede: Expected O, but got Unknown
//IL_0f01: Unknown result type (might be due to invalid IL or missing references)
//IL_0f0b: Expected O, but got Unknown
//IL_0f2e: Unknown result type (might be due to invalid IL or missing references)
//IL_0f38: Expected O, but got Unknown
//IL_0f5b: Unknown result type (might be due to invalid IL or missing references)
//IL_0f65: Expected O, but got Unknown
//IL_0f82: Unknown result type (might be due to invalid IL or missing references)
//IL_0f8c: Expected O, but got Unknown
//IL_0f87: Unknown result type (might be due to invalid IL or missing references)
//IL_0f91: Expected O, but got Unknown
//IL_0fb4: Unknown result type (might be due to invalid IL or missing references)
//IL_0fbe: Expected O, but got Unknown
//IL_0fe1: Unknown result type (might be due to invalid IL or missing references)
//IL_0feb: Expected O, but got Unknown
//IL_1008: Unknown result type (might be due to invalid IL or missing references)
//IL_1012: Expected O, but got Unknown
//IL_1035: Unknown result type (might be due to invalid IL or missing references)
//IL_103f: Expected O, but got Unknown
//IL_105f: Unknown result type (might be due to invalid IL or missing references)
//IL_1069: Expected O, but got Unknown
//IL_108c: Unknown result type (might be due to invalid IL or missing references)
//IL_1096: Expected O, but got Unknown
//IL_10b3: Unknown result type (might be due to invalid IL or missing references)
//IL_10bd: Expected O, but got Unknown
//IL_10e0: Unknown result type (might be due to invalid IL or missing references)
//IL_10ea: Expected O, but got Unknown
//IL_1107: Unknown result type (might be due to invalid IL or missing references)
//IL_1111: Expected O, but got Unknown
//IL_1134: Unknown result type (might be due to invalid IL or missing references)
//IL_113e: Expected O, but got Unknown
//IL_1161: Unknown result type (might be due to invalid IL or missing references)
//IL_116b: Expected O, but got Unknown
//IL_1184: Unknown result type (might be due to invalid IL or missing references)
//IL_118e: Expected O, but got Unknown
//IL_1189: Unknown result type (might be due to invalid IL or missing references)
//IL_1193: Expected O, but got Unknown
//IL_11b3: Unknown result type (might be due to invalid IL or missing references)
//IL_11bd: Expected O, but got Unknown
//IL_11e0: Unknown result type (might be due to invalid IL or missing references)
//IL_11ea: Expected O, but got Unknown
//IL_1207: Unknown result type (might be due to invalid IL or missing references)
//IL_1211: Expected O, but got Unknown
//IL_1234: Unknown result type (might be due to invalid IL or missing references)
//IL_123e: Expected O, but got Unknown
//IL_125b: Unknown result type (might be due to invalid IL or missing references)
//IL_1265: Expected O, but got Unknown
//IL_1288: Unknown result type (might be due to invalid IL or missing references)
//IL_1292: Expected O, but got Unknown
//IL_12b5: Unknown result type (might be due to invalid IL or missing references)
//IL_12bf: Expected O, but got Unknown
//IL_12d8: Unknown result type (might be due to invalid IL or missing references)
//IL_12e2: 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_1307: Unknown result type (might be due to invalid IL or missing references)
//IL_1311: Expected O, but got Unknown
//IL_1334: Unknown result type (might be due to invalid IL or missing references)
//IL_133e: Expected O, but got Unknown
//IL_135b: Unknown result type (might be due to invalid IL or missing references)
//IL_1365: Expected O, but got Unknown
//IL_1388: Unknown result type (might be due to invalid IL or missing references)
//IL_1392: Expected O, but got Unknown
//IL_13af: Unknown result type (might be due to invalid IL or missing references)
//IL_13b9: Expected O, but got Unknown
//IL_13b4: Unknown result type (might be due to invalid IL or missing references)
//IL_13be: Expected O, but got Unknown
//IL_13e1: Unknown result type (might be due to invalid IL or missing references)
//IL_13eb: Expected O, but got Unknown
//IL_140e: Unknown result type (might be due to invalid IL or missing references)
//IL_1418: Expected O, but got Unknown
//IL_1435: Unknown result type (might be due to invalid IL or missing references)
//IL_143f: Expected O, but got Unknown
//IL_1462: Unknown result type (might be due to invalid IL or missing references)
//IL_146c: Expected O, but got Unknown
//IL_1489: Unknown result type (might be due to invalid IL or missing references)
//IL_1493: Expected O, but got Unknown
//IL_148e: Unknown result type (might be due to invalid IL or missing references)
//IL_1498: Expected O, but got Unknown
//IL_14bb: Unknown result type (might be due to invalid IL or missing references)
//IL_14c5: Expected O, but got Unknown
//IL_0412: Unknown result type (might be due to invalid IL or missing references)
//IL_041c: Expected O, but got Unknown
//IL_04ad: Unknown result type (might be due to invalid IL or missing references)
//IL_04b7: Expected O, but got Unknown
try
{
switch (<>1__state)
{
default:
return false;
case 0:
<>1__state = -1;
<waiter>5__1 = new MultiTokenWaiter(new Func<Token, bool>[4]
{
delegate(Token t)
{
IdentifierToken val4 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val4 != null && val4.Name == "append";
},
(Token t) => (int)t.Type == 80,
delegate(Token t)
{
IdentifierToken val3 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val3 != null && val3.Name == "item";
},
(Token t) => (int)t.Type == 81
}, false, false);
<addsort>5__2 = new MultiTokenWaiter(new Func<Token, bool>[4]
{
delegate(Token t)
{
IdentifierToken val2 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val2 != null && val2.Name == "_lock_item";
},
(Token t) => (int)t.Type == 80,
delegate(Token t)
{
IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val != null && val.Name == "ref";
},
(Token t) => (int)t.Type == 81
}, false, false);
<>s__3 = tokens.GetEnumerator();
<>1__state = -3;
break;
case 1:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 2;
return true;
case 2:
<>1__state = -3;
<>2__current = new Token((TokenType)38, (uint?)null);
<>1__state = 3;
return true;
case 3:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("tab_type");
<>1__state = 4;
return true;
case 4:
<>1__state = -3;
<>2__current = new Token((TokenType)7, (uint?)null);
<>1__state = 5;
return true;
case 5:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("fish"));
<>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 = (Token)new IdentifierToken("valid_items");
<>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("sort_custom");
<>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 = new Token((TokenType)3, (uint?)null);
<>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("_sizefilter"));
<>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;
goto IL_14fe;
case 16:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)null);
<>1__state = 17;
return true;
case 17:
<>1__state = -3;
<>2__current = new Token((TokenType)48, (uint?)null);
<>1__state = 18;
return true;
case 18:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("_sizefilter");
<>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("a");
<>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 IdentifierToken("b");
<>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)86, (uint?)null);
<>1__state = 25;
return true;
case 25:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 26;
return true;
case 26:
<>1__state = -3;
<>2__current = new Token((TokenType)59, (uint?)null);
<>1__state = 27;
return true;
case 27:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("a_name");
<>1__state = 28;
return true;
case 28:
<>1__state = -3;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 29;
return true;
case 29:
<>1__state = -3;
<>2__current = new Token((TokenType)5, (uint?)62u);
<>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("Globals");
<>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("item_data");
<>1__state = 34;
return true;
case 34:
<>1__state = -3;
<>2__current = new Token((TokenType)76, (uint?)null);
<>1__state = 35;
return true;
case 35:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("a");
<>1__state = 36;
return true;
case 36:
<>1__state = -3;
<>2__current = new Token((TokenType)76, (uint?)null);
<>1__state = 37;
return true;
case 37:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("id"));
<>1__state = 38;
return true;
case 38:
<>1__state = -3;
<>2__current = new Token((TokenType)77, (uint?)null);
<>1__state = 39;
return true;
case 39:
<>1__state = -3;
<>2__current = new Token((TokenType)77, (uint?)null);
<>1__state = 40;
return true;
case 40:
<>1__state = -3;
<>2__current = new Token((TokenType)76, (uint?)null);
<>1__state = 41;
return true;
case 41:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("file"));
<>1__state = 42;
return true;
case 42:
<>1__state = -3;
<>2__current = new Token((TokenType)77, (uint?)null);
<>1__state = 43;
return true;
case 43:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 44;
return true;
case 44:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("item_name");
<>1__state = 45;
return true;
case 45:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 46;
return true;
case 46:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 47;
return true;
case 47:
<>1__state = -3;
<>2__current = new Token((TokenType)59, (uint?)null);
<>1__state = 48;
return true;
case 48:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("b_name");
<>1__state = 49;
return true;
case 49:
<>1__state = -3;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 50;
return true;
case 50:
<>1__state = -3;
<>2__current = new Token((TokenType)5, (uint?)62u);
<>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 IdentifierToken("Globals");
<>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("item_data");
<>1__state = 55;
return true;
case 55:
<>1__state = -3;
<>2__current = new Token((TokenType)76, (uint?)null);
<>1__state = 56;
return true;
case 56:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("b");
<>1__state = 57;
return true;
case 57:
<>1__state = -3;
<>2__current = new Token((TokenType)76, (uint?)null);
<>1__state = 58;
return true;
case 58:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("id"));
<>1__state = 59;
return true;
case 59:
<>1__state = -3;
<>2__current = new Token((TokenType)77, (uint?)null);
<>1__state = 60;
return true;
case 60:
<>1__state = -3;
<>2__current = new Token((TokenType)77, (uint?)null);
<>1__state = 61;
return true;
case 61:
<>1__state = -3;
<>2__current = new Token((TokenType)76, (uint?)null);
<>1__state = 62;
return true;
case 62:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("file"));
<>1__state = 63;
return true;
case 63:
<>1__state = -3;
<>2__current = new Token((TokenType)77, (uint?)null);
<>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("item_name");
<>1__state = 66;
return true;
case 66:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 67;
return true;
case 67:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 68;
return true;
case 68:
<>1__state = -3;
<>2__current = new Token((TokenType)38, (uint?)null);
<>1__state = 69;
return true;
case 69:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("a_name");
<>1__state = 70;
return true;
case 70:
<>1__state = -3;
<>2__current = new Token((TokenType)9, (uint?)null);
<>1__state = 71;
return true;
case 71:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("b_name");
<>1__state = 72;
return true;
case 72:
<>1__state = -3;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 73;
return true;
case 73:
<>1__state = -3;
<>2__current = new Token((TokenType)46, (uint?)null);
<>1__state = 74;
return true;
case 74:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new BoolVariant(true));
<>1__state = 75;
return true;
case 75:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 76;
return true;
case 76:
<>1__state = -3;
<>2__current = new Token((TokenType)39, (uint?)null);
<>1__state = 77;
return true;
case 77:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("b_name");
<>1__state = 78;
return true;
case 78:
<>1__state = -3;
<>2__current = new Token((TokenType)9, (uint?)null);
<>1__state = 79;
return true;
case 79:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("a_name");
<>1__state = 80;
return true;
case 80:
<>1__state = -3;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 81;
return true;
case 81:
<>1__state = -3;
<>2__current = new Token((TokenType)46, (uint?)null);
<>1__state = 82;
return true;
case 82:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new BoolVariant(false));
<>1__state = 83;
return true;
case 83:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 84;
return true;
case 84:
<>1__state = -3;
<>2__current = new Token((TokenType)46, (uint?)null);
<>1__state = 85;
return true;
case 85:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("a");
<>1__state = 86;
return true;
case 86:
<>1__state = -3;
<>2__current = new Token((TokenType)76, (uint?)null);
<>1__state = 87;
return true;
case 87:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("size"));
<>1__state = 88;
return true;
case 88:
<>1__state = -3;
<>2__current = new Token((TokenType)77, (uint?)null);
<>1__state = 89;
return true;
case 89:
<>1__state = -3;
<>2__current = new Token((TokenType)9, (uint?)null);
<>1__state = 90;
return true;
case 90:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("b");
<>1__state = 91;
return true;
case 91:
<>1__state = -3;
<>2__current = new Token((TokenType)76, (uint?)null);
<>1__state = 92;
return true;
case 92:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("size"));
<>1__state = 93;
return true;
case 93:
<>1__state = -3;
<>2__current = new Token((TokenType)77, (uint?)null);
<>1__state = 94;
return true;
case 94:
<>1__state = -3;
goto IL_14fe;
case 95:
{
<>1__state = -3;
goto IL_14fe;
}
IL_14fe:
<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 (<addsort>5__2.Check(<token>5__4))
{
<>2__current = <token>5__4;
<>1__state = 16;
return true;
}
<>2__current = <token>5__4;
<>1__state = 95;
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/HUD/inventory.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>[4]
{
delegate(Token t)
{
IdentifierToken val4 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val4 != null && val4.Name == "append";
},
(Token t) => (int)t.Type == 80,
delegate(Token t)
{
IdentifierToken val3 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val3 != null && val3.Name == "item";
},
(Token t) => (int)t.Type == 81
}, false, false);
MultiTokenWaiter addsort = new MultiTokenWaiter(new Func<Token, bool>[4]
{
delegate(Token t)
{
IdentifierToken val2 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val2 != null && val2.Name == "_lock_item";
},
(Token t) => (int)t.Type == 80,
delegate(Token t)
{
IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val != null && val.Name == "ref";
},
(Token t) => (int)t.Type == 81
}, false, false);
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)89, (uint?)1u);
yield return new Token((TokenType)38, (uint?)null);
yield return (Token)new IdentifierToken("tab_type");
yield return new Token((TokenType)7, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("fish"));
yield return new Token((TokenType)86, (uint?)null);
yield return (Token)new IdentifierToken("valid_items");
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("_sizefilter"));
yield return new Token((TokenType)81, (uint?)null);
}
else if (addsort.Check(token))
{
yield return token;
yield return new Token((TokenType)89, (uint?)null);
yield return new Token((TokenType)48, (uint?)null);
yield return (Token)new IdentifierToken("_sizefilter");
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)89, (uint?)1u);
yield return new Token((TokenType)59, (uint?)null);
yield return (Token)new IdentifierToken("a_name");
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 IdentifierToken("Globals");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("item_data");
yield return new Token((TokenType)76, (uint?)null);
yield return (Token)new IdentifierToken("a");
yield return new Token((TokenType)76, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("id"));
yield return new Token((TokenType)77, (uint?)null);
yield return new Token((TokenType)77, (uint?)null);
yield return new Token((TokenType)76, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("file"));
yield return new Token((TokenType)77, (uint?)null);
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("item_name");
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)89, (uint?)1u);
yield return new Token((TokenType)59, (uint?)null);
yield return (Token)new IdentifierToken("b_name");
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 IdentifierToken("Globals");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("item_data");
yield return new Token((TokenType)76, (uint?)null);
yield return (Token)new IdentifierToken("b");
yield return new Token((TokenType)76, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("id"));
yield return new Token((TokenType)77, (uint?)null);
yield return new Token((TokenType)77, (uint?)null);
yield return new Token((TokenType)76, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("file"));
yield return new Token((TokenType)77, (uint?)null);
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("item_name");
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)89, (uint?)1u);
yield return new Token((TokenType)38, (uint?)null);
yield return (Token)new IdentifierToken("a_name");
yield return new Token((TokenType)9, (uint?)null);
yield return (Token)new IdentifierToken("b_name");
yield return new Token((TokenType)86, (uint?)null);
yield return new Token((TokenType)46, (uint?)null);
yield return (Token)new ConstantToken((Variant)new BoolVariant(true));
yield return new Token((TokenType)89, (uint?)1u);
yield return new Token((TokenType)39, (uint?)null);
yield return (Token)new IdentifierToken("b_name");
yield return new Token((TokenType)9, (uint?)null);
yield return (Token)new IdentifierToken("a_name");
yield return new Token((TokenType)86, (uint?)null);
yield return new Token((TokenType)46, (uint?)null);
yield return (Token)new ConstantToken((Variant)new BoolVariant(false));
yield return new Token((TokenType)89, (uint?)1u);
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 StringVariant("size"));
yield return new Token((TokenType)77, (uint?)null);
yield return new Token((TokenType)9, (uint?)null);
yield return (Token)new IdentifierToken("b");
yield return new Token((TokenType)76, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("size"));
yield return new Token((TokenType)77, (uint?)null);
}
else
{
yield return token;
}
}
}
finally
{
((global::System.IDisposable)enumerator)?.Dispose();
}
}
}