243 lines
11 KiB
C#
243 lines
11 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
namespace Obi
|
|
{
|
|
// Token: 0x020004CE RID: 1230
|
|
[Token(Token = "0x20004CE")]
|
|
public class ObiTriangleSkinMap : ScriptableObject
|
|
{
|
|
// Token: 0x17000300 RID: 768
|
|
// (get) Token: 0x06002B66 RID: 11110 RVA: 0x0005DC88 File Offset: 0x0005BE88
|
|
// (set) Token: 0x06002B65 RID: 11109 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x17000300")]
|
|
public ObiMeshTopology SourceTopology
|
|
{
|
|
[Token(Token = "0x6002B66")]
|
|
[Address(RVA = "0x31E480", Offset = "0x31D280", VA = "0x18031E480")]
|
|
get
|
|
{
|
|
return this.sourceTopology;
|
|
}
|
|
[Token(Token = "0x6002B65")]
|
|
[Address(RVA = "0xD353C0", Offset = "0xD341C0", VA = "0x180D353C0")]
|
|
set
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000301 RID: 769
|
|
// (get) Token: 0x06002B68 RID: 11112 RVA: 0x0005DC9C File Offset: 0x0005BE9C
|
|
// (set) Token: 0x06002B67 RID: 11111 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x17000301")]
|
|
public Mesh TargetMesh
|
|
{
|
|
[Token(Token = "0x6002B68")]
|
|
[Address(RVA = "0x31E4E0", Offset = "0x31D2E0", VA = "0x18031E4E0")]
|
|
get
|
|
{
|
|
return this.targetMesh;
|
|
}
|
|
[Token(Token = "0x6002B67")]
|
|
[Address(RVA = "0xD35540", Offset = "0xD34340", VA = "0x180D35540")]
|
|
set
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000302 RID: 770
|
|
// (get) Token: 0x06002B69 RID: 11113 RVA: 0x0005DCB0 File Offset: 0x0005BEB0
|
|
[Token(Token = "0x17000302")]
|
|
public IntPtr TriangleSkinMap
|
|
{
|
|
[Token(Token = "0x6002B69")]
|
|
[Address(RVA = "0x28C210", Offset = "0x28B010", VA = "0x18028C210")]
|
|
get
|
|
{
|
|
return this.triangleSkinMap;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002B6A RID: 11114 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002B6A")]
|
|
[Address(RVA = "0xD34FA0", Offset = "0xD33DA0", VA = "0x180D34FA0")]
|
|
private void ValidateMasterFlags(bool resetValues)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002B6B RID: 11115 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002B6B")]
|
|
[Address(RVA = "0xD35100", Offset = "0xD33F00", VA = "0x180D35100")]
|
|
private void ValidateSlaveFlags(bool resetValues)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002B6C RID: 11116 RVA: 0x0005DCC4 File Offset: 0x0005BEC4
|
|
[Token(Token = "0x6002B6C")]
|
|
[Address(RVA = "0xD34E40", Offset = "0xD33C40", VA = "0x180D34E40")]
|
|
public void OnEnable()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06002B6C)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Obi.ObiTriangleSkinMap::OnEnable()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{; IL_85:; stfld:bool(ObiTriangleSkinMap::bound, ldloc:ObiTriangleSkinMap(this), ldc.i4:bool(0)); stloc:int32[](var_11_92, newarr:int32[]([mscorlib]System.Int32, ldc.i4:int32(0))); stfld:int32[](ObiTriangleSkinMap::skinnedVertices, ldloc:ObiTriangleSkinMap(this), ldloc:int32[](var_11_92)); stloc:int32[](var_12_A2, newarr:int32[]([mscorlib]System.Int32, ldc.i4:int32(0))); stfld:int32[](ObiTriangleSkinMap::skinnedTriangles, ldloc:ObiTriangleSkinMap(this), ldloc:int32[](var_12_A2)); stloc:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](var_13_B2, newarr:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[]([UnityEngine.CoreModule]UnityEngine.Vector3, ldc.i4:int32(0))); stfld:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](ObiTriangleSkinMap::baryPositions, ldloc:ObiTriangleSkinMap(this), ldloc:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](var_13_B2)); stloc:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](var_14_C2, newarr:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[]([UnityEngine.CoreModule]UnityEngine.Vector3, ldc.i4:int32(0))); stfld:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](ObiTriangleSkinMap::baryNormals, ldloc:ObiTriangleSkinMap(this), ldloc:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](var_14_C2)); stloc:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](var_15_D2, newarr:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[]([UnityEngine.CoreModule]UnityEngine.Vector3, ldc.i4:int32(0))); stfld:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](ObiTriangleSkinMap::baryTangents, ldloc:ObiTriangleSkinMap(this), ldloc:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](var_15_D2)); };
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
|
|
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 344
|
|
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 1618
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06002B6D RID: 11117 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002B6D")]
|
|
[Address(RVA = "0xD34640", Offset = "0xD33440", VA = "0x180D34640")]
|
|
public void Bind(Transform sourceTransform, Transform targetTransform)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002B6E RID: 11118 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002B6E")]
|
|
[Address(RVA = "0xD35240", Offset = "0xD34040", VA = "0x180D35240")]
|
|
public ObiTriangleSkinMap()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x040033D9 RID: 13273
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40033D9")]
|
|
[HideInInspector]
|
|
public bool bound;
|
|
|
|
// Token: 0x040033DA RID: 13274
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40033DA")]
|
|
private IntPtr triangleSkinMap;
|
|
|
|
// Token: 0x040033DB RID: 13275
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x40033DB")]
|
|
[HideInInspector]
|
|
public uint[] masterFlags;
|
|
|
|
// Token: 0x040033DC RID: 13276
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x40033DC")]
|
|
[HideInInspector]
|
|
public uint[] slaveFlags;
|
|
|
|
// Token: 0x040033DD RID: 13277
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x40033DD")]
|
|
[HideInInspector]
|
|
public int[] skinnedVertices;
|
|
|
|
// Token: 0x040033DE RID: 13278
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x40033DE")]
|
|
[HideInInspector]
|
|
public int[] skinnedTriangles;
|
|
|
|
// Token: 0x040033DF RID: 13279
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x40033DF")]
|
|
[HideInInspector]
|
|
public Vector3[] baryPositions;
|
|
|
|
// Token: 0x040033E0 RID: 13280
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x40033E0")]
|
|
[HideInInspector]
|
|
public Vector3[] baryNormals;
|
|
|
|
// Token: 0x040033E1 RID: 13281
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x40033E1")]
|
|
[HideInInspector]
|
|
public Vector3[] baryTangents;
|
|
|
|
// Token: 0x040033E2 RID: 13282
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x40033E2")]
|
|
[SerializeField]
|
|
[HideInInspector]
|
|
private ObiMeshTopology sourceTopology;
|
|
|
|
// Token: 0x040033E3 RID: 13283
|
|
[FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x40033E3")]
|
|
[SerializeField]
|
|
[HideInInspector]
|
|
private Mesh targetMesh;
|
|
|
|
// Token: 0x040033E4 RID: 13284
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x40033E4")]
|
|
[HideInInspector]
|
|
public ObiTriangleSkinMap.SkinTransform sourceSkinTransform;
|
|
|
|
// Token: 0x040033E5 RID: 13285
|
|
[FieldOffset(Offset = "0x98")]
|
|
[Token(Token = "0x40033E5")]
|
|
[HideInInspector]
|
|
public ObiTriangleSkinMap.SkinTransform targetSkinTransform;
|
|
|
|
// Token: 0x020004CF RID: 1231
|
|
[Token(Token = "0x20004CF")]
|
|
[Serializable]
|
|
public struct SkinTransform
|
|
{
|
|
// Token: 0x06002B6F RID: 11119 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002B6F")]
|
|
[Address(RVA = "0x6A1BA0", Offset = "0x6A09A0", VA = "0x1806A1BA0")]
|
|
public SkinTransform(Vector3 position, Quaternion rotation, Vector3 scale)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002B70 RID: 11120 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002B70")]
|
|
[Address(RVA = "0x6A1BD0", Offset = "0x6A09D0", VA = "0x1806A1BD0")]
|
|
public SkinTransform(Transform transform)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002B71 RID: 11121 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002B71")]
|
|
[Address(RVA = "0x6A1B10", Offset = "0x6A0910", VA = "0x1806A1B10")]
|
|
public void Apply(Transform transform)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x040033E6 RID: 13286
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x40033E6")]
|
|
public Vector3 position;
|
|
|
|
// Token: 0x040033E7 RID: 13287
|
|
[FieldOffset(Offset = "0xC")]
|
|
[Token(Token = "0x40033E7")]
|
|
public Quaternion rotation;
|
|
|
|
// Token: 0x040033E8 RID: 13288
|
|
[FieldOffset(Offset = "0x1C")]
|
|
[Token(Token = "0x40033E8")]
|
|
public Vector3 scale;
|
|
}
|
|
}
|
|
}
|