129 lines
5.7 KiB
C#
129 lines
5.7 KiB
C#
using System;
|
|
using System.Collections;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace Obi
|
|
{
|
|
// Token: 0x020004CE RID: 1230
|
|
[Token(Token = "0x20004CE")]
|
|
public class EditorCoroutine
|
|
{
|
|
// Token: 0x06002B4E RID: 11086 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002B4E")]
|
|
[Address(RVA = "0xA8CB70", Offset = "0xA8B370", VA = "0x180A8CB70")]
|
|
public static EditorCoroutine StartCoroutine(IEnumerator _routine)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x170002E6 RID: 742
|
|
// (get) Token: 0x06002B4F RID: 11087 RVA: 0x0005DAC4 File Offset: 0x0005BCC4
|
|
[Token(Token = "0x170002E6")]
|
|
public object Result
|
|
{
|
|
[Token(Token = "0x6002B4F")]
|
|
[Address(RVA = "0x2DB450", Offset = "0x2D9C50", VA = "0x1802DB450")]
|
|
get
|
|
{
|
|
return this.result;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170002E7 RID: 743
|
|
// (get) Token: 0x06002B50 RID: 11088 RVA: 0x0005DAD8 File Offset: 0x0005BCD8
|
|
[Token(Token = "0x170002E7")]
|
|
public bool IsDone
|
|
{
|
|
[Token(Token = "0x6002B50")]
|
|
[Address(RVA = "0x4FFC50", Offset = "0x4FE450", VA = "0x1804FFC50")]
|
|
get
|
|
{
|
|
return this.isDone;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002B51 RID: 11089 RVA: 0x0005DAEC File Offset: 0x0005BCEC
|
|
[Token(Token = "0x6002B51")]
|
|
[Address(RVA = "0x492D20", Offset = "0x491520", VA = "0x180492D20")]
|
|
private EditorCoroutine(IEnumerator _routine)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06002B51)
|
|
|
|
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: 0x06002B52 RID: 11090 RVA: 0x0005DB08 File Offset: 0x0005BD08
|
|
[Token(Token = "0x6002B52")]
|
|
[Address(RVA = "0xA8CC70", Offset = "0xA8B470", VA = "0x180A8CC70")]
|
|
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: 0x06002B53 RID: 11091 RVA: 0x0005DB54 File Offset: 0x0005BD54
|
|
[Token(Token = "0x6002B53")]
|
|
[Address(RVA = "0x806240", Offset = "0x804A40", VA = "0x180806240")]
|
|
public void Stop()
|
|
{
|
|
this.isDone = true;
|
|
}
|
|
|
|
// Token: 0x06002B54 RID: 11092 RVA: 0x0005DB68 File Offset: 0x0005BD68
|
|
[Token(Token = "0x6002B54")]
|
|
[Address(RVA = "0xA8CD20", Offset = "0xA8B520", VA = "0x180A8CD20")]
|
|
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: 0x06002B55 RID: 11093 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002B55")]
|
|
[Address(RVA = "0x29E8B0", Offset = "0x29D0B0", VA = "0x18029E8B0")]
|
|
public static void ShowCoroutineProgressBar(string title, EditorCoroutine coroutine)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x040033E1 RID: 13281
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40033E1")]
|
|
private readonly IEnumerator routine;
|
|
|
|
// Token: 0x040033E2 RID: 13282
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40033E2")]
|
|
private object result;
|
|
|
|
// Token: 0x040033E3 RID: 13283
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40033E3")]
|
|
private bool isDone;
|
|
}
|
|
}
|