Files
Jan2021-Cpp2Il-Dump/Assembly-CSharp/AxisConstrainedRigidbodyPickup.cs
2026-04-08 23:40:05 +02:00

177 lines
7.8 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
using UnityEngine;
// Token: 0x0200029B RID: 667
[Token(Token = "0x200029B")]
[StructLayout(3)]
public class AxisConstrainedRigidbodyPickup : RigidbodyPickup
{
// Token: 0x170002D3 RID: 723
// (get) Token: 0x0600138C RID: 5004 RVA: 0x00052388 File Offset: 0x00050588
[Token(Token = "0x170002D3")]
public override bool EJODOOIGDLK
{
[Token(Token = "0x600138C")]
[Address(RVA = "0x413970", Offset = "0x412370", VA = "0x180413970", Slot = "18")]
get
{
}
}
// Token: 0x170002D4 RID: 724
// (get) Token: 0x0600138D RID: 5005 RVA: 0x00052398 File Offset: 0x00050598
[Token(Token = "0x170002D4")]
public override Vector3 EHAINJEAMKF
{
[Token(Token = "0x600138D")]
[Address(RVA = "0x1D550C0", Offset = "0x1D53AC0", VA = "0x181D550C0", 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;
Vector3 vector4;
float z4 = vector4.z;
}
throw new NullReferenceException();
}
}
// Token: 0x170002D5 RID: 725
// (get) Token: 0x0600138E RID: 5006 RVA: 0x00052428 File Offset: 0x00050628
[Token(Token = "0x170002D5")]
public override Quaternion IKNMCIEGEHH
{
[Token(Token = "0x600138E")]
[Address(RVA = "0x1D55510", Offset = "0x1D53F10", VA = "0x181D55510", Slot = "17")]
get
{
/*
An exception occurred when decompiling this method (0600138E)
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: 0x0600138F RID: 5007 RVA: 0x00052454 File Offset: 0x00050654
[Token(Token = "0x600138F")]
[Address(RVA = "0x1D55000", Offset = "0x1D53A00", VA = "0x181D55000")]
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: 0x06001390 RID: 5008 RVA: 0x00052494 File Offset: 0x00050694
[Token(Token = "0x6001390")]
[Address(RVA = "0x1D55040", Offset = "0x1D53A40", VA = "0x181D55040")]
public AxisConstrainedRigidbodyPickup()
{
}
// Token: 0x04000F87 RID: 3975
[global::Cpp2IlInjected.FieldOffset(Offset = "0xD8")]
[Token(Token = "0x4000F87")]
[Header("Movement constraints")]
public AxisConstrainedRigidbodyPickup.LNCKNLMOLIE allowMovementOnX = (AxisConstrainedRigidbodyPickup.LNCKNLMOLIE)((ulong)2L);
// Token: 0x04000F88 RID: 3976
[global::Cpp2IlInjected.FieldOffset(Offset = "0xDC")]
[Token(Token = "0x4000F88")]
public AxisConstrainedRigidbodyPickup.LNCKNLMOLIE allowMovementOnY = (AxisConstrainedRigidbodyPickup.LNCKNLMOLIE)((ulong)2L);
// Token: 0x04000F89 RID: 3977
[global::Cpp2IlInjected.FieldOffset(Offset = "0xE0")]
[Token(Token = "0x4000F89")]
public AxisConstrainedRigidbodyPickup.LNCKNLMOLIE allowMovementOnZ = (AxisConstrainedRigidbodyPickup.LNCKNLMOLIE)((ulong)2L);
// Token: 0x04000F8A RID: 3978
[global::Cpp2IlInjected.FieldOffset(Offset = "0xE4")]
[Token(Token = "0x4000F8A")]
[Header("Rotation constraints")]
public bool allowRotationOnX = true;
// Token: 0x04000F8B RID: 3979
[global::Cpp2IlInjected.FieldOffset(Offset = "0xE5")]
[Token(Token = "0x4000F8B")]
public bool allowRotationOnY;
// Token: 0x04000F8C RID: 3980
[global::Cpp2IlInjected.FieldOffset(Offset = "0xE6")]
[Token(Token = "0x4000F8C")]
public bool allowRotationOnZ = true;
// Token: 0x04000F8D RID: 3981
[global::Cpp2IlInjected.FieldOffset(Offset = "0xE7")]
[Token(Token = "0x4000F8D")]
[Header("Spherical constraints")]
public bool constrainToSphere;
// Token: 0x04000F8E RID: 3982
[global::Cpp2IlInjected.FieldOffset(Offset = "0xE8")]
[Token(Token = "0x4000F8E")]
public Vector3 sphericalRestrictionCenter;
// Token: 0x04000F8F RID: 3983
[global::Cpp2IlInjected.FieldOffset(Offset = "0xF4")]
[Token(Token = "0x4000F8F")]
public float sphericalRestrictionRadius;
// Token: 0x0200029C RID: 668
[Token(Token = "0x200029C")]
public enum LNCKNLMOLIE
{
// Token: 0x04000F91 RID: 3985
[Token(Token = "0x4000F91")]
All = 2,
// Token: 0x04000F92 RID: 3986
[Token(Token = "0x4000F92")]
None = 0,
// Token: 0x04000F93 RID: 3987
[Token(Token = "0x4000F93")]
Positive,
// Token: 0x04000F94 RID: 3988
[Token(Token = "0x4000F94")]
Negative = -1
}
}