Skip to main content

engage/generated/unity_engine/addressable_assets/
checkcatalogsoperation.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-addressable_assets-checkcatalogsoperation-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::resource_management::async_operations::asyncoperationbase_1::{AsyncOperationBase_1, IAsyncOperationBase_1},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/addressable_assets/checkcatalogsoperation/CheckCatalogsOperation.md"))]
14    #[::unity::class(namespace = "UnityEngine.AddressableAssets", name = "CheckCatalogsOperation")]
15    #[parent(crate::unity_engine::resource_management::async_operations::asyncoperationbase_1::AsyncOperationBase_1<crate::system::collections::generic::list_1::List_1< ::unity::Il2CppString> >)]
16    pub struct CheckCatalogsOperation {
17        #[offset(136)]
18        #[rename(name = "m_Addressables")]
19        pub m_addressables: crate::unity_engine::addressable_assets::addressablesimpl::AddressablesImpl,
20        #[offset(144)]
21        #[rename(name = "m_LocalHashes")]
22        pub m_local_hashes: crate::system::collections::generic::list_1::List_1<::unity::Il2CppString>,
23        #[offset(152)]
24        #[rename(name = "m_LocatorInfos")]
25        pub m_locator_infos: crate::system::collections::generic::list_1::List_1<
26            crate::unity_engine::addressable_assets::addressablesimpl::AddressablesImpl_ResourceLocatorInfo,
27        >,
28        #[offset(160)]
29        #[rename(name = "m_DepOp")]
30        pub m_dep_op: crate::unity_engine::resource_management::async_operations::asyncoperationhandle_1::AsyncOperationHandle_1<
31            crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
32                crate::unity_engine::resource_management::async_operations::asyncoperationhandle::AsyncOperationHandle,
33            >,
34        >,
35    }
36}
37
38#[cfg(feature = "unity_engine-addressable_assets-checkcatalogsoperation-types")]
39pub use __types::*;
40
41#[cfg(feature = "unity_engine-addressable_assets-checkcatalogsoperation")]
42pub trait ICheckCatalogsOperationMethods: ICheckCatalogsOperation {
43    #[doc = "`.ctor(crate::unity_engine::addressable_assets::addressablesimpl::AddressablesImpl)` overload"]
44    fn ctor(self, aa: impl ::core::convert::Into<crate::unity_engine::addressable_assets::addressablesimpl::AddressablesImpl>) -> () {
45        unsafe {
46            let __receiver =
47                <CheckCatalogsOperation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48            ::unity::il2cpp_call!((::unity::module_base()+0x2dafb80usize)as*mut u8,();
49(CheckCatalogsOperation)__receiver,(crate::unity_engine::addressable_assets::addressablesimpl::AddressablesImpl)::core::convert::Into::into(aa))
50        }
51    }
52    #[doc = "`Start(crate::system::collections::generic::list_1::List_1<crate::unity_engine::addressable_assets::addressablesimpl::AddressablesImpl_ResourceLocatorInfo>)` overload"]
53    fn start(
54        self,
55        locator_infos: impl ::core::convert::Into<
56            crate::system::collections::generic::list_1::List_1<
57                crate::unity_engine::addressable_assets::addressablesimpl::AddressablesImpl_ResourceLocatorInfo,
58            >,
59        >,
60    ) -> crate::unity_engine::resource_management::async_operations::asyncoperationhandle_1::AsyncOperationHandle_1<
61        crate::system::collections::generic::list_1::List_1<::unity::Il2CppString>,
62    > {
63        unsafe {
64            let __receiver =
65                <CheckCatalogsOperation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66            ::unity::il2cpp_call!((::unity::module_base()+0x2dafbf0usize)as*mut u8,crate::unity_engine::resource_management::async_operations::asyncoperationhandle_1::AsyncOperationHandle_1<crate::system::collections::generic::list_1::List_1< ::unity::Il2CppString> > ;
67(CheckCatalogsOperation)__receiver,(crate::system::collections::generic::list_1::List_1<crate::unity_engine::addressable_assets::addressablesimpl::AddressablesImpl_ResourceLocatorInfo>)::core::convert::Into::into(locator_infos))
68        }
69    }
70    #[doc = "`InvokeWaitForCompletion()` overload"]
71    fn invoke_wait_for_completion(self) -> bool {
72        unsafe {
73            let __receiver =
74                <CheckCatalogsOperation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            {
76                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
77                let __vi = *__vt.get(33usize).unwrap_or_else(|| {
78                    panic!(
79                        "unity: virtual slot {}
80 out of range (vtable len {}
81) on the runtime class behind {}
82 (method `{}
83`)",
84                        33usize,
85                        __vt.len(),
86                        <CheckCatalogsOperation as ::unity::ClassIdentity>::NAME,
87                        "InvokeWaitForCompletion",
88                    )
89                });
90                let __inner: extern "C" fn(CheckCatalogsOperation, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
91                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
92                __inner(__receiver, __mi)
93            }
94        }
95    }
96    #[doc = "`Destroy()` overload"]
97    fn destroy(self) -> () {
98        unsafe {
99            let __receiver =
100                <CheckCatalogsOperation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
101            {
102                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
103                let __vi = *__vt.get(29usize).unwrap_or_else(|| {
104                    panic!(
105                        "unity: virtual slot {}
106 out of range (vtable len {}
107) on the runtime class behind {}
108 (method `{}
109`)",
110                        29usize,
111                        __vt.len(),
112                        <CheckCatalogsOperation as ::unity::ClassIdentity>::NAME,
113                        "Destroy",
114                    )
115                });
116                let __inner: extern "C" fn(CheckCatalogsOperation, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
117                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
118                __inner(__receiver, __mi)
119            }
120        }
121    }
122    #[doc = "`GetDependencies(crate::system::collections::generic::list_1::List_1<crate::unity_engine::resource_management::async_operations::asyncoperationhandle::AsyncOperationHandle>)` overload"]
123    fn get_dependencies(
124        self,
125        dependencies: impl ::core::convert::Into<
126            crate::system::collections::generic::list_1::List_1<
127                crate::unity_engine::resource_management::async_operations::asyncoperationhandle::AsyncOperationHandle,
128            >,
129        >,
130    ) -> () {
131        unsafe {
132            let __receiver =
133                <CheckCatalogsOperation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134            {
135                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
136                let __vi = *__vt.get(32usize).unwrap_or_else(|| {
137                    panic!(
138                        "unity: virtual slot {}
139 out of range (vtable len {}
140) on the runtime class behind {}
141 (method `{}
142`)",
143                        32usize,
144                        __vt.len(),
145                        <CheckCatalogsOperation as ::unity::ClassIdentity>::NAME,
146                        "GetDependencies",
147                    )
148                });
149                let __inner: extern "C" fn(
150                    CheckCatalogsOperation,
151                    crate::system::collections::generic::list_1::List_1<
152                        crate::unity_engine::resource_management::async_operations::asyncoperationhandle::AsyncOperationHandle,
153                    >,
154                    ::unity::OptionalMethod,
155                ) -> () = ::core::mem::transmute(__vi.method_ptr);
156                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
157                __inner(__receiver, ::core::convert::Into::into(dependencies), __mi)
158            }
159        }
160    }
161    #[doc = "`Execute()` overload"]
162    fn execute(self) -> () {
163        unsafe {
164            let __receiver =
165                <CheckCatalogsOperation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
166            {
167                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
168                let __vi = *__vt.get(28usize).unwrap_or_else(|| {
169                    panic!(
170                        "unity: virtual slot {}
171 out of range (vtable len {}
172) on the runtime class behind {}
173 (method `{}
174`)",
175                        28usize,
176                        __vt.len(),
177                        <CheckCatalogsOperation as ::unity::ClassIdentity>::NAME,
178                        "Execute",
179                    )
180                });
181                let __inner: extern "C" fn(CheckCatalogsOperation, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
182                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
183                __inner(__receiver, __mi)
184            }
185        }
186    }
187}
188
189#[cfg(feature = "unity_engine-addressable_assets-checkcatalogsoperation")]
190impl<__T: ICheckCatalogsOperation> ICheckCatalogsOperationMethods for __T {}
191
192#[cfg(feature = "unity_engine-addressable_assets-checkcatalogsoperation")]
193impl CheckCatalogsOperation {
194    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
195        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
196    }
197
198    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
199        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
200    }
201
202    pub fn invoke_wait_for_completion_method_info() -> &'static ::unity::il2cpp::MethodInfo {
203        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
204    }
205
206    pub fn destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
207        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
208    }
209
210    pub fn get_dependencies_method_info() -> &'static ::unity::il2cpp::MethodInfo {
211        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
212    }
213
214    pub fn execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
216    }
217}
218
219#[cfg(feature = "unity_engine-addressable_assets-checkcatalogsoperation")]
220impl CheckCatalogsOperation {
221    #[doc = "Direct (non-virtual) call to `CheckCatalogsOperation`'s own `InvokeWaitForCompletion`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
222    pub unsafe fn invoke_wait_for_completion(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
223        let __mi = Self::invoke_wait_for_completion_method_info();
224        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
225        __inner(this.into(), ::core::option::Option::None)
226    }
227
228    #[doc = "Direct (non-virtual) call to `CheckCatalogsOperation`'s own `Destroy`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
229    pub unsafe fn destroy(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
230        let __mi = Self::destroy_method_info();
231        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
232        __inner(this.into(), ::core::option::Option::None)
233    }
234
235    #[doc = "Direct (non-virtual) call to `CheckCatalogsOperation`'s own `GetDependencies`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
236    pub unsafe fn get_dependencies(
237        this: impl ::core::convert::Into<::unity::IlInstance>,
238        dependencies: crate::system::collections::generic::list_1::List_1<
239            crate::unity_engine::resource_management::async_operations::asyncoperationhandle::AsyncOperationHandle,
240        >,
241    ) -> () {
242        let __mi = Self::get_dependencies_method_info();
243        let __inner: extern "C" fn(
244            ::unity::IlInstance,
245            crate::system::collections::generic::list_1::List_1<
246                crate::unity_engine::resource_management::async_operations::asyncoperationhandle::AsyncOperationHandle,
247            >,
248            ::unity::OptionalMethod,
249        ) -> () = ::core::mem::transmute(__mi.method_ptr);
250        __inner(this.into(), dependencies, ::core::option::Option::None)
251    }
252
253    #[doc = "Direct (non-virtual) call to `CheckCatalogsOperation`'s own `Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
254    pub unsafe fn execute(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
255        let __mi = Self::execute_method_info();
256        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
257        __inner(this.into(), ::core::option::Option::None)
258    }
259}
260
261#[cfg(feature = "unity_engine-addressable_assets-checkcatalogsoperation")]
262impl CheckCatalogsOperation {
263    #[doc = "`.ctor(crate::unity_engine::addressable_assets::addressablesimpl::AddressablesImpl)` — overload selector"]
264    pub fn new(aa: crate::unity_engine::addressable_assets::addressablesimpl::AddressablesImpl) -> Self {
265        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
266            panic!(
267                "{}
268::{}
269 failed to instantiate",
270                ::core::stringify!(CheckCatalogsOperation),
271                ::core::stringify!(new),
272            )
273        });
274        <Self as ICheckCatalogsOperationMethods>::ctor(this, aa);
275        this
276    }
277}
278
279#[cfg(feature = "unity_engine-addressable_assets-checkcatalogsoperation")]
280#[doc(hidden)]
281pub mod prelude {
282    pub use super::{CheckCatalogsOperation, ICheckCatalogsOperation, ICheckCatalogsOperationMethods};
283    #[cfg(feature = "system-object")]
284    pub use crate::system::object::IObjectMethods;
285    #[cfg(feature = "unity_engine-resource_management-async_operations-asyncoperationbase_1")]
286    pub use crate::unity_engine::resource_management::async_operations::asyncoperationbase_1::IAsyncOperationBase_1Methods;
287    pub use crate::{system::object::IObject, unity_engine::resource_management::async_operations::asyncoperationbase_1::IAsyncOperationBase_1};
288}