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

161 lines
6.3 KiB
C#

using System;
using System.Collections;
using Cpp2IlInjected;
namespace Obi
{
// Token: 0x0200051A RID: 1306
[Token(Token = "0x200051A")]
public class CoroutineJob
{
// Token: 0x1700030C RID: 780
// (get) Token: 0x06002DD6 RID: 11734 RVA: 0x00064950 File Offset: 0x00062B50
[Token(Token = "0x1700030C")]
public object Result
{
[Token(Token = "0x6002DD6")]
[Address(RVA = "0x12F02B0", Offset = "0x12EF2B0", VA = "0x1812F02B0")]
get
{
while (this.e != (ulong)0L)
{
}
return this.result;
}
}
// Token: 0x1700030D RID: 781
// (get) Token: 0x06002DD7 RID: 11735 RVA: 0x00064970 File Offset: 0x00062B70
[Token(Token = "0x1700030D")]
public bool IsDone
{
[Token(Token = "0x6002DD7")]
[Address(RVA = "0x368050", Offset = "0x367050", VA = "0x180368050")]
get
{
return this.isDone;
}
}
// Token: 0x1700030E RID: 782
// (get) Token: 0x06002DD8 RID: 11736 RVA: 0x00064984 File Offset: 0x00062B84
[Token(Token = "0x1700030E")]
public bool RaisedException
{
[Token(Token = "0x6002DD8")]
[Address(RVA = "0x41ED90", Offset = "0x41DD90", VA = "0x18041ED90")]
get
{
return this.raisedException;
}
}
// Token: 0x06002DD9 RID: 11737 RVA: 0x00064998 File Offset: 0x00062B98
[Token(Token = "0x6002DD9")]
[Address(RVA = "0x12F0030", Offset = "0x12EF030", VA = "0x1812F0030")]
private void Init()
{
/*
An exception occurred when decompiling this method (06002DD9)
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: 0x06002DDA RID: 11738 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002DDA")]
[Address(RVA = "0x12F0050", Offset = "0x12EF050", VA = "0x1812F0050")]
public static object RunSynchronously(IEnumerator coroutine)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002DDB RID: 11739 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002DDB")]
[Address(RVA = "0x12F0220", Offset = "0x12EF220", VA = "0x1812F0220")]
public IEnumerator Start(IEnumerator coroutine)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002DDC RID: 11740 RVA: 0x000649B4 File Offset: 0x00062BB4
[Token(Token = "0x6002DDC")]
[Address(RVA = "0xEB98B0", Offset = "0xEB88B0", VA = "0x180EB98B0")]
public void Stop()
{
this.stop = true;
}
// Token: 0x06002DDD RID: 11741 RVA: 0x000649C8 File Offset: 0x00062BC8
[Token(Token = "0x6002DDD")]
[Address(RVA = "0x36ABD0", Offset = "0x369BD0", VA = "0x18036ABD0")]
public CoroutineJob()
{
}
// Token: 0x0400367C RID: 13948
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400367C")]
private object result;
// Token: 0x0400367D RID: 13949
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400367D")]
private bool isDone;
// Token: 0x0400367E RID: 13950
[FieldOffset(Offset = "0x19")]
[Token(Token = "0x400367E")]
private bool raisedException;
// Token: 0x0400367F RID: 13951
[FieldOffset(Offset = "0x1A")]
[Token(Token = "0x400367F")]
private bool stop;
// Token: 0x04003680 RID: 13952
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4003680")]
private Exception e;
// Token: 0x04003681 RID: 13953
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4003681")]
public int asyncThreshold;
// Token: 0x0200051B RID: 1307
[Token(Token = "0x200051B")]
public class ProgressInfo
{
// Token: 0x06002DDE RID: 11742 RVA: 0x000649DC File Offset: 0x00062BDC
[Token(Token = "0x6002DDE")]
[Address(RVA = "0x19BDB00", Offset = "0x19BCB00", VA = "0x1819BDB00")]
public ProgressInfo(string userReadableInfo, float progress)
{
this.userReadableInfo = userReadableInfo;
this.progress = progress;
}
// Token: 0x04003682 RID: 13954
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4003682")]
public string userReadableInfo;
// Token: 0x04003683 RID: 13955
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4003683")]
public float progress;
}
}
}