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 WebfishingPlus.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("WebfishingPlus")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.2.1.0")]
[assembly: AssemblyInformationalVersion("1.2.1.0+d3e1bb8c75b988e90aec89a283617742f0a4e5c4")]
[assembly: AssemblyProduct("WebfishingPlus")]
[assembly: AssemblyTitle("WebfishingPlus")]
[assembly: AssemblyVersion("1.2.1.0")]
[module: RefSafetyRules(11)]
namespace WebfishingPlus
{
public class Config
{
[JsonInclude]
public bool ControllerSupport;
[JsonInclude]
public bool ControllerVibration = true;
[JsonInclude]
public double ControllerVibrationStrength = 1.0;
[JsonInclude]
public bool ControllerVibrationLand = true;
[JsonInclude]
public bool ControllerVibrationReel = true;
[JsonInclude]
public bool ControllerVibrationYank = true;
[JsonInclude]
public bool MenuTweaks = true;
[JsonInclude]
public bool SortInventory;
[JsonInclude]
public bool FixHotbar = true;
[JsonInclude]
public bool NetcodeImprover;
}
public class Mod : IMod, global::System.IDisposable
{
private static readonly Version VersionObject = Assembly.GetExecutingAssembly().GetName().Version;
private static readonly string Version = $"v{VersionObject.Major}.{VersionObject.Minor}.{VersionObject.Build}";
public static Config Config = null;
public Mod(IModInterface modInterface)
{
Config = modInterface.ReadConfig<Config>();
if (Config.ControllerSupport)
{
modInterface.RegisterScriptMod((IScriptMod)(object)new ControllerInput.PlayerModifier());
modInterface.RegisterScriptMod((IScriptMod)(object)new ControllerInput.Fishing3Modifier());
modInterface.RegisterScriptMod((IScriptMod)(object)new ControllerInput.InputRemapButtonModifier());
}
if (Config.MenuTweaks)
{
modInterface.RegisterScriptMod((IScriptMod)(object)new MenuTweaks());
}
if (Config.FixHotbar)
{
modInterface.RegisterScriptMod((IScriptMod)(object)new FixHotbar());
}
if (Config.SortInventory)
{
modInterface.RegisterScriptMod((IScriptMod)(object)new InventorySorter());
}
if (Config.NetcodeImprover)
{
modInterface.RegisterScriptMod((IScriptMod)(object)new NetcodeImprover());
}
}
public void Dispose()
{
}
}
}
namespace WebfishingPlus.Mods
{
public class ControllerInput
{
private enum JoyAxis
{
LeftX,
LeftY
}
private enum JoyButton
{
FaceDown = 0,
FaceLeft = 2,
Select = 10,
DPadUp = 12,
DPadLeft = 14,
DPadRight = 15
}
public class PlayerModifier : IScriptMod
{
[CompilerGenerated]
private sealed class <IsActionJustPressedShort>d__16 : 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 action;
public string <>3__action;
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 <IsActionJustPressedShort>d__16(int <>1__state)
{
this.<>1__state = <>1__state;
<>l__initialThreadId = Environment.CurrentManagedThreadId;
}
[DebuggerHidden]
void global::System.IDisposable.Dispose()
{
}
private bool MoveNext()
{
//IL_0038: Unknown result type (might be due to invalid IL or missing references)
//IL_0042: Expected O, but got Unknown
//IL_005e: Unknown result type (might be due to invalid IL or missing references)
//IL_0068: Expected O, but got Unknown
//IL_007e: Unknown result type (might be due to invalid IL or missing references)
//IL_0088: Expected O, but got Unknown
//IL_00a4: Unknown result type (might be due to invalid IL or missing references)
//IL_00ae: Expected O, but got Unknown
//IL_00c5: Unknown result type (might be due to invalid IL or missing references)
//IL_00cf: Expected O, but got Unknown
//IL_00ca: Unknown result type (might be due to invalid IL or missing references)
//IL_00d4: Expected O, but got Unknown
//IL_00f0: Unknown result type (might be due to invalid IL or missing references)
//IL_00fa: Expected O, but got Unknown
switch (<>1__state)
{
default:
return false;
case 0:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("Input");
<>1__state = 1;
return true;
case 1:
<>1__state = -1;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 2;
return true;
case 2:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("is_action_just_pressed");
<>1__state = 3;
return true;
case 3:
<>1__state = -1;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 4;
return true;
case 4:
<>1__state = -1;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant(action));
<>1__state = 5;
return true;
case 5:
<>1__state = -1;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 6;
return true;
case 6:
<>1__state = -1;
return false;
}
}
bool global::System.Collections.IEnumerator.MoveNext()
{
//ILSpy generated this explicit interface implementation from .override directive in MoveNext
return this.MoveNext();
}
[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()
{
<IsActionJustPressedShort>d__16 <IsActionJustPressedShort>d__;
if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId)
{
<>1__state = 0;
<IsActionJustPressedShort>d__ = this;
}
else
{
<IsActionJustPressedShort>d__ = new <IsActionJustPressedShort>d__16(0);
}
<IsActionJustPressedShort>d__.action = <>3__action;
return <IsActionJustPressedShort>d__;
}
[DebuggerHidden]
global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator()
{
return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable<Token>)this).GetEnumerator();
}
}
[CompilerGenerated]
private sealed class <IsActionPressedShort>d__15 : 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 action;
public string <>3__action;
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 <IsActionPressedShort>d__15(int <>1__state)
{
this.<>1__state = <>1__state;
<>l__initialThreadId = Environment.CurrentManagedThreadId;
}
[DebuggerHidden]
void global::System.IDisposable.Dispose()
{
}
private bool MoveNext()
{
//IL_0038: Unknown result type (might be due to invalid IL or missing references)
//IL_0042: Expected O, but got Unknown
//IL_005e: Unknown result type (might be due to invalid IL or missing references)
//IL_0068: Expected O, but got Unknown
//IL_007e: Unknown result type (might be due to invalid IL or missing references)
//IL_0088: Expected O, but got Unknown
//IL_00a4: Unknown result type (might be due to invalid IL or missing references)
//IL_00ae: Expected O, but got Unknown
//IL_00c5: Unknown result type (might be due to invalid IL or missing references)
//IL_00cf: Expected O, but got Unknown
//IL_00ca: Unknown result type (might be due to invalid IL or missing references)
//IL_00d4: Expected O, but got Unknown
//IL_00f0: Unknown result type (might be due to invalid IL or missing references)
//IL_00fa: Expected O, but got Unknown
switch (<>1__state)
{
default:
return false;
case 0:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("Input");
<>1__state = 1;
return true;
case 1:
<>1__state = -1;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 2;
return true;
case 2:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("is_action_pressed");
<>1__state = 3;
return true;
case 3:
<>1__state = -1;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 4;
return true;
case 4:
<>1__state = -1;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant(action));
<>1__state = 5;
return true;
case 5:
<>1__state = -1;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 6;
return true;
case 6:
<>1__state = -1;
return false;
}
}
bool global::System.Collections.IEnumerator.MoveNext()
{
//ILSpy generated this explicit interface implementation from .override directive in MoveNext
return this.MoveNext();
}
[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()
{
<IsActionPressedShort>d__15 <IsActionPressedShort>d__;
if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId)
{
<>1__state = 0;
<IsActionPressedShort>d__ = this;
}
else
{
<IsActionPressedShort>d__ = new <IsActionPressedShort>d__15(0);
}
<IsActionPressedShort>d__.action = <>3__action;
return <IsActionPressedShort>d__;
}
[DebuggerHidden]
global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator()
{
return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable<Token>)this).GetEnumerator();
}
}
[CompilerGenerated]
private sealed class <Modify>d__5 : global::System.Collections.Generic.IEnumerable<Token>, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator<Token>, global::System.Collections.IEnumerator, global::System.IDisposable
{
private int <>1__state;
private Token <>2__current;
private int <>l__initialThreadId;
private global::System.Collections.Generic.IEnumerable<Token> tokens;
public global::System.Collections.Generic.IEnumerable<Token> <>3__tokens;
public PlayerModifier <>4__this;
private MultiTokenWaiter <extendsWaiter>5__2;
private TokenWaiter <bind5Waiter>5__3;
private MultiTokenWaiter <sprintingWaiter>5__4;
private TokenWaiter <inputWaiter>5__5;
private TokenWaiter <processMovementWaiter>5__6;
private MultiTokenWaiter <rodCastDistWaiter>5__7;
private global::System.Collections.Generic.IEnumerator<Token> <>7__wrap7;
private global::System.Collections.Generic.IEnumerator<Token> <>7__wrap8;
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__5(int <>1__state)
{
this.<>1__state = <>1__state;
<>l__initialThreadId = Environment.CurrentManagedThreadId;
}
[DebuggerHidden]
void global::System.IDisposable.Dispose()
{
int num = <>1__state;
if ((uint)(num - -12) > 9u && (uint)(num - 1) > 15u)
{
return;
}
try
{
switch (num)
{
case -4:
case 2:
try
{
break;
}
finally
{
<>m__Finally2();
}
case -5:
case 4:
try
{
break;
}
finally
{
<>m__Finally3();
}
case -6:
case 5:
try
{
break;
}
finally
{
<>m__Finally4();
}
case -7:
case 6:
try
{
break;
}
finally
{
<>m__Finally5();
}
case -8:
case 8:
try
{
break;
}
finally
{
<>m__Finally6();
}
case -9:
case 9:
try
{
break;
}
finally
{
<>m__Finally7();
}
case -10:
case 11:
try
{
break;
}
finally
{
<>m__Finally8();
}
case -11:
case 13:
try
{
break;
}
finally
{
<>m__Finally9();
}
case -12:
case 15:
try
{
break;
}
finally
{
<>m__Finally10();
}
case -3:
case -2:
case -1:
case 0:
case 1:
case 3:
case 7:
case 10:
case 12:
case 14:
break;
}
}
finally
{
<>m__Finally1();
}
}
private bool MoveNext()
{
//IL_00b3: Unknown result type (might be due to invalid IL or missing references)
//IL_00bd: Expected O, but got Unknown
//IL_00de: Unknown result type (might be due to invalid IL or missing references)
//IL_00e8: Expected O, but got Unknown
//IL_0157: Unknown result type (might be due to invalid IL or missing references)
//IL_0161: Expected O, but got Unknown
//IL_0182: Unknown result type (might be due to invalid IL or missing references)
//IL_018c: Expected O, but got Unknown
//IL_01ad: Unknown result type (might be due to invalid IL or missing references)
//IL_01b7: Expected O, but got Unknown
//IL_0316: Unknown result type (might be due to invalid IL or missing references)
//IL_0320: Expected O, but got Unknown
try
{
int num = <>1__state;
PlayerModifier playerModifier = <>4__this;
switch (num)
{
default:
return false;
case 0:
<>1__state = -1;
<extendsWaiter>5__2 = new MultiTokenWaiter(new Func<Token, bool>[2]
{
(Token t) => (int)t.Type == 51,
(Token t) => (int)t.Type == 89
}, false, true);
<bind5Waiter>5__3 = new TokenWaiter((Func<Token, bool>)delegate(Token t)
{
//IL_0001: Unknown result type (might be due to invalid IL or missing references)
//IL_0008: Invalid comparison between Unknown and I4
if ((int)t.Type == 89)
{
uint? associatedData4 = t.AssociatedData;
if (associatedData4.HasValue)
{
return associatedData4.GetValueOrDefault() == 1;
}
return false;
}
return false;
}, true);
<sprintingWaiter>5__4 = new MultiTokenWaiter(new Func<Token, bool>[3]
{
delegate(Token t)
{
IdentifierToken val13 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val13 != null && val13.Name == "slow_walking";
},
delegate(Token t)
{
ConstantToken val11 = (ConstantToken)(object)((t is ConstantToken) ? t : null);
if (val11 != null)
{
Variant value4 = val11.Value;
StringVariant val12 = (StringVariant)(object)((value4 is StringVariant) ? value4 : null);
if (val12 != null)
{
return val12.Value == "move_walk";
}
}
return false;
},
delegate(Token t)
{
//IL_0001: Unknown result type (might be due to invalid IL or missing references)
//IL_0008: Invalid comparison between Unknown and I4
if ((int)t.Type == 89)
{
uint? associatedData3 = t.AssociatedData;
if (associatedData3.HasValue)
{
return associatedData3.GetValueOrDefault() == 1;
}
return false;
}
return false;
}
}, false, true);
<inputWaiter>5__5 = new TokenWaiter((Func<Token, bool>)delegate(Token t)
{
//IL_0001: Unknown result type (might be due to invalid IL or missing references)
//IL_0008: Invalid comparison between Unknown and I4
if ((int)t.Type == 89)
{
uint? associatedData2 = t.AssociatedData;
if (associatedData2.HasValue)
{
return associatedData2.GetValueOrDefault() == 1;
}
return false;
}
return false;
}, true);
<processMovementWaiter>5__6 = new TokenWaiter((Func<Token, bool>)delegate(Token t)
{
//IL_0001: Unknown result type (might be due to invalid IL or missing references)
//IL_0008: Invalid comparison between Unknown and I4
if ((int)t.Type == 89)
{
uint? associatedData = t.AssociatedData;
if (associatedData.HasValue)
{
return associatedData.GetValueOrDefault() == 1;
}
return false;
}
return false;
}, true);
<rodCastDistWaiter>5__7 = new MultiTokenWaiter(new Func<Token, bool>[10]
{
delegate(Token t)
{
IdentifierToken val10 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val10 != null && val10.Name == "rod_cast_dist";
},
(Token t) => (int)t.Type == 25,
delegate(Token t)
{
ConstantToken val8 = (ConstantToken)(object)((t is ConstantToken) ? t : null);
if (val8 != null)
{
Variant value3 = val8.Value;
RealVariant val9 = (RealVariant)(object)((value3 is RealVariant) ? value3 : null);
if (val9 != null)
{
return val9.Value == 0.04;
}
}
return false;
},
(Token t) => (int)t.Type == 38,
delegate(Token t)
{
IdentifierToken val7 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val7 != null && val7.Name == "Input";
},
(Token t) => (int)t.Type == 84,
delegate(Token t)
{
IdentifierToken val6 = (IdentifierToken)(object)((t is IdentifierToken) ? t : null);
return val6 != null && val6.Name == "is_action_pressed";
},
(Token t) => (int)t.Type == 80,
delegate(Token t)
{
ConstantToken val4 = (ConstantToken)(object)((t is ConstantToken) ? t : null);
if (val4 != null)
{
Variant value2 = val4.Value;
StringVariant val5 = (StringVariant)(object)((value2 is StringVariant) ? value2 : null);
if (val5 != null)
{
return val5.Value == "move_sprint";
}
}
return false;
},
(Token t) => (int)t.Type == 81
}, false, false);
<>7__wrap7 = tokens.GetEnumerator();
<>1__state = -3;
break;
case 1:
<>1__state = -3;
<>7__wrap8 = playerModifier.PatchSetupPlayerVars().GetEnumerator();
<>1__state = -4;
goto IL_044e;
case 2:
<>1__state = -4;
goto IL_044e;
case 3:
<>1__state = -3;
<>7__wrap8 = playerModifier.PatchLook().GetEnumerator();
<>1__state = -5;
goto IL_04e1;
case 4:
<>1__state = -5;
goto IL_04e1;
case 5:
<>1__state = -6;
goto IL_0541;
case 6:
<>1__state = -7;
goto IL_05a1;
case 7:
<>1__state = -3;
<>7__wrap8 = playerModifier.PatchAnalogMovement().GetEnumerator();
<>1__state = -8;
goto IL_0634;
case 8:
<>1__state = -8;
goto IL_0634;
case 9:
<>1__state = -9;
goto IL_0695;
case 10:
<>1__state = -3;
<>7__wrap8 = playerModifier.PatchCheckController().GetEnumerator();
<>1__state = -10;
goto IL_072a;
case 11:
<>1__state = -10;
goto IL_072a;
case 12:
<>1__state = -3;
if (!Mod.Config.ControllerVibration || !Mod.Config.ControllerVibrationLand)
{
break;
}
<>7__wrap8 = playerModifier.PatchLandVibration().GetEnumerator();
<>1__state = -11;
goto IL_07dd;
case 13:
<>1__state = -11;
goto IL_07dd;
case 14:
<>1__state = -3;
<>7__wrap8 = playerModifier.PatchSprintReel().GetEnumerator();
<>1__state = -12;
goto IL_086c;
case 15:
<>1__state = -12;
goto IL_086c;
case 16:
{
<>1__state = -3;
break;
}
IL_086c:
if (((global::System.Collections.IEnumerator)<>7__wrap8).MoveNext())
{
Token current = <>7__wrap8.Current;
<>2__current = current;
<>1__state = 15;
return true;
}
<>m__Finally10();
<>7__wrap8 = null;
break;
IL_07dd:
if (((global::System.Collections.IEnumerator)<>7__wrap8).MoveNext())
{
Token current2 = <>7__wrap8.Current;
<>2__current = current2;
<>1__state = 13;
return true;
}
<>m__Finally9();
<>7__wrap8 = null;
break;
IL_04e1:
if (((global::System.Collections.IEnumerator)<>7__wrap8).MoveNext())
{
Token current3 = <>7__wrap8.Current;
<>2__current = current3;
<>1__state = 4;
return true;
}
<>m__Finally3();
<>7__wrap8 = null;
<>7__wrap8 = playerModifier.PatchZoomControl().GetEnumerator();
<>1__state = -6;
goto IL_0541;
IL_072a:
if (((global::System.Collections.IEnumerator)<>7__wrap8).MoveNext())
{
Token current4 = <>7__wrap8.Current;
<>2__current = current4;
<>1__state = 11;
return true;
}
<>m__Finally8();
<>7__wrap8 = null;
break;
IL_0541:
if (((global::System.Collections.IEnumerator)<>7__wrap8).MoveNext())
{
Token current5 = <>7__wrap8.Current;
<>2__current = current5;
<>1__state = 5;
return true;
}
<>m__Finally4();
<>7__wrap8 = null;
<>7__wrap8 = playerModifier.PatchHotbarControl().GetEnumerator();
<>1__state = -7;
goto IL_05a1;
IL_0634:
if (((global::System.Collections.IEnumerator)<>7__wrap8).MoveNext())
{
Token current6 = <>7__wrap8.Current;
<>2__current = current6;
<>1__state = 8;
return true;
}
<>m__Finally6();
<>7__wrap8 = null;
<>7__wrap8 = playerModifier.PatchToggleMovement().GetEnumerator();
<>1__state = -9;
goto IL_0695;
IL_05a1:
if (((global::System.Collections.IEnumerator)<>7__wrap8).MoveNext())
{
Token current7 = <>7__wrap8.Current;
<>2__current = current7;
<>1__state = 6;
return true;
}
<>m__Finally5();
<>7__wrap8 = null;
break;
IL_0695:
if (((global::System.Collections.IEnumerator)<>7__wrap8).MoveNext())
{
Token current8 = <>7__wrap8.Current;
<>2__current = current8;
<>1__state = 9;
return true;
}
<>m__Finally7();
<>7__wrap8 = null;
break;
IL_044e:
if (((global::System.Collections.IEnumerator)<>7__wrap8).MoveNext())
{
Token current9 = <>7__wrap8.Current;
<>2__current = current9;
<>1__state = 2;
return true;
}
<>m__Finally2();
<>7__wrap8 = null;
break;
}
if (((global::System.Collections.IEnumerator)<>7__wrap7).MoveNext())
{
Token current10 = <>7__wrap7.Current;
ConstantToken val = (ConstantToken)(object)((current10 is ConstantToken) ? current10 : null);
if (val != null)
{
Variant value = val.Value;
StringVariant val2 = (StringVariant)(object)((value is StringVariant) ? value : null);
if (val2 != null && val2.Value == "bind_5")
{
<bind5Waiter>5__3.SetReady();
}
}
IdentifierToken val3 = (IdentifierToken)(object)((current10 is IdentifierToken) ? current10 : null);
if (val3 != null && val3.Name == "_input")
{
<inputWaiter>5__5.SetReady();
}
val3 = (IdentifierToken)(object)((current10 is IdentifierToken) ? current10 : null);
if (val3 != null && val3.Name == "_process_movement")
{
<processMovementWaiter>5__6.SetReady();
}
if (<extendsWaiter>5__2.Check(current10))
{
<>2__current = current10;
<>1__state = 1;
return true;
}
if (<bind5Waiter>5__3.Check(current10))
{
<>2__current = current10;
<>1__state = 3;
return true;
}
if (<sprintingWaiter>5__4.Check(current10))
{
<>2__current = current10;
<>1__state = 7;
return true;
}
if (<inputWaiter>5__5.Check(current10))
{
<>2__current = current10;
<>1__state = 10;
return true;
}
if (<processMovementWaiter>5__6.Check(current10))
{
<>2__current = current10;
<>1__state = 12;
return true;
}
if (<rodCastDistWaiter>5__7.Check(current10))
{
<>2__current = current10;
<>1__state = 14;
return true;
}
<>2__current = current10;
<>1__state = 16;
return true;
}
<>m__Finally1();
<>7__wrap7 = null;
return false;
}
catch
{
//try-fault
((global::System.IDisposable)this).Dispose();
throw;
}
}
bool global::System.Collections.IEnumerator.MoveNext()
{
//ILSpy generated this explicit interface implementation from .override directive in MoveNext
return this.MoveNext();
}
private void <>m__Finally1()
{
<>1__state = -1;
if (<>7__wrap7 != null)
{
((global::System.IDisposable)<>7__wrap7).Dispose();
}
}
private void <>m__Finally2()
{
<>1__state = -3;
if (<>7__wrap8 != null)
{
((global::System.IDisposable)<>7__wrap8).Dispose();
}
}
private void <>m__Finally3()
{
<>1__state = -3;
if (<>7__wrap8 != null)
{
((global::System.IDisposable)<>7__wrap8).Dispose();
}
}
private void <>m__Finally4()
{
<>1__state = -3;
if (<>7__wrap8 != null)
{
((global::System.IDisposable)<>7__wrap8).Dispose();
}
}
private void <>m__Finally5()
{
<>1__state = -3;
if (<>7__wrap8 != null)
{
((global::System.IDisposable)<>7__wrap8).Dispose();
}
}
private void <>m__Finally6()
{
<>1__state = -3;
if (<>7__wrap8 != null)
{
((global::System.IDisposable)<>7__wrap8).Dispose();
}
}
private void <>m__Finally7()
{
<>1__state = -3;
if (<>7__wrap8 != null)
{
((global::System.IDisposable)<>7__wrap8).Dispose();
}
}
private void <>m__Finally8()
{
<>1__state = -3;
if (<>7__wrap8 != null)
{
((global::System.IDisposable)<>7__wrap8).Dispose();
}
}
private void <>m__Finally9()
{
<>1__state = -3;
if (<>7__wrap8 != null)
{
((global::System.IDisposable)<>7__wrap8).Dispose();
}
}
private void <>m__Finally10()
{
<>1__state = -3;
if (<>7__wrap8 != null)
{
((global::System.IDisposable)<>7__wrap8).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__5 <Modify>d__;
if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId)
{
<>1__state = 0;
<Modify>d__ = this;
}
else
{
<Modify>d__ = new <Modify>d__5(0)
{
<>4__this = <>4__this
};
}
<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();
}
}
[CompilerGenerated]
private sealed class <PatchAnalogMovement>d__10 : 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 Token[] <camBaseTransformBasis>5__2;
private Token[] <>7__wrap2;
private int <>7__wrap3;
Token global::System.Collections.Generic.IEnumerator<Token>.Current
{
[DebuggerHidden]
get
{
return <>2__current;
}
}
object global::System.Collections.IEnumerator.Current
{
[DebuggerHidden]
get
{
return <>2__current;
}
}
[DebuggerHidden]
public <PatchAnalogMovement>d__10(int <>1__state)
{
this.<>1__state = <>1__state;
<>l__initialThreadId = Environment.CurrentManagedThreadId;
}
[DebuggerHidden]
void global::System.IDisposable.Dispose()
{
}
private bool MoveNext()
{
//IL_00dc: Unknown result type (might be due to invalid IL or missing references)
//IL_00e2: Expected O, but got Unknown
//IL_00ef: Unknown result type (might be due to invalid IL or missing references)
//IL_00f5: Expected O, but got Unknown
//IL_00fc: Unknown result type (might be due to invalid IL or missing references)
//IL_0102: Expected O, but got Unknown
//IL_010f: Unknown result type (might be due to invalid IL or missing references)
//IL_0115: Expected O, but got Unknown
//IL_011c: Unknown result type (might be due to invalid IL or missing references)
//IL_0122: Expected O, but got Unknown
//IL_0133: Unknown result type (might be due to invalid IL or missing references)
//IL_013d: Expected O, but got Unknown
//IL_0153: Unknown result type (might be due to invalid IL or missing references)
//IL_015d: Expected O, but got Unknown
//IL_0179: Unknown result type (might be due to invalid IL or missing references)
//IL_0183: Expected O, but got Unknown
//IL_0199: Unknown result type (might be due to invalid IL or missing references)
//IL_01a3: Expected O, but got Unknown
//IL_01bf: Unknown result type (might be due to invalid IL or missing references)
//IL_01c9: 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_0205: Unknown result type (might be due to invalid IL or missing references)
//IL_020f: Expected O, but got Unknown
//IL_0225: Unknown result type (might be due to invalid IL or missing references)
//IL_022f: Expected O, but got Unknown
//IL_022a: Unknown result type (might be due to invalid IL or missing references)
//IL_0234: Expected O, but got Unknown
//IL_0250: Unknown result type (might be due to invalid IL or missing references)
//IL_025a: Expected O, but got Unknown
//IL_0271: Unknown result type (might be due to invalid IL or missing references)
//IL_027b: Expected O, but got Unknown
//IL_0276: Unknown result type (might be due to invalid IL or missing references)
//IL_0280: Expected O, but got Unknown
//IL_029d: Unknown result type (might be due to invalid IL or missing references)
//IL_02a7: Expected O, but got Unknown
//IL_02be: Unknown result type (might be due to invalid IL or missing references)
//IL_02c8: Expected O, but got Unknown
//IL_02c3: Unknown result type (might be due to invalid IL or missing references)
//IL_02cd: Expected O, but got Unknown
//IL_02ea: Unknown result type (might be due to invalid IL or missing references)
//IL_02f4: Expected O, but got Unknown
//IL_030b: Unknown result type (might be due to invalid IL or missing references)
//IL_0315: Expected O, but got Unknown
//IL_0310: Unknown result type (might be due to invalid IL or missing references)
//IL_031a: Expected O, but got Unknown
//IL_0337: Unknown result type (might be due to invalid IL or missing references)
//IL_0341: Expected O, but got Unknown
//IL_035b: Unknown result type (might be due to invalid IL or missing references)
//IL_0365: Expected O, but got Unknown
//IL_0382: Unknown result type (might be due to invalid IL or missing references)
//IL_038c: Expected O, but got Unknown
//IL_03a3: Unknown result type (might be due to invalid IL or missing references)
//IL_03ad: 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_03ee: Unknown result type (might be due to invalid IL or missing references)
//IL_03f8: Expected O, but got Unknown
//IL_040f: Unknown result type (might be due to invalid IL or missing references)
//IL_0419: Expected O, but got Unknown
//IL_0436: Unknown result type (might be due to invalid IL or missing references)
//IL_0440: Expected O, but got Unknown
//IL_0459: Unknown result type (might be due to invalid IL or missing references)
//IL_0463: Expected O, but got Unknown
//IL_0480: Unknown result type (might be due to invalid IL or missing references)
//IL_048a: Expected O, but got Unknown
//IL_04a1: Unknown result type (might be due to invalid IL or missing references)
//IL_04ab: Expected O, but got Unknown
//IL_04c8: Unknown result type (might be due to invalid IL or missing references)
//IL_04d2: Expected O, but got Unknown
//IL_04e9: Unknown result type (might be due to invalid IL or missing references)
//IL_04f3: Expected O, but got Unknown
//IL_0510: Unknown result type (might be due to invalid IL or missing references)
//IL_051a: Expected O, but got Unknown
//IL_0536: Unknown result type (might be due to invalid IL or missing references)
//IL_0540: Expected O, but got Unknown
//IL_053b: Unknown result type (might be due to invalid IL or missing references)
//IL_0545: Expected O, but got Unknown
//IL_0562: Unknown result type (might be due to invalid IL or missing references)
//IL_056c: Expected O, but got Unknown
//IL_0583: Unknown result type (might be due to invalid IL or missing references)
//IL_058d: Expected O, but got Unknown
//IL_05aa: Unknown result type (might be due to invalid IL or missing references)
//IL_05b4: Expected O, but got Unknown
//IL_05cb: Unknown result type (might be due to invalid IL or missing references)
//IL_05d5: Expected O, but got Unknown
//IL_05f2: Unknown result type (might be due to invalid IL or missing references)
//IL_05fc: Expected O, but got Unknown
//IL_0616: Unknown result type (might be due to invalid IL or missing references)
//IL_0620: Expected O, but got Unknown
//IL_0637: Unknown result type (might be due to invalid IL or missing references)
//IL_0641: Expected O, but got Unknown
//IL_065e: Unknown result type (might be due to invalid IL or missing references)
//IL_0668: Expected O, but got Unknown
//IL_0685: Unknown result type (might be due to invalid IL or missing references)
//IL_068f: Expected O, but got Unknown
//IL_072d: Unknown result type (might be due to invalid IL or missing references)
//IL_0737: Expected O, but got Unknown
//IL_0754: Unknown result type (might be due to invalid IL or missing references)
//IL_075e: Expected O, but got Unknown
//IL_0775: Unknown result type (might be due to invalid IL or missing references)
//IL_077f: Expected O, but got Unknown
//IL_079c: Unknown result type (might be due to invalid IL or missing references)
//IL_07a6: Expected O, but got Unknown
//IL_07c0: Unknown result type (might be due to invalid IL or missing references)
//IL_07ca: Expected O, but got Unknown
//IL_070c: Unknown result type (might be due to invalid IL or missing references)
//IL_0716: Expected O, but got Unknown
switch (<>1__state)
{
default:
return false;
case 0:
<>1__state = -1;
<camBaseTransformBasis>5__2 = (Token[])(object)new Token[5]
{
(Token)new IdentifierToken("cam_base"),
new Token((TokenType)84, (uint?)null),
(Token)new IdentifierToken("transform"),
new Token((TokenType)84, (uint?)null),
(Token)new IdentifierToken("basis")
};
<>2__current = new Token((TokenType)59, (uint?)null);
<>1__state = 1;
return true;
case 1:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("joy_stick_input");
<>1__state = 2;
return true;
case 2:
<>1__state = -1;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 3;
return true;
case 3:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("Input");
<>1__state = 4;
return true;
case 4:
<>1__state = -1;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 5;
return true;
case 5:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("get_vector");
<>1__state = 6;
return true;
case 6:
<>1__state = -1;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 7;
return true;
case 7:
<>1__state = -1;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("move_right"));
<>1__state = 8;
return true;
case 8:
<>1__state = -1;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 9;
return true;
case 9:
<>1__state = -1;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("move_left"));
<>1__state = 10;
return true;
case 10:
<>1__state = -1;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 11;
return true;
case 11:
<>1__state = -1;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("move_back"));
<>1__state = 12;
return true;
case 12:
<>1__state = -1;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 13;
return true;
case 13:
<>1__state = -1;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("move_forward"));
<>1__state = 14;
return true;
case 14:
<>1__state = -1;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 15;
return true;
case 15:
<>1__state = -1;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 16;
return true;
case 16:
<>1__state = -1;
<>2__current = new Token((TokenType)38, (uint?)null);
<>1__state = 17;
return true;
case 17:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("joy_using_controller");
<>1__state = 18;
return true;
case 18:
<>1__state = -1;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 19;
return true;
case 19:
<>1__state = -1;
<>2__current = new Token((TokenType)89, (uint?)2u);
<>1__state = 20;
return true;
case 20:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("direction");
<>1__state = 21;
return true;
case 21:
<>1__state = -1;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 22;
return true;
case 22:
<>1__state = -1;
<>2__current = new Token((TokenType)4, (uint?)7u);
<>1__state = 23;
return true;
case 23:
<>1__state = -1;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 24;
return true;
case 24:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("joy_stick_input");
<>1__state = 25;
return true;
case 25:
<>1__state = -1;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 26;
return true;
case 26:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("x");
<>1__state = 27;
return true;
case 27:
<>1__state = -1;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 28;
return true;
case 28:
<>1__state = -1;
<>2__current = (Token)new ConstantToken((Variant)new RealVariant(0.0, false));
<>1__state = 29;
return true;
case 29:
<>1__state = -1;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 30;
return true;
case 30:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("joy_stick_input");
<>1__state = 31;
return true;
case 31:
<>1__state = -1;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 32;
return true;
case 32:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("y");
<>1__state = 33;
return true;
case 33:
<>1__state = -1;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 34;
return true;
case 34:
<>1__state = -1;
<>2__current = new Token((TokenType)89, (uint?)2u);
<>1__state = 35;
return true;
case 35:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("direction");
<>1__state = 36;
return true;
case 36:
<>1__state = -1;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 37;
return true;
case 37:
<>1__state = -1;
<>2__current = new Token((TokenType)17, (uint?)null);
<>1__state = 38;
return true;
case 38:
<>1__state = -1;
<>7__wrap2 = <camBaseTransformBasis>5__2;
<>7__wrap3 = 0;
goto IL_06e9;
case 39:
<>1__state = -1;
<>7__wrap3++;
goto IL_06e9;
case 40:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("xform");
<>1__state = 41;
return true;
case 41:
<>1__state = -1;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 42;
return true;
case 42:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("direction");
<>1__state = 43;
return true;
case 43:
<>1__state = -1;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 44;
return true;
case 44:
<>1__state = -1;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 45;
return true;
case 45:
{
<>1__state = -1;
return false;
}
IL_06e9:
if (<>7__wrap3 < <>7__wrap2.Length)
{
Token val = <>7__wrap2[<>7__wrap3];
<>2__current = val;
<>1__state = 39;
return true;
}
<>7__wrap2 = null;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 40;
return true;
}
}
bool global::System.Collections.IEnumerator.MoveNext()
{
//ILSpy generated this explicit interface implementation from .override directive in MoveNext
return this.MoveNext();
}
[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()
{
if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId)
{
<>1__state = 0;
return this;
}
return new <PatchAnalogMovement>d__10(0);
}
[DebuggerHidden]
global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator()
{
return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable<Token>)this).GetEnumerator();
}
}
[CompilerGenerated]
private sealed class <PatchCheckController>d__12 : 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;
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 <PatchCheckController>d__12(int <>1__state)
{
this.<>1__state = <>1__state;
<>l__initialThreadId = Environment.CurrentManagedThreadId;
}
[DebuggerHidden]
void global::System.IDisposable.Dispose()
{
}
private bool MoveNext()
{
//IL_0082: Unknown result type (might be due to invalid IL or missing references)
//IL_008c: Expected O, but got Unknown
//IL_00a2: Unknown result type (might be due to invalid IL or missing references)
//IL_00ac: Expected O, but got Unknown
//IL_00c8: Unknown result type (might be due to invalid IL or missing references)
//IL_00d2: Expected O, but got Unknown
//IL_00e8: Unknown result type (might be due to invalid IL or missing references)
//IL_00f2: Expected O, but got Unknown
//IL_010e: Unknown result type (might be due to invalid IL or missing references)
//IL_0118: Expected O, but got Unknown
//IL_012e: Unknown result type (might be due to invalid IL or missing references)
//IL_0138: Expected O, but got Unknown
//IL_0154: Unknown result type (might be due to invalid IL or missing references)
//IL_015e: Expected O, but got Unknown
//IL_0174: Unknown result type (might be due to invalid IL or missing references)
//IL_017e: Expected O, but got Unknown
//IL_019a: Unknown result type (might be due to invalid IL or missing references)
//IL_01a4: Expected O, but got Unknown
//IL_01bb: Unknown result type (might be due to invalid IL or missing references)
//IL_01c5: Expected O, but got Unknown
//IL_01e2: Unknown result type (might be due to invalid IL or missing references)
//IL_01ec: Expected O, but got Unknown
//IL_01ff: Unknown result type (might be due to invalid IL or missing references)
//IL_0209: Expected O, but got Unknown
//IL_0204: Unknown result type (might be due to invalid IL or missing references)
//IL_020e: Expected O, but got Unknown
//IL_0228: Unknown result type (might be due to invalid IL or missing references)
//IL_0232: Expected O, but got Unknown
//IL_024f: Unknown result type (might be due to invalid IL or missing references)
//IL_0259: Expected O, but got Unknown
//IL_0276: Unknown result type (might be due to invalid IL or missing references)
//IL_0280: Expected O, but got Unknown
//IL_0297: Unknown result type (might be due to invalid IL or missing references)
//IL_02a1: Expected O, but got Unknown
//IL_02be: Unknown result type (might be due to invalid IL or missing references)
//IL_02c8: Expected O, but got Unknown
//IL_02df: Unknown result type (might be due to invalid IL or missing references)
//IL_02e9: Expected O, but got Unknown
//IL_0306: Unknown result type (might be due to invalid IL or missing references)
//IL_0310: Expected O, but got Unknown
//IL_0327: Unknown result type (might be due to invalid IL or missing references)
//IL_0331: Expected O, but got Unknown
//IL_034e: Unknown result type (might be due to invalid IL or missing references)
//IL_0358: Expected O, but got Unknown
//IL_036b: Unknown result type (might be due to invalid IL or missing references)
//IL_0375: Expected O, but got Unknown
//IL_0370: Unknown result type (might be due to invalid IL or missing references)
//IL_037a: Expected O, but got Unknown
//IL_0394: Unknown result type (might be due to invalid IL or missing references)
//IL_039e: Expected O, but got Unknown
switch (<>1__state)
{
default:
return false;
case 0:
<>1__state = -1;
<>2__current = new Token((TokenType)38, (uint?)null);
<>1__state = 1;
return true;
case 1:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("event");
<>1__state = 2;
return true;
case 2:
<>1__state = -1;
<>2__current = new Token((TokenType)52, (uint?)null);
<>1__state = 3;
return true;
case 3:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("InputEventJoypadButton");
<>1__state = 4;
return true;
case 4:
<>1__state = -1;
<>2__current = new Token((TokenType)14, (uint?)null);
<>1__state = 5;
return true;
case 5:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("event");
<>1__state = 6;
return true;
case 6:
<>1__state = -1;
<>2__current = new Token((TokenType)52, (uint?)null);
<>1__state = 7;
return true;
case 7:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("InputEventJoypadMotion");
<>1__state = 8;
return true;
case 8:
<>1__state = -1;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 9;
return true;
case 9:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("joy_using_controller");
<>1__state = 10;
return true;
case 10:
<>1__state = -1;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 11;
return true;
case 11:
<>1__state = -1;
<>2__current = (Token)new ConstantToken((Variant)new BoolVariant(true));
<>1__state = 12;
return true;
case 12:
<>1__state = -1;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 13;
return true;
case 13:
<>1__state = -1;
<>2__current = new Token((TokenType)39, (uint?)null);
<>1__state = 14;
return true;
case 14:
<>1__state = -1;
<>2__current = new Token((TokenType)15, (uint?)null);
<>1__state = 15;
return true;
case 15:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("event");
<>1__state = 16;
return true;
case 16:
<>1__state = -1;
<>2__current = new Token((TokenType)52, (uint?)null);
<>1__state = 17;
return true;
case 17:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("InputEventMouseMotion");
<>1__state = 18;
return true;
case 18:
<>1__state = -1;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 19;
return true;
case 19:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("joy_using_controller");
<>1__state = 20;
return true;
case 20:
<>1__state = -1;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 21;
return true;
case 21:
<>1__state = -1;
<>2__current = (Token)new ConstantToken((Variant)new BoolVariant(false));
<>1__state = 22;
return true;
case 22:
<>1__state = -1;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 23;
return true;
case 23:
<>1__state = -1;
return false;
}
}
bool global::System.Collections.IEnumerator.MoveNext()
{
//ILSpy generated this explicit interface implementation from .override directive in MoveNext
return this.MoveNext();
}
[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()
{
if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId)
{
<>1__state = 0;
return this;
}
return new <PatchCheckController>d__12(0);
}
[DebuggerHidden]
global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator()
{
return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable<Token>)this).GetEnumerator();
}
}
[CompilerGenerated]
private sealed class <PatchHotbarControl>d__9 : 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;
public PlayerModifier <>4__this;
private global::System.Collections.Generic.IEnumerator<Token> <>7__wrap1;
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 <PatchHotbarControl>d__9(int <>1__state)
{
this.<>1__state = <>1__state;
<>l__initialThreadId = Environment.CurrentManagedThreadId;
}
[DebuggerHidden]
void global::System.IDisposable.Dispose()
{
switch (<>1__state)
{
case -3:
case 5:
try
{
break;
}
finally
{
<>m__Finally1();
}
case -4:
case 18:
try
{
break;
}
finally
{
<>m__Finally2();
}
case -5:
case 40:
try
{
break;
}
finally
{
<>m__Finally3();
}
}
}
private bool MoveNext()
{
//IL_0122: Unknown result type (might be due to invalid IL or missing references)
//IL_012c: Expected O, but got Unknown
//IL_0147: Unknown result type (might be due to invalid IL or missing references)
//IL_0151: Expected O, but got Unknown
//IL_0172: Unknown result type (might be due to invalid IL or missing references)
//IL_017c: Expected O, but got Unknown
//IL_019d: Unknown result type (might be due to invalid IL or missing references)
//IL_01a7: Expected O, but got Unknown
//IL_0258: Unknown result type (might be due to invalid IL or missing references)
//IL_0262: Expected O, but got Unknown
//IL_027d: Unknown result type (might be due to invalid IL or missing references)
//IL_0287: Expected O, but got Unknown
//IL_02a8: Unknown result type (might be due to invalid IL or missing references)
//IL_02b2: Expected O, but got Unknown
//IL_02ce: Unknown result type (might be due to invalid IL or missing references)
//IL_02d8: Expected O, but got Unknown
//IL_02f9: Unknown result type (might be due to invalid IL or missing references)
//IL_0303: Expected O, but got Unknown
//IL_031f: Unknown result type (might be due to invalid IL or missing references)
//IL_0329: Expected O, but got Unknown
//IL_034b: Unknown result type (might be due to invalid IL or missing references)
//IL_0355: Expected O, but got Unknown
//IL_0371: Unknown result type (might be due to invalid IL or missing references)
//IL_037b: Expected O, but got Unknown
//IL_039d: Unknown result type (might be due to invalid IL or missing references)
//IL_03a7: Expected O, but got Unknown
//IL_03c6: Unknown result type (might be due to invalid IL or missing references)
//IL_03d0: Expected O, but got Unknown
//IL_03f2: Unknown result type (might be due to invalid IL or missing references)
//IL_03fc: 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
//IL_04d3: Unknown result type (might be due to invalid IL or missing references)
//IL_04dd: Expected O, but got Unknown
//IL_04ff: Unknown result type (might be due to invalid IL or missing references)
//IL_0509: Expected O, but got Unknown
//IL_0523: Unknown result type (might be due to invalid IL or missing references)
//IL_052d: Expected O, but got Unknown
//IL_0528: Unknown result type (might be due to invalid IL or missing references)
//IL_0532: Expected O, but got Unknown
//IL_0551: Unknown result type (might be due to invalid IL or missing references)
//IL_055b: Expected O, but got Unknown
//IL_057d: Unknown result type (might be due to invalid IL or missing references)
//IL_0587: Expected O, but got Unknown
//IL_05a3: Unknown result type (might be due to invalid IL or missing references)
//IL_05ad: 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_05f3: Unknown result type (might be due to invalid IL or missing references)
//IL_05fd: Expected O, but got Unknown
//IL_05f8: Unknown result type (might be due to invalid IL or missing references)
//IL_0602: Expected O, but got Unknown
//IL_0624: Unknown result type (might be due to invalid IL or missing references)
//IL_062e: Expected O, but got Unknown
//IL_064a: Unknown result type (might be due to invalid IL or missing references)
//IL_0654: Expected O, but got Unknown
//IL_0676: Unknown result type (might be due to invalid IL or missing references)
//IL_0680: Expected O, but got Unknown
//IL_069a: Unknown result type (might be due to invalid IL or missing references)
//IL_06a4: Expected O, but got Unknown
//IL_069f: Unknown result type (might be due to invalid IL or missing references)
//IL_06a9: Expected O, but got Unknown
//IL_06c8: Unknown result type (might be due to invalid IL or missing references)
//IL_06d2: Expected O, but got Unknown
//IL_06ee: Unknown result type (might be due to invalid IL or missing references)
//IL_06f8: Expected O, but got Unknown
//IL_071a: Unknown result type (might be due to invalid IL or missing references)
//IL_0724: Expected O, but got Unknown
//IL_0740: Unknown result type (might be due to invalid IL or missing references)
//IL_074a: Expected O, but got Unknown
//IL_076c: Unknown result type (might be due to invalid IL or missing references)
//IL_0776: Expected O, but got Unknown
//IL_0795: Unknown result type (might be due to invalid IL or missing references)
//IL_079f: Expected O, but got Unknown
//IL_07c1: Unknown result type (might be due to invalid IL or missing references)
//IL_07cb: Expected O, but got Unknown
//IL_087c: Unknown result type (might be due to invalid IL or missing references)
//IL_0886: Expected O, but got Unknown
//IL_08a2: Unknown result type (might be due to invalid IL or missing references)
//IL_08ac: Expected O, but got Unknown
//IL_08ce: Unknown result type (might be due to invalid IL or missing references)
//IL_08d8: 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_08f7: Unknown result type (might be due to invalid IL or missing references)
//IL_0901: Expected O, but got Unknown
//IL_0920: Unknown result type (might be due to invalid IL or missing references)
//IL_092a: Expected O, but got Unknown
//IL_094c: Unknown result type (might be due to invalid IL or missing references)
//IL_0956: Expected O, but got Unknown
//IL_0972: Unknown result type (might be due to invalid IL or missing references)
//IL_097c: Expected O, but got Unknown
//IL_099e: Unknown result type (might be due to invalid IL or missing references)
//IL_09a8: Expected O, but got Unknown
//IL_09c2: Unknown result type (might be due to invalid IL or missing references)
//IL_09cc: Expected O, but got Unknown
//IL_09c7: Unknown result type (might be due to invalid IL or missing references)
//IL_09d1: Expected O, but got Unknown
//IL_09f3: Unknown result type (might be due to invalid IL or missing references)
//IL_09fd: Expected O, but got Unknown
//IL_0a19: Unknown result type (might be due to invalid IL or missing references)
//IL_0a23: Expected O, but got Unknown
//IL_0a45: Unknown result type (might be due to invalid IL or missing references)
//IL_0a4f: Expected O, but got Unknown
//IL_0a69: Unknown result type (might be due to invalid IL or missing references)
//IL_0a73: Expected O, but got Unknown
//IL_0a6e: Unknown result type (might be due to invalid IL or missing references)
//IL_0a78: Expected O, but got Unknown
//IL_0a97: Unknown result type (might be due to invalid IL or missing references)
//IL_0aa1: Expected O, but got Unknown
//IL_0abd: Unknown result type (might be due to invalid IL or missing references)
//IL_0ac7: Expected O, but got Unknown
//IL_0ae9: Unknown result type (might be due to invalid IL or missing references)
//IL_0af3: Expected O, but got Unknown
//IL_0b0f: Unknown result type (might be due to invalid IL or missing references)
//IL_0b19: Expected O, but got Unknown
//IL_0b38: Unknown result type (might be due to invalid IL or missing references)
//IL_0b42: Expected O, but got Unknown
//IL_0b5e: Unknown result type (might be due to invalid IL or missing references)
//IL_0b68: Expected O, but got Unknown
//IL_022d: Unknown result type (might be due to invalid IL or missing references)
//IL_0237: Expected O, but got Unknown
//IL_0484: Unknown result type (might be due to invalid IL or missing references)
//IL_048e: Expected O, but got Unknown
//IL_0853: Unknown result type (might be due to invalid IL or missing references)
//IL_085d: Expected O, but got Unknown
try
{
int num = <>1__state;
PlayerModifier playerModifier = <>4__this;
switch (num)
{
default:
return false;
case 0:
<>1__state = -1;
<>2__current = new Token((TokenType)38, (uint?)null);
<>1__state = 1;
return true;
case 1:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("joy_using_controller");
<>1__state = 2;
return true;
case 2:
<>1__state = -1;
<>2__current = new Token((TokenType)13, (uint?)null);
<>1__state = 3;
return true;
case 3:
<>1__state = -1;
<>2__current = new Token((TokenType)15, (uint?)null);
<>1__state = 4;
return true;
case 4:
<>1__state = -1;
<>7__wrap1 = playerModifier.IsActionPressedShort("joy_zoom_control").GetEnumerator();
<>1__state = -3;
goto IL_0207;
case 5:
<>1__state = -3;
goto IL_0207;
case 6:
<>1__state = -1;
<>2__current = new Token((TokenType)15, (uint?)null);
<>1__state = 7;
return true;
case 7:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("locked");
<>1__state = 8;
return true;
case 8:
<>1__state = -1;
<>2__current = new Token((TokenType)13, (uint?)null);
<>1__state = 9;
return true;
case 9:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("state");
<>1__state = 10;
return true;
case 10:
<>1__state = -1;
<>2__current = new Token((TokenType)7, (uint?)null);
<>1__state = 11;
return true;
case 11:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("STATES");
<>1__state = 12;
return true;
case 12:
<>1__state = -1;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 13;
return true;
case 13:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("DEFAULT");
<>1__state = 14;
return true;
case 14:
<>1__state = -1;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 15;
return true;
case 15:
<>1__state = -1;
<>2__current = new Token((TokenType)89, (uint?)2u);
<>1__state = 16;
return true;
case 16:
<>1__state = -1;
<>2__current = new Token((TokenType)38, (uint?)null);
<>1__state = 17;
return true;
case 17:
<>1__state = -1;
<>7__wrap1 = playerModifier.IsActionJustPressedShort("joy_tab_next").GetEnumerator();
<>1__state = -4;
goto IL_045e;
case 18:
<>1__state = -4;
goto IL_045e;
case 19:
<>1__state = -1;
<>2__current = new Token((TokenType)89, (uint?)3u);
<>1__state = 20;
return true;
case 20:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("joy_current_hotbar");
<>1__state = 21;
return true;
case 21:
<>1__state = -1;
<>2__current = new Token((TokenType)24, (uint?)null);
<>1__state = 22;
return true;
case 22:
<>1__state = -1;
<>2__current = (Token)new ConstantToken((Variant)new IntVariant(1L, false));
<>1__state = 23;
return true;
case 23:
<>1__state = -1;
<>2__current = new Token((TokenType)89, (uint?)3u);
<>1__state = 24;
return true;
case 24:
<>1__state = -1;
<>2__current = new Token((TokenType)38, (uint?)null);
<>1__state = 25;
return true;
case 25:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("joy_current_hotbar");
<>1__state = 26;
return true;
case 26:
<>1__state = -1;
<>2__current = new Token((TokenType)11, (uint?)null);
<>1__state = 27;
return true;
case 27:
<>1__state = -1;
<>2__current = (Token)new ConstantToken((Variant)new IntVariant(4L, false));
<>1__state = 28;
return true;
case 28:
<>1__state = -1;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 29;
return true;
case 29:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("joy_current_hotbar");
<>1__state = 30;
return true;
case 30:
<>1__state = -1;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 31;
return true;
case 31:
<>1__state = -1;
<>2__current = (Token)new ConstantToken((Variant)new IntVariant(0L, false));
<>1__state = 32;
return true;
case 32:
<>1__state = -1;
<>2__current = new Token((TokenType)89, (uint?)3u);
<>1__state = 33;
return true;
case 33:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("_equip_hotbar");
<>1__state = 34;
return true;
case 34:
<>1__state = -1;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 35;
return true;
case 35:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("joy_current_hotbar");
<>1__state = 36;
return true;
case 36:
<>1__state = -1;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 37;
return true;
case 37:
<>1__state = -1;
<>2__current = new Token((TokenType)89, (uint?)2u);
<>1__state = 38;
return true;
case 38:
<>1__state = -1;
<>2__current = new Token((TokenType)39, (uint?)null);
<>1__state = 39;
return true;
case 39:
<>1__state = -1;
<>7__wrap1 = playerModifier.IsActionJustPressedShort("joy_tab_prev").GetEnumerator();
<>1__state = -5;
goto IL_082d;
case 40:
<>1__state = -5;
goto IL_082d;
case 41:
<>1__state = -1;
<>2__current = new Token((TokenType)89, (uint?)3u);
<>1__state = 42;
return true;
case 42:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("joy_current_hotbar");
<>1__state = 43;
return true;
case 43:
<>1__state = -1;
<>2__current = new Token((TokenType)25, (uint?)null);
<>1__state = 44;
return true;
case 44:
<>1__state = -1;
<>2__current = (Token)new ConstantToken((Variant)new IntVariant(1L, false));
<>1__state = 45;
return true;
case 45:
<>1__state = -1;
<>2__current = new Token((TokenType)89, (uint?)3u);
<>1__state = 46;
return true;
case 46:
<>1__state = -1;
<>2__current = new Token((TokenType)38, (uint?)null);
<>1__state = 47;
return true;
case 47:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("joy_current_hotbar");
<>1__state = 48;
return true;
case 48:
<>1__state = -1;
<>2__current = new Token((TokenType)9, (uint?)null);
<>1__state = 49;
return true;
case 49:
<>1__state = -1;
<>2__current = (Token)new ConstantToken((Variant)new IntVariant(0L, false));
<>1__state = 50;
return true;
case 50:
<>1__state = -1;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 51;
return true;
case 51:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("joy_current_hotbar");
<>1__state = 52;
return true;
case 52:
<>1__state = -1;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 53;
return true;
case 53:
<>1__state = -1;
<>2__current = (Token)new ConstantToken((Variant)new IntVariant(4L, false));
<>1__state = 54;
return true;
case 54:
<>1__state = -1;
<>2__current = new Token((TokenType)89, (uint?)3u);
<>1__state = 55;
return true;
case 55:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("_equip_hotbar");
<>1__state = 56;
return true;
case 56:
<>1__state = -1;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 57;
return true;
case 57:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("joy_current_hotbar");
<>1__state = 58;
return true;
case 58:
<>1__state = -1;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 59;
return true;
case 59:
<>1__state = -1;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 60;
return true;
case 60:
{
<>1__state = -1;
return false;
}
IL_082d:
if (((global::System.Collections.IEnumerator)<>7__wrap1).MoveNext())
{
Token current = <>7__wrap1.Current;
<>2__current = current;
<>1__state = 40;
return true;
}
<>m__Finally3();
<>7__wrap1 = null;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 41;
return true;
IL_045e:
if (((global::System.Collections.IEnumerator)<>7__wrap1).MoveNext())
{
Token current2 = <>7__wrap1.Current;
<>2__current = current2;
<>1__state = 18;
return true;
}
<>m__Finally2();
<>7__wrap1 = null;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 19;
return true;
IL_0207:
if (((global::System.Collections.IEnumerator)<>7__wrap1).MoveNext())
{
Token current3 = <>7__wrap1.Current;
<>2__current = current3;
<>1__state = 5;
return true;
}
<>m__Finally1();
<>7__wrap1 = null;
<>2__current = new Token((TokenType)13, (uint?)null);
<>1__state = 6;
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 (<>7__wrap1 != null)
{
((global::System.IDisposable)<>7__wrap1).Dispose();
}
}
private void <>m__Finally2()
{
<>1__state = -1;
if (<>7__wrap1 != null)
{
((global::System.IDisposable)<>7__wrap1).Dispose();
}
}
private void <>m__Finally3()
{
<>1__state = -1;
if (<>7__wrap1 != null)
{
((global::System.IDisposable)<>7__wrap1).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()
{
<PatchHotbarControl>d__9 result;
if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId)
{
<>1__state = 0;
result = this;
}
else
{
result = new <PatchHotbarControl>d__9(0)
{
<>4__this = <>4__this
};
}
return result;
}
[DebuggerHidden]
global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator()
{
return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable<Token>)this).GetEnumerator();
}
}
[CompilerGenerated]
private sealed class <PatchLandVibration>d__13 : global::System.Collections.Generic.IEnumerable<Token>, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerator<Token>, global::System.Collections.IEnumerator, global::System.IDisposable
{
private int <>1__state;
private Token <>2__current;
private int <>l__initialThreadId;
private global::System.Collections.Generic.IEnumerator<Token> <>7__wrap1;
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 <PatchLandVibration>d__13(int <>1__state)
{
this.<>1__state = <>1__state;
<>l__initialThreadId = Environment.CurrentManagedThreadId;
}
[DebuggerHidden]
void global::System.IDisposable.Dispose()
{
switch (<>1__state)
{
case -3:
case 13:
try
{
break;
}
finally
{
<>m__Finally1();
}
case -4:
case 17:
try
{
break;
}
finally
{
<>m__Finally2();
}
}
}
private bool MoveNext()
{
//IL_0073: Unknown result type (might be due to invalid IL or missing references)
//IL_007d: Expected O, but got Unknown
//IL_0098: Unknown result type (might be due to invalid IL or missing references)
//IL_00a2: Expected O, but got Unknown
//IL_00c3: Unknown result type (might be due to invalid IL or missing references)
//IL_00cd: Expected O, but got Unknown
//IL_00ee: Unknown result type (might be due to invalid IL or missing references)
//IL_00f8: Expected O, but got Unknown
//IL_0119: Unknown result type (might be due to invalid IL or missing references)
//IL_0123: Expected O, but got Unknown
//IL_013e: Unknown result type (might be due to invalid IL or missing references)
//IL_0148: Expected O, but got Unknown
//IL_0169: Unknown result type (might be due to invalid IL or missing references)
//IL_0173: Expected O, but got Unknown
//IL_0191: Unknown result type (might be due to invalid IL or missing references)
//IL_019b: Expected O, but got Unknown
//IL_01bc: Unknown result type (might be due to invalid IL or missing references)
//IL_01c6: Expected O, but got Unknown
//IL_01e8: Unknown result type (might be due to invalid IL or missing references)
//IL_01f2: Expected O, but got Unknown
//IL_020e: Unknown result type (might be due to invalid IL or missing references)
//IL_0218: Expected O, but got Unknown
//IL_023a: Unknown result type (might be due to invalid IL or missing references)
//IL_0244: Expected O, but got Unknown
//IL_0308: Unknown result type (might be due to invalid IL or missing references)
//IL_0312: Expected O, but got Unknown
//IL_0334: Unknown result type (might be due to invalid IL or missing references)
//IL_033e: Expected O, but got Unknown
//IL_02dc: Unknown result type (might be due to invalid IL or missing references)
//IL_02e6: Expected O, but got Unknown
//IL_03d5: Unknown result type (might be due to invalid IL or missing references)
//IL_03df: Expected O, but got Unknown
try
{
switch (<>1__state)
{
default:
return false;
case 0:
<>1__state = -1;
<>2__current = new Token((TokenType)38, (uint?)null);
<>1__state = 1;
return true;
case 1:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("is_on_floor");
<>1__state = 2;
return true;
case 2:
<>1__state = -1;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 3;
return true;
case 3:
<>1__state = -1;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 4;
return true;
case 4:
<>1__state = -1;
<>2__current = new Token((TokenType)13, (uint?)null);
<>1__state = 5;
return true;
case 5:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("in_air");
<>1__state = 6;
return true;
case 6:
<>1__state = -1;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 7;
return true;
case 7:
<>1__state = -1;
<>2__current = new Token((TokenType)89, (uint?)2u);
<>1__state = 8;
return true;
case 8:
<>1__state = -1;
<>2__current = new Token((TokenType)38, (uint?)null);
<>1__state = 9;
return true;
case 9:
<>1__state = -1;
<>2__current = new Token((TokenType)15, (uint?)null);
<>1__state = 10;
return true;
case 10:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("diving");
<>1__state = 11;
return true;
case 11:
<>1__state = -1;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 12;
return true;
case 12:
<>1__state = -1;
<>7__wrap1 = VibrateController(0.5, 0.0, 0.15).GetEnumerator();
<>1__state = -3;
goto IL_02b9;
case 13:
<>1__state = -3;
goto IL_02b9;
case 14:
<>1__state = -1;
<>2__current = new Token((TokenType)40, (uint?)null);
<>1__state = 15;
return true;
case 15:
<>1__state = -1;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 16;
return true;
case 16:
<>1__state = -1;
<>7__wrap1 = VibrateController(0.0, 0.5, 0.25).GetEnumerator();
<>1__state = -4;
goto IL_03b2;
case 17:
<>1__state = -4;
goto IL_03b2;
case 18:
{
<>1__state = -1;
return false;
}
IL_03b2:
if (((global::System.Collections.IEnumerator)<>7__wrap1).MoveNext())
{
Token current = <>7__wrap1.Current;
<>2__current = current;
<>1__state = 17;
return true;
}
<>m__Finally2();
<>7__wrap1 = null;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 18;
return true;
IL_02b9:
if (((global::System.Collections.IEnumerator)<>7__wrap1).MoveNext())
{
Token current2 = <>7__wrap1.Current;
<>2__current = current2;
<>1__state = 13;
return true;
}
<>m__Finally1();
<>7__wrap1 = null;
<>2__current = new Token((TokenType)89, (uint?)2u);
<>1__state = 14;
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 (<>7__wrap1 != null)
{
((global::System.IDisposable)<>7__wrap1).Dispose();
}
}
private void <>m__Finally2()
{
<>1__state = -1;
if (<>7__wrap1 != null)
{
((global::System.IDisposable)<>7__wrap1).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()
{
if (<>1__state == -2 && <>l__initialThreadId == Environment.CurrentManagedThreadId)
{
<>1__state = 0;
return this;
}
return new <PatchLandVibration>d__13(0);
}
[DebuggerHidden]
global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator()
{
return (global::System.Collections.IEnumerator)((global::System.Collections.Generic.IEnumerable<Token>)this).GetEnumerator();
}
}
[CompilerGenerated]
private sealed class <PatchLook>d__7 : 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 Token[] <camBaseRotation>5__2;
private Token[] <camPivotRotation>5__3;
private Token[] <>7__wrap3;
private int <>7__wrap4;
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 <PatchLook>d__7(int <>1__state)
{
this.<>1__state = <>1__state;
<>l__initialThreadId = Environment.CurrentManagedThreadId;
}
[DebuggerHidden]
void global::System.IDisposable.Dispose()
{
}
private bool MoveNext()
{
//IL_0106: Unknown result type (might be due to invalid IL or missing references)
//IL_0110: Expected O, but got Unknown
//IL_0126: Unknown result type (might be due to invalid IL or missing references)
//IL_0130: Expected O, but got Unknown
//IL_014c: Unknown result type (might be due to invalid IL or missing references)
//IL_0156: Expected O, but got Unknown
//IL_016c: Unknown result type (might be due to invalid IL or missing references)
//IL_0176: Expected O, but got Unknown
//IL_0192: Unknown result type (might be due to invalid IL or missing references)
//IL_019c: Expected O, but got Unknown
//IL_01b2: Unknown result type (might be due to invalid IL or missing references)
//IL_01bc: Expected O, but got Unknown
//IL_01d8: Unknown result type (might be due to invalid IL or missing references)
//IL_01e2: Expected O, but got Unknown
//IL_01f8: Unknown result type (might be due to invalid IL or missing references)
//IL_0202: Expected O, but got Unknown
//IL_01fd: Unknown result type (might be due to invalid IL or missing references)
//IL_0207: Expected O, but got Unknown
//IL_0223: Unknown result type (might be due to invalid IL or missing references)
//IL_022d: Expected O, but got Unknown
//IL_0244: Unknown result type (might be due to invalid IL or missing references)
//IL_024e: Expected O, but got Unknown
//IL_0249: Unknown result type (might be due to invalid IL or missing references)
//IL_0253: Expected O, but got Unknown
//IL_0270: Unknown result type (might be due to invalid IL or missing references)
//IL_027a: Expected O, but got Unknown
//IL_0291: Unknown result type (might be due to invalid IL or missing references)
//IL_029b: Expected O, but got Unknown
//IL_0296: Unknown result type (might be due to invalid IL or missing references)
//IL_02a0: Expected O, but got Unknown
//IL_02bd: Unknown result type (might be due to invalid IL or missing references)
//IL_02c7: Expected O, but got Unknown
//IL_02de: Unknown result type (might be due to invalid IL or missing references)
//IL_02e8: Expected O, but got Unknown
//IL_02e3: Unknown result type (might be due to invalid IL or missing references)
//IL_02ed: Expected O, but got Unknown
//IL_030a: Unknown result type (might be due to invalid IL or missing references)
//IL_0314: Expected O, but got Unknown
//IL_032e: Unknown result type (might be due to invalid IL or missing references)
//IL_0338: Expected O, but got Unknown
//IL_0355: Unknown result type (might be due to invalid IL or missing references)
//IL_035f: Expected O, but got Unknown
//IL_0376: Unknown result type (might be due to invalid IL or missing references)
//IL_0380: Expected O, but got Unknown
//IL_039d: Unknown result type (might be due to invalid IL or missing references)
//IL_03a7: Expected O, but got Unknown
//IL_03be: Unknown result type (might be due to invalid IL or missing references)
//IL_03c8: Expected O, but got Unknown
//IL_03e5: Unknown result type (might be due to invalid IL or missing references)
//IL_03ef: Expected O, but got Unknown
//IL_0406: Unknown result type (might be due to invalid IL or missing references)
//IL_0410: 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
//IL_0450: Unknown result type (might be due to invalid IL or missing references)
//IL_045a: Expected O, but got Unknown
//IL_0455: Unknown result type (might be due to invalid IL or missing references)
//IL_045f: Expected O, but got Unknown
//IL_0479: Unknown result type (might be due to invalid IL or missing references)
//IL_0483: Expected O, but got Unknown
//IL_04a2: Unknown result type (might be due to invalid IL or missing references)
//IL_04a8: Expected O, but got Unknown
//IL_04b5: Unknown result type (might be due to invalid IL or missing references)
//IL_04bb: Expected O, but got Unknown
//IL_04c2: Unknown result type (might be due to invalid IL or missing references)
//IL_04c8: Expected O, but got Unknown
//IL_04d5: Unknown result type (might be due to invalid IL or missing references)
//IL_04db: Expected O, but got Unknown
//IL_04e2: Unknown result type (might be due to invalid IL or missing references)
//IL_04e8: Expected O, but got Unknown
//IL_04fb: Unknown result type (might be due to invalid IL or missing references)
//IL_0501: Expected O, but got Unknown
//IL_050e: Unknown result type (might be due to invalid IL or missing references)
//IL_0514: Expected O, but got Unknown
//IL_051b: Unknown result type (might be due to invalid IL or missing references)
//IL_0521: Expected O, but got Unknown
//IL_052e: Unknown result type (might be due to invalid IL or missing references)
//IL_0534: Expected O, but got Unknown
//IL_053b: Unknown result type (might be due to invalid IL or missing references)
//IL_0541: Expected O, but got Unknown
//IL_0552: Unknown result type (might be due to invalid IL or missing references)
//IL_055c: Expected O, but got Unknown
//IL_0573: Unknown result type (might be due to invalid IL or missing references)
//IL_057d: Expected O, but got Unknown
//IL_059a: Unknown result type (might be due to invalid IL or missing references)
//IL_05a4: Expected O, but got Unknown
//IL_05be: Unknown result type (might be due to invalid IL or missing references)
//IL_05c8: Expected O, but got Unknown
//IL_0666: Unknown result type (might be due to invalid IL or missing references)
//IL_0670: Expected O, but got Unknown
//IL_068d: Unknown result type (might be due to invalid IL or missing references)
//IL_0697: Expected O, but got Unknown
//IL_06ae: Unknown result type (might be due to invalid IL or missing references)
//IL_06b8: Expected O, but got Unknown
//IL_06d5: Unknown result type (might be due to invalid IL or missing references)
//IL_06df: Expected O, but got Unknown
//IL_06f6: Unknown result type (might be due to invalid IL or missing references)
//IL_0700: Expected O, but got Unknown
//IL_071a: Unknown result type (might be due to invalid IL or missing references)
//IL_0724: Expected O, but got Unknown
//IL_07c2: Unknown result type (might be due to invalid IL or missing references)
//IL_07cc: Expected O, but got Unknown
//IL_07e9: Unknown result type (might be due to invalid IL or missing references)
//IL_07f3: Expected O, but got Unknown
//IL_080a: Unknown result type (might be due to invalid IL or missing references)
//IL_0814: Expected O, but got Unknown
//IL_0831: Unknown result type (might be due to invalid IL or missing references)
//IL_083b: Expected O, but got Unknown
//IL_0852: Unknown result type (might be due to invalid IL or missing references)
//IL_085c: Expected O, but got Unknown
//IL_0876: Unknown result type (might be due to invalid IL or missing references)
//IL_0880: Expected O, but got Unknown
//IL_0923: Unknown result type (might be due to invalid IL or missing references)
//IL_092d: Expected O, but got Unknown
//IL_094a: Unknown result type (might be due to invalid IL or missing references)
//IL_0954: Expected O, but got Unknown
//IL_09f3: Unknown result type (might be due to invalid IL or missing references)
//IL_09fd: Expected O, but got Unknown
//IL_09f8: Unknown result type (might be due to invalid IL or missing references)
//IL_0a02: Expected O, but got Unknown
//IL_0a1f: Unknown result type (might be due to invalid IL or missing references)
//IL_0a29: Expected O, but got Unknown
//IL_0a3f: Unknown result type (might be due to invalid IL or missing references)
//IL_0a49: Expected O, but got Unknown
//IL_0a44: Unknown result type (might be due to invalid IL or missing references)
//IL_0a4e: Expected O, but got Unknown
//IL_0a6b: Unknown result type (might be due to invalid IL or missing references)
//IL_0a75: Expected O, but got Unknown
//IL_0a8f: Unknown result type (might be due to invalid IL or missing references)
//IL_0a99: Expected O, but got Unknown
//IL_0645: Unknown result type (might be due to invalid IL or missing references)
//IL_064f: Expected O, but got Unknown
//IL_07a1: Unknown result type (might be due to invalid IL or missing references)
//IL_07ab: Expected O, but got Unknown
//IL_08ff: Unknown result type (might be due to invalid IL or missing references)
//IL_0909: Expected O, but got Unknown
//IL_09d3: Unknown result type (might be due to invalid IL or missing references)
//IL_09dd: Expected O, but got Unknown
switch (<>1__state)
{
default:
return false;
case 0:
<>1__state = -1;
<>2__current = new Token((TokenType)59, (uint?)null);
<>1__state = 1;
return true;
case 1:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("joy_look_vec");
<>1__state = 2;
return true;
case 2:
<>1__state = -1;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 3;
return true;
case 3:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("Input");
<>1__state = 4;
return true;
case 4:
<>1__state = -1;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 5;
return true;
case 5:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("get_vector");
<>1__state = 6;
return true;
case 6:
<>1__state = -1;
<>2__current = new Token((TokenType)80, (uint?)null);
<>1__state = 7;
return true;
case 7:
<>1__state = -1;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("joy_look_left"));
<>1__state = 8;
return true;
case 8:
<>1__state = -1;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 9;
return true;
case 9:
<>1__state = -1;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("joy_look_right"));
<>1__state = 10;
return true;
case 10:
<>1__state = -1;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 11;
return true;
case 11:
<>1__state = -1;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("joy_look_up"));
<>1__state = 12;
return true;
case 12:
<>1__state = -1;
<>2__current = new Token((TokenType)82, (uint?)null);
<>1__state = 13;
return true;
case 13:
<>1__state = -1;
<>2__current = (Token)new ConstantToken((Variant)new StringVariant("joy_look_down"));
<>1__state = 14;
return true;
case 14:
<>1__state = -1;
<>2__current = new Token((TokenType)81, (uint?)null);
<>1__state = 15;
return true;
case 15:
<>1__state = -1;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 16;
return true;
case 16:
<>1__state = -1;
<>2__current = new Token((TokenType)59, (uint?)null);
<>1__state = 17;
return true;
case 17:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("mouse_sens");
<>1__state = 18;
return true;
case 18:
<>1__state = -1;
<>2__current = new Token((TokenType)23, (uint?)null);
<>1__state = 19;
return true;
case 19:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("OptionsMenu");
<>1__state = 20;
return true;
case 20:
<>1__state = -1;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 21;
return true;
case 21:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("mouse_sens");
<>1__state = 22;
return true;
case 22:
<>1__state = -1;
<>2__current = new Token((TokenType)18, (uint?)1u);
<>1__state = 23;
return true;
case 23:
<>1__state = -1;
<>2__current = (Token)new ConstantToken((Variant)new RealVariant(40.0, false));
<>1__state = 24;
return true;
case 24:
<>1__state = -1;
<>2__current = new Token((TokenType)89, (uint?)1u);
<>1__state = 25;
return true;
case 25:
<>1__state = -1;
<camBaseRotation>5__2 = (Token[])(object)new Token[5]
{
(Token)new IdentifierToken("cam_base"),
new Token((TokenType)84, (uint?)null),
(Token)new IdentifierToken("rotation_degrees"),
new Token((TokenType)84, (uint?)null),
(Token)new IdentifierToken("y")
};
<camPivotRotation>5__3 = (Token[])(object)new Token[5]
{
(Token)new IdentifierToken("cam_pivot"),
new Token((TokenType)84, (uint?)null),
(Token)new IdentifierToken("rotation_degrees"),
new Token((TokenType)84, (uint?)null),
(Token)new IdentifierToken("x")
};
<>2__current = new Token((TokenType)38, (uint?)null);
<>1__state = 26;
return true;
case 26:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("joy_using_controller");
<>1__state = 27;
return true;
case 27:
<>1__state = -1;
<>2__current = new Token((TokenType)86, (uint?)null);
<>1__state = 28;
return true;
case 28:
<>1__state = -1;
<>2__current = new Token((TokenType)89, (uint?)2u);
<>1__state = 29;
return true;
case 29:
<>1__state = -1;
<>7__wrap3 = <camBaseRotation>5__2;
<>7__wrap4 = 0;
goto IL_0622;
case 30:
<>1__state = -1;
<>7__wrap4++;
goto IL_0622;
case 31:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("joy_look_vec");
<>1__state = 32;
return true;
case 32:
<>1__state = -1;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 33;
return true;
case 33:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("x");
<>1__state = 34;
return true;
case 34:
<>1__state = -1;
<>2__current = new Token((TokenType)18, (uint?)null);
<>1__state = 35;
return true;
case 35:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("mouse_sens");
<>1__state = 36;
return true;
case 36:
<>1__state = -1;
<>2__current = new Token((TokenType)89, (uint?)2u);
<>1__state = 37;
return true;
case 37:
<>1__state = -1;
<>7__wrap3 = <camPivotRotation>5__3;
<>7__wrap4 = 0;
goto IL_077e;
case 38:
<>1__state = -1;
<>7__wrap4++;
goto IL_077e;
case 39:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("joy_look_vec");
<>1__state = 40;
return true;
case 40:
<>1__state = -1;
<>2__current = new Token((TokenType)84, (uint?)null);
<>1__state = 41;
return true;
case 41:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("y");
<>1__state = 42;
return true;
case 42:
<>1__state = -1;
<>2__current = new Token((TokenType)18, (uint?)null);
<>1__state = 43;
return true;
case 43:
<>1__state = -1;
<>2__current = (Token)new IdentifierToken("mouse_sens");
<>1__state = 44;
return true;
case 44:
<>1__st