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;
using QuickEquip.Mods;
[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("QuickEquip")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0.0")]
[assembly: AssemblyProduct("QuickEquip")]
[assembly: AssemblyTitle("QuickEquip")]
[assembly: AssemblyVersion("1.0.0.0")]
[module: RefSafetyRules(11)]
namespace QuickEquip
{
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 PlayerPatch());
modInterface.RegisterScriptMod((IScriptMod)(object)new PlayerHudPatch());
}
public void Dispose()
{
}
}
}
namespace QuickEquip.Mods
{
public class PlayerHudPatch : IScriptMod
{
[CompilerGenerated]
private sealed class <Modify>d__2 : 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 PlayerHudPatch <>4__this;
private MultiTokenWaiter <equipItem>5__1;
private TokenConsumer <newlineConsumer>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__2(int <>1__state)
{
this.<>1__state = <>1__state;
<>l__initialThreadId = Environment.CurrentManagedThreadId;
}
[DebuggerHidden]
void global::System.IDisposable.Dispose()
{
int num = <>1__state;
if (num != -3 && (uint)(num - 1) > 6u)
{
return;
}
try
{
}
finally
{
<>m__Finally1();
}
}
private bool MoveNext()
{
//IL_01f2: Unknown result type (might be due to invalid IL or missing references)
//IL_01fc: Expected O, but got Unknown
//IL_01f7: Unknown result type (might be due to invalid IL or missing references)
//IL_0201: Expected O, but got Unknown
//IL_0224: Unknown result type (might be due to invalid IL or missing references)
//IL_022e: Expected O, but got Unknown
//IL_0246: Unknown result type (might be due to invalid IL or missing references)
//IL_0250: Expected O, but got Unknown
//IL_024b: Unknown result type (might be due to invalid IL or missing references)
//IL_0255: Expected O, but got Unknown
//IL_0278: Unknown result type (might be due to invalid IL or missing references)
//IL_0282: Expected O, but got Unknown
//IL_00f4: Unknown result type (might be due to invalid IL or missing references)
//IL_00fe: Expected O, but got Unknown
//IL_011e: Unknown result type (might be due to invalid IL or missing references)
//IL_0128: Expected O, but got Unknown
try
{
switch (<>1__state)
{
default:
return false;
case 0:
<>1__state = -1;
<equipItem>5__1 = new MultiTokenWaiter(new Func<Token, bool>[4]
{
delegate(Token t)
{
IdentifierToken val2 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val2 != null && val2.Name == "_equip_item";
},
(Token t) => (int)t.Type == 80,
delegate(Token t)
{
IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val != null && val.Name == "item";
},
(Token t) => (int)t.Type == 82
}, false, false);
<newlineConsumer>5__2 = new TokenConsumer((Func<Token, bool>)((Token t) => (int)t.Type == 89));
<>s__3 = tokens.GetEnumerator();
<>1__state = -3;
goto IL_02cd;
case 1:
<>1__state = -3;
<newlineConsumer>5__2.Reset();
goto IL_01b3;
case 2:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new BoolVariant(true));
<>1__state = 3;
return true;
case 3:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 4;
return true;
case 4:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new BoolVariant(true));
<>1__state = 5;
return true;
case 5:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 6;
return true;
case 6:
<>1__state = -3;
<newlineConsumer>5__2.SetReady();
goto IL_02c5;
case 7:
{
<>1__state = -3;
goto IL_02c5;
}
IL_02c5:
<token>5__4 = null;
goto IL_02cd;
IL_01b3:
if (<equipItem>5__1.Check(<token>5__4))
{
<>2__current = <token>5__4;
<>1__state = 2;
return true;
}
<>2__current = <token>5__4;
<>1__state = 7;
return true;
IL_02cd:
do
{
if (((global::System.Collections.IEnumerator)<>s__3).MoveNext())
{
<token>5__4 = <>s__3.Current;
continue;
}
<>m__Finally1();
<>s__3 = null;
return false;
}
while (<newlineConsumer>5__2.Check(<token>5__4));
if (<newlineConsumer>5__2.Ready)
{
<>2__current = <token>5__4;
<>1__state = 1;
return true;
}
goto IL_01b3;
}
}
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__2 <Modify>d__;
if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId)
{
<>1__state = 0;
<Modify>d__ = this;
}
else
{
<Modify>d__ = new <Modify>d__2(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/playerhud.gdc";
}
[IteratorStateMachine(typeof(<Modify>d__2))]
public global::System.Collections.Generic.IEnumerable<Token> Modify(string path, global::System.Collections.Generic.IEnumerable<Token> tokens)
{
MultiTokenWaiter equipItem = new MultiTokenWaiter(new Func<Token, bool>[4]
{
delegate(Token t)
{
IdentifierToken val2 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val2 != null && val2.Name == "_equip_item";
},
(Token t) => (int)t.Type == 80,
delegate(Token t)
{
IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val != null && val.Name == "item";
},
(Token t) => (int)t.Type == 82
}, false, false);
TokenConsumer newlineConsumer = new TokenConsumer((Func<Token, bool>)((Token t) => (int)t.Type == 89));
global::System.Collections.Generic.IEnumerator<Token> enumerator = tokens.GetEnumerator();
try
{
while (((global::System.Collections.IEnumerator)enumerator).MoveNext())
{
Token token = enumerator.Current;
if (!newlineConsumer.Check(token))
{
if (newlineConsumer.Ready)
{
yield return token;
newlineConsumer.Reset();
}
if (equipItem.Check(token))
{
yield return token;
yield return (Token)new ConstantToken((Variant)new BoolVariant(true));
yield return new Token((TokenType)82, (uint?)null);
yield return (Token)new ConstantToken((Variant)new BoolVariant(true));
yield return new Token((TokenType)81, (uint?)null);
newlineConsumer.SetReady();
}
else
{
yield return token;
}
}
}
}
finally
{
((global::System.IDisposable)enumerator)?.Dispose();
}
}
}
public class PlayerPatch : IScriptMod
{
[CompilerGenerated]
private sealed class <Modify>d__2 : 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 PlayerPatch <>4__this;
private MultiTokenWaiter <equipHotbarIf>5__1;
private MultiTokenWaiter <equipItem>5__2;
private TokenConsumer <newlineConsumer>5__3;
private global::System.Collections.Generic.IEnumerator<Token> <>s__4;
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__2(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) > 71u)
{
return;
}
try
{
}
finally
{
<>m__Finally1();
}
}
private bool MoveNext()
{
//IL_0505: Unknown result type (might be due to invalid IL or missing references)
//IL_050f: Expected O, but got Unknown
//IL_0532: Unknown result type (might be due to invalid IL or missing references)
//IL_053c: 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_0585: Unknown result type (might be due to invalid IL or missing references)
//IL_058f: Expected O, but got Unknown
//IL_05ae: Unknown result type (might be due to invalid IL or missing references)
//IL_05b8: 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_0601: Unknown result type (might be due to invalid IL or missing references)
//IL_060b: Expected O, but got Unknown
//IL_0628: Unknown result type (might be due to invalid IL or missing references)
//IL_0632: Expected O, but got Unknown
//IL_0656: Unknown result type (might be due to invalid IL or missing references)
//IL_0660: Expected O, but got Unknown
//IL_067d: Unknown result type (might be due to invalid IL or missing references)
//IL_0687: Expected O, but got Unknown
//IL_06ab: Unknown result type (might be due to invalid IL or missing references)
//IL_06b5: 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_0700: Unknown result type (might be due to invalid IL or missing references)
//IL_070a: Expected O, but got Unknown
//IL_0727: Unknown result type (might be due to invalid IL or missing references)
//IL_0731: Expected O, but got Unknown
//IL_0755: Unknown result type (might be due to invalid IL or missing references)
//IL_075f: Expected O, but got Unknown
//IL_077c: Unknown result type (might be due to invalid IL or missing references)
//IL_0786: Expected O, but got Unknown
//IL_07aa: Unknown result type (might be due to invalid IL or missing references)
//IL_07b4: Expected O, but got Unknown
//IL_07d4: Unknown result type (might be due to invalid IL or missing references)
//IL_07de: Expected O, but got Unknown
//IL_07fb: Unknown result type (might be due to invalid IL or missing references)
//IL_0805: Expected O, but got Unknown
//IL_0829: Unknown result type (might be due to invalid IL or missing references)
//IL_0833: 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_085a: Unknown result type (might be due to invalid IL or missing references)
//IL_0864: Expected O, but got Unknown
//IL_0884: Unknown result type (might be due to invalid IL or missing references)
//IL_088e: Expected O, but got Unknown
//IL_08ab: Unknown result type (might be due to invalid IL or missing references)
//IL_08b5: 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_08fc: Unknown result type (might be due to invalid IL or missing references)
//IL_0906: Expected O, but got Unknown
//IL_0901: Unknown result type (might be due to invalid IL or missing references)
//IL_090b: Expected O, but got Unknown
//IL_092b: Unknown result type (might be due to invalid IL or missing references)
//IL_0935: Expected O, but got Unknown
//IL_0952: Unknown result type (might be due to invalid IL or missing references)
//IL_095c: 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_09a3: Unknown result type (might be due to invalid IL or missing references)
//IL_09ad: Expected O, but got Unknown
//IL_09a8: Unknown result type (might be due to invalid IL or missing references)
//IL_09b2: Expected O, but got Unknown
//IL_09d2: Unknown result type (might be due to invalid IL or missing references)
//IL_09dc: Expected O, but got Unknown
//IL_09f9: Unknown result type (might be due to invalid IL or missing references)
//IL_0a03: Expected O, but got Unknown
//IL_0a27: Unknown result type (might be due to invalid IL or missing references)
//IL_0a31: Expected O, but got Unknown
//IL_0a53: Unknown result type (might be due to invalid IL or missing references)
//IL_0a5d: Expected O, but got Unknown
//IL_0a58: Unknown result type (might be due to invalid IL or missing references)
//IL_0a62: Expected O, but got Unknown
//IL_0a82: Unknown result type (might be due to invalid IL or missing references)
//IL_0a8c: Expected O, but got Unknown
//IL_0aa9: Unknown result type (might be due to invalid IL or missing references)
//IL_0ab3: 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_0b31: Unknown result type (might be due to invalid IL or missing references)
//IL_0b3b: Expected O, but got Unknown
//IL_0b5f: Unknown result type (might be due to invalid IL or missing references)
//IL_0b69: Expected O, but got Unknown
//IL_0b82: Unknown result type (might be due to invalid IL or missing references)
//IL_0b8c: Expected O, but got Unknown
//IL_0b87: Unknown result type (might be due to invalid IL or missing references)
//IL_0b91: Expected O, but got Unknown
//IL_0bb1: Unknown result type (might be due to invalid IL or missing references)
//IL_0bbb: Expected O, but got Unknown
//IL_0bd8: Unknown result type (might be due to invalid IL or missing references)
//IL_0be2: Expected O, but got Unknown
//IL_0c06: Unknown result type (might be due to invalid IL or missing references)
//IL_0c10: Expected O, but got Unknown
//IL_0c2d: Unknown result type (might be due to invalid IL or missing references)
//IL_0c37: Expected O, but got Unknown
//IL_0c32: Unknown result type (might be due to invalid IL or missing references)
//IL_0c3c: 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_0c83: Unknown result type (might be due to invalid IL or missing references)
//IL_0c8d: Expected O, but got Unknown
//IL_0c88: Unknown result type (might be due to invalid IL or missing references)
//IL_0c92: Expected O, but got Unknown
//IL_0cb6: Unknown result type (might be due to invalid IL or missing references)
//IL_0cc0: Expected O, but got Unknown
//IL_0cd9: Unknown result type (might be due to invalid IL or missing references)
//IL_0ce3: Expected O, but got Unknown
//IL_0cde: Unknown result type (might be due to invalid IL or missing references)
//IL_0ce8: Expected O, but got Unknown
//IL_0d0c: Unknown result type (might be due to invalid IL or missing references)
//IL_0d16: Expected O, but got Unknown
//IL_0d31: Unknown result type (might be due to invalid IL or missing references)
//IL_0d3b: Expected O, but got Unknown
//IL_0d36: Unknown result type (might be due to invalid IL or missing references)
//IL_0d40: Expected O, but got Unknown
//IL_0d64: Unknown result type (might be due to invalid IL or missing references)
//IL_0d6e: Expected O, but got Unknown
//IL_0d87: Unknown result type (might be due to invalid IL or missing references)
//IL_0d91: Expected O, but got Unknown
//IL_0d8c: Unknown result type (might be due to invalid IL or missing references)
//IL_0d96: Expected O, but got Unknown
//IL_0dba: Unknown result type (might be due to invalid IL or missing references)
//IL_0dc4: Expected O, but got Unknown
//IL_0de6: Unknown result type (might be due to invalid IL or missing references)
//IL_0df0: Expected O, but got Unknown
//IL_0deb: Unknown result type (might be due to invalid IL or missing references)
//IL_0df5: Expected O, but got Unknown
//IL_0e19: Unknown result type (might be due to invalid IL or missing references)
//IL_0e23: Expected O, but got Unknown
//IL_0e90: Unknown result type (might be due to invalid IL or missing references)
//IL_0e9a: Expected O, but got Unknown
//IL_0ebe: Unknown result type (might be due to invalid IL or missing references)
//IL_0ec8: Expected O, but got Unknown
//IL_0ee1: Unknown result type (might be due to invalid IL or missing references)
//IL_0eeb: Expected O, but got Unknown
//IL_0ee6: Unknown result type (might be due to invalid IL or missing references)
//IL_0ef0: Expected O, but got Unknown
//IL_0f14: Unknown result type (might be due to invalid IL or missing references)
//IL_0f1e: Expected O, but got Unknown
//IL_0f3b: Unknown result type (might be due to invalid IL or missing references)
//IL_0f45: Expected O, but got Unknown
//IL_0f69: Unknown result type (might be due to invalid IL or missing references)
//IL_0f73: Expected O, but got Unknown
//IL_0f8c: Unknown result type (might be due to invalid IL or missing references)
//IL_0f96: Expected O, but got Unknown
//IL_0f91: Unknown result type (might be due to invalid IL or missing references)
//IL_0f9b: Expected O, but got Unknown
//IL_0fbf: Unknown result type (might be due to invalid IL or missing references)
//IL_0fc9: Expected O, but got Unknown
//IL_0fe6: Unknown result type (might be due to invalid IL or missing references)
//IL_0ff0: Expected O, but got Unknown
//IL_1014: Unknown result type (might be due to invalid IL or missing references)
//IL_101e: Expected O, but got Unknown
//IL_1037: Unknown result type (might be due to invalid IL or missing references)
//IL_1041: Expected O, but got Unknown
//IL_103c: Unknown result type (might be due to invalid IL or missing references)
//IL_1046: Expected O, but got Unknown
//IL_106a: Unknown result type (might be due to invalid IL or missing references)
//IL_1074: Expected O, but got Unknown
//IL_1098: Unknown result type (might be due to invalid IL or missing references)
//IL_10a2: Expected O, but got Unknown
//IL_0365: Unknown result type (might be due to invalid IL or missing references)
//IL_036f: Expected O, but got Unknown
//IL_0400: Unknown result type (might be due to invalid IL or missing references)
//IL_040a: Expected O, but got Unknown
//IL_042a: Unknown result type (might be due to invalid IL or missing references)
//IL_0434: Expected O, but got Unknown
try
{
switch (<>1__state)
{
default:
return false;
case 0:
<>1__state = -1;
<equipHotbarIf>5__1 = new MultiTokenWaiter(new Func<Token, bool>[5]
{
delegate(Token t)
{
IdentifierToken val4 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val4 != null && val4.Name == "has";
},
(Token t) => (int)t.Type == 80,
delegate(Token t)
{
IdentifierToken val3 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val3 != null && val3.Name == "slot";
},
(Token t) => (int)t.Type == 81,
(Token t) => (int)t.Type == 86
}, false, false);
<equipItem>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 == "_equip_item";
},
(Token t) => (int)t.Type == 80,
delegate(Token t)
{
IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val != null && val.Name == "item_data";
},
(Token t) => (int)t.Type == 82
}, false, false);
<newlineConsumer>5__3 = new TokenConsumer((Func<Token, bool>)((Token t) => (int)t.Type == 89));
<>s__4 = tokens.GetEnumerator();
<>1__state = -3;
goto IL_10ef;
case 1:
<>1__state = -3;
<newlineConsumer>5__3.Reset();
goto IL_04bf;
case 2:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)2u);
<>1__state = 3;
return true;
case 3:
<>1__state = -3;
<>2__current = new Token((TokenType)47, (uint?)null);
<>1__state = 4;
return true;
case 4:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("state");
<>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?)3u);
<>1__state = 7;
return true;
case 7:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("STATES");
<>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("FISHING");
<>1__state = 10;
return true;
case 10:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 11;
return true;
case 11:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("STATES");
<>1__state = 12;
return true;
case 12:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 13;
return true;
case 13:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("FISHING_CAST");
<>1__state = 14;
return true;
case 14:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 15;
return true;
case 15:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("STATES");
<>1__state = 16;
return true;
case 16:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 17;
return true;
case 17:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("FISHING_CHARGE");
<>1__state = 18;
return true;
case 18:
<>1__state = -3;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 19;
return true;
case 19:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)4u);
<>1__state = 20;
return true;
case 20:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("cam_push");
<>1__state = 21;
return true;
case 21:
<>1__state = -3;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 22;
return true;
case 22:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new RealVariant(-0.3, false));
<>1__state = 23;
return true;
case 23:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)4u);
<>1__state = 24;
return true;
case 24:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("locked");
<>1__state = 25;
return true;
case 25:
<>1__state = -3;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 26;
return true;
case 26:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new BoolVariant(false));
<>1__state = 27;
return true;
case 27:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)4u);
<>1__state = 28;
return true;
case 28:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("interact_prevention");
<>1__state = 29;
return true;
case 29:
<>1__state = -3;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 30;
return true;
case 30:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new BoolVariant(false));
<>1__state = 31;
return true;
case 31:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)4u);
<>1__state = 32;
return true;
case 32:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("rod_cast_dist");
<>1__state = 33;
return true;
case 33:
<>1__state = -3;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 34;
return true;
case 34:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new RealVariant(0.0, false));
<>1__state = 35;
return true;
case 35:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)4u);
<>1__state = 36;
return true;
case 36:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("animation_data");
<>1__state = 37;
return true;
case 37:
<>1__state = -3;
<>2__current = new Token((TokenType)76, (uint?)null);
<>1__state = 38;
return true;
case 38:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("bobber_visible"));
<>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)23, (uint?)null);
<>1__state = 41;
return true;
case 41:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new BoolVariant(false));
<>1__state = 42;
return true;
case 42:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)4u);
<>1__state = 43;
return true;
case 43:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("_enter_animation");
<>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("equip"));
<>1__state = 46;
return true;
case 46:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 47;
return true;
case 47:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new BoolVariant(false));
<>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 BoolVariant(false));
<>1__state = 50;
return true;
case 50:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 51;
return true;
case 51:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new IntVariant(0L, false));
<>1__state = 52;
return true;
case 52:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 53;
return true;
case 53:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new BoolVariant(false));
<>1__state = 54;
return true;
case 54:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 55;
return true;
case 55:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new RealVariant(1.5, false));
<>1__state = 56;
return true;
case 56:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 57;
return true;
case 57:
<>1__state = -3;
<newlineConsumer>5__3.SetReady();
goto IL_10e7;
case 58:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("skip_anim");
<>1__state = 59;
return true;
case 59:
<>1__state = -3;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 60;
return true;
case 60:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new BoolVariant(true));
<>1__state = 61;
return true;
case 61:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 62;
return true;
case 62:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("forced");
<>1__state = 63;
return true;
case 63:
<>1__state = -3;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 64;
return true;
case 64:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new BoolVariant(true));
<>1__state = 65;
return true;
case 65:
<>1__state = -3;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 66;
return true;
case 66:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("set_prev");
<>1__state = 67;
return true;
case 67:
<>1__state = -3;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 68;
return true;
case 68:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new BoolVariant(true));
<>1__state = 69;
return true;
case 69:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 70;
return true;
case 70:
<>1__state = -3;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 71;
return true;
case 71:
<>1__state = -3;
<newlineConsumer>5__3.SetReady();
goto IL_10e7;
case 72:
{
<>1__state = -3;
goto IL_10e7;
}
IL_10e7:
<token>5__5 = null;
goto IL_10ef;
IL_10ef:
do
{
if (((global::System.Collections.IEnumerator)<>s__4).MoveNext())
{
<token>5__5 = <>s__4.Current;
continue;
}
<>m__Finally1();
<>s__4 = null;
return false;
}
while (<newlineConsumer>5__3.Check(<token>5__5));
if (<newlineConsumer>5__3.Ready)
{
<>2__current = <token>5__5;
<>1__state = 1;
return true;
}
goto IL_04bf;
IL_04bf:
if (<equipHotbarIf>5__1.Check(<token>5__5))
{
<>2__current = <token>5__5;
<>1__state = 2;
return true;
}
if (<equipItem>5__2.Check(<token>5__5))
{
<>2__current = <token>5__5;
<>1__state = 58;
return true;
}
<>2__current = <token>5__5;
<>1__state = 72;
return true;
}
}
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__4 != null)
{
((global::System.IDisposable)<>s__4).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__2 <Modify>d__;
if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId)
{
<>1__state = 0;
<Modify>d__ = this;
}
else
{
<Modify>d__ = new <Modify>d__2(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/Entities/Player/player.gdc";
}
[IteratorStateMachine(typeof(<Modify>d__2))]
public global::System.Collections.Generic.IEnumerable<Token> Modify(string path, global::System.Collections.Generic.IEnumerable<Token> tokens)
{
MultiTokenWaiter equipHotbarIf = new MultiTokenWaiter(new Func<Token, bool>[5]
{
delegate(Token t)
{
IdentifierToken val4 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val4 != null && val4.Name == "has";
},
(Token t) => (int)t.Type == 80,
delegate(Token t)
{
IdentifierToken val3 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val3 != null && val3.Name == "slot";
},
(Token t) => (int)t.Type == 81,
(Token t) => (int)t.Type == 86
}, false, false);
MultiTokenWaiter equipItem = new MultiTokenWaiter(new Func<Token, bool>[4]
{
delegate(Token t)
{
IdentifierToken val2 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val2 != null && val2.Name == "_equip_item";
},
(Token t) => (int)t.Type == 80,
delegate(Token t)
{
IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val != null && val.Name == "item_data";
},
(Token t) => (int)t.Type == 82
}, false, false);
TokenConsumer newlineConsumer = new TokenConsumer((Func<Token, bool>)((Token t) => (int)t.Type == 89));
global::System.Collections.Generic.IEnumerator<Token> enumerator = tokens.GetEnumerator();
try
{
while (((global::System.Collections.IEnumerator)enumerator).MoveNext())
{
Token token = enumerator.Current;
if (!newlineConsumer.Check(token))
{
if (newlineConsumer.Ready)
{
yield return token;
newlineConsumer.Reset();
}
if (equipHotbarIf.Check(token))
{
yield return token;
yield return new Token((TokenType)89, (uint?)2u);
yield return new Token((TokenType)47, (uint?)null);
yield return (Token)new IdentifierToken("state");
yield return new Token((TokenType)86, (uint?)null);
yield return new Token((TokenType)89, (uint?)3u);
yield return (Token)new IdentifierToken("STATES");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("FISHING");
yield return new Token((TokenType)82, (uint?)null);
yield return (Token)new IdentifierToken("STATES");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("FISHING_CAST");
yield return new Token((TokenType)82, (uint?)null);
yield return (Token)new IdentifierToken("STATES");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("FISHING_CHARGE");
yield return new Token((TokenType)86, (uint?)null);
yield return new Token((TokenType)89, (uint?)4u);
yield return (Token)new IdentifierToken("cam_push");
yield return new Token((TokenType)23, (uint?)null);
yield return (Token)new ConstantToken((Variant)new RealVariant(-0.3, false));
yield return new Token((TokenType)89, (uint?)4u);
yield return (Token)new IdentifierToken("locked");
yield return new Token((TokenType)23, (uint?)null);
yield return (Token)new ConstantToken((Variant)new BoolVariant(false));
yield return new Token((TokenType)89, (uint?)4u);
yield return (Token)new IdentifierToken("interact_prevention");
yield return new Token((TokenType)23, (uint?)null);
yield return (Token)new ConstantToken((Variant)new BoolVariant(false));
yield return new Token((TokenType)89, (uint?)4u);
yield return (Token)new IdentifierToken("rod_cast_dist");
yield return new Token((TokenType)23, (uint?)null);
yield return (Token)new ConstantToken((Variant)new RealVariant(0.0, false));
yield return new Token((TokenType)89, (uint?)4u);
yield return (Token)new IdentifierToken("animation_data");
yield return new Token((TokenType)76, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("bobber_visible"));
yield return new Token((TokenType)77, (uint?)null);
yield return new Token((TokenType)23, (uint?)null);
yield return (Token)new ConstantToken((Variant)new BoolVariant(false));
yield return new Token((TokenType)89, (uint?)4u);
yield return (Token)new IdentifierToken("_enter_animation");
yield return new Token((TokenType)80, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("equip"));
yield return new Token((TokenType)82, (uint?)null);
yield return (Token)new ConstantToken((Variant)new BoolVariant(false));
yield return new Token((TokenType)82, (uint?)null);
yield return (Token)new ConstantToken((Variant)new BoolVariant(false));
yield return new Token((TokenType)82, (uint?)null);
yield return (Token)new ConstantToken((Variant)new IntVariant(0L, false));
yield return new Token((TokenType)82, (uint?)null);
yield return (Token)new ConstantToken((Variant)new BoolVariant(false));
yield return new Token((TokenType)82, (uint?)null);
yield return (Token)new ConstantToken((Variant)new RealVariant(1.5, false));
yield return new Token((TokenType)81, (uint?)null);
newlineConsumer.SetReady();
}
else if (equipItem.Check(token))
{
yield return token;
yield return (Token)new IdentifierToken("skip_anim");
yield return new Token((TokenType)23, (uint?)null);
yield return (Token)new ConstantToken((Variant)new BoolVariant(true));
yield return new Token((TokenType)82, (uint?)null);
yield return (Token)new IdentifierToken("forced");
yield return new Token((TokenType)23, (uint?)null);
yield return (Token)new ConstantToken((Variant)new BoolVariant(true));
yield return new Token((TokenType)82, (uint?)null);
yield return (Token)new IdentifierToken("set_prev");
yield return new Token((TokenType)23, (uint?)null);
yield return (Token)new ConstantToken((Variant)new BoolVariant(true));
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)86, (uint?)null);
newlineConsumer.SetReady();
}
else
{
yield return token;
}
}
}
}
finally
{
((global::System.IDisposable)enumerator)?.Dispose();
}
}
}
}