1154 lines
50 KiB
C#
1154 lines
50 KiB
C#
using System;
|
|
using System.Runtime.CompilerServices;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
using UnityEngine.InputSystem;
|
|
using UnityEngine.InputSystem.LowLevel;
|
|
|
|
// Token: 0x02000144 RID: 324
|
|
[Token(Token = "0x2000144")]
|
|
public class GameInputManager : MonoBehaviour
|
|
{
|
|
// Token: 0x14000009 RID: 9
|
|
// (add) Token: 0x0600107C RID: 4220 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
// (remove) Token: 0x0600107D RID: 4221 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x14000009")]
|
|
private event Action<ControllerDevice> deviceChangedHandler
|
|
{
|
|
[Token(Token = "0x600107C")]
|
|
[Address(RVA = "0x53D5E0", Offset = "0x53C3E0", VA = "0x18053D5E0")]
|
|
[CompilerGenerated]
|
|
add
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
[Token(Token = "0x600107D")]
|
|
[Address(RVA = "0x53F350", Offset = "0x53E150", VA = "0x18053F350")]
|
|
[CompilerGenerated]
|
|
remove
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
}
|
|
|
|
// Token: 0x1400000A RID: 10
|
|
// (add) Token: 0x0600107E RID: 4222 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
// (remove) Token: 0x0600107F RID: 4223 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x1400000A")]
|
|
private event Action<bool> cursorStateChangedHandler
|
|
{
|
|
[Token(Token = "0x600107E")]
|
|
[Address(RVA = "0x53D770", Offset = "0x53C570", VA = "0x18053D770")]
|
|
[CompilerGenerated]
|
|
add
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
[Token(Token = "0x600107F")]
|
|
[Address(RVA = "0x542370", Offset = "0x541170", VA = "0x180542370")]
|
|
[CompilerGenerated]
|
|
remove
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000071 RID: 113
|
|
// (get) Token: 0x06001080 RID: 4224 RVA: 0x00026780 File Offset: 0x00024980
|
|
[Token(Token = "0x17000071")]
|
|
public GamepadVibration Vibration
|
|
{
|
|
[Token(Token = "0x6001080")]
|
|
[Address(RVA = "0x3EFFC0", Offset = "0x3EEDC0", VA = "0x1803EFFC0")]
|
|
get
|
|
{
|
|
return this.vibration;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000072 RID: 114
|
|
// (get) Token: 0x06001081 RID: 4225 RVA: 0x00026794 File Offset: 0x00024994
|
|
[Token(Token = "0x17000072")]
|
|
public ControllerDevice CurrentDevice
|
|
{
|
|
[Token(Token = "0x6001081")]
|
|
[Address(RVA = "0x296740", Offset = "0x295540", VA = "0x180296740")]
|
|
get
|
|
{
|
|
return this.currentDevice;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000073 RID: 115
|
|
// (get) Token: 0x06001082 RID: 4226 RVA: 0x000267A8 File Offset: 0x000249A8
|
|
[Token(Token = "0x17000073")]
|
|
public ControllerDevice LastGamepadDevice
|
|
{
|
|
[Token(Token = "0x6001082")]
|
|
[Address(RVA = "0x4669A0", Offset = "0x4657A0", VA = "0x1804669A0")]
|
|
get
|
|
{
|
|
return this.lastGamepadController;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001083 RID: 4227 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001083")]
|
|
[Address(RVA = "0x53DFB0", Offset = "0x53CDB0", VA = "0x18053DFB0")]
|
|
public void Init(PlayerInput input, ControllerDevice defaultDevice)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001084 RID: 4228 RVA: 0x000267BC File Offset: 0x000249BC
|
|
[Token(Token = "0x6001084")]
|
|
[Address(RVA = "0x542880", Offset = "0x541680", VA = "0x180542880")]
|
|
private void UpdatePointerVisibleState(InputAction.CallbackContext context)
|
|
{
|
|
if (this.currentDevice == ControllerDevice.Keyboard)
|
|
{
|
|
Action<bool> action = this.cursorStateChangedHandler;
|
|
if (action != 0)
|
|
{
|
|
action(1);
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001085 RID: 4229 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001085")]
|
|
[Address(RVA = "0x53D890", Offset = "0x53C690", VA = "0x18053D890")]
|
|
private void CalculatePointerMovementMouse(InputAction.CallbackContext context)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001086 RID: 4230 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001086")]
|
|
[Address(RVA = "0x53D940", Offset = "0x53C740", VA = "0x18053D940")]
|
|
private void CalculatePointerMovement(InputAction.CallbackContext context)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001087 RID: 4231 RVA: 0x000267E8 File Offset: 0x000249E8
|
|
[Token(Token = "0x6001087")]
|
|
[Address(RVA = "0x53F3F0", Offset = "0x53E1F0", VA = "0x18053F3F0")]
|
|
private void SendPointerMovementEvent(Vector2 value)
|
|
{
|
|
if (this.magicController != 0)
|
|
{
|
|
}
|
|
if (this.pointerController != 0)
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001088 RID: 4232 RVA: 0x00026808 File Offset: 0x00024A08
|
|
[Token(Token = "0x6001088")]
|
|
[Address(RVA = "0x53D810", Offset = "0x53C610", VA = "0x18053D810")]
|
|
private void CalculateItemSelectionInput(InputAction.CallbackContext context)
|
|
{
|
|
float num = context.ReadValue<float>();
|
|
int num2 = 0;
|
|
IItemController itemController = this.itemController;
|
|
if ((num <= (float)num2 && itemController == 0) || itemController != 0)
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001089 RID: 4233 RVA: 0x00026834 File Offset: 0x00024A34
|
|
[Token(Token = "0x6001089")]
|
|
[Address(RVA = "0x53D9C0", Offset = "0x53C7C0", VA = "0x18053D9C0")]
|
|
private void CalculateUIMovementInput(InputAction.CallbackContext context)
|
|
{
|
|
if (!context.canceled)
|
|
{
|
|
Vector2 vector = context.ReadValue<Vector2>();
|
|
this.uiMovement.UpdateMovement(vector);
|
|
Action<bool> action = this.cursorStateChangedHandler;
|
|
if (action != 0)
|
|
{
|
|
int num = 0;
|
|
action(num);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600108A RID: 4234 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x600108A")]
|
|
[Address(RVA = "0x53EFB0", Offset = "0x53DDB0", VA = "0x18053EFB0")]
|
|
private void OnControllerChanged(PlayerInput input)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600108B RID: 4235 RVA: 0x00026878 File Offset: 0x00024A78
|
|
[Token(Token = "0x600108B")]
|
|
[Address(RVA = "0x53DED0", Offset = "0x53CCD0", VA = "0x18053DED0")]
|
|
private ControllerDevice GetControllerDevice(InputDevice device)
|
|
{
|
|
string layout;
|
|
for (;;)
|
|
{
|
|
layout = device.layout;
|
|
if (layout == 0)
|
|
{
|
|
return ControllerDevice.Xbox;
|
|
}
|
|
if (string.Equals(layout, "SwitchProControllerHID"))
|
|
{
|
|
break;
|
|
}
|
|
if (string.Equals(layout, "DualShock4GamepadHID"))
|
|
{
|
|
return ControllerDevice.Playstation4;
|
|
}
|
|
if (!string.Equals(layout, "DualSenseGamepadHID"))
|
|
{
|
|
goto Block_3;
|
|
}
|
|
}
|
|
return ControllerDevice.NintendoSwitch;
|
|
Block_3:
|
|
bool flag = string.Equals(layout, "XInputControllerWindows");
|
|
return ControllerDevice.Xbox;
|
|
}
|
|
|
|
// Token: 0x0600108C RID: 4236 RVA: 0x000268D4 File Offset: 0x00024AD4
|
|
[Token(Token = "0x600108C")]
|
|
[Address(RVA = "0x53F480", Offset = "0x53E280", VA = "0x18053F480")]
|
|
public void SwitchActionMap(string actionMapName)
|
|
{
|
|
this.playerInput.SwitchCurrentActionMap(actionMapName);
|
|
if (string.Equals(actionMapName, "Gameplay"))
|
|
{
|
|
Action<bool> action = this.cursorStateChangedHandler;
|
|
if (action != 0)
|
|
{
|
|
int num = 0;
|
|
action(num);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600108D RID: 4237 RVA: 0x00026918 File Offset: 0x00024B18
|
|
[Token(Token = "0x600108D")]
|
|
[Address(RVA = "0x53D5C0", Offset = "0x53C3C0", VA = "0x18053D5C0")]
|
|
public void ActivatePlayerInput()
|
|
{
|
|
this.playerInput.ActivateInput();
|
|
}
|
|
|
|
// Token: 0x0600108E RID: 4238 RVA: 0x00026938 File Offset: 0x00024B38
|
|
[Token(Token = "0x600108E")]
|
|
[Address(RVA = "0x53DA60", Offset = "0x53C860", VA = "0x18053DA60")]
|
|
public void DeactivatePlayerInput()
|
|
{
|
|
this.playerInput.DeactivateInput();
|
|
}
|
|
|
|
// Token: 0x0600108F RID: 4239 RVA: 0x00026958 File Offset: 0x00024B58
|
|
[Token(Token = "0x600108F")]
|
|
[Address(RVA = "0x53DE40", Offset = "0x53CC40", VA = "0x18053DE40")]
|
|
public void EnablePauseMenuAction()
|
|
{
|
|
InputActionMap inputActionMap = this.gameplayActionMap;
|
|
int num = 0;
|
|
inputActionMap.FindAction("PauseMenu", num != 0).Enable();
|
|
InputActionMap inputActionMap2 = this.uiControlActionMap;
|
|
int num2 = 0;
|
|
inputActionMap2.FindAction("PauseMenu", num2 != 0).Enable();
|
|
}
|
|
|
|
// Token: 0x06001090 RID: 4240 RVA: 0x000269A0 File Offset: 0x00024BA0
|
|
[Token(Token = "0x6001090")]
|
|
[Address(RVA = "0x53DDB0", Offset = "0x53CBB0", VA = "0x18053DDB0")]
|
|
public void DisablePauseMenuAction()
|
|
{
|
|
InputActionMap inputActionMap = this.gameplayActionMap;
|
|
int num = 0;
|
|
inputActionMap.FindAction("PauseMenu", num != 0).Disable();
|
|
InputActionMap inputActionMap2 = this.uiControlActionMap;
|
|
int num2 = 0;
|
|
inputActionMap2.FindAction("PauseMenu", num2 != 0).Disable();
|
|
}
|
|
|
|
// Token: 0x06001091 RID: 4241 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001091")]
|
|
[Address(RVA = "0x53D5E0", Offset = "0x53C3E0", VA = "0x18053D5E0")]
|
|
public void AddDeviceChangedHandler(Action<ControllerDevice> handler)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001092 RID: 4242 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001092")]
|
|
[Address(RVA = "0x53F350", Offset = "0x53E150", VA = "0x18053F350")]
|
|
public void RemoveDeviceChangedHandler(Action<ControllerDevice> handler)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001093 RID: 4243 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001093")]
|
|
[Address(RVA = "0x53D770", Offset = "0x53C570", VA = "0x18053D770")]
|
|
public void BindCursorStateChangedHandler(Action<bool> handler)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001094 RID: 4244 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001094")]
|
|
[Address(RVA = "0x542370", Offset = "0x541170", VA = "0x180542370")]
|
|
public void UnbindCursorStateChangedHandler(Action<bool> handler)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001095 RID: 4245 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001095")]
|
|
[Address(RVA = "0x53D680", Offset = "0x53C480", VA = "0x18053D680")]
|
|
public void BindAnyKeyDownHandler(Action handler)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001096 RID: 4246 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001096")]
|
|
[Address(RVA = "0x53DA80", Offset = "0x53C880", VA = "0x18053DA80")]
|
|
private void DetectAnyKeyDown(InputEventPtr eventPtr, InputDevice device)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001097 RID: 4247 RVA: 0x000269E8 File Offset: 0x00024BE8
|
|
[Token(Token = "0x6001097")]
|
|
[Address(RVA = "0x417B90", Offset = "0x416990", VA = "0x180417B90")]
|
|
public void UpdateSceneMenuController(ISceneMenuController controller)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06001097)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void GameInputManager::UpdateSceneMenuController(ISceneMenuController)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{; Block_0:; stfld:ISceneMenuController(GameInputManager::sceneMenuController, ldloc:GameInputManager(this), ldloc:ISceneMenuController(controller)); };
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06001098 RID: 4248 RVA: 0x000269FC File Offset: 0x00024BFC
|
|
[Token(Token = "0x6001098")]
|
|
[Address(RVA = "0x5428D0", Offset = "0x5416D0", VA = "0x1805428D0")]
|
|
public void UpdateStoryController(IStoryController controller)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06001098)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void GameInputManager::UpdateStoryController(IStoryController)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{; Block_0:; stfld:IStoryController(GameInputManager::storyController, ldloc:GameInputManager(this), ldloc:IStoryController(controller)); };
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06001099 RID: 4249 RVA: 0x00026A10 File Offset: 0x00024C10
|
|
[Token(Token = "0x6001099")]
|
|
[Address(RVA = "0x5428E0", Offset = "0x5416E0", VA = "0x1805428E0")]
|
|
public void UpdateUIController(IUIController controller)
|
|
{
|
|
this.uiController = controller;
|
|
UIMovementCalculator uimovementCalculator = this.uiMovement;
|
|
IUIController iuicontroller = this.uiController;
|
|
uimovementCalculator.UpdateUIController(iuicontroller);
|
|
}
|
|
|
|
// Token: 0x0600109A RID: 4250 RVA: 0x00026A40 File Offset: 0x00024C40
|
|
[Token(Token = "0x600109A")]
|
|
[Address(RVA = "0x542430", Offset = "0x541230", VA = "0x180542430")]
|
|
public void UpdateCharacterController(ICharacterController controller)
|
|
{
|
|
this.characterController = controller;
|
|
CharacterMovementCalculator characterMovementCalculator = this.characterMovement;
|
|
ICharacterController characterController = this.characterController;
|
|
characterMovementCalculator.characterController = characterController;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600109B RID: 4251 RVA: 0x00026A70 File Offset: 0x00024C70
|
|
[Token(Token = "0x600109B")]
|
|
[Address(RVA = "0x417BD0", Offset = "0x4169D0", VA = "0x180417BD0")]
|
|
public void UpdateMagicController(IMagicController controller)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600109B)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void GameInputManager::UpdateMagicController(IMagicController)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{; Block_0:; stfld:IMagicController(GameInputManager::magicController, ldloc:GameInputManager(this), ldloc:IMagicController(controller)); };
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600109C RID: 4252 RVA: 0x00026A84 File Offset: 0x00024C84
|
|
[Token(Token = "0x600109C")]
|
|
[Address(RVA = "0x417A20", Offset = "0x416820", VA = "0x180417A20")]
|
|
public void UpdateItemController(IItemController controller)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600109C)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void GameInputManager::UpdateItemController(IItemController)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{; Block_0:; stfld:IItemController(GameInputManager::itemController, ldloc:GameInputManager(this), ldloc:IItemController(controller)); };
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600109D RID: 4253 RVA: 0x00026A98 File Offset: 0x00024C98
|
|
[Token(Token = "0x600109D")]
|
|
[Address(RVA = "0x4C0FD0", Offset = "0x4BFDD0", VA = "0x1804C0FD0")]
|
|
public void BindPointerController(IPointerController controller)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600109D)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void GameInputManager::BindPointerController(IPointerController)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{; Block_0:; stfld:IPointerController(GameInputManager::pointerController, ldloc:GameInputManager(this), ldloc:IPointerController(controller)); };
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600109E RID: 4254 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x600109E")]
|
|
[Address(RVA = "0x542410", Offset = "0x541210", VA = "0x180542410")]
|
|
public void UnbindPointerController()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600109F RID: 4255 RVA: 0x00026AAC File Offset: 0x00024CAC
|
|
[Token(Token = "0x600109F")]
|
|
[Address(RVA = "0x542480", Offset = "0x541280", VA = "0x180542480")]
|
|
public void UpdateCursorData(Vector2 cursorPosition)
|
|
{
|
|
this.cursorPosition = cursorPosition;
|
|
}
|
|
|
|
// Token: 0x060010A0 RID: 4256 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60010A0")]
|
|
[Address(RVA = "0x542490", Offset = "0x541290", VA = "0x180542490")]
|
|
public void UpdateCursorPosition()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060010A1 RID: 4257 RVA: 0x00026AC0 File Offset: 0x00024CC0
|
|
[Token(Token = "0x60010A1")]
|
|
[Address(RVA = "0x542520", Offset = "0x541320", VA = "0x180542520")]
|
|
public void UpdateInputBindings()
|
|
{
|
|
this.ModifyKeyboardMoveInputPath();
|
|
this.ModifyStandardInputPath("CameraMode");
|
|
this.ModifyKeyboardInputPath("Walk");
|
|
this.ModifyStandardInputPath("Dash");
|
|
this.ModifyStandardInputPath("Jump");
|
|
this.ModifyStandardInputPath("Dodge");
|
|
this.ModifyStandardInputPath("Interact");
|
|
this.ModifyStandardInputPath("Attack");
|
|
this.ModifyStandardInputPath("Chant");
|
|
this.ModifyStandardInputPath("Aim");
|
|
this.ModifyStandardInputPath("Shoot");
|
|
this.ModifyStandardInputPath("MagicMenu");
|
|
this.ModifyKeyboardInputPath("SecretMagic");
|
|
this.ModifyKeyboardInputPath("IceMagic");
|
|
this.ModifyKeyboardInputPath("FireMagic");
|
|
this.ModifyKeyboardInputPath("ThunderMagic");
|
|
this.ModifyGamepadInputPath("ItemLeftward");
|
|
this.ModifyGamepadInputPath("ItemRightward");
|
|
this.ModifyKeyboardInputPath("Item01");
|
|
this.ModifyKeyboardInputPath("Item02");
|
|
this.ModifyKeyboardInputPath("Item03");
|
|
this.ModifyKeyboardInputPath("Item04");
|
|
this.ModifyKeyboardInputPath("Item05");
|
|
this.ModifyKeyboardInputPath("Item06");
|
|
this.ModifyKeyboardInputPath("Item07");
|
|
this.ModifyKeyboardInputPath("Item08");
|
|
this.ModifyStandardInputPath("UseItem");
|
|
this.ModifyStandardInputPath("DropItem");
|
|
}
|
|
|
|
// Token: 0x060010A2 RID: 4258 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60010A2")]
|
|
[Address(RVA = "0x53E7D0", Offset = "0x53D5D0", VA = "0x18053E7D0")]
|
|
private void ModifyKeyboardMoveInputPath()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060010A3 RID: 4259 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60010A3")]
|
|
[Address(RVA = "0x53EC00", Offset = "0x53DA00", VA = "0x18053EC00")]
|
|
private void ModifyStandardInputPath(string actionName)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060010A4 RID: 4260 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60010A4")]
|
|
[Address(RVA = "0x53E6A0", Offset = "0x53D4A0", VA = "0x18053E6A0")]
|
|
private void ModifyKeyboardInputPath(string actionName)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060010A5 RID: 4261 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60010A5")]
|
|
[Address(RVA = "0x53E3E0", Offset = "0x53D1E0", VA = "0x18053E3E0")]
|
|
private void ModifyGamepadInputPath(string actionName)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060010A6 RID: 4262 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60010A6")]
|
|
[Address(RVA = "0x53F2A0", Offset = "0x53E0A0", VA = "0x18053F2A0")]
|
|
private void OverrideKeyBinding(InputAction inputAction, string overridePath)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060010A7 RID: 4263 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60010A7")]
|
|
[Address(RVA = "0x53F1F0", Offset = "0x53DFF0", VA = "0x18053F1F0")]
|
|
private void OverrideKeyBinding(InputAction inputAction, string overridePath, int bindingIndex)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060010A8 RID: 4264 RVA: 0x00026BFC File Offset: 0x00024DFC
|
|
[Token(Token = "0x60010A8")]
|
|
[Address(RVA = "0x53EF40", Offset = "0x53DD40", VA = "0x18053EF40")]
|
|
private void OnApplicationFocus(bool hasFocus)
|
|
{
|
|
this.uiMovement.Cancel();
|
|
this.vibration.Cancel();
|
|
}
|
|
|
|
// Token: 0x060010A9 RID: 4265 RVA: 0x00026C28 File Offset: 0x00024E28
|
|
[Token(Token = "0x60010A9")]
|
|
[Address(RVA = "0x53EF80", Offset = "0x53DD80", VA = "0x18053EF80")]
|
|
private void OnApplicationQuit()
|
|
{
|
|
this.vibration.Cancel();
|
|
}
|
|
|
|
// Token: 0x060010AA RID: 4266 RVA: 0x00026C48 File Offset: 0x00024E48
|
|
[Token(Token = "0x60010AA")]
|
|
[Address(RVA = "0x542930", Offset = "0x541730", VA = "0x180542930")]
|
|
public GameInputManager()
|
|
{
|
|
CharacterMovementCalculator characterMovementCalculator = new CharacterMovementCalculator();
|
|
this.characterMovement = characterMovementCalculator;
|
|
UIMovementCalculator uimovementCalculator = new UIMovementCalculator();
|
|
this.uiMovement = uimovementCalculator;
|
|
GamepadVibration gamepadVibration = new GamepadVibration();
|
|
float[] array = new float[2];
|
|
gamepadVibration.frequency = array;
|
|
this.vibration = gamepadVibration;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x060010AB RID: 4267 RVA: 0x00026C90 File Offset: 0x00024E90
|
|
[Token(Token = "0x60010AB")]
|
|
[Address(RVA = "0x541920", Offset = "0x540720", VA = "0x180541920")]
|
|
[CompilerGenerated]
|
|
private void <Init>g__InitStageUIController|30_0()
|
|
{
|
|
InputActionMap inputActionMap = this.gameplayActionMap;
|
|
int num = 0;
|
|
InputAction inputAction = inputActionMap.FindAction("PauseMenu", num != 0);
|
|
Action<InputAction.CallbackContext> action = delegate(InputAction.CallbackContext _)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
};
|
|
inputAction.started += action;
|
|
InputActionMap inputActionMap2 = this.uiControlActionMap;
|
|
int num2 = 0;
|
|
InputAction inputAction2 = inputActionMap2.FindAction("PauseMenu", num2 != 0);
|
|
Action<InputAction.CallbackContext> action2 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.sceneMenuController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction2.started += action2;
|
|
}
|
|
|
|
// Token: 0x060010AE RID: 4270 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60010AE")]
|
|
[Address(RVA = "0x541CA0", Offset = "0x540AA0", VA = "0x180541CA0")]
|
|
[CompilerGenerated]
|
|
private void <Init>g__InitUIInputEvent|30_1()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060010B7 RID: 4279 RVA: 0x00026DE0 File Offset: 0x00024FE0
|
|
[Token(Token = "0x60010B7")]
|
|
[Address(RVA = "0x5402B0", Offset = "0x53F0B0", VA = "0x1805402B0")]
|
|
[CompilerGenerated]
|
|
private void <Init>g__InitCharacterController|30_2()
|
|
{
|
|
InputActionMap inputActionMap = this.gameplayActionMap;
|
|
int num = 0;
|
|
InputAction inputAction = inputActionMap.FindAction("CharacterMovementUp", num != 0);
|
|
Action<InputAction.CallbackContext> action = new Action(this.characterMovement.OnUpKeyPressed);
|
|
inputAction.started += action;
|
|
InputActionMap inputActionMap2 = this.gameplayActionMap;
|
|
int num2 = 0;
|
|
InputAction inputAction2 = inputActionMap2.FindAction("CharacterMovementUp", num2 != 0);
|
|
Action<InputAction.CallbackContext> action2 = new Action(this.characterMovement.OnUpKeyPressed);
|
|
inputAction2.canceled += action2;
|
|
InputActionMap inputActionMap3 = this.gameplayActionMap;
|
|
int num3 = 0;
|
|
InputAction inputAction3 = inputActionMap3.FindAction("CharacterMovementDown", num3 != 0);
|
|
Action<InputAction.CallbackContext> action3 = new Action(this.characterMovement.OnDownKeyPressed);
|
|
inputAction3.started += action3;
|
|
InputActionMap inputActionMap4 = this.gameplayActionMap;
|
|
int num4 = 0;
|
|
InputAction inputAction4 = inputActionMap4.FindAction("CharacterMovementDown", num4 != 0);
|
|
Action<InputAction.CallbackContext> action4 = new Action(this.characterMovement.OnDownKeyPressed);
|
|
inputAction4.canceled += action4;
|
|
InputActionMap inputActionMap5 = this.gameplayActionMap;
|
|
int num5 = 0;
|
|
InputAction inputAction5 = inputActionMap5.FindAction("CharacterMovementLeft", num5 != 0);
|
|
Action<InputAction.CallbackContext> action5 = new Action(this.characterMovement.OnLeftKeyPressed);
|
|
inputAction5.started += action5;
|
|
InputActionMap inputActionMap6 = this.gameplayActionMap;
|
|
int num6 = 0;
|
|
InputAction inputAction6 = inputActionMap6.FindAction("CharacterMovementLeft", num6 != 0);
|
|
Action<InputAction.CallbackContext> action6 = new Action(this.characterMovement.OnLeftKeyPressed);
|
|
inputAction6.canceled += action6;
|
|
InputActionMap inputActionMap7 = this.gameplayActionMap;
|
|
int num7 = 0;
|
|
InputAction inputAction7 = inputActionMap7.FindAction("CharacterMovementRight", num7 != 0);
|
|
Action<InputAction.CallbackContext> action7 = new Action(this.characterMovement.OnRightKeyPressed);
|
|
inputAction7.started += action7;
|
|
InputActionMap inputActionMap8 = this.gameplayActionMap;
|
|
int num8 = 0;
|
|
InputAction inputAction8 = inputActionMap8.FindAction("CharacterMovementRight", num8 != 0);
|
|
Action<InputAction.CallbackContext> action8 = new Action(this.characterMovement.OnRightKeyPressed);
|
|
inputAction8.canceled += action8;
|
|
InputActionMap inputActionMap9 = this.gameplayActionMap;
|
|
int num9 = 0;
|
|
InputAction inputAction9 = inputActionMap9.FindAction("CharacterMovement", num9 != 0);
|
|
Action<InputAction.CallbackContext> action9 = new Action(this.characterMovement.OnJoyStickChanged);
|
|
inputAction9.performed += action9;
|
|
InputActionMap inputActionMap10 = this.gameplayActionMap;
|
|
int num10 = 0;
|
|
InputAction inputAction10 = inputActionMap10.FindAction("CharacterMovement", num10 != 0);
|
|
Action<InputAction.CallbackContext> action10 = new Action(this.characterMovement.OnJoyStickChanged);
|
|
inputAction10.canceled += action10;
|
|
InputActionMap inputActionMap11 = this.gameplayActionMap;
|
|
int num11 = 0;
|
|
InputAction inputAction11 = inputActionMap11.FindAction("PointerMovement", num11 != 0);
|
|
Action<InputAction.CallbackContext> action11 = new Action(this.CalculatePointerMovement);
|
|
inputAction11.performed += action11;
|
|
InputActionMap inputActionMap12 = this.gameplayActionMap;
|
|
int num12 = 0;
|
|
InputAction inputAction12 = inputActionMap12.FindAction("PointerMovement", num12 != 0);
|
|
Action<InputAction.CallbackContext> action12 = new Action(this.CalculatePointerMovement);
|
|
inputAction12.canceled += action12;
|
|
InputActionMap inputActionMap13 = this.gameplayActionMap;
|
|
int num13 = 0;
|
|
InputAction inputAction13 = inputActionMap13.FindAction("PointerMovementMouse", num13 != 0);
|
|
Action<InputAction.CallbackContext> action13 = new Action(this.CalculatePointerMovementMouse);
|
|
inputAction13.performed += action13;
|
|
InputActionMap inputActionMap14 = this.gameplayActionMap;
|
|
int num14 = 0;
|
|
InputAction inputAction14 = inputActionMap14.FindAction("PointerMovementMouse", num14 != 0);
|
|
Action<InputAction.CallbackContext> action14 = new Action(this.CalculatePointerMovementMouse);
|
|
inputAction14.canceled += action14;
|
|
InputActionMap inputActionMap15 = this.gameplayActionMap;
|
|
int num15 = 0;
|
|
InputAction inputAction15 = inputActionMap15.FindAction("CameraMode", num15 != 0);
|
|
Action<InputAction.CallbackContext> action15 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.characterController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction15.started += action15;
|
|
InputActionMap inputActionMap16 = this.gameplayActionMap;
|
|
int num16 = 0;
|
|
InputAction inputAction16 = inputActionMap16.FindAction("Jump", num16 != 0);
|
|
Action<InputAction.CallbackContext> action16 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.characterController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction16.started += action16;
|
|
InputActionMap inputActionMap17 = this.gameplayActionMap;
|
|
int num17 = 0;
|
|
InputAction inputAction17 = inputActionMap17.FindAction("Dodge", num17 != 0);
|
|
Action<InputAction.CallbackContext> action17 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.characterController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction17.started += action17;
|
|
InputActionMap inputActionMap18 = this.gameplayActionMap;
|
|
int num18 = 0;
|
|
InputAction inputAction18 = inputActionMap18.FindAction("Interact", num18 != 0);
|
|
Action<InputAction.CallbackContext> action18 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.characterController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction18.started += action18;
|
|
InputActionMap inputActionMap19 = this.gameplayActionMap;
|
|
int num19 = 0;
|
|
InputAction inputAction19 = inputActionMap19.FindAction("Attack", num19 != 0);
|
|
Action<InputAction.CallbackContext> action19 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.characterController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction19.started += action19;
|
|
InputActionMap inputActionMap20 = this.gameplayActionMap;
|
|
int num20 = 0;
|
|
InputAction inputAction20 = inputActionMap20.FindAction("Chant", num20 != 0);
|
|
Action<InputAction.CallbackContext> action20 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.characterController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction20.started += action20;
|
|
InputActionMap inputActionMap21 = this.gameplayActionMap;
|
|
int num21 = 0;
|
|
InputAction inputAction21 = inputActionMap21.FindAction("Walk", num21 != 0);
|
|
Action<InputAction.CallbackContext> action21 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.characterController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction21.started += action21;
|
|
InputActionMap inputActionMap22 = this.gameplayActionMap;
|
|
int num22 = 0;
|
|
InputAction inputAction22 = inputActionMap22.FindAction("Walk", num22 != 0);
|
|
Action<InputAction.CallbackContext> action22 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.characterController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction22.canceled += action22;
|
|
InputActionMap inputActionMap23 = this.gameplayActionMap;
|
|
int num23 = 0;
|
|
InputAction inputAction23 = inputActionMap23.FindAction("Dash", num23 != 0);
|
|
Action<InputAction.CallbackContext> action23 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.characterController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction23.started += action23;
|
|
InputActionMap inputActionMap24 = this.gameplayActionMap;
|
|
int num24 = 0;
|
|
InputAction inputAction24 = inputActionMap24.FindAction("Dash", num24 != 0);
|
|
Action<InputAction.CallbackContext> action24 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.characterController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction24.canceled += action24;
|
|
InputActionMap inputActionMap25 = this.gameplayActionMap;
|
|
int num25 = 0;
|
|
InputAction inputAction25 = inputActionMap25.FindAction("Aim", num25 != 0);
|
|
Action<InputAction.CallbackContext> action25 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.characterController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction25.started += action25;
|
|
InputActionMap inputActionMap26 = this.gameplayActionMap;
|
|
int num26 = 0;
|
|
InputAction inputAction26 = inputActionMap26.FindAction("Aim", num26 != 0);
|
|
Action<InputAction.CallbackContext> action26 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.characterController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction26.canceled += action26;
|
|
InputActionMap inputActionMap27 = this.gameplayActionMap;
|
|
int num27 = 0;
|
|
InputAction inputAction27 = inputActionMap27.FindAction("Shoot", num27 != 0);
|
|
Action<InputAction.CallbackContext> action27 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.characterController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction27.started += action27;
|
|
InputActionMap inputActionMap28 = this.gameplayActionMap;
|
|
int num28 = 0;
|
|
InputAction inputAction28 = inputActionMap28.FindAction("Shoot", num28 != 0);
|
|
Action<InputAction.CallbackContext> action28 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.characterController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction28.canceled += action28;
|
|
}
|
|
|
|
// Token: 0x060010C6 RID: 4294 RVA: 0x000274E8 File Offset: 0x000256E8
|
|
[Token(Token = "0x60010C6")]
|
|
[Address(RVA = "0x541600", Offset = "0x540400", VA = "0x180541600")]
|
|
[CompilerGenerated]
|
|
private void <Init>g__InitMagicController|30_3()
|
|
{
|
|
InputActionMap inputActionMap = this.gameplayActionMap;
|
|
int num = 0;
|
|
InputAction inputAction = inputActionMap.FindAction("MagicMenu", num != 0);
|
|
Action<InputAction.CallbackContext> action = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.magicController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction.started += action;
|
|
InputActionMap inputActionMap2 = this.gameplayActionMap;
|
|
int num2 = 0;
|
|
InputAction inputAction2 = inputActionMap2.FindAction("MagicMenu", num2 != 0);
|
|
Action<InputAction.CallbackContext> action2 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.magicController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction2.canceled += action2;
|
|
InputActionMap inputActionMap3 = this.gameplayActionMap;
|
|
int num3 = 0;
|
|
InputAction inputAction3 = inputActionMap3.FindAction("SecretMagic", num3 != 0);
|
|
Action<InputAction.CallbackContext> action3 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.magicController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction3.started += action3;
|
|
InputActionMap inputActionMap4 = this.gameplayActionMap;
|
|
int num4 = 0;
|
|
InputAction inputAction4 = inputActionMap4.FindAction("IceMagic", num4 != 0);
|
|
Action<InputAction.CallbackContext> action4 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.magicController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction4.started += action4;
|
|
InputActionMap inputActionMap5 = this.gameplayActionMap;
|
|
int num5 = 0;
|
|
InputAction inputAction5 = inputActionMap5.FindAction("FireMagic", num5 != 0);
|
|
Action<InputAction.CallbackContext> action5 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.magicController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction5.started += action5;
|
|
InputActionMap inputActionMap6 = this.gameplayActionMap;
|
|
int num6 = 0;
|
|
InputAction inputAction6 = inputActionMap6.FindAction("ThunderMagic", num6 != 0);
|
|
Action<InputAction.CallbackContext> action6 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.magicController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction6.started += action6;
|
|
}
|
|
|
|
// Token: 0x060010CD RID: 4301 RVA: 0x000276B0 File Offset: 0x000258B0
|
|
[Token(Token = "0x60010CD")]
|
|
[Address(RVA = "0x540F90", Offset = "0x53FD90", VA = "0x180540F90")]
|
|
[CompilerGenerated]
|
|
private void <Init>g__InitItemController|30_4()
|
|
{
|
|
InputActionMap inputActionMap = this.gameplayActionMap;
|
|
int num = 0;
|
|
InputAction inputAction = inputActionMap.FindAction("ItemWheel", num != 0);
|
|
Action<InputAction.CallbackContext> action = new Action(this.CalculateItemSelectionInput);
|
|
inputAction.started += action;
|
|
InputActionMap inputActionMap2 = this.gameplayActionMap;
|
|
int num2 = 0;
|
|
InputAction inputAction2 = inputActionMap2.FindAction("ItemLeftward", num2 != 0);
|
|
Action<InputAction.CallbackContext> action2 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.itemController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction2.started += action2;
|
|
InputActionMap inputActionMap3 = this.gameplayActionMap;
|
|
int num3 = 0;
|
|
InputAction inputAction3 = inputActionMap3.FindAction("ItemRightward", num3 != 0);
|
|
Action<InputAction.CallbackContext> action3 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.itemController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction3.started += action3;
|
|
InputActionMap inputActionMap4 = this.gameplayActionMap;
|
|
int num4 = 0;
|
|
InputAction inputAction4 = inputActionMap4.FindAction("Item01", num4 != 0);
|
|
Action<InputAction.CallbackContext> action4 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.itemController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction4.started += action4;
|
|
InputActionMap inputActionMap5 = this.gameplayActionMap;
|
|
int num5 = 0;
|
|
InputAction inputAction5 = inputActionMap5.FindAction("Item02", num5 != 0);
|
|
Action<InputAction.CallbackContext> action5 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.itemController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction5.started += action5;
|
|
InputActionMap inputActionMap6 = this.gameplayActionMap;
|
|
int num6 = 0;
|
|
InputAction inputAction6 = inputActionMap6.FindAction("Item03", num6 != 0);
|
|
Action<InputAction.CallbackContext> action6 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.itemController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction6.started += action6;
|
|
InputActionMap inputActionMap7 = this.gameplayActionMap;
|
|
int num7 = 0;
|
|
InputAction inputAction7 = inputActionMap7.FindAction("Item04", num7 != 0);
|
|
Action<InputAction.CallbackContext> action7 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.itemController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction7.started += action7;
|
|
InputActionMap inputActionMap8 = this.gameplayActionMap;
|
|
int num8 = 0;
|
|
InputAction inputAction8 = inputActionMap8.FindAction("Item05", num8 != 0);
|
|
Action<InputAction.CallbackContext> action8 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.itemController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction8.started += action8;
|
|
InputActionMap inputActionMap9 = this.gameplayActionMap;
|
|
int num9 = 0;
|
|
InputAction inputAction9 = inputActionMap9.FindAction("Item06", num9 != 0);
|
|
Action<InputAction.CallbackContext> action9 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.itemController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction9.started += action9;
|
|
InputActionMap inputActionMap10 = this.gameplayActionMap;
|
|
int num10 = 0;
|
|
InputAction inputAction10 = inputActionMap10.FindAction("Item07", num10 != 0);
|
|
Action<InputAction.CallbackContext> action10 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.itemController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction10.started += action10;
|
|
InputActionMap inputActionMap11 = this.gameplayActionMap;
|
|
int num11 = 0;
|
|
InputAction inputAction11 = inputActionMap11.FindAction("Item08", num11 != 0);
|
|
Action<InputAction.CallbackContext> action11 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.itemController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction11.started += action11;
|
|
InputActionMap inputActionMap12 = this.gameplayActionMap;
|
|
int num12 = 0;
|
|
InputAction inputAction12 = inputActionMap12.FindAction("UseItem", num12 != 0);
|
|
Action<InputAction.CallbackContext> action12 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.itemController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction12.started += action12;
|
|
InputActionMap inputActionMap13 = this.gameplayActionMap;
|
|
int num13 = 0;
|
|
InputAction inputAction13 = inputActionMap13.FindAction("DropItem", num13 != 0);
|
|
Action<InputAction.CallbackContext> action13 = delegate(InputAction.CallbackContext _)
|
|
{
|
|
if (this.itemController != 0)
|
|
{
|
|
}
|
|
};
|
|
inputAction13.started += action13;
|
|
}
|
|
|
|
// Token: 0x060010DA RID: 4314 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60010DA")]
|
|
[Address(RVA = "0x541A50", Offset = "0x540850", VA = "0x180541A50")]
|
|
[CompilerGenerated]
|
|
private void <Init>g__InitStoryController|30_5()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x04001B28 RID: 6952
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4001B28")]
|
|
[SerializeField]
|
|
private ControllerDevice currentDevice;
|
|
|
|
// Token: 0x04001B29 RID: 6953
|
|
[FieldOffset(Offset = "0x1C")]
|
|
[Token(Token = "0x4001B29")]
|
|
[SerializeField]
|
|
private ControllerDevice lastGamepadController;
|
|
|
|
// Token: 0x04001B2A RID: 6954
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4001B2A")]
|
|
private IUIController uiController;
|
|
|
|
// Token: 0x04001B2B RID: 6955
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4001B2B")]
|
|
private ICharacterController characterController;
|
|
|
|
// Token: 0x04001B2C RID: 6956
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4001B2C")]
|
|
private IMagicController magicController;
|
|
|
|
// Token: 0x04001B2D RID: 6957
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4001B2D")]
|
|
private IItemController itemController;
|
|
|
|
// Token: 0x04001B2E RID: 6958
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4001B2E")]
|
|
private ISceneMenuController sceneMenuController;
|
|
|
|
// Token: 0x04001B2F RID: 6959
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4001B2F")]
|
|
private IStoryController storyController;
|
|
|
|
// Token: 0x04001B30 RID: 6960
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x4001B30")]
|
|
private IPointerController pointerController;
|
|
|
|
// Token: 0x04001B31 RID: 6961
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x4001B31")]
|
|
private PlayerInput playerInput;
|
|
|
|
// Token: 0x04001B32 RID: 6962
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x4001B32")]
|
|
private InputActionMap gameplayActionMap;
|
|
|
|
// Token: 0x04001B33 RID: 6963
|
|
[FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x4001B33")]
|
|
private InputActionMap uiControlActionMap;
|
|
|
|
// Token: 0x04001B34 RID: 6964
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x4001B34")]
|
|
private InputActionMap storyActionMap;
|
|
|
|
// Token: 0x04001B35 RID: 6965
|
|
[FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x4001B35")]
|
|
private CharacterMovementCalculator characterMovement;
|
|
|
|
// Token: 0x04001B36 RID: 6966
|
|
[FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x4001B36")]
|
|
private UIMovementCalculator uiMovement;
|
|
|
|
// Token: 0x04001B37 RID: 6967
|
|
[FieldOffset(Offset = "0x88")]
|
|
[Token(Token = "0x4001B37")]
|
|
private GamepadVibration vibration;
|
|
|
|
// Token: 0x04001B3A RID: 6970
|
|
[FieldOffset(Offset = "0xA0")]
|
|
[Token(Token = "0x4001B3A")]
|
|
private Vector2 cursorPosition;
|
|
|
|
// Token: 0x04001B3B RID: 6971
|
|
[FieldOffset(Offset = "0xA8")]
|
|
[Token(Token = "0x4001B3B")]
|
|
private Action anyKeyDownHandler;
|
|
}
|