oh dear
This commit is contained in:
@@ -0,0 +1,139 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using Cpp2IlInjected;
|
||||
using Pathfinding;
|
||||
using RecRoom.Core.Creation;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Core.AI
|
||||
{
|
||||
// Token: 0x020033EE RID: 13294
|
||||
[Token(Token = "0x20033EE")]
|
||||
public class RecRoomRecastMeshObj : RecastMeshObj
|
||||
{
|
||||
// Token: 0x06017388 RID: 95112 RVA: 0x0056FC70 File Offset: 0x0056DE70
|
||||
[Token(Token = "0x6017388")]
|
||||
[Address(RVA = "0x1149BE0", Offset = "0x11489E0", VA = "0x181149BE0", Slot = "10")]
|
||||
protected override void Register()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06017388)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void RecRoom.Core.AI.RecRoomRecastMeshObj::Register()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_5C:
|
||||
stloc:Exception(var_7_66, newobj:Exception(Exception::.ctor, ldstr:string("A Tool needs to be on the GameObject")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x06017389 RID: 95113 RVA: 0x0056FCE4 File Offset: 0x0056DEE4
|
||||
[Token(Token = "0x6017389")]
|
||||
[Address(RVA = "0x1149BA0", Offset = "0x11489A0", VA = "0x181149BA0", Slot = "11")]
|
||||
protected override void RecalculateBounds()
|
||||
{
|
||||
Tool egfejghdnai = this.EGFEJGHDNAI;
|
||||
}
|
||||
|
||||
// Token: 0x0601738A RID: 95114 RVA: 0x0056FD00 File Offset: 0x0056DF00
|
||||
[Token(Token = "0x601738A")]
|
||||
[Address(RVA = "0x11496F0", Offset = "0x11484F0", VA = "0x1811496F0", Slot = "12")]
|
||||
public override List<Collider> GetColliders()
|
||||
{
|
||||
List<Collider> list;
|
||||
for (;;)
|
||||
{
|
||||
int num = 0;
|
||||
list = new List();
|
||||
List<ToolCollider> nnbalfkkndo = this.EGFEJGHDNAI.NNBALFKKNDO;
|
||||
num += num;
|
||||
num++;
|
||||
if (list != 0)
|
||||
{
|
||||
if (num >= list)
|
||||
{
|
||||
goto IL_30;
|
||||
}
|
||||
num += num;
|
||||
if (num != list)
|
||||
{
|
||||
num++;
|
||||
goto IL_30;
|
||||
}
|
||||
IL_3B:
|
||||
ReadOnlyCollection<Collider> readOnlyCollection;
|
||||
readOnlyCollection += readOnlyCollection;
|
||||
goto IL_3F;
|
||||
IL_30:
|
||||
list.AddRange(readOnlyCollection);
|
||||
readOnlyCollection += readOnlyCollection;
|
||||
goto IL_3B;
|
||||
}
|
||||
IL_3F:
|
||||
int num2 = 0;
|
||||
if (list != 0)
|
||||
{
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
Collider[] collisionIgnoredColliders = this.EGFEJGHDNAI.LEICDLDJKNF;
|
||||
int length = collisionIgnoredColliders.Length;
|
||||
if (num2 < length)
|
||||
{
|
||||
Collider collider = collisionIgnoredColliders[num2];
|
||||
if (EJFLPBOFENP.PNIFPGOOENO(collider))
|
||||
{
|
||||
list.Add(collider);
|
||||
}
|
||||
num2++;
|
||||
}
|
||||
CreationObject creationObject = this.EGFEJGHDNAI.creationObject;
|
||||
int num3 = 0;
|
||||
if (!(creationObject != num3))
|
||||
{
|
||||
break;
|
||||
}
|
||||
Dictionary<Collider, ConfigurableSubpiece>.KeyCollection keys = this.EGFEJGHDNAI.creationObject.JJDLFAJHOBK.Keys;
|
||||
bool flag;
|
||||
if (flag)
|
||||
{
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
// Token: 0x0601738B RID: 95115 RVA: 0x0056FDF4 File Offset: 0x0056DFF4
|
||||
[Token(Token = "0x601738B")]
|
||||
[Address(RVA = "0x1149D60", Offset = "0x1148B60", VA = "0x181149D60")]
|
||||
public RecRoomRecastMeshObj()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400F1E1 RID: 61921
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400F1E1")]
|
||||
private Tool EGFEJGHDNAI;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user