m
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: 0x020034DB RID: 13531
|
||||
[Token(Token = "0x20034DB")]
|
||||
public class RecRoomRecastMeshObj : RecastMeshObj
|
||||
{
|
||||
// Token: 0x06017817 RID: 96279 RVA: 0x0057ADBC File Offset: 0x00578FBC
|
||||
[Token(Token = "0x6017817")]
|
||||
[Address(RVA = "0x1C98850", Offset = "0x1C97850", VA = "0x181C98850", Slot = "10")]
|
||||
protected override void Register()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06017817)
|
||||
|
||||
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: 0x06017818 RID: 96280 RVA: 0x0057AE30 File Offset: 0x00579030
|
||||
[Token(Token = "0x6017818")]
|
||||
[Address(RVA = "0x1C98810", Offset = "0x1C97810", VA = "0x181C98810", Slot = "11")]
|
||||
protected override void RecalculateBounds()
|
||||
{
|
||||
Tool egfejghdnai = this.EGFEJGHDNAI;
|
||||
}
|
||||
|
||||
// Token: 0x06017819 RID: 96281 RVA: 0x0057AE4C File Offset: 0x0057904C
|
||||
[Token(Token = "0x6017819")]
|
||||
[Address(RVA = "0x1C98360", Offset = "0x1C97360", VA = "0x181C98360", 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: 0x0601781A RID: 96282 RVA: 0x0057AF40 File Offset: 0x00579140
|
||||
[Token(Token = "0x601781A")]
|
||||
[Address(RVA = "0x1C989D0", Offset = "0x1C979D0", VA = "0x181C989D0")]
|
||||
public RecRoomRecastMeshObj()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400F429 RID: 62505
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400F429")]
|
||||
private Tool EGFEJGHDNAI;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user