oh dear
This commit is contained in:
@@ -0,0 +1,183 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Cpp2IlInjected;
|
||||
using RecRoom.Core.Screens.PlayerController;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Delaunay
|
||||
{
|
||||
// Token: 0x0200163C RID: 5692
|
||||
[Token(Token = "0x200163C")]
|
||||
[RequireComponent(typeof(MeshFilter), typeof(MeshRenderer))]
|
||||
public class Delaunay3DTestComponent : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06008365 RID: 33637 RVA: 0x001C08C8 File Offset: 0x001BEAC8
|
||||
[Token(Token = "0x6008365")]
|
||||
[Address(RVA = "0x1083900", Offset = "0x1082700", VA = "0x181083900")]
|
||||
private void Reset()
|
||||
{
|
||||
MeshFilter component = base.GetComponent<MeshFilter>();
|
||||
this.meshFilter = component;
|
||||
}
|
||||
|
||||
// Token: 0x06008366 RID: 33638 RVA: 0x001C08E4 File Offset: 0x001BEAE4
|
||||
[Token(Token = "0x6008366")]
|
||||
[Address(RVA = "0x10829E0", Offset = "0x10817E0", VA = "0x1810829E0")]
|
||||
[ContextMenu("Generate Delaunay Graph")]
|
||||
public void GenerateDelaunayGraph()
|
||||
{
|
||||
HMBJKFIMOFL hmbjkfimofl = new HMBJKFIMOFL();
|
||||
}
|
||||
|
||||
// Token: 0x06008367 RID: 33639 RVA: 0x001C0900 File Offset: 0x001BEB00
|
||||
[Token(Token = "0x6008367")]
|
||||
[Address(RVA = "0x1083660", Offset = "0x1082460", VA = "0x181083660")]
|
||||
private void OnValidate()
|
||||
{
|
||||
PlayerAnimation3DBlendedPoseSet playerAnimation3DBlendedPoseSet = this.assignPoseSetToDebug;
|
||||
int num = 0;
|
||||
if (playerAnimation3DBlendedPoseSet != num)
|
||||
{
|
||||
List<AnimationVertex> list = this.assignPoseSetToDebug.animationVertices;
|
||||
this.animationVertices = list;
|
||||
this.assignPoseSetToDebug = (ulong)0L;
|
||||
HMBJKFIMOFL hmbjkfimofl = new HMBJKFIMOFL();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06008368 RID: 33640 RVA: 0x001C0948 File Offset: 0x001BEB48
|
||||
[Token(Token = "0x6008368")]
|
||||
[Address(RVA = "0x1083750", Offset = "0x1082550", VA = "0x181083750")]
|
||||
[ContextMenu("Random Delaunay Graph")]
|
||||
public void RandomizeGraphVertices()
|
||||
{
|
||||
this.animationVertices.Clear();
|
||||
int num = 0;
|
||||
if (this.pointCount > num)
|
||||
{
|
||||
List<AnimationVertex> list = this.animationVertices;
|
||||
AnimationVertex animationVertex = new AnimationVertex();
|
||||
float z = global::UnityEngine.Random.insideUnitSphere.z;
|
||||
Vector3 vector;
|
||||
float z2 = vector.z;
|
||||
list.Add(animationVertex);
|
||||
num++;
|
||||
}
|
||||
HMBJKFIMOFL hmbjkfimofl = new HMBJKFIMOFL();
|
||||
}
|
||||
|
||||
// Token: 0x06008369 RID: 33641 RVA: 0x001C09A4 File Offset: 0x001BEBA4
|
||||
[Token(Token = "0x6008369")]
|
||||
[Address(RVA = "0x1083940", Offset = "0x1082740", VA = "0x181083940")]
|
||||
[ContextMenu("Random Delaunay Mesh")]
|
||||
public void TestDelaunayMesh()
|
||||
{
|
||||
List<Vector3> list = new List(this.pointCount);
|
||||
int num = 0;
|
||||
if (this.pointCount > num)
|
||||
{
|
||||
float z = global::UnityEngine.Random.insideUnitSphere.z;
|
||||
num++;
|
||||
}
|
||||
HMBJKFIMOFL hmbjkfimofl = new HMBJKFIMOFL();
|
||||
bool flag = this.discardInteriorTriangles;
|
||||
MeshFilter meshFilter = this.meshFilter;
|
||||
hmbjkfimofl.GFGFAKDLCLJ(list, meshFilter, flag);
|
||||
}
|
||||
|
||||
// Token: 0x0600836A RID: 33642 RVA: 0x001C0A00 File Offset: 0x001BEC00
|
||||
[Token(Token = "0x600836A")]
|
||||
[Address(RVA = "0x5329E0", Offset = "0x5317E0", VA = "0x1805329E0")]
|
||||
public void SetVertices(List<AnimationVertex> GBNAMEDMFNJ)
|
||||
{
|
||||
this.animationVertices = GBNAMEDMFNJ;
|
||||
}
|
||||
|
||||
// Token: 0x0600836B RID: 33643 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600836B")]
|
||||
[Address(RVA = "0x1082A60", Offset = "0x1081860", VA = "0x181082A60")]
|
||||
private void OnDrawGizmos()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600836C RID: 33644 RVA: 0x001C0A14 File Offset: 0x001BEC14
|
||||
[Token(Token = "0x600836C")]
|
||||
[Address(RVA = "0x1083A30", Offset = "0x1082830", VA = "0x181083A30")]
|
||||
public Delaunay3DTestComponent()
|
||||
{
|
||||
List<AnimationVertex> list = new List();
|
||||
AnimationVertex animationVertex = new AnimationVertex();
|
||||
float z = Vector3.zero.z;
|
||||
list.Add(animationVertex);
|
||||
AnimationVertex animationVertex2 = new AnimationVertex();
|
||||
float z2 = Vector3.left.z;
|
||||
list.Add(animationVertex2);
|
||||
AnimationVertex animationVertex3 = new AnimationVertex();
|
||||
float z3 = Vector3.right.z;
|
||||
list.Add(animationVertex3);
|
||||
AnimationVertex animationVertex4 = new AnimationVertex();
|
||||
float z4 = Vector3.down.z;
|
||||
list.Add(animationVertex4);
|
||||
AnimationVertex animationVertex5 = new AnimationVertex();
|
||||
float z5 = Vector3.up.z;
|
||||
list.Add(animationVertex5);
|
||||
AnimationVertex animationVertex6 = new AnimationVertex();
|
||||
float z6 = Vector3.back.z;
|
||||
list.Add(animationVertex6);
|
||||
AnimationVertex animationVertex7 = new AnimationVertex();
|
||||
float z7 = Vector3.forward.z;
|
||||
list.Add(animationVertex7);
|
||||
this.animationVertices = list;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x04005782 RID: 22402
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4005782")]
|
||||
[Header("Shared settings for randomization")]
|
||||
public int pointCount = (int)((ulong)32L);
|
||||
|
||||
// Token: 0x04005783 RID: 22403
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4005783")]
|
||||
[Header("Mesh Options")]
|
||||
public MeshFilter meshFilter;
|
||||
|
||||
// Token: 0x04005784 RID: 22404
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4005784")]
|
||||
public bool discardInteriorTriangles;
|
||||
|
||||
// Token: 0x04005785 RID: 22405
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4005785")]
|
||||
[SerializeField]
|
||||
[Header("Graph Options (Randomize is in gear menu)")]
|
||||
private PlayerAnimation3DBlendedPoseSet assignPoseSetToDebug;
|
||||
|
||||
// Token: 0x04005786 RID: 22406
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4005786")]
|
||||
[SerializeField]
|
||||
private List<AnimationVertex> animationVertices;
|
||||
|
||||
// Token: 0x04005787 RID: 22407
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4005787")]
|
||||
[SerializeField]
|
||||
private List<Tetrahedron> tetrahedra;
|
||||
|
||||
// Token: 0x04005788 RID: 22408
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4005788")]
|
||||
[SerializeField]
|
||||
private List<int> exteriorTriangleIndices;
|
||||
|
||||
// Token: 0x04005789 RID: 22409
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4005789")]
|
||||
[SerializeField]
|
||||
private Gradient gizmoColorByBarycentricWeight;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,132 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Delaunay
|
||||
{
|
||||
// Token: 0x02001638 RID: 5688
|
||||
[Token(Token = "0x2001638")]
|
||||
[Serializable]
|
||||
public class Tetrahedron
|
||||
{
|
||||
// Token: 0x06008352 RID: 33618 RVA: 0x001C0384 File Offset: 0x001BE584
|
||||
[Token(Token = "0x6008352")]
|
||||
[Address(RVA = "0x108A580", Offset = "0x1089380", VA = "0x18108A580")]
|
||||
public Tetrahedron()
|
||||
{
|
||||
int[] array = new int[4];
|
||||
this.vertexIndices = array;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x06008353 RID: 33619 RVA: 0x001C03A8 File Offset: 0x001BE5A8
|
||||
[Token(Token = "0x6008353")]
|
||||
[Address(RVA = "0x108A5D0", Offset = "0x10893D0", VA = "0x18108A5D0")]
|
||||
public Tetrahedron(int IHICIJCIAJB, int AKGEMLABIGE, int KBFPCPNAMIH, int DECFDMEJLIG)
|
||||
{
|
||||
int[] array = new int[4];
|
||||
this.vertexIndices = array;
|
||||
base..ctor();
|
||||
this.vertexIndices[0] = IHICIJCIAJB;
|
||||
this.vertexIndices[0] = AKGEMLABIGE;
|
||||
this.vertexIndices[1] = KBFPCPNAMIH;
|
||||
int[] array2 = this.vertexIndices;
|
||||
}
|
||||
|
||||
// Token: 0x06008354 RID: 33620 RVA: 0x001C0400 File Offset: 0x001BE600
|
||||
[Token(Token = "0x6008354")]
|
||||
[Address(RVA = "0x1B60640", Offset = "0x1B5F440", VA = "0x181B60640")]
|
||||
public void EAEAIJOAJEA<VertexT, T>(List<VertexT> BDJENLHNDON) where VertexT : Vertex<T>
|
||||
{
|
||||
int[] array = this.vertexIndices;
|
||||
int[] array2 = this.vertexIndices;
|
||||
int[] array3 = this.vertexIndices;
|
||||
int[] array4 = this.vertexIndices;
|
||||
this.D.z = BDJENLHNDON;
|
||||
float z = this.C.z;
|
||||
float z2 = this.B.z;
|
||||
float z3 = this.A.z;
|
||||
}
|
||||
|
||||
// Token: 0x06008355 RID: 33621 RVA: 0x001C0464 File Offset: 0x001BE664
|
||||
[Token(Token = "0x6008355")]
|
||||
[Address(RVA = "0x108A2B0", Offset = "0x10890B0", VA = "0x18108A2B0")]
|
||||
public bool LIBPGFEBAFM(Vector3 KPLDEODOJID)
|
||||
{
|
||||
bool flag;
|
||||
bool flag2;
|
||||
bool flag3;
|
||||
bool flag4;
|
||||
if (!flag || !flag2 || !flag3 || flag4)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06008356 RID: 33622 RVA: 0x001C0488 File Offset: 0x001BE688
|
||||
[Token(Token = "0x6008356")]
|
||||
[Address(RVA = "0x108A470", Offset = "0x1089270", VA = "0x18108A470")]
|
||||
public bool PKDBFBGOMCC(Vector3 KPLDEODOJID)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06008356)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Delaunay.Tetrahedron::PKDBFBGOMCC(UnityEngine.Vector3)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:float32(var_0_0B, ldfld:float32(Vector3::z, ldfld:Vector3[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3&](Tetrahedron::CircumCenter, ldloc:Tetrahedron(this))))
|
||||
stloc:float32(var_1_12, ldfld:float32(Vector3::z, ldloc:Vector3[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3&](KPLDEODOJID)))
|
||||
stloc:float32(var_3_19, ldfld:float32(Vector3::z, ldloc:Vector3[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3&](var_2)))
|
||||
stloc:float32(var_5_20, ldfld:float32(Tetrahedron::CircumRadiusSquared, ldloc:Tetrahedron(this)))
|
||||
}
|
||||
|
||||
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.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: 0x04005774 RID: 22388
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4005774")]
|
||||
[SerializeField]
|
||||
public int[] vertexIndices;
|
||||
|
||||
// Token: 0x04005775 RID: 22389
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4005775")]
|
||||
public Vector3 A;
|
||||
|
||||
// Token: 0x04005776 RID: 22390
|
||||
[FieldOffset(Offset = "0x24")]
|
||||
[Token(Token = "0x4005776")]
|
||||
public Vector3 B;
|
||||
|
||||
// Token: 0x04005777 RID: 22391
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4005777")]
|
||||
public Vector3 C;
|
||||
|
||||
// Token: 0x04005778 RID: 22392
|
||||
[FieldOffset(Offset = "0x3C")]
|
||||
[Token(Token = "0x4005778")]
|
||||
public Vector3 D;
|
||||
|
||||
// Token: 0x04005779 RID: 22393
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4005779")]
|
||||
public Vector3 CircumCenter;
|
||||
|
||||
// Token: 0x0400577A RID: 22394
|
||||
[FieldOffset(Offset = "0x54")]
|
||||
[Token(Token = "0x400577A")]
|
||||
public float CircumRadiusSquared;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Delaunay
|
||||
{
|
||||
// Token: 0x02001637 RID: 5687
|
||||
[Token(Token = "0x2001637")]
|
||||
[Serializable]
|
||||
public class Vertex<T>
|
||||
{
|
||||
// Token: 0x06008351 RID: 33617 RVA: 0x001C0368 File Offset: 0x001BE568
|
||||
[Token(Token = "0x6008351")]
|
||||
[Address(RVA = "0x118F5A0", Offset = "0x118E3A0", VA = "0x18118F5A0")]
|
||||
public Vertex()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04005772 RID: 22386
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4005772")]
|
||||
public T Data;
|
||||
|
||||
// Token: 0x04005773 RID: 22387
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4005773")]
|
||||
public Vector3 Position;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user