147 lines
6.0 KiB
C#
147 lines
6.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.ObjectModel;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using Pathfinding;
|
|
using RecRoom.Core.Creation;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Core.AI
|
|
{
|
|
// Token: 0x02002E25 RID: 11813
|
|
[Token(Token = "0x2002E25")]
|
|
[StructLayout(3)]
|
|
public class RecRoomRecastMeshObj : RecastMeshObj
|
|
{
|
|
// Token: 0x06015219 RID: 86553 RVA: 0x00514884 File Offset: 0x00512A84
|
|
[Token(Token = "0x6015219")]
|
|
[Address(RVA = "0x1B80490", Offset = "0x1B7EE90", VA = "0x181B80490", Slot = "10")]
|
|
protected override void Register()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06015219)
|
|
|
|
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: 0x0601521A RID: 86554 RVA: 0x005148F8 File Offset: 0x00512AF8
|
|
[Token(Token = "0x601521A")]
|
|
[Address(RVA = "0x1B80450", Offset = "0x1B7EE50", VA = "0x181B80450", Slot = "11")]
|
|
protected override void RecalculateBounds()
|
|
{
|
|
Tool egfejghdnai = this.EGFEJGHDNAI;
|
|
}
|
|
|
|
// Token: 0x0601521B RID: 86555 RVA: 0x00514914 File Offset: 0x00512B14
|
|
[Token(Token = "0x601521B")]
|
|
[Address(RVA = "0x1B7FF70", Offset = "0x1B7E970", VA = "0x181B7FF70", Slot = "12")]
|
|
public override List<Collider> GetColliders()
|
|
{
|
|
int num;
|
|
List<Collider> list;
|
|
do
|
|
{
|
|
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 != -1)
|
|
{
|
|
Collider[] collisionIgnoredColliders = this.EGFEJGHDNAI.LEICDLDJKNF;
|
|
int length = collisionIgnoredColliders.Length;
|
|
if (num2 >= length)
|
|
{
|
|
goto IL_90;
|
|
}
|
|
Collider collider = collisionIgnoredColliders[num2];
|
|
if (EJFLPBOFENP.PNIFPGOOENO(collider))
|
|
{
|
|
list.Add(collider);
|
|
}
|
|
num2++;
|
|
}
|
|
if (num != 0)
|
|
{
|
|
continue;
|
|
}
|
|
IL_90:
|
|
CreationObject creationObject = this.EGFEJGHDNAI.creationObject;
|
|
int num3 = 0;
|
|
if (!(creationObject != num3))
|
|
{
|
|
break;
|
|
}
|
|
Dictionary<Collider, ConfigurableSubpiece>.KeyCollection keys = this.EGFEJGHDNAI.creationObject.JJDLFAJHOBK.Keys;
|
|
Dictionary<Collider, ConfigurableSubpiece>.KeyCollection.Enumerator enumerator;
|
|
if (enumerator != 0)
|
|
{
|
|
}
|
|
num++;
|
|
if (num != -1)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return list;
|
|
}
|
|
|
|
// Token: 0x0601521C RID: 86556 RVA: 0x00514A14 File Offset: 0x00512C14
|
|
[Token(Token = "0x601521C")]
|
|
[Address(RVA = "0x1B80610", Offset = "0x1B7F010", VA = "0x181B80610")]
|
|
public RecRoomRecastMeshObj()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400E149 RID: 57673
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x400E149")]
|
|
private Tool EGFEJGHDNAI;
|
|
}
|
|
}
|