Files
NobetaSource/Cpp2IL/Assembly-CSharp/RootMotion/Demos/FPSCharacter.cs
2023-09-06 22:09:22 +02:00

80 lines
4.5 KiB
C#

using System;
using Cpp2IlInjected;
using UnityEngine;
namespace RootMotion.Demos
{
// Token: 0x020003C7 RID: 967
[Token(Token = "0x20003C7")]
[RequireComponent(typeof(Animator))]
[RequireComponent(typeof(FPSAiming))]
public class FPSCharacter : MonoBehaviour
{
// Token: 0x06002387 RID: 9095 RVA: 0x000515B8 File Offset: 0x0004F7B8
[Token(Token = "0x6002387")]
[Address(RVA = "0x4CCC80", Offset = "0x4CB480", VA = "0x1804CCC80")]
private void Start()
{
/*
An exception occurred when decompiling this method (06002387)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void RootMotion.Demos.FPSCharacter::Start()
---> System.Exception: Basic block has to end with unconditional control flow.
{; Block_0:; stloc:Animator(var_0_06, call:Animator(Component::GetComponent, ldloc:FPSCharacter[exp:Component](this))); stfld:Animator(FPSCharacter::animator, ldloc:FPSCharacter(this), ldloc:Animator(var_0_06)); stloc:FPSAiming(var_1_14, call:FPSAiming(Component::GetComponent, ldloc:FPSCharacter[exp:Component](this))); stfld:FPSAiming(FPSCharacter::FPSAiming, ldloc:FPSCharacter(this), ldloc:FPSAiming(var_1_14)); };
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: 0x06002388 RID: 9096 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002388")]
[Address(RVA = "0x4CCD00", Offset = "0x4CB500", VA = "0x1804CCD00")]
private void Update()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002389 RID: 9097 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002389")]
[Address(RVA = "0x4CCBC0", Offset = "0x4CB3C0", VA = "0x1804CCBC0")]
private void OnGUI()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x0600238A RID: 9098 RVA: 0x000515E0 File Offset: 0x0004F7E0
[Token(Token = "0x600238A")]
[Address(RVA = "0x4CCDF0", Offset = "0x4CB5F0", VA = "0x1804CCDF0")]
public FPSCharacter()
{
}
// Token: 0x04002D08 RID: 11528
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4002D08")]
[Range(0f, 1f)]
public float walkSpeed = 0.5f;
// Token: 0x04002D09 RID: 11529
[FieldOffset(Offset = "0x1C")]
[Token(Token = "0x4002D09")]
private float sVel;
// Token: 0x04002D0A RID: 11530
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4002D0A")]
private Animator animator;
// Token: 0x04002D0B RID: 11531
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4002D0B")]
private FPSAiming FPSAiming;
}
}