243 lines
11 KiB
C#
243 lines
11 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
namespace Obi
|
|
{
|
|
// Token: 0x020004D7 RID: 1239
|
|
[Token(Token = "0x20004D7")]
|
|
public class ObiTriangleSkinMap : ScriptableObject
|
|
{
|
|
// Token: 0x170002FA RID: 762
|
|
// (get) Token: 0x06002B98 RID: 11160 RVA: 0x0005DFF4 File Offset: 0x0005C1F4
|
|
// (set) Token: 0x06002B97 RID: 11159 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x170002FA")]
|
|
public ObiMeshTopology SourceTopology
|
|
{
|
|
[Token(Token = "0x6002B98")]
|
|
[Address(RVA = "0x354170", Offset = "0x352970", VA = "0x180354170")]
|
|
get
|
|
{
|
|
return this.sourceTopology;
|
|
}
|
|
[Token(Token = "0x6002B97")]
|
|
[Address(RVA = "0xE83850", Offset = "0xE82050", VA = "0x180E83850")]
|
|
set
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
}
|
|
|
|
// Token: 0x170002FB RID: 763
|
|
// (get) Token: 0x06002B9A RID: 11162 RVA: 0x0005E008 File Offset: 0x0005C208
|
|
// (set) Token: 0x06002B99 RID: 11161 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x170002FB")]
|
|
public Mesh TargetMesh
|
|
{
|
|
[Token(Token = "0x6002B9A")]
|
|
[Address(RVA = "0x3541D0", Offset = "0x3529D0", VA = "0x1803541D0")]
|
|
get
|
|
{
|
|
return this.targetMesh;
|
|
}
|
|
[Token(Token = "0x6002B99")]
|
|
[Address(RVA = "0xE839D0", Offset = "0xE821D0", VA = "0x180E839D0")]
|
|
set
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
}
|
|
|
|
// Token: 0x170002FC RID: 764
|
|
// (get) Token: 0x06002B9B RID: 11163 RVA: 0x0005E01C File Offset: 0x0005C21C
|
|
[Token(Token = "0x170002FC")]
|
|
public IntPtr TriangleSkinMap
|
|
{
|
|
[Token(Token = "0x6002B9B")]
|
|
[Address(RVA = "0x2990A0", Offset = "0x2978A0", VA = "0x1802990A0")]
|
|
get
|
|
{
|
|
return this.triangleSkinMap;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002B9C RID: 11164 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002B9C")]
|
|
[Address(RVA = "0xE83430", Offset = "0xE81C30", VA = "0x180E83430")]
|
|
private void ValidateMasterFlags(bool resetValues)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002B9D RID: 11165 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002B9D")]
|
|
[Address(RVA = "0xE83590", Offset = "0xE81D90", VA = "0x180E83590")]
|
|
private void ValidateSlaveFlags(bool resetValues)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002B9E RID: 11166 RVA: 0x0005E030 File Offset: 0x0005C230
|
|
[Token(Token = "0x6002B9E")]
|
|
[Address(RVA = "0xE832D0", Offset = "0xE81AD0", VA = "0x180E832D0")]
|
|
public void OnEnable()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06002B9E)
|
|
|
|
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: 0x06002B9F RID: 11167 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002B9F")]
|
|
[Address(RVA = "0xE82AD0", Offset = "0xE812D0", VA = "0x180E82AD0")]
|
|
public void Bind(Transform sourceTransform, Transform targetTransform)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002BA0 RID: 11168 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002BA0")]
|
|
[Address(RVA = "0xE836D0", Offset = "0xE81ED0", VA = "0x180E836D0")]
|
|
public ObiTriangleSkinMap()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0400341B RID: 13339
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400341B")]
|
|
[HideInInspector]
|
|
public bool bound;
|
|
|
|
// Token: 0x0400341C RID: 13340
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400341C")]
|
|
private IntPtr triangleSkinMap;
|
|
|
|
// Token: 0x0400341D RID: 13341
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400341D")]
|
|
[HideInInspector]
|
|
public uint[] masterFlags;
|
|
|
|
// Token: 0x0400341E RID: 13342
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400341E")]
|
|
[HideInInspector]
|
|
public uint[] slaveFlags;
|
|
|
|
// Token: 0x0400341F RID: 13343
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x400341F")]
|
|
[HideInInspector]
|
|
public int[] skinnedVertices;
|
|
|
|
// Token: 0x04003420 RID: 13344
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4003420")]
|
|
[HideInInspector]
|
|
public int[] skinnedTriangles;
|
|
|
|
// Token: 0x04003421 RID: 13345
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4003421")]
|
|
[HideInInspector]
|
|
public Vector3[] baryPositions;
|
|
|
|
// Token: 0x04003422 RID: 13346
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x4003422")]
|
|
[HideInInspector]
|
|
public Vector3[] baryNormals;
|
|
|
|
// Token: 0x04003423 RID: 13347
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x4003423")]
|
|
[HideInInspector]
|
|
public Vector3[] baryTangents;
|
|
|
|
// Token: 0x04003424 RID: 13348
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x4003424")]
|
|
[SerializeField]
|
|
[HideInInspector]
|
|
private ObiMeshTopology sourceTopology;
|
|
|
|
// Token: 0x04003425 RID: 13349
|
|
[FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x4003425")]
|
|
[SerializeField]
|
|
[HideInInspector]
|
|
private Mesh targetMesh;
|
|
|
|
// Token: 0x04003426 RID: 13350
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x4003426")]
|
|
[HideInInspector]
|
|
public ObiTriangleSkinMap.SkinTransform sourceSkinTransform;
|
|
|
|
// Token: 0x04003427 RID: 13351
|
|
[FieldOffset(Offset = "0x98")]
|
|
[Token(Token = "0x4003427")]
|
|
[HideInInspector]
|
|
public ObiTriangleSkinMap.SkinTransform targetSkinTransform;
|
|
|
|
// Token: 0x020004D8 RID: 1240
|
|
[Token(Token = "0x20004D8")]
|
|
[Serializable]
|
|
public struct SkinTransform
|
|
{
|
|
// Token: 0x06002BA1 RID: 11169 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002BA1")]
|
|
[Address(RVA = "0x69A1F0", Offset = "0x6989F0", VA = "0x18069A1F0")]
|
|
public SkinTransform(Vector3 position, Quaternion rotation, Vector3 scale)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002BA2 RID: 11170 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002BA2")]
|
|
[Address(RVA = "0x69A220", Offset = "0x698A20", VA = "0x18069A220")]
|
|
public SkinTransform(Transform transform)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002BA3 RID: 11171 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002BA3")]
|
|
[Address(RVA = "0x69A160", Offset = "0x698960", VA = "0x18069A160")]
|
|
public void Apply(Transform transform)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x04003428 RID: 13352
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x4003428")]
|
|
public Vector3 position;
|
|
|
|
// Token: 0x04003429 RID: 13353
|
|
[FieldOffset(Offset = "0xC")]
|
|
[Token(Token = "0x4003429")]
|
|
public Quaternion rotation;
|
|
|
|
// Token: 0x0400342A RID: 13354
|
|
[FieldOffset(Offset = "0x1C")]
|
|
[Token(Token = "0x400342A")]
|
|
public Vector3 scale;
|
|
}
|
|
}
|
|
}
|