Files
NobetaSource/Cpp2IL/Assembly-CSharp/Obi/EditorCoroutine.cs
2023-09-06 22:19:13 +02:00

129 lines
5.7 KiB
C#

using System;
using System.Collections;
using Cpp2IlInjected;
namespace Obi
{
// Token: 0x0200051D RID: 1309
[Token(Token = "0x200051D")]
public class EditorCoroutine
{
// Token: 0x06002DE5 RID: 11749 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002DE5")]
[Address(RVA = "0x1599E10", Offset = "0x1598E10", VA = "0x181599E10")]
public static EditorCoroutine StartCoroutine(IEnumerator _routine)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x17000311 RID: 785
// (get) Token: 0x06002DE6 RID: 11750 RVA: 0x00064A58 File Offset: 0x00062C58
[Token(Token = "0x17000311")]
public object Result
{
[Token(Token = "0x6002DE6")]
[Address(RVA = "0x2EF530", Offset = "0x2EE530", VA = "0x1802EF530")]
get
{
return this.result;
}
}
// Token: 0x17000312 RID: 786
// (get) Token: 0x06002DE7 RID: 11751 RVA: 0x00064A6C File Offset: 0x00062C6C
[Token(Token = "0x17000312")]
public bool IsDone
{
[Token(Token = "0x6002DE7")]
[Address(RVA = "0x36FF60", Offset = "0x36EF60", VA = "0x18036FF60")]
get
{
return this.isDone;
}
}
// Token: 0x06002DE8 RID: 11752 RVA: 0x00064A80 File Offset: 0x00062C80
[Token(Token = "0x6002DE8")]
[Address(RVA = "0x4940F0", Offset = "0x4930F0", VA = "0x1804940F0")]
private EditorCoroutine(IEnumerator _routine)
{
/*
An exception occurred when decompiling this method (06002DE8)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Obi.EditorCoroutine::.ctor(System.Collections.IEnumerator)
---> System.Exception: Basic block has to end with unconditional control flow.
{; Block_0:; call:void(object::.ctor, ldloc:EditorCoroutine[exp:object](this)); stfld:IEnumerator(EditorCoroutine::routine, ldloc:EditorCoroutine(this), ldloc:IEnumerator(_routine)); };
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: 0x06002DE9 RID: 11753 RVA: 0x00064A9C File Offset: 0x00062C9C
[Token(Token = "0x6002DE9")]
[Address(RVA = "0x1599F10", Offset = "0x1598F10", VA = "0x181599F10")]
private void Start()
{
this.isDone = false;
this.result = (ulong)0L;
IEnumerator enumerator = this.routine;
IEnumerator enumerator2 = this.routine;
this.result = typeof(IEnumerator).TypeHandle;
if (typeof(IEnumerator).TypeHandle == 0)
{
this.isDone = true;
}
}
// Token: 0x06002DEA RID: 11754 RVA: 0x00064AE8 File Offset: 0x00062CE8
[Token(Token = "0x6002DEA")]
[Address(RVA = "0x7EF440", Offset = "0x7EE440", VA = "0x1807EF440")]
public void Stop()
{
this.isDone = true;
}
// Token: 0x06002DEB RID: 11755 RVA: 0x00064AFC File Offset: 0x00062CFC
[Token(Token = "0x6002DEB")]
[Address(RVA = "0x1599FC0", Offset = "0x1598FC0", VA = "0x181599FC0")]
private void Update()
{
IEnumerator enumerator = this.routine;
IEnumerator enumerator2 = this.routine;
this.result = typeof(IEnumerator).TypeHandle;
if (typeof(IEnumerator).TypeHandle == 0)
{
this.isDone = true;
}
}
// Token: 0x06002DEC RID: 11756 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002DEC")]
[Address(RVA = "0x29E8B0", Offset = "0x29D8B0", VA = "0x18029E8B0")]
public static void ShowCoroutineProgressBar(string title, EditorCoroutine coroutine)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x04003689 RID: 13961
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4003689")]
private readonly IEnumerator routine;
// Token: 0x0400368A RID: 13962
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400368A")]
private object result;
// Token: 0x0400368B RID: 13963
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400368B")]
private bool isDone;
}
}