using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using GDWeave;
using GDWeave.Godot;
using GDWeave.Godot.Variants;
using GDWeave.Modding;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(/*Could not decode attribute arguments.*/)]
[assembly: TargetFramework(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
[assembly: AssemblyCompany("WebSwimming")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("WebSwimming")]
[assembly: AssemblyTitle("WebSwimming")]
[assembly: AssemblyVersion("1.0.0.0")]
[module: RefSafetyRules(11)]
namespace WebSwimming;
public class Mod : IMod, global::System.IDisposable
{
public Mod(IModInterface modInterface)
{
modInterface.RegisterScriptMod((IScriptMod)(object)new PlayerDataScriptMod());
modInterface.RegisterScriptMod((IScriptMod)(object)new PlayerScriptMod());
}
public void Dispose()
{
}
}
internal class PlayerDataScriptMod : 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 PlayerDataScriptMod <>4__this;
private MultiTokenWaiter <topOfFile>5__1;
private global::System.Collections.Generic.IEnumerator<Token> <>s__2;
private Token <token>5__3;
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) > 7u)
{
return;
}
try
{
}
finally
{
<>m__Finally1();
}
}
private bool MoveNext()
{
//IL_013b: Unknown result type (might be due to invalid IL or missing references)
//IL_0145: Expected O, but got Unknown
//IL_0161: Unknown result type (might be due to invalid IL or missing references)
//IL_016b: Expected O, but got Unknown
//IL_018d: Unknown result type (might be due to invalid IL or missing references)
//IL_0197: Expected O, but got Unknown
//IL_01b9: Unknown result type (might be due to invalid IL or missing references)
//IL_01c3: Expected O, but got Unknown
//IL_01df: Unknown result type (might be due to invalid IL or missing references)
//IL_01e9: Expected O, but got Unknown
//IL_020b: Unknown result type (might be due to invalid IL or missing references)
//IL_0215: Expected O, but got Unknown
//IL_00b9: Unknown result type (might be due to invalid IL or missing references)
//IL_00c3: Expected O, but got Unknown
try
{
switch (<>1__state)
{
default:
return false;
case 0:
<>1__state = -1;
<topOfFile>5__1 = new MultiTokenWaiter(new Func<Token, bool>[2]
{
(Token t) => (int)t.Type == 89,
(Token t) => (int)t.Type == 89
}, false, true);
<>s__2 = tokens.GetEnumerator();
<>1__state = -3;
break;
case 1:
<>1__state = -3;
<>2__current = new Token((TokenType)66, (uint?)null);
<>1__state = 2;
return true;
case 2:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("_swim_start");
<>1__state = 3;
return true;
case 3:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)null);
<>1__state = 4;
return true;
case 4:
<>1__state = -3;
<>2__current = new Token((TokenType)66, (uint?)null);
<>1__state = 5;
return true;
case 5:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("_swim_stop");
<>1__state = 6;
return true;
case 6:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)null);
<>1__state = 7;
return true;
case 7:
<>1__state = -3;
goto IL_024c;
case 8:
{
<>1__state = -3;
goto IL_024c;
}
IL_024c:
<token>5__3 = null;
break;
}
if (((global::System.Collections.IEnumerator)<>s__2).MoveNext())
{
<token>5__3 = <>s__2.Current;
if (<topOfFile>5__1.Check(<token>5__3))
{
<>2__current = <token>5__3;
<>1__state = 1;
return true;
}
<>2__current = <token>5__3;
<>1__state = 8;
return true;
}
<>m__Finally1();
<>s__2 = 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__2 != null)
{
((global::System.IDisposable)<>s__2).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/Singletons/playerdata.gdc";
}
[IteratorStateMachine(typeof(<Modify>d__1))]
public global::System.Collections.Generic.IEnumerable<Token> Modify(string path, global::System.Collections.Generic.IEnumerable<Token> tokens)
{
MultiTokenWaiter topOfFile = new MultiTokenWaiter(new Func<Token, bool>[2]
{
(Token t) => (int)t.Type == 89,
(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 (topOfFile.Check(token))
{
yield return token;
yield return new Token((TokenType)66, (uint?)null);
yield return (Token)new IdentifierToken("_swim_start");
yield return new Token((TokenType)89, (uint?)null);
yield return new Token((TokenType)66, (uint?)null);
yield return (Token)new IdentifierToken("_swim_stop");
yield return new Token((TokenType)89, (uint?)null);
}
else
{
yield return token;
}
}
}
finally
{
((global::System.IDisposable)enumerator)?.Dispose();
}
}
}
internal class PlayerScriptMod : 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 PlayerScriptMod <>4__this;
private MultiTokenWaiter <topOfFile>5__1;
private MultiTokenWaiter <water>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) > 49u)
{
return;
}
try
{
}
finally
{
<>m__Finally1();
}
}
private bool MoveNext()
{
//IL_0378: Unknown result type (might be due to invalid IL or missing references)
//IL_0382: Expected O, but got Unknown
//IL_039e: Unknown result type (might be due to invalid IL or missing references)
//IL_03a8: Expected O, but got Unknown
//IL_03ca: Unknown result type (might be due to invalid IL or missing references)
//IL_03d4: Expected O, but got Unknown
//IL_03ec: Unknown result type (might be due to invalid IL or missing references)
//IL_03f6: Expected O, but got Unknown
//IL_03f1: Unknown result type (might be due to invalid IL or missing references)
//IL_03fb: Expected O, but got Unknown
//IL_041d: Unknown result type (might be due to invalid IL or missing references)
//IL_0427: Expected O, but got Unknown
//IL_048c: Unknown result type (might be due to invalid IL or missing references)
//IL_0496: Expected O, but got Unknown
//IL_04b2: Unknown result type (might be due to invalid IL or missing references)
//IL_04bc: Expected O, but got Unknown
//IL_04df: Unknown result type (might be due to invalid IL or missing references)
//IL_04e9: Expected O, but got Unknown
//IL_0506: Unknown result type (might be due to invalid IL or missing references)
//IL_0510: Expected O, but got Unknown
//IL_0533: Unknown result type (might be due to invalid IL or missing references)
//IL_053d: Expected O, but got Unknown
//IL_055a: Unknown result type (might be due to invalid IL or missing references)
//IL_0564: Expected O, but got Unknown
//IL_055f: Unknown result type (might be due to invalid IL or missing references)
//IL_0569: Expected O, but got Unknown
//IL_058c: Unknown result type (might be due to invalid IL or missing references)
//IL_0596: Expected O, but got Unknown
//IL_05b9: Unknown result type (might be due to invalid IL or missing references)
//IL_05c3: Expected O, but got Unknown
//IL_05e3: Unknown result type (might be due to invalid IL or missing references)
//IL_05ed: Expected O, but got Unknown
//IL_0610: Unknown result type (might be due to invalid IL or missing references)
//IL_061a: Expected O, but got Unknown
//IL_063d: Unknown result type (might be due to invalid IL or missing references)
//IL_0647: Expected O, but got Unknown
//IL_0664: Unknown result type (might be due to invalid IL or missing references)
//IL_066e: Expected O, but got Unknown
//IL_0691: Unknown result type (might be due to invalid IL or missing references)
//IL_069b: Expected O, but got Unknown
//IL_06bb: Unknown result type (might be due to invalid IL or missing references)
//IL_06c5: Expected O, but got Unknown
//IL_06e2: Unknown result type (might be due to invalid IL or missing references)
//IL_06ec: Expected O, but got Unknown
//IL_070f: Unknown result type (might be due to invalid IL or missing references)
//IL_0719: Expected O, but got Unknown
//IL_0732: Unknown result type (might be due to invalid IL or missing references)
//IL_073c: Expected O, but got Unknown
//IL_0737: Unknown result type (might be due to invalid IL or missing references)
//IL_0741: Expected O, but got Unknown
//IL_0761: Unknown result type (might be due to invalid IL or missing references)
//IL_076b: Expected O, but got Unknown
//IL_0788: Unknown result type (might be due to invalid IL or missing references)
//IL_0792: Expected O, but got Unknown
//IL_07b5: Unknown result type (might be due to invalid IL or missing references)
//IL_07bf: Expected O, but got Unknown
//IL_07dc: Unknown result type (might be due to invalid IL or missing references)
//IL_07e6: Expected O, but got Unknown
//IL_0809: Unknown result type (might be due to invalid IL or missing references)
//IL_0813: Expected O, but got Unknown
//IL_0830: Unknown result type (might be due to invalid IL or missing references)
//IL_083a: Expected O, but got Unknown
//IL_0835: Unknown result type (might be due to invalid IL or missing references)
//IL_083f: Expected O, but got Unknown
//IL_0862: Unknown result type (might be due to invalid IL or missing references)
//IL_086c: Expected O, but got Unknown
//IL_088c: Unknown result type (might be due to invalid IL or missing references)
//IL_0896: Expected O, but got Unknown
//IL_08b9: Unknown result type (might be due to invalid IL or missing references)
//IL_08c3: Expected O, but got Unknown
//IL_08e0: Unknown result type (might be due to invalid IL or missing references)
//IL_08ea: Expected O, but got Unknown
//IL_090d: Unknown result type (might be due to invalid IL or missing references)
//IL_0917: Expected O, but got Unknown
//IL_0937: Unknown result type (might be due to invalid IL or missing references)
//IL_0941: Expected O, but got Unknown
//IL_095e: Unknown result type (might be due to invalid IL or missing references)
//IL_0968: Expected O, but got Unknown
//IL_098b: Unknown result type (might be due to invalid IL or missing references)
//IL_0995: Expected O, but got Unknown
//IL_09ae: Unknown result type (might be due to invalid IL or missing references)
//IL_09b8: Expected O, but got Unknown
//IL_09b3: Unknown result type (might be due to invalid IL or missing references)
//IL_09bd: Expected O, but got Unknown
//IL_09dd: Unknown result type (might be due to invalid IL or missing references)
//IL_09e7: Expected O, but got Unknown
//IL_0a04: Unknown result type (might be due to invalid IL or missing references)
//IL_0a0e: Expected O, but got Unknown
//IL_0a31: Unknown result type (might be due to invalid IL or missing references)
//IL_0a3b: 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_0a85: Unknown result type (might be due to invalid IL or missing references)
//IL_0a8f: Expected O, but got Unknown
//IL_0aac: Unknown result type (might be due to invalid IL or missing references)
//IL_0ab6: 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_0b08: Unknown result type (might be due to invalid IL or missing references)
//IL_0b12: Expected O, but got Unknown
//IL_0b35: Unknown result type (might be due to invalid IL or missing references)
//IL_0b3f: 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_0239: Unknown result type (might be due to invalid IL or missing references)
//IL_0243: Expected O, but got Unknown
//IL_02f6: Unknown result type (might be due to invalid IL or missing references)
//IL_0300: Expected O, but got Unknown
try
{
switch (<>1__state)
{
default:
return false;
case 0:
<>1__state = -1;
<topOfFile>5__1 = new MultiTokenWaiter(new Func<Token, bool>[2]
{
(Token t) => (int)t.Type == 89,
(Token t) => (int)t.Type == 89
}, false, true);
<water>5__2 = new MultiTokenWaiter(new Func<Token, bool>[5]
{
(Token t) => (int)t.Type == 48,
delegate(Token t)
{
IdentifierToken val2 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val2 != null && val2.Name == "_on_water_detect_area_entered";
},
delegate(Token t)
{
IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val != null && val.Name == "gravity_disable";
},
(Token t) => (int)t.Type == 46,
(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("swimming");
<>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 ConstantToken((Variant)new BoolVariant(false));
<>1__state = 5;
return true;
case 5:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)null);
<>1__state = 6;
return true;
case 6:
<>1__state = -3;
goto IL_0ba2;
case 7:
<>1__state = -3;
<>2__current = new Token((TokenType)38, (uint?)null);
<>1__state = 8;
return true;
case 8:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("area");
<>1__state = 9;
return true;
case 9:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 10;
return true;
case 10:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("is_in_group");
<>1__state = 11;
return true;
case 11:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 12;
return true;
case 12:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("water"));
<>1__state = 13;
return true;
case 13:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 14;
return true;
case 14:
<>1__state = -3;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 15;
return true;
case 15:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)2u);
<>1__state = 16;
return true;
case 16:
<>1__state = -3;
<>2__current = new Token((TokenType)38, (uint?)null);
<>1__state = 17;
return true;
case 17:
<>1__state = -3;
<>2__current = new Token((TokenType)15, (uint?)null);
<>1__state = 18;
return true;
case 18:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("swimming");
<>1__state = 19;
return true;
case 19:
<>1__state = -3;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 20;
return true;
case 20:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)3u);
<>1__state = 21;
return true;
case 21:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("swimming");
<>1__state = 22;
return true;
case 22:
<>1__state = -3;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 23;
return true;
case 23:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new BoolVariant(true));
<>1__state = 24;
return true;
case 24:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)3u);
<>1__state = 25;
return true;
case 25:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("PlayerData");
<>1__state = 26;
return true;
case 26:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 27;
return true;
case 27:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("emit_signal");
<>1__state = 28;
return true;
case 28:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 29;
return true;
case 29:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("_swim_start"));
<>1__state = 30;
return true;
case 30:
<>1__state = -3;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 31;
return true;
case 31:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 32;
return true;
case 32:
<>1__state = -3;
<>2__current = new Token((TokenType)39, (uint?)null);
<>1__state = 33;
return true;
case 33:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("swimming");
<>1__state = 34;
return true;
case 34:
<>1__state = -3;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 35;
return true;
case 35:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)2u);
<>1__state = 36;
return true;
case 36:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("swimming");
<>1__state = 37;
return true;
case 37:
<>1__state = -3;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 38;
return true;
case 38:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new BoolVariant(false));
<>1__state = 39;
return true;
case 39:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)2u);
<>1__state = 40;
return true;
case 40:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("PlayerData");
<>1__state = 41;
return true;
case 41:
<>1__state = -3;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 42;
return true;
case 42:
<>1__state = -3;
<>2__current = (Token)new IdentifierToken("emit_signal");
<>1__state = 43;
return true;
case 43:
<>1__state = -3;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 44;
return true;
case 44:
<>1__state = -3;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("_swim_stop"));
<>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)46, (uint?)null);
<>1__state = 48;
return true;
case 48:
<>1__state = -3;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 49;
return true;
case 49:
<>1__state = -3;
goto IL_0ba2;
case 50:
{
<>1__state = -3;
goto IL_0ba2;
}
IL_0ba2:
<token>5__4 = null;
break;
}
if (((global::System.Collections.IEnumerator)<>s__3).MoveNext())
{
<token>5__4 = <>s__3.Current;
if (<topOfFile>5__1.Check(<token>5__4))
{
<>2__current = <token>5__4;
<>1__state = 1;
return true;
}
if (<water>5__2.Check(<token>5__4))
{
<>2__current = <token>5__4;
<>1__state = 7;
return true;
}
<>2__current = <token>5__4;
<>1__state = 50;
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/Entities/Player/player.gdc";
}
[IteratorStateMachine(typeof(<Modify>d__1))]
public global::System.Collections.Generic.IEnumerable<Token> Modify(string path, global::System.Collections.Generic.IEnumerable<Token> tokens)
{
MultiTokenWaiter topOfFile = new MultiTokenWaiter(new Func<Token, bool>[2]
{
(Token t) => (int)t.Type == 89,
(Token t) => (int)t.Type == 89
}, false, true);
MultiTokenWaiter water = new MultiTokenWaiter(new Func<Token, bool>[5]
{
(Token t) => (int)t.Type == 48,
delegate(Token t)
{
IdentifierToken val2 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val2 != null && val2.Name == "_on_water_detect_area_entered";
},
delegate(Token t)
{
IdentifierToken val = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val != null && val.Name == "gravity_disable";
},
(Token t) => (int)t.Type == 46,
(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 (topOfFile.Check(token))
{
yield return token;
yield return new Token((TokenType)59, (uint?)null);
yield return (Token)new IdentifierToken("swimming");
yield return new Token((TokenType)23, (uint?)null);
yield return (Token)new ConstantToken((Variant)new BoolVariant(false));
yield return new Token((TokenType)89, (uint?)null);
}
else if (water.Check(token))
{
yield return token;
yield return new Token((TokenType)38, (uint?)null);
yield return (Token)new IdentifierToken("area");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("is_in_group");
yield return new Token((TokenType)80, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("water"));
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)86, (uint?)null);
yield return new Token((TokenType)89, (uint?)2u);
yield return new Token((TokenType)38, (uint?)null);
yield return new Token((TokenType)15, (uint?)null);
yield return (Token)new IdentifierToken("swimming");
yield return new Token((TokenType)86, (uint?)null);
yield return new Token((TokenType)89, (uint?)3u);
yield return (Token)new IdentifierToken("swimming");
yield return new Token((TokenType)23, (uint?)null);
yield return (Token)new ConstantToken((Variant)new BoolVariant(true));
yield return new Token((TokenType)89, (uint?)3u);
yield return (Token)new IdentifierToken("PlayerData");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("emit_signal");
yield return new Token((TokenType)80, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("_swim_start"));
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)89, (uint?)1u);
yield return new Token((TokenType)39, (uint?)null);
yield return (Token)new IdentifierToken("swimming");
yield return new Token((TokenType)86, (uint?)null);
yield return new Token((TokenType)89, (uint?)2u);
yield return (Token)new IdentifierToken("swimming");
yield return new Token((TokenType)23, (uint?)null);
yield return (Token)new ConstantToken((Variant)new BoolVariant(false));
yield return new Token((TokenType)89, (uint?)2u);
yield return (Token)new IdentifierToken("PlayerData");
yield return new Token((TokenType)84, (uint?)null);
yield return (Token)new IdentifierToken("emit_signal");
yield return new Token((TokenType)80, (uint?)null);
yield return (Token)new ConstantToken((Variant)new StringVariant("_swim_stop"));
yield return new Token((TokenType)81, (uint?)null);
yield return new Token((TokenType)89, (uint?)1u);
yield return new Token((TokenType)46, (uint?)null);
yield return new Token((TokenType)89, (uint?)1u);
}
else
{
yield return token;
}
}
}
finally
{
((global::System.IDisposable)enumerator)?.Dispose();
}
}
}