173 lines
7.5 KiB
C#
173 lines
7.5 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000291 RID: 657
|
|
[Token(Token = "0x2000291")]
|
|
public class AxisConstrainedRigidbodyPickup : RigidbodyPickup
|
|
{
|
|
// Token: 0x170002D0 RID: 720
|
|
// (get) Token: 0x06001369 RID: 4969 RVA: 0x00051964 File Offset: 0x0004FB64
|
|
[Token(Token = "0x170002D0")]
|
|
public override bool EJODOOIGDLK
|
|
{
|
|
[Token(Token = "0x6001369")]
|
|
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "18")]
|
|
get
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x170002D1 RID: 721
|
|
// (get) Token: 0x0600136A RID: 4970 RVA: 0x00051974 File Offset: 0x0004FB74
|
|
[Token(Token = "0x170002D1")]
|
|
public override Vector3 EHAINJEAMKF
|
|
{
|
|
[Token(Token = "0x600136A")]
|
|
[Address(RVA = "0x215B830", Offset = "0x215A830", VA = "0x18215B830", 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: 0x170002D2 RID: 722
|
|
// (get) Token: 0x0600136B RID: 4971 RVA: 0x000519FC File Offset: 0x0004FBFC
|
|
[Token(Token = "0x170002D2")]
|
|
public override Quaternion IKNMCIEGEHH
|
|
{
|
|
[Token(Token = "0x600136B")]
|
|
[Address(RVA = "0x215BC80", Offset = "0x215AC80", VA = "0x18215BC80", Slot = "17")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600136B)
|
|
|
|
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: 0x0600136C RID: 4972 RVA: 0x00051A28 File Offset: 0x0004FC28
|
|
[Token(Token = "0x600136C")]
|
|
[Address(RVA = "0x215B770", Offset = "0x215A770", VA = "0x18215B770")]
|
|
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: 0x0600136D RID: 4973 RVA: 0x00051A68 File Offset: 0x0004FC68
|
|
[Token(Token = "0x600136D")]
|
|
[Address(RVA = "0x215B7B0", Offset = "0x215A7B0", VA = "0x18215B7B0")]
|
|
public AxisConstrainedRigidbodyPickup()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000F73 RID: 3955
|
|
[FieldOffset(Offset = "0xD8")]
|
|
[Token(Token = "0x4000F73")]
|
|
[Header("Movement constraints")]
|
|
public AxisConstrainedRigidbodyPickup.LNCKNLMOLIE allowMovementOnX = (AxisConstrainedRigidbodyPickup.LNCKNLMOLIE)((ulong)2L);
|
|
|
|
// Token: 0x04000F74 RID: 3956
|
|
[FieldOffset(Offset = "0xDC")]
|
|
[Token(Token = "0x4000F74")]
|
|
public AxisConstrainedRigidbodyPickup.LNCKNLMOLIE allowMovementOnY = (AxisConstrainedRigidbodyPickup.LNCKNLMOLIE)((ulong)2L);
|
|
|
|
// Token: 0x04000F75 RID: 3957
|
|
[FieldOffset(Offset = "0xE0")]
|
|
[Token(Token = "0x4000F75")]
|
|
public AxisConstrainedRigidbodyPickup.LNCKNLMOLIE allowMovementOnZ = (AxisConstrainedRigidbodyPickup.LNCKNLMOLIE)((ulong)2L);
|
|
|
|
// Token: 0x04000F76 RID: 3958
|
|
[FieldOffset(Offset = "0xE4")]
|
|
[Token(Token = "0x4000F76")]
|
|
[Header("Rotation constraints")]
|
|
public bool allowRotationOnX = true;
|
|
|
|
// Token: 0x04000F77 RID: 3959
|
|
[FieldOffset(Offset = "0xE5")]
|
|
[Token(Token = "0x4000F77")]
|
|
public bool allowRotationOnY;
|
|
|
|
// Token: 0x04000F78 RID: 3960
|
|
[FieldOffset(Offset = "0xE6")]
|
|
[Token(Token = "0x4000F78")]
|
|
public bool allowRotationOnZ = true;
|
|
|
|
// Token: 0x04000F79 RID: 3961
|
|
[FieldOffset(Offset = "0xE7")]
|
|
[Token(Token = "0x4000F79")]
|
|
[Header("Spherical constraints")]
|
|
public bool constrainToSphere;
|
|
|
|
// Token: 0x04000F7A RID: 3962
|
|
[FieldOffset(Offset = "0xE8")]
|
|
[Token(Token = "0x4000F7A")]
|
|
public Vector3 sphericalRestrictionCenter;
|
|
|
|
// Token: 0x04000F7B RID: 3963
|
|
[FieldOffset(Offset = "0xF4")]
|
|
[Token(Token = "0x4000F7B")]
|
|
public float sphericalRestrictionRadius;
|
|
|
|
// Token: 0x02000292 RID: 658
|
|
[Token(Token = "0x2000292")]
|
|
public enum LNCKNLMOLIE
|
|
{
|
|
// Token: 0x04000F7D RID: 3965
|
|
[Token(Token = "0x4000F7D")]
|
|
All = 2,
|
|
// Token: 0x04000F7E RID: 3966
|
|
[Token(Token = "0x4000F7E")]
|
|
None = 0,
|
|
// Token: 0x04000F7F RID: 3967
|
|
[Token(Token = "0x4000F7F")]
|
|
Positive,
|
|
// Token: 0x04000F80 RID: 3968
|
|
[Token(Token = "0x4000F80")]
|
|
Negative = -1
|
|
}
|
|
}
|