engage/generated/unity_engine/resource_management/async_operations/
initalizationobjectsoperation.rs1#[cfg(feature = "unity_engine-resource_management-async_operations-initalizationobjectsoperation-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/resource_management/async_operations/initalizationobjectsoperation/InitalizationObjectsOperation.md"))]
14 #[::unity::class(namespace = "UnityEngine.ResourceManagement.AsyncOperations", name = "InitalizationObjectsOperation")]
15 #[parent(crate::unity_engine::resource_management::async_operations::asyncoperationbase_1::AsyncOperationBase_1<bool>)]
16 pub struct InitalizationObjectsOperation {
17 #[offset(136)]
18 #[rename(name = "m_RtdOp")]
19 pub m_rtd_op: crate::unity_engine::resource_management::async_operations::asyncoperationhandle_1::AsyncOperationHandle_1<
20 crate::unity_engine::addressable_assets::initialization::resourcemanagerruntimedata::ResourceManagerRuntimeData,
21 >,
22 #[offset(160)]
23 #[rename(name = "m_Addressables")]
24 pub m_addressables: crate::unity_engine::addressable_assets::addressablesimpl::AddressablesImpl,
25 #[offset(168)]
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-resource_management-async_operations-initalizationobjectsoperation-types")]
36pub use __types::*;
37
38#[cfg(feature = "unity_engine-resource_management-async_operations-initalizationobjectsoperation")]
39pub trait IInitalizationObjectsOperationMethods: IInitalizationObjectsOperation {
40 #[doc = "`Init(crate::unity_engine::resource_management::async_operations::asyncoperationhandle_1::AsyncOperationHandle_1<crate::unity_engine::addressable_assets::initialization::resourcemanagerruntimedata::ResourceManagerRuntimeData>, crate::unity_engine::addressable_assets::addressablesimpl::AddressablesImpl)` overload"]
41 fn init(
42 self,
43 rtd_op: impl ::core::convert::Into<
44 crate::unity_engine::resource_management::async_operations::asyncoperationhandle_1::AsyncOperationHandle_1<
45 crate::unity_engine::addressable_assets::initialization::resourcemanagerruntimedata::ResourceManagerRuntimeData,
46 >,
47 >,
48 addressables: impl ::core::convert::Into<crate::unity_engine::addressable_assets::addressablesimpl::AddressablesImpl>,
49 ) -> () {
50 unsafe {
51 let __receiver =
52 <InitalizationObjectsOperation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
53 ::unity::il2cpp_call!((::unity::module_base()+0x2db6e10usize)as*mut u8,();
54(InitalizationObjectsOperation)__receiver,(crate::unity_engine::resource_management::async_operations::asyncoperationhandle_1::AsyncOperationHandle_1<crate::unity_engine::addressable_assets::initialization::resourcemanagerruntimedata::ResourceManagerRuntimeData>)::core::convert::Into::into(rtd_op),(crate::unity_engine::addressable_assets::addressablesimpl::AddressablesImpl)::core::convert::Into::into(addressables))
55 }
56 }
57 #[doc = "`get_DebugName()` overload"]
58 fn get_debug_name(self) -> ::unity::Il2CppString {
59 unsafe {
60 let __receiver =
61 <InitalizationObjectsOperation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62 {
63 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
64 let __vi = *__vt.get(31usize).unwrap_or_else(|| {
65 panic!(
66 "unity: virtual slot {}
67 out of range (vtable len {}
68) on the runtime class behind {}
69 (method `{}
70`)",
71 31usize,
72 __vt.len(),
73 <InitalizationObjectsOperation as ::unity::ClassIdentity>::NAME,
74 "get_DebugName",
75 )
76 });
77 let __inner: extern "C" fn(InitalizationObjectsOperation, ::unity::OptionalMethod) -> ::unity::Il2CppString =
78 ::core::mem::transmute(__vi.method_ptr);
79 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
80 __inner(__receiver, __mi)
81 }
82 }
83 }
84 #[doc = "`LogRuntimeWarnings(::unity::Il2CppString)` overload"]
85 fn log_runtime_warnings(self, path_to_build_logs: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
86 unsafe {
87 let __receiver =
88 <InitalizationObjectsOperation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89 ::unity::il2cpp_call!((::unity::module_base()+0x2db6ec0usize)as*mut u8,bool;
90(InitalizationObjectsOperation)__receiver,(::unity::Il2CppString)::core::convert::Into::into(path_to_build_logs))
91 }
92 }
93 #[doc = "`InvokeWaitForCompletion()` overload"]
94 fn invoke_wait_for_completion(self) -> bool {
95 unsafe {
96 let __receiver =
97 <InitalizationObjectsOperation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98 {
99 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
100 let __vi = *__vt.get(33usize).unwrap_or_else(|| {
101 panic!(
102 "unity: virtual slot {}
103 out of range (vtable len {}
104) on the runtime class behind {}
105 (method `{}
106`)",
107 33usize,
108 __vt.len(),
109 <InitalizationObjectsOperation as ::unity::ClassIdentity>::NAME,
110 "InvokeWaitForCompletion",
111 )
112 });
113 let __inner: extern "C" fn(InitalizationObjectsOperation, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
114 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
115 __inner(__receiver, __mi)
116 }
117 }
118 }
119 #[doc = "`Execute()` overload"]
120 fn execute(self) -> () {
121 unsafe {
122 let __receiver =
123 <InitalizationObjectsOperation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
124 {
125 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
126 let __vi = *__vt.get(28usize).unwrap_or_else(|| {
127 panic!(
128 "unity: virtual slot {}
129 out of range (vtable len {}
130) on the runtime class behind {}
131 (method `{}
132`)",
133 28usize,
134 __vt.len(),
135 <InitalizationObjectsOperation as ::unity::ClassIdentity>::NAME,
136 "Execute",
137 )
138 });
139 let __inner: extern "C" fn(InitalizationObjectsOperation, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
140 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
141 __inner(__receiver, __mi)
142 }
143 }
144 }
145 #[doc = "`.ctor()` overload"]
146 fn ctor(self) -> () {
147 unsafe {
148 let __receiver =
149 <InitalizationObjectsOperation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150 ::unity::il2cpp_call!((::unity::module_base()+0x2db7900usize)as*mut u8,();
151(InitalizationObjectsOperation)__receiver)
152 }
153 }
154}
155
156#[cfg(feature = "unity_engine-resource_management-async_operations-initalizationobjectsoperation")]
157impl<__T: IInitalizationObjectsOperation> IInitalizationObjectsOperationMethods for __T {}
158
159#[cfg(feature = "unity_engine-resource_management-async_operations-initalizationobjectsoperation")]
160impl InitalizationObjectsOperation {
161 pub fn init_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
163 }
164
165 pub fn get_debug_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
167 }
168
169 pub fn log_runtime_warnings_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
171 }
172
173 pub fn invoke_wait_for_completion_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
175 }
176
177 pub fn execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
179 }
180
181 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
183 }
184}
185
186#[cfg(feature = "unity_engine-resource_management-async_operations-initalizationobjectsoperation")]
187impl InitalizationObjectsOperation {
188 #[doc = "Direct (non-virtual) call to `InitalizationObjectsOperation`'s own `get_DebugName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
189 pub unsafe fn get_debug_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
190 let __mi = Self::get_debug_name_method_info();
191 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
192 __inner(this.into(), ::core::option::Option::None)
193 }
194
195 #[doc = "Direct (non-virtual) call to `InitalizationObjectsOperation`'s own `InvokeWaitForCompletion`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
196 pub unsafe fn invoke_wait_for_completion(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
197 let __mi = Self::invoke_wait_for_completion_method_info();
198 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
199 __inner(this.into(), ::core::option::Option::None)
200 }
201
202 #[doc = "Direct (non-virtual) call to `InitalizationObjectsOperation`'s own `Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
203 pub unsafe fn execute(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
204 let __mi = Self::execute_method_info();
205 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
206 __inner(this.into(), ::core::option::Option::None)
207 }
208}
209
210#[cfg(feature = "unity_engine-resource_management-async_operations-initalizationobjectsoperation")]
211impl InitalizationObjectsOperation {
212 #[doc = "`.ctor()` — no args"]
213 pub fn new() -> Self {
214 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
215 panic!(
216 "{}
217::{}
218 failed to instantiate",
219 ::core::stringify!(InitalizationObjectsOperation),
220 ::core::stringify!(new),
221 )
222 });
223 <Self as IInitalizationObjectsOperationMethods>::ctor(this);
224 this
225 }
226}
227
228#[cfg(feature = "unity_engine-resource_management-async_operations-initalizationobjectsoperation")]
229#[doc(hidden)]
230pub mod prelude {
231 pub use super::{IInitalizationObjectsOperation, IInitalizationObjectsOperationMethods, InitalizationObjectsOperation};
232 #[cfg(feature = "system-object")]
233 pub use crate::system::object::IObjectMethods;
234 #[cfg(feature = "unity_engine-resource_management-async_operations-asyncoperationbase_1")]
235 pub use crate::unity_engine::resource_management::async_operations::asyncoperationbase_1::IAsyncOperationBase_1Methods;
236 pub use crate::{system::object::IObject, unity_engine::resource_management::async_operations::asyncoperationbase_1::IAsyncOperationBase_1};
237}