Files
Aug2021-Cpp2IL-Dump/Assembly-CSharp/AxisConstrainedRigidbodyPickup.cs
2026-04-10 22:50:51 +02:00

173 lines
7.5 KiB
C#

using System;
using Cpp2IlInjected;
using UnityEngine;
// Token: 0x0200028B RID: 651
[Token(Token = "0x200028B")]
public class AxisConstrainedRigidbodyPickup : RigidbodyPickup
{
// Token: 0x170002CB RID: 715
// (get) Token: 0x0600132B RID: 4907 RVA: 0x00050C6C File Offset: 0x0004EE6C
[Token(Token = "0x170002CB")]
public override bool EJODOOIGDLK
{
[Token(Token = "0x600132B")]
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "18")]
get
{
}
}
// Token: 0x170002CC RID: 716
// (get) Token: 0x0600132C RID: 4908 RVA: 0x00050C7C File Offset: 0x0004EE7C
[Token(Token = "0x170002CC")]
public override Vector3 EHAINJEAMKF
{
[Token(Token = "0x600132C")]
[Address(RVA = "0x16B1320", Offset = "0x16B0120", VA = "0x1816B1320", Slot = "16")]
get
{
Vector3 vector;
float z = vector.z;
Vector3 vector2;
float z2 = vector2.z;
if (z2 == 3E-45f || z2 == 0f || z2 == float.NaN)
{
}
if (z2 == 3E-45f || z2 == 0f || z2 == float.NaN)
{
}
if (z2 == 3E-45f || z2 == 0f || z2 == float.NaN)
{
}
if ("{il2cpp array field il2cppMethodInfo->}" != (ulong)0L)
{
Vector3 vector3;
float z3 = vector3.z;
}
throw new NullReferenceException();
}
}
// Token: 0x170002CD RID: 717
// (get) Token: 0x0600132D RID: 4909 RVA: 0x00050D04 File Offset: 0x0004EF04
[Token(Token = "0x170002CD")]
public override Quaternion IKNMCIEGEHH
{
[Token(Token = "0x600132D")]
[Address(RVA = "0x16B1770", Offset = "0x16B0570", VA = "0x1816B1770", Slot = "17")]
get
{
/*
An exception occurred when decompiling this method (0600132D)
ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Quaternion AxisConstrainedRigidbodyPickup::get_TargetRotation()
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_14:
brtrue(IL_00, cne:bool(ldstr:string("{il2cpp array field il2cppMethodInfo->}"), conv.u8:uint64[exp:string](ldc.i8:int64[exp:uint64](0))))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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 355
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 1663
*/;
}
}
// Token: 0x0600132E RID: 4910 RVA: 0x00050D30 File Offset: 0x0004EF30
[Token(Token = "0x600132E")]
[Address(RVA = "0x16B1260", Offset = "0x16B0060", VA = "0x1816B1260")]
public void SetAllConstraints(bool DKJHBFBFOEG)
{
this.constrainToSphere = DKJHBFBFOEG;
this.allowRotationOnZ = DKJHBFBFOEG;
this.allowRotationOnY = DKJHBFBFOEG;
this.allowMovementOnZ = (DKJHBFBFOEG ? AxisConstrainedRigidbodyPickup.LNCKNLMOLIE.Positive : AxisConstrainedRigidbodyPickup.LNCKNLMOLIE.None);
this.allowMovementOnY = (DKJHBFBFOEG ? AxisConstrainedRigidbodyPickup.LNCKNLMOLIE.Positive : AxisConstrainedRigidbodyPickup.LNCKNLMOLIE.None);
this.allowMovementOnX = (DKJHBFBFOEG ? AxisConstrainedRigidbodyPickup.LNCKNLMOLIE.Positive : AxisConstrainedRigidbodyPickup.LNCKNLMOLIE.None);
this.allowRotationOnX = DKJHBFBFOEG;
}
// Token: 0x0600132F RID: 4911 RVA: 0x00050D70 File Offset: 0x0004EF70
[Token(Token = "0x600132F")]
[Address(RVA = "0x16B12A0", Offset = "0x16B00A0", VA = "0x1816B12A0")]
public AxisConstrainedRigidbodyPickup()
{
}
// Token: 0x04000F3F RID: 3903
[FieldOffset(Offset = "0xD8")]
[Token(Token = "0x4000F3F")]
[Header("Movement constraints")]
public AxisConstrainedRigidbodyPickup.LNCKNLMOLIE allowMovementOnX = (AxisConstrainedRigidbodyPickup.LNCKNLMOLIE)((ulong)2L);
// Token: 0x04000F40 RID: 3904
[FieldOffset(Offset = "0xDC")]
[Token(Token = "0x4000F40")]
public AxisConstrainedRigidbodyPickup.LNCKNLMOLIE allowMovementOnY = (AxisConstrainedRigidbodyPickup.LNCKNLMOLIE)((ulong)2L);
// Token: 0x04000F41 RID: 3905
[FieldOffset(Offset = "0xE0")]
[Token(Token = "0x4000F41")]
public AxisConstrainedRigidbodyPickup.LNCKNLMOLIE allowMovementOnZ = (AxisConstrainedRigidbodyPickup.LNCKNLMOLIE)((ulong)2L);
// Token: 0x04000F42 RID: 3906
[FieldOffset(Offset = "0xE4")]
[Token(Token = "0x4000F42")]
[Header("Rotation constraints")]
public bool allowRotationOnX = true;
// Token: 0x04000F43 RID: 3907
[FieldOffset(Offset = "0xE5")]
[Token(Token = "0x4000F43")]
public bool allowRotationOnY;
// Token: 0x04000F44 RID: 3908
[FieldOffset(Offset = "0xE6")]
[Token(Token = "0x4000F44")]
public bool allowRotationOnZ = true;
// Token: 0x04000F45 RID: 3909
[FieldOffset(Offset = "0xE7")]
[Token(Token = "0x4000F45")]
[Header("Spherical constraints")]
public bool constrainToSphere;
// Token: 0x04000F46 RID: 3910
[FieldOffset(Offset = "0xE8")]
[Token(Token = "0x4000F46")]
public Vector3 sphericalRestrictionCenter;
// Token: 0x04000F47 RID: 3911
[FieldOffset(Offset = "0xF4")]
[Token(Token = "0x4000F47")]
public float sphericalRestrictionRadius;
// Token: 0x0200028C RID: 652
[Token(Token = "0x200028C")]
public enum LNCKNLMOLIE
{
// Token: 0x04000F49 RID: 3913
[Token(Token = "0x4000F49")]
All = 2,
// Token: 0x04000F4A RID: 3914
[Token(Token = "0x4000F4A")]
None = 0,
// Token: 0x04000F4B RID: 3915
[Token(Token = "0x4000F4B")]
Positive,
// Token: 0x04000F4C RID: 3916
[Token(Token = "0x4000F4C")]
Negative = -1
}
}