242 lines
11 KiB
C#
242 lines
11 KiB
C#
using System;
|
|
using Il2CppInterop.Common.Attributes;
|
|
using Il2CppInterop.Runtime;
|
|
using Il2CppSystem;
|
|
using Il2CppSystem.Collections;
|
|
|
|
namespace Obi
|
|
{
|
|
// Token: 0x020004DD RID: 1245
|
|
public class EditorCoroutine : Object
|
|
{
|
|
// Token: 0x06008F4E RID: 36686 RVA: 0x0024D924 File Offset: 0x0024BB24
|
|
[CallerCount(0)]
|
|
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 628359, XrefRangeEnd = 628371, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe static EditorCoroutine StartCoroutine(IEnumerator _routine)
|
|
{
|
|
checked
|
|
{
|
|
IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
|
|
*ptr = IL2CPP.Il2CppObjectBaseToPtr(_routine);
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(EditorCoroutine.NativeMethodInfoPtr_StartCoroutine_Public_Static_EditorCoroutine_IEnumerator_0, 0, (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
IntPtr intPtr3 = intPtr;
|
|
return (intPtr3 != 0) ? new EditorCoroutine(intPtr3) : null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17003097 RID: 12439
|
|
// (get) Token: 0x06008F4F RID: 36687 RVA: 0x0024D984 File Offset: 0x0024BB84
|
|
public unsafe Object Result
|
|
{
|
|
[CallerCount(10)]
|
|
[CachedScanResults(RefRangeStart = 7455, RefRangeEnd = 7465, XrefRangeStart = 7455, XrefRangeEnd = 7465, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
get
|
|
{
|
|
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IntPtr* ptr = null;
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(EditorCoroutine.NativeMethodInfoPtr_get_Result_Public_get_Object_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
IntPtr intPtr3 = intPtr;
|
|
return (intPtr3 != 0) ? new Object(intPtr3) : null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17003098 RID: 12440
|
|
// (get) Token: 0x06008F50 RID: 36688 RVA: 0x0024D9DC File Offset: 0x0024BBDC
|
|
public unsafe bool IsDone
|
|
{
|
|
[CallerCount(0)]
|
|
get
|
|
{
|
|
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IntPtr* ptr = null;
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(EditorCoroutine.NativeMethodInfoPtr_get_IsDone_Public_get_Boolean_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
return *IL2CPP.il2cpp_object_unbox(intPtr);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06008F51 RID: 36689 RVA: 0x0024DA2C File Offset: 0x0024BC2C
|
|
[CallerCount(125)]
|
|
[CachedScanResults(RefRangeStart = 16819, RefRangeEnd = 16944, XrefRangeStart = 16819, XrefRangeEnd = 16944, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe EditorCoroutine(IEnumerator _routine)
|
|
: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<EditorCoroutine>.NativeClassPtr))
|
|
{
|
|
checked
|
|
{
|
|
IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
|
|
*ptr = IL2CPP.Il2CppObjectBaseToPtr(_routine);
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(EditorCoroutine.NativeMethodInfoPtr__ctor_Private_Void_IEnumerator_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06008F52 RID: 36690 RVA: 0x0024DA90 File Offset: 0x0024BC90
|
|
[CallerCount(0)]
|
|
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 628371, XrefRangeEnd = 628378, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe void Start()
|
|
{
|
|
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IntPtr* ptr = null;
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(EditorCoroutine.NativeMethodInfoPtr_Start_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
}
|
|
|
|
// Token: 0x06008F53 RID: 36691 RVA: 0x0024DAD4 File Offset: 0x0024BCD4
|
|
[CallerCount(0)]
|
|
public unsafe void Stop()
|
|
{
|
|
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IntPtr* ptr = null;
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(EditorCoroutine.NativeMethodInfoPtr_Stop_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
}
|
|
|
|
// Token: 0x06008F54 RID: 36692 RVA: 0x0024DB18 File Offset: 0x0024BD18
|
|
[CallerCount(0)]
|
|
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 628378, XrefRangeEnd = 628384, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe void Update()
|
|
{
|
|
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IntPtr* ptr = null;
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(EditorCoroutine.NativeMethodInfoPtr_Update_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
}
|
|
|
|
// Token: 0x06008F55 RID: 36693 RVA: 0x0024DB5C File Offset: 0x0024BD5C
|
|
[CallerCount(5802)]
|
|
[CachedScanResults(RefRangeStart = 24, RefRangeEnd = 5826, XrefRangeStart = 24, XrefRangeEnd = 5826, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe static void ShowCoroutineProgressBar(string title, EditorCoroutine coroutine)
|
|
{
|
|
IntPtr* ptr;
|
|
checked
|
|
{
|
|
ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
|
|
*ptr = IL2CPP.ManagedStringToIl2Cpp(title);
|
|
}
|
|
ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(coroutine);
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(EditorCoroutine.NativeMethodInfoPtr_ShowCoroutineProgressBar_Public_Static_Void_String_EditorCoroutine_0, 0, (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
}
|
|
|
|
// Token: 0x06008F56 RID: 36694 RVA: 0x0024DBC0 File Offset: 0x0024BDC0
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
static EditorCoroutine()
|
|
{
|
|
Il2CppClassPointerStore<EditorCoroutine>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "Obi", "EditorCoroutine");
|
|
IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<EditorCoroutine>.NativeClassPtr);
|
|
EditorCoroutine.NativeFieldInfoPtr_routine = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<EditorCoroutine>.NativeClassPtr, "routine");
|
|
EditorCoroutine.NativeFieldInfoPtr_result = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<EditorCoroutine>.NativeClassPtr, "result");
|
|
EditorCoroutine.NativeFieldInfoPtr_isDone = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<EditorCoroutine>.NativeClassPtr, "isDone");
|
|
EditorCoroutine.NativeMethodInfoPtr_StartCoroutine_Public_Static_EditorCoroutine_IEnumerator_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<EditorCoroutine>.NativeClassPtr, 100674382);
|
|
EditorCoroutine.NativeMethodInfoPtr_get_Result_Public_get_Object_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<EditorCoroutine>.NativeClassPtr, 100674383);
|
|
EditorCoroutine.NativeMethodInfoPtr_get_IsDone_Public_get_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<EditorCoroutine>.NativeClassPtr, 100674384);
|
|
EditorCoroutine.NativeMethodInfoPtr__ctor_Private_Void_IEnumerator_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<EditorCoroutine>.NativeClassPtr, 100674385);
|
|
EditorCoroutine.NativeMethodInfoPtr_Start_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<EditorCoroutine>.NativeClassPtr, 100674386);
|
|
EditorCoroutine.NativeMethodInfoPtr_Stop_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<EditorCoroutine>.NativeClassPtr, 100674387);
|
|
EditorCoroutine.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<EditorCoroutine>.NativeClassPtr, 100674388);
|
|
EditorCoroutine.NativeMethodInfoPtr_ShowCoroutineProgressBar_Public_Static_Void_String_EditorCoroutine_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<EditorCoroutine>.NativeClassPtr, 100674389);
|
|
}
|
|
|
|
// Token: 0x06008F57 RID: 36695 RVA: 0x0000A74C File Offset: 0x0000894C
|
|
public EditorCoroutine(IntPtr pointer)
|
|
: base(pointer)
|
|
{
|
|
}
|
|
|
|
// Token: 0x17003094 RID: 12436
|
|
// (get) Token: 0x06008F58 RID: 36696 RVA: 0x0024DCCC File Offset: 0x0024BECC
|
|
// (set) Token: 0x06008F59 RID: 36697 RVA: 0x0024DD00 File Offset: 0x0024BF00
|
|
public unsafe IEnumerator routine
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(EditorCoroutine.NativeFieldInfoPtr_routine);
|
|
IntPtr intPtr2 = *intPtr;
|
|
return (intPtr2 != 0) ? new IEnumerator(intPtr2) : null;
|
|
}
|
|
set
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(EditorCoroutine.NativeFieldInfoPtr_routine), IL2CPP.Il2CppObjectBaseToPtr(value));
|
|
}
|
|
}
|
|
|
|
// Token: 0x17003095 RID: 12437
|
|
// (get) Token: 0x06008F5A RID: 36698 RVA: 0x0024DD28 File Offset: 0x0024BF28
|
|
// (set) Token: 0x06008F5B RID: 36699 RVA: 0x0024DD5C File Offset: 0x0024BF5C
|
|
public unsafe Object result
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(EditorCoroutine.NativeFieldInfoPtr_result);
|
|
IntPtr intPtr2 = *intPtr;
|
|
return (intPtr2 != 0) ? new Object(intPtr2) : null;
|
|
}
|
|
set
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(EditorCoroutine.NativeFieldInfoPtr_result), IL2CPP.Il2CppObjectBaseToPtr(value));
|
|
}
|
|
}
|
|
|
|
// Token: 0x17003096 RID: 12438
|
|
// (get) Token: 0x06008F5C RID: 36700 RVA: 0x0024DD84 File Offset: 0x0024BF84
|
|
// (set) Token: 0x06008F5D RID: 36701 RVA: 0x0024DDAC File Offset: 0x0024BFAC
|
|
public unsafe bool isDone
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(EditorCoroutine.NativeFieldInfoPtr_isDone);
|
|
return *intPtr;
|
|
}
|
|
set
|
|
{
|
|
*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(EditorCoroutine.NativeFieldInfoPtr_isDone)) = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04005F81 RID: 24449
|
|
private static readonly IntPtr NativeFieldInfoPtr_routine;
|
|
|
|
// Token: 0x04005F82 RID: 24450
|
|
private static readonly IntPtr NativeFieldInfoPtr_result;
|
|
|
|
// Token: 0x04005F83 RID: 24451
|
|
private static readonly IntPtr NativeFieldInfoPtr_isDone;
|
|
|
|
// Token: 0x04005F84 RID: 24452
|
|
private static readonly IntPtr NativeMethodInfoPtr_StartCoroutine_Public_Static_EditorCoroutine_IEnumerator_0;
|
|
|
|
// Token: 0x04005F85 RID: 24453
|
|
private static readonly IntPtr NativeMethodInfoPtr_get_Result_Public_get_Object_0;
|
|
|
|
// Token: 0x04005F86 RID: 24454
|
|
private static readonly IntPtr NativeMethodInfoPtr_get_IsDone_Public_get_Boolean_0;
|
|
|
|
// Token: 0x04005F87 RID: 24455
|
|
private static readonly IntPtr NativeMethodInfoPtr__ctor_Private_Void_IEnumerator_0;
|
|
|
|
// Token: 0x04005F88 RID: 24456
|
|
private static readonly IntPtr NativeMethodInfoPtr_Start_Private_Void_0;
|
|
|
|
// Token: 0x04005F89 RID: 24457
|
|
private static readonly IntPtr NativeMethodInfoPtr_Stop_Public_Void_0;
|
|
|
|
// Token: 0x04005F8A RID: 24458
|
|
private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;
|
|
|
|
// Token: 0x04005F8B RID: 24459
|
|
private static readonly IntPtr NativeMethodInfoPtr_ShowCoroutineProgressBar_Public_Static_Void_String_EditorCoroutine_0;
|
|
}
|
|
}
|