161 lines
6.3 KiB
C#
161 lines
6.3 KiB
C#
using System;
|
|
using System.Collections;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace Obi
|
|
{
|
|
// Token: 0x020004CB RID: 1227
|
|
[Token(Token = "0x20004CB")]
|
|
public class CoroutineJob
|
|
{
|
|
// Token: 0x170002E1 RID: 737
|
|
// (get) Token: 0x06002B3F RID: 11071 RVA: 0x0005D9BC File Offset: 0x0005BBBC
|
|
[Token(Token = "0x170002E1")]
|
|
public object Result
|
|
{
|
|
[Token(Token = "0x6002B3F")]
|
|
[Address(RVA = "0x1096980", Offset = "0x1095180", VA = "0x181096980")]
|
|
get
|
|
{
|
|
while (this.e != (ulong)0L)
|
|
{
|
|
}
|
|
return this.result;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170002E2 RID: 738
|
|
// (get) Token: 0x06002B40 RID: 11072 RVA: 0x0005D9DC File Offset: 0x0005BBDC
|
|
[Token(Token = "0x170002E2")]
|
|
public bool IsDone
|
|
{
|
|
[Token(Token = "0x6002B40")]
|
|
[Address(RVA = "0x41E660", Offset = "0x41CE60", VA = "0x18041E660")]
|
|
get
|
|
{
|
|
return this.isDone;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170002E3 RID: 739
|
|
// (get) Token: 0x06002B41 RID: 11073 RVA: 0x0005D9F0 File Offset: 0x0005BBF0
|
|
[Token(Token = "0x170002E3")]
|
|
public bool RaisedException
|
|
{
|
|
[Token(Token = "0x6002B41")]
|
|
[Address(RVA = "0x41E670", Offset = "0x41CE70", VA = "0x18041E670")]
|
|
get
|
|
{
|
|
return this.raisedException;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002B42 RID: 11074 RVA: 0x0005DA04 File Offset: 0x0005BC04
|
|
[Token(Token = "0x6002B42")]
|
|
[Address(RVA = "0x1096700", Offset = "0x1094F00", VA = "0x181096700")]
|
|
private void Init()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06002B42)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Obi.CoroutineJob::Init()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{; Block_0:; stfld:bool(CoroutineJob::isDone, ldloc:CoroutineJob(this), ldc.i4:bool(0)); stfld:bool(CoroutineJob::stop, ldloc:CoroutineJob(this), ldc.i4:bool(0)); };
|
|
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: 0x06002B43 RID: 11075 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002B43")]
|
|
[Address(RVA = "0x1096720", Offset = "0x1094F20", VA = "0x181096720")]
|
|
public static object RunSynchronously(IEnumerator coroutine)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002B44 RID: 11076 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002B44")]
|
|
[Address(RVA = "0x10968F0", Offset = "0x10950F0", VA = "0x1810968F0")]
|
|
public IEnumerator Start(IEnumerator coroutine)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002B45 RID: 11077 RVA: 0x0005DA20 File Offset: 0x0005BC20
|
|
[Token(Token = "0x6002B45")]
|
|
[Address(RVA = "0xCAD0F0", Offset = "0xCAB8F0", VA = "0x180CAD0F0")]
|
|
public void Stop()
|
|
{
|
|
this.stop = true;
|
|
}
|
|
|
|
// Token: 0x06002B46 RID: 11078 RVA: 0x0005DA34 File Offset: 0x0005BC34
|
|
[Token(Token = "0x6002B46")]
|
|
[Address(RVA = "0x43A830", Offset = "0x439030", VA = "0x18043A830")]
|
|
public CoroutineJob()
|
|
{
|
|
}
|
|
|
|
// Token: 0x040033D4 RID: 13268
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40033D4")]
|
|
private object result;
|
|
|
|
// Token: 0x040033D5 RID: 13269
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40033D5")]
|
|
private bool isDone;
|
|
|
|
// Token: 0x040033D6 RID: 13270
|
|
[FieldOffset(Offset = "0x19")]
|
|
[Token(Token = "0x40033D6")]
|
|
private bool raisedException;
|
|
|
|
// Token: 0x040033D7 RID: 13271
|
|
[FieldOffset(Offset = "0x1A")]
|
|
[Token(Token = "0x40033D7")]
|
|
private bool stop;
|
|
|
|
// Token: 0x040033D8 RID: 13272
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40033D8")]
|
|
private Exception e;
|
|
|
|
// Token: 0x040033D9 RID: 13273
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x40033D9")]
|
|
public int asyncThreshold;
|
|
|
|
// Token: 0x020004CC RID: 1228
|
|
[Token(Token = "0x20004CC")]
|
|
public class ProgressInfo
|
|
{
|
|
// Token: 0x06002B47 RID: 11079 RVA: 0x0005DA48 File Offset: 0x0005BC48
|
|
[Token(Token = "0x6002B47")]
|
|
[Address(RVA = "0x6701D0", Offset = "0x66E9D0", VA = "0x1806701D0")]
|
|
public ProgressInfo(string userReadableInfo, float progress)
|
|
{
|
|
this.userReadableInfo = userReadableInfo;
|
|
this.progress = progress;
|
|
}
|
|
|
|
// Token: 0x040033DA RID: 13274
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40033DA")]
|
|
public string userReadableInfo;
|
|
|
|
// Token: 0x040033DB RID: 13275
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40033DB")]
|
|
public float progress;
|
|
}
|
|
}
|
|
}
|