-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathIl2CppAssetBundleRequest.cs
74 lines (62 loc) · 2.49 KB
/
Il2CppAssetBundleRequest.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
using System;
using Il2CppInterop.Runtime;
using Il2CppInterop.Runtime.InteropTypes.Arrays;
namespace UnityEngine
{
public class Il2CppAssetBundleCreateRequest : AsyncOperation
{
public Il2CppAssetBundleCreateRequest(IntPtr ptr) : base(ptr) { }
static Il2CppAssetBundleCreateRequest()
{
Il2CppInterop.Runtime.Injection.ClassInjector.RegisterTypeInIl2Cpp<Il2CppAssetBundleCreateRequest>();
get_assetBundleDelegateField = IL2CPP.ResolveICall<get_assetBundleDelegate>("UnityEngine.AssetBundleCreateRequest::get_assetBundle");
}
public Il2CppAssetBundle assetBundle
{
[Il2CppInterop.Runtime.Attributes.HideFromIl2Cpp]
get
{
var ptr = get_assetBundleDelegateField(this.Pointer);
if (ptr == IntPtr.Zero)
return null;
return new Il2CppAssetBundle(ptr);
}
}
private delegate IntPtr get_assetBundleDelegate(IntPtr _this);
private static get_assetBundleDelegate get_assetBundleDelegateField;
}
public class Il2CppAssetBundleRequest : AsyncOperation
{
public Il2CppAssetBundleRequest(IntPtr ptr) : base(ptr) { }
static Il2CppAssetBundleRequest()
{
Il2CppInterop.Runtime.Injection.ClassInjector.RegisterTypeInIl2Cpp<Il2CppAssetBundleRequest>();
get_assetDelegateField = IL2CPP.ResolveICall<get_assetDelegate>("UnityEngine.AssetBundleRequest::get_asset");
get_allAssetsDelegateField = IL2CPP.ResolveICall<get_allAssetsDelegate>("UnityEngine.AssetBundleRequest::get_allAssets");
}
public Object asset
{
get
{
var ptr = get_assetDelegateField(this.Pointer);
if (ptr == IntPtr.Zero)
return null;
return new Object(ptr);
}
}
public Il2CppReferenceArray<Object> allAssets
{
get
{
var ptr = get_allAssetsDelegateField(this.Pointer);
if (ptr == IntPtr.Zero)
return null;
return new Il2CppReferenceArray<Object>(ptr);
}
}
private delegate IntPtr get_assetDelegate(IntPtr _this);
private static get_assetDelegate get_assetDelegateField;
private delegate IntPtr get_allAssetsDelegate(IntPtr _this);
private static get_allAssetsDelegate get_allAssetsDelegateField;
}
}