Skip to main content

engage/generated/unity_engine/networking/
downloadhandlerassetbundle.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-networking-downloadhandlerassetbundle-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::networking::downloadhandler::{DownloadHandler, IDownloadHandler},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/networking/downloadhandlerassetbundle/DownloadHandlerAssetBundle.md"))]
14    #[::unity::class(namespace = "UnityEngine.Networking", name = "DownloadHandlerAssetBundle")]
15    #[parent(crate::unity_engine::networking::downloadhandler::DownloadHandler)]
16    pub struct DownloadHandlerAssetBundle {}
17}
18
19#[cfg(feature = "unity_engine-networking-downloadhandlerassetbundle-types")]
20pub use __types::*;
21
22#[cfg(feature = "unity_engine-networking-downloadhandlerassetbundle")]
23impl DownloadHandlerAssetBundle {
24    #[doc = "`Create(crate::unity_engine::networking::downloadhandlerassetbundle::DownloadHandlerAssetBundle, ::unity::Il2CppString, u32)` overload"]
25    pub fn create(
26        obj: impl ::core::convert::Into<crate::unity_engine::networking::downloadhandlerassetbundle::DownloadHandlerAssetBundle>,
27        url: impl ::core::convert::Into<::unity::Il2CppString>,
28        crc: impl ::core::convert::Into<u32>,
29    ) -> ::unity::IntPtr {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x3f45390usize)as*mut u8, ::unity::IntPtr;
32(crate::unity_engine::networking::downloadhandlerassetbundle::DownloadHandlerAssetBundle)::core::convert::Into::into(obj),(::unity::Il2CppString)::core::convert::Into::into(url),(u32)::core::convert::Into::into(crc))
33        }
34    }
35
36    #[doc = "`CreateCached(crate::unity_engine::networking::downloadhandlerassetbundle::DownloadHandlerAssetBundle, ::unity::Il2CppString, ::unity::Il2CppString, crate::unity_engine::hash128::Hash128, u32)` overload"]
37    pub fn create_cached(
38        obj: impl ::core::convert::Into<crate::unity_engine::networking::downloadhandlerassetbundle::DownloadHandlerAssetBundle>,
39        url: impl ::core::convert::Into<::unity::Il2CppString>,
40        name: impl ::core::convert::Into<::unity::Il2CppString>,
41        hash: impl ::core::convert::Into<crate::unity_engine::hash128::Hash128>,
42        crc: impl ::core::convert::Into<u32>,
43    ) -> ::unity::IntPtr {
44        unsafe {
45            ::unity::il2cpp_call!((::unity::module_base()+0x3f453f0usize)as*mut u8, ::unity::IntPtr;
46(crate::unity_engine::networking::downloadhandlerassetbundle::DownloadHandlerAssetBundle)::core::convert::Into::into(obj),(::unity::Il2CppString)::core::convert::Into::into(url),(::unity::Il2CppString)::core::convert::Into::into(name),(crate::unity_engine::hash128::Hash128)::core::convert::Into::into(hash),(u32)::core::convert::Into::into(crc))
47        }
48    }
49
50    #[doc = "`CreateCached_Injected(crate::unity_engine::networking::downloadhandlerassetbundle::DownloadHandlerAssetBundle, ::unity::Il2CppString, ::unity::Il2CppString, *mutcrate::unity_engine::hash128::Hash128, u32)` overload"]
51    pub fn create_cached_injected(
52        obj: impl ::core::convert::Into<crate::unity_engine::networking::downloadhandlerassetbundle::DownloadHandlerAssetBundle>,
53        url: impl ::core::convert::Into<::unity::Il2CppString>,
54        name: impl ::core::convert::Into<::unity::Il2CppString>,
55        crc: impl ::core::convert::Into<u32>,
56    ) -> (::unity::IntPtr, crate::unity_engine::hash128::Hash128) {
57        unsafe {
58            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::hash128::Hash128>::uninit();
59            let __ret = {
60                ::unity::il2cpp_call!((::unity::module_base()+0x3f45470usize)as*mut u8, ::unity::IntPtr;
61(crate::unity_engine::networking::downloadhandlerassetbundle::DownloadHandlerAssetBundle)::core::convert::Into::into(obj),(::unity::Il2CppString)::core::convert::Into::into(url),(::unity::Il2CppString)::core::convert::Into::into(name),(*mut crate::unity_engine::hash128::Hash128)__out_0.as_mut_ptr(),(u32)::core::convert::Into::into(crc))
62            };
63            (__ret, __out_0.assume_init())
64        }
65    }
66}
67
68#[cfg(feature = "unity_engine-networking-downloadhandlerassetbundle")]
69pub trait IDownloadHandlerAssetBundleMethods: IDownloadHandlerAssetBundle {
70    #[doc = "`InternalCreateAssetBundle(::unity::Il2CppString, u32)` overload"]
71    fn internal_create_asset_bundle(self, url: impl ::core::convert::Into<::unity::Il2CppString>, crc: impl ::core::convert::Into<u32>) -> () {
72        unsafe {
73            let __receiver =
74                <DownloadHandlerAssetBundle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            ::unity::il2cpp_call!((::unity::module_base()+0x3f454e0usize)as*mut u8,();
76(DownloadHandlerAssetBundle)__receiver,(::unity::Il2CppString)::core::convert::Into::into(url),(u32)::core::convert::Into::into(crc))
77        }
78    }
79    #[doc = "`InternalCreateAssetBundleCached(::unity::Il2CppString, ::unity::Il2CppString, crate::unity_engine::hash128::Hash128, u32)` overload"]
80    fn internal_create_asset_bundle_cached(
81        self,
82        url: impl ::core::convert::Into<::unity::Il2CppString>,
83        name: impl ::core::convert::Into<::unity::Il2CppString>,
84        hash: impl ::core::convert::Into<crate::unity_engine::hash128::Hash128>,
85        crc: impl ::core::convert::Into<u32>,
86    ) -> () {
87        unsafe {
88            let __receiver =
89                <DownloadHandlerAssetBundle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90            ::unity::il2cpp_call!((::unity::module_base()+0x3f45540usize)as*mut u8,();
91(DownloadHandlerAssetBundle)__receiver,(::unity::Il2CppString)::core::convert::Into::into(url),(::unity::Il2CppString)::core::convert::Into::into(name),(crate::unity_engine::hash128::Hash128)::core::convert::Into::into(hash),(u32)::core::convert::Into::into(crc))
92        }
93    }
94    #[doc = "`.ctor(::unity::Il2CppString, u32)` overload"]
95    fn ctor(self, url: impl ::core::convert::Into<::unity::Il2CppString>, crc: impl ::core::convert::Into<u32>) -> () {
96        unsafe {
97            let __receiver =
98                <DownloadHandlerAssetBundle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99            ::unity::il2cpp_call!((::unity::module_base()+0x3f455c0usize)as*mut u8,();
100(DownloadHandlerAssetBundle)__receiver,(::unity::Il2CppString)::core::convert::Into::into(url),(u32)::core::convert::Into::into(crc))
101        }
102    }
103    #[doc = "`.ctor(::unity::Il2CppString, crate::unity_engine::cachedassetbundle::CachedAssetBundle, u32)` overload"]
104    fn ctor_2(
105        self,
106        url: impl ::core::convert::Into<::unity::Il2CppString>,
107        cached_bundle: impl ::core::convert::Into<crate::unity_engine::cachedassetbundle::CachedAssetBundle>,
108        crc: impl ::core::convert::Into<u32>,
109    ) -> () {
110        unsafe {
111            let __receiver =
112                <DownloadHandlerAssetBundle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
113            ::unity::il2cpp_call!((::unity::module_base()+0x3f45630usize)as*mut u8,();
114(DownloadHandlerAssetBundle)__receiver,(::unity::Il2CppString)::core::convert::Into::into(url),(crate::unity_engine::cachedassetbundle::CachedAssetBundle)::core::convert::Into::into(cached_bundle),(u32)::core::convert::Into::into(crc))
115        }
116    }
117    #[doc = "`GetData()` overload"]
118    fn get_data(self) -> ::unity::Array<u8> {
119        unsafe {
120            let __receiver =
121                <DownloadHandlerAssetBundle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
122            {
123                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
124                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
125                    panic!(
126                        "unity: virtual slot {}
127 out of range (vtable len {}
128) on the runtime class behind {}
129 (method `{}
130`)",
131                        5usize,
132                        __vt.len(),
133                        <DownloadHandlerAssetBundle as ::unity::ClassIdentity>::NAME,
134                        "GetData",
135                    )
136                });
137                let __inner: extern "C" fn(DownloadHandlerAssetBundle, ::unity::OptionalMethod) -> ::unity::Array<u8> =
138                    ::core::mem::transmute(__vi.method_ptr);
139                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
140                __inner(__receiver, __mi)
141            }
142        }
143    }
144    #[doc = "`GetText()` overload"]
145    fn get_text(self) -> ::unity::Il2CppString {
146        unsafe {
147            let __receiver =
148                <DownloadHandlerAssetBundle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
149            {
150                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
151                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
152                    panic!(
153                        "unity: virtual slot {}
154 out of range (vtable len {}
155) on the runtime class behind {}
156 (method `{}
157`)",
158                        6usize,
159                        __vt.len(),
160                        <DownloadHandlerAssetBundle as ::unity::ClassIdentity>::NAME,
161                        "GetText",
162                    )
163                });
164                let __inner: extern "C" fn(DownloadHandlerAssetBundle, ::unity::OptionalMethod) -> ::unity::Il2CppString =
165                    ::core::mem::transmute(__vi.method_ptr);
166                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
167                __inner(__receiver, __mi)
168            }
169        }
170    }
171    #[doc = "`get_assetBundle()` overload"]
172    fn get_asset_bundle(self) -> crate::unity_engine::assetbundle::AssetBundle {
173        unsafe {
174            let __receiver =
175                <DownloadHandlerAssetBundle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
176            ::unity::il2cpp_call!((::unity::module_base()+0x3f457a0usize)as*mut u8,crate::unity_engine::assetbundle::AssetBundle;
177(DownloadHandlerAssetBundle)__receiver)
178        }
179    }
180}
181
182#[cfg(feature = "unity_engine-networking-downloadhandlerassetbundle")]
183impl<__T: IDownloadHandlerAssetBundle> IDownloadHandlerAssetBundleMethods for __T {}
184
185#[cfg(feature = "unity_engine-networking-downloadhandlerassetbundle")]
186impl DownloadHandlerAssetBundle {
187    pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
189    }
190
191    pub fn create_cached_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
193    }
194
195    pub fn internal_create_asset_bundle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
197    }
198
199    pub fn internal_create_asset_bundle_cached_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
201    }
202
203    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
205    }
206
207    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
209    }
210
211    pub fn get_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
212        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
213    }
214
215    pub fn get_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
217    }
218
219    pub fn get_asset_bundle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
220        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
221    }
222
223    pub fn create_cached_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
224        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
225    }
226}
227
228#[cfg(feature = "unity_engine-networking-downloadhandlerassetbundle")]
229impl DownloadHandlerAssetBundle {
230    #[doc = "Direct (non-virtual) call to `DownloadHandlerAssetBundle`'s own `GetData`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
231    pub unsafe fn get_data(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Array<u8> {
232        let __mi = Self::get_data_method_info();
233        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Array<u8> = ::core::mem::transmute(__mi.method_ptr);
234        __inner(this.into(), ::core::option::Option::None)
235    }
236
237    #[doc = "Direct (non-virtual) call to `DownloadHandlerAssetBundle`'s own `GetText`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
238    pub unsafe fn get_text(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
239        let __mi = Self::get_text_method_info();
240        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
241        __inner(this.into(), ::core::option::Option::None)
242    }
243}
244
245#[cfg(feature = "unity_engine-networking-downloadhandlerassetbundle")]
246impl DownloadHandlerAssetBundle {
247    #[doc = "`.ctor(::unity::Il2CppString, u32)` — overload selector"]
248    pub fn new(url: ::unity::Il2CppString, crc: u32) -> Self {
249        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
250            panic!(
251                "{}
252::{}
253 failed to instantiate",
254                ::core::stringify!(DownloadHandlerAssetBundle),
255                ::core::stringify!(new),
256            )
257        });
258        <Self as IDownloadHandlerAssetBundleMethods>::ctor(this, url, crc);
259        this
260    }
261
262    #[doc = "`.ctor(::unity::Il2CppString, crate::unity_engine::cachedassetbundle::CachedAssetBundle, u32)` — overload selector"]
263    pub fn new_2(url: ::unity::Il2CppString, cached_bundle: crate::unity_engine::cachedassetbundle::CachedAssetBundle, crc: u32) -> Self {
264        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
265            panic!(
266                "{}
267::{}
268 failed to instantiate",
269                ::core::stringify!(DownloadHandlerAssetBundle),
270                ::core::stringify!(new_2),
271            )
272        });
273        <Self as IDownloadHandlerAssetBundleMethods>::ctor_2(this, url, cached_bundle, crc);
274        this
275    }
276}
277
278#[cfg(feature = "unity_engine-networking-downloadhandlerassetbundle")]
279#[doc(hidden)]
280pub mod prelude {
281    pub use super::{DownloadHandlerAssetBundle, IDownloadHandlerAssetBundle, IDownloadHandlerAssetBundleMethods};
282    #[cfg(feature = "system-object")]
283    pub use crate::system::object::IObjectMethods;
284    #[cfg(feature = "unity_engine-networking-downloadhandler")]
285    pub use crate::unity_engine::networking::downloadhandler::IDownloadHandlerMethods;
286    pub use crate::{system::object::IObject, unity_engine::networking::downloadhandler::IDownloadHandler};
287}