scripts
This commit is contained in:
@@ -0,0 +1,185 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using RecRoom.Core.Screens.PlayerController;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Delaunay
|
||||
{
|
||||
// Token: 0x02001015 RID: 4117
|
||||
[Token(Token = "0x2001015")]
|
||||
[RequireComponent(typeof(MeshFilter), typeof(MeshRenderer))]
|
||||
[StructLayout(3)]
|
||||
public class Delaunay3DTestComponent : MonoBehaviour
|
||||
{
|
||||
// Token: 0x060063BD RID: 25533 RVA: 0x0015E5A0 File Offset: 0x0015C7A0
|
||||
[Token(Token = "0x60063BD")]
|
||||
[Address(RVA = "0x169FBF0", Offset = "0x169E5F0", VA = "0x18169FBF0")]
|
||||
private void Reset()
|
||||
{
|
||||
MeshFilter component = base.GetComponent<MeshFilter>();
|
||||
this.meshFilter = component;
|
||||
}
|
||||
|
||||
// Token: 0x060063BE RID: 25534 RVA: 0x0015E5BC File Offset: 0x0015C7BC
|
||||
[Token(Token = "0x60063BE")]
|
||||
[Address(RVA = "0x169EC90", Offset = "0x169D690", VA = "0x18169EC90")]
|
||||
[ContextMenu("Generate Delaunay Graph")]
|
||||
public void GenerateDelaunayGraph()
|
||||
{
|
||||
HMBJKFIMOFL hmbjkfimofl = new HMBJKFIMOFL();
|
||||
}
|
||||
|
||||
// Token: 0x060063BF RID: 25535 RVA: 0x0015E5D8 File Offset: 0x0015C7D8
|
||||
[Token(Token = "0x60063BF")]
|
||||
[Address(RVA = "0x169F950", Offset = "0x169E350", VA = "0x18169F950")]
|
||||
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: 0x060063C0 RID: 25536 RVA: 0x0015E620 File Offset: 0x0015C820
|
||||
[Token(Token = "0x60063C0")]
|
||||
[Address(RVA = "0x169FA40", Offset = "0x169E440", VA = "0x18169FA40")]
|
||||
[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: 0x060063C1 RID: 25537 RVA: 0x0015E67C File Offset: 0x0015C87C
|
||||
[Token(Token = "0x60063C1")]
|
||||
[Address(RVA = "0x169FC30", Offset = "0x169E630", VA = "0x18169FC30")]
|
||||
[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: 0x060063C2 RID: 25538 RVA: 0x0015E6D8 File Offset: 0x0015C8D8
|
||||
[Token(Token = "0x60063C2")]
|
||||
[Address(RVA = "0x421E00", Offset = "0x420800", VA = "0x180421E00")]
|
||||
public void SetVertices(List<AnimationVertex> GBNAMEDMFNJ)
|
||||
{
|
||||
this.animationVertices = GBNAMEDMFNJ;
|
||||
}
|
||||
|
||||
// Token: 0x060063C3 RID: 25539 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x60063C3")]
|
||||
[Address(RVA = "0x169ED10", Offset = "0x169D710", VA = "0x18169ED10")]
|
||||
private void OnDrawGizmos()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060063C4 RID: 25540 RVA: 0x0015E6EC File Offset: 0x0015C8EC
|
||||
[Token(Token = "0x60063C4")]
|
||||
[Address(RVA = "0x169FD20", Offset = "0x169E720", VA = "0x18169FD20")]
|
||||
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: 0x0400474A RID: 18250
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400474A")]
|
||||
[Header("Shared settings for randomization")]
|
||||
public int pointCount = (int)((ulong)32L);
|
||||
|
||||
// Token: 0x0400474B RID: 18251
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400474B")]
|
||||
[Header("Mesh Options")]
|
||||
public MeshFilter meshFilter;
|
||||
|
||||
// Token: 0x0400474C RID: 18252
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400474C")]
|
||||
public bool discardInteriorTriangles;
|
||||
|
||||
// Token: 0x0400474D RID: 18253
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400474D")]
|
||||
[SerializeField]
|
||||
[Header("Graph Options (Randomize is in gear menu)")]
|
||||
private PlayerAnimation3DBlendedPoseSet assignPoseSetToDebug;
|
||||
|
||||
// Token: 0x0400474E RID: 18254
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400474E")]
|
||||
[SerializeField]
|
||||
private List<AnimationVertex> animationVertices;
|
||||
|
||||
// Token: 0x0400474F RID: 18255
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400474F")]
|
||||
[SerializeField]
|
||||
private List<Tetrahedron> tetrahedra;
|
||||
|
||||
// Token: 0x04004750 RID: 18256
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4004750")]
|
||||
[SerializeField]
|
||||
private List<int> exteriorTriangleIndices;
|
||||
|
||||
// Token: 0x04004751 RID: 18257
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4004751")]
|
||||
[SerializeField]
|
||||
private Gradient gizmoColorByBarycentricWeight;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,134 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Delaunay
|
||||
{
|
||||
// Token: 0x02001011 RID: 4113
|
||||
[Token(Token = "0x2001011")]
|
||||
[Serializable]
|
||||
[StructLayout(3)]
|
||||
public class Tetrahedron
|
||||
{
|
||||
// Token: 0x060063AA RID: 25514 RVA: 0x0015E058 File Offset: 0x0015C258
|
||||
[Token(Token = "0x60063AA")]
|
||||
[Address(RVA = "0x16AF920", Offset = "0x16AE320", VA = "0x1816AF920")]
|
||||
public Tetrahedron()
|
||||
{
|
||||
int[] array = new int[4];
|
||||
this.vertexIndices = array;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x060063AB RID: 25515 RVA: 0x0015E07C File Offset: 0x0015C27C
|
||||
[Token(Token = "0x60063AB")]
|
||||
[Address(RVA = "0x16AF970", Offset = "0x16AE370", VA = "0x1816AF970")]
|
||||
public Tetrahedron(int aIndex, int bIndex, int cIndex, int dIndex)
|
||||
{
|
||||
int[] array = new int[4];
|
||||
this.vertexIndices = array;
|
||||
base..ctor();
|
||||
this.vertexIndices[0] = aIndex;
|
||||
this.vertexIndices[0] = bIndex;
|
||||
this.vertexIndices[1] = cIndex;
|
||||
int[] array2 = this.vertexIndices;
|
||||
}
|
||||
|
||||
// Token: 0x060063AC RID: 25516 RVA: 0x0015E0D4 File Offset: 0x0015C2D4
|
||||
[Token(Token = "0x60063AC")]
|
||||
[Address(RVA = "0x204CB50", Offset = "0x204B550", VA = "0x18204CB50")]
|
||||
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: 0x060063AD RID: 25517 RVA: 0x0015E138 File Offset: 0x0015C338
|
||||
[Token(Token = "0x60063AD")]
|
||||
[Address(RVA = "0x16AF650", Offset = "0x16AE050", VA = "0x1816AF650")]
|
||||
public bool LIBPGFEBAFM(Vector3 KPLDEODOJID)
|
||||
{
|
||||
bool flag;
|
||||
bool flag2;
|
||||
bool flag3;
|
||||
bool flag4;
|
||||
if (!flag || !flag2 || !flag3 || flag4)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060063AE RID: 25518 RVA: 0x0015E15C File Offset: 0x0015C35C
|
||||
[Token(Token = "0x60063AE")]
|
||||
[Address(RVA = "0x16AF810", Offset = "0x16AE210", VA = "0x1816AF810")]
|
||||
public bool PKDBFBGOMCC(Vector3 KPLDEODOJID)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060063AE)
|
||||
|
||||
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: 0x0400473C RID: 18236
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400473C")]
|
||||
[SerializeField]
|
||||
public int[] vertexIndices;
|
||||
|
||||
// Token: 0x0400473D RID: 18237
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400473D")]
|
||||
public Vector3 A;
|
||||
|
||||
// Token: 0x0400473E RID: 18238
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x24")]
|
||||
[Token(Token = "0x400473E")]
|
||||
public Vector3 B;
|
||||
|
||||
// Token: 0x0400473F RID: 18239
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400473F")]
|
||||
public Vector3 C;
|
||||
|
||||
// Token: 0x04004740 RID: 18240
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x3C")]
|
||||
[Token(Token = "0x4004740")]
|
||||
public Vector3 D;
|
||||
|
||||
// Token: 0x04004741 RID: 18241
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4004741")]
|
||||
public Vector3 CircumCenter;
|
||||
|
||||
// Token: 0x04004742 RID: 18242
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x54")]
|
||||
[Token(Token = "0x4004742")]
|
||||
public float CircumRadiusSquared;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Delaunay
|
||||
{
|
||||
// Token: 0x02001010 RID: 4112
|
||||
[Token(Token = "0x2001010")]
|
||||
[Serializable]
|
||||
[StructLayout(3)]
|
||||
public class Vertex<T>
|
||||
{
|
||||
// Token: 0x060063A9 RID: 25513 RVA: 0x0015E03C File Offset: 0x0015C23C
|
||||
[Token(Token = "0x60063A9")]
|
||||
[Address(RVA = "0x1B1AA80", Offset = "0x1B19480", VA = "0x181B1AA80")]
|
||||
public Vertex()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400473A RID: 18234
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x400473A")]
|
||||
public T Data;
|
||||
|
||||
// Token: 0x0400473B RID: 18235
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x400473B")]
|
||||
public Vector3 Position;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user