Skip to main content

engage/generated/unity_engine/addressable_assets/
updatecatalogsoperation.rs

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