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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user