engage/generated/unity_engine/resource_management/util/
resourcemanagerconfig.rs1#[cfg(feature = "unity_engine-resource_management-util-resourcemanagerconfig-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/resource_management/util/resourcemanagerconfig/ResourceManagerConfig.md"))]
11 #[::unity::class(namespace = "UnityEngine.ResourceManagement.Util", name = "ResourceManagerConfig")]
12 #[parent(crate::system::object::Object)]
13 pub struct ResourceManagerConfig {}
14}
15
16#[cfg(feature = "unity_engine-resource_management-util-resourcemanagerconfig-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-resource_management-util-resourcemanagerconfig")]
20#[doc(hidden)]
21#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
22mod __ResourceManagerConfig_unity_raw {
23 use super::*;
24 #[doc(hidden)]
25 #[allow(non_snake_case)]
26 pub mod __lookup_extract_key_and_sub_key {
27 use super::*;
28 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
29 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
30 <crate::system::object::Object as ::unity::IlType>::il_type(),
31 <::unity::Il2CppString as ::unity::IlType>::il_type(),
32 <::unity::Il2CppString as ::unity::IlType>::il_type(),
33 ];
34 ::unity::lookup::method_info_on_class_with_signature(
35 <ResourceManagerConfig as ::unity::ClassIdentity>::class(),
36 "ExtractKeyAndSubKey",
37 3,
38 param_types,
39 true,
40 )
41 });
42 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
43 match &*METHOD {
44 ::core::result::Result::Ok(mi) => *mi,
45 ::core::result::Result::Err(e) => {
46 panic!(
47 "method lookup failed: {}
48::{}
49: {}
50",
51 <ResourceManagerConfig as ::unity::ClassIdentity>::NAME,
52 "ExtractKeyAndSubKey",
53 e
54 )
55 },
56 }
57 }
58 }
59 #[doc(hidden)]
60 #[allow(non_snake_case)]
61 pub mod __lookup_is_path_remote {
62 use super::*;
63 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
64 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
65 ::unity::lookup::method_info_on_class_with_signature(
66 <ResourceManagerConfig as ::unity::ClassIdentity>::class(),
67 "IsPathRemote",
68 1,
69 param_types,
70 true,
71 )
72 });
73 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
74 match &*METHOD {
75 ::core::result::Result::Ok(mi) => *mi,
76 ::core::result::Result::Err(e) => {
77 panic!(
78 "method lookup failed: {}
79::{}
80: {}
81",
82 <ResourceManagerConfig as ::unity::ClassIdentity>::NAME,
83 "IsPathRemote",
84 e
85 )
86 },
87 }
88 }
89 }
90 #[doc(hidden)]
91 #[allow(non_snake_case)]
92 pub mod __lookup_strip_query_parameters {
93 use super::*;
94 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
95 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
96 ::unity::lookup::method_info_on_class_with_signature(
97 <ResourceManagerConfig as ::unity::ClassIdentity>::class(),
98 "StripQueryParameters",
99 1,
100 param_types,
101 true,
102 )
103 });
104 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
105 match &*METHOD {
106 ::core::result::Result::Ok(mi) => *mi,
107 ::core::result::Result::Err(e) => {
108 panic!(
109 "method lookup failed: {}
110::{}
111: {}
112",
113 <ResourceManagerConfig as ::unity::ClassIdentity>::NAME,
114 "StripQueryParameters",
115 e
116 )
117 },
118 }
119 }
120 }
121 #[doc(hidden)]
122 #[allow(non_snake_case)]
123 pub mod __lookup_should_path_use_web_request {
124 use super::*;
125 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
126 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
127 ::unity::lookup::method_info_on_class_with_signature(
128 <ResourceManagerConfig as ::unity::ClassIdentity>::class(),
129 "ShouldPathUseWebRequest",
130 1,
131 param_types,
132 true,
133 )
134 });
135 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136 match &*METHOD {
137 ::core::result::Result::Ok(mi) => *mi,
138 ::core::result::Result::Err(e) => {
139 panic!(
140 "method lookup failed: {}
141::{}
142: {}
143",
144 <ResourceManagerConfig as ::unity::ClassIdentity>::NAME,
145 "ShouldPathUseWebRequest",
146 e
147 )
148 },
149 }
150 }
151 }
152 #[doc(hidden)]
153 #[allow(non_snake_case)]
154 pub mod __lookup_create_array_result {
155 use super::*;
156 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
157 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
158 <::unity::SystemType as ::unity::IlType>::il_type(),
159 <::unity::Array<crate::unity_engine::object_2::Object_2> as ::unity::IlType>::il_type(),
160 ];
161 ::unity::lookup::method_info_on_class_with_signature(
162 <ResourceManagerConfig as ::unity::ClassIdentity>::class(),
163 "CreateArrayResult",
164 2,
165 param_types,
166 true,
167 )
168 });
169 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170 match &*METHOD {
171 ::core::result::Result::Ok(mi) => *mi,
172 ::core::result::Result::Err(e) => {
173 panic!(
174 "method lookup failed: {}
175::{}
176: {}
177",
178 <ResourceManagerConfig as ::unity::ClassIdentity>::NAME,
179 "CreateArrayResult",
180 e
181 )
182 },
183 }
184 }
185 }
186 #[doc(hidden)]
187 #[allow(non_snake_case)]
188 pub mod __lookup_create_list_result {
189 use super::*;
190 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
191 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
192 <::unity::SystemType as ::unity::IlType>::il_type(),
193 <::unity::Array<crate::unity_engine::object_2::Object_2> as ::unity::IlType>::il_type(),
194 ];
195 ::unity::lookup::method_info_on_class_with_signature(
196 <ResourceManagerConfig as ::unity::ClassIdentity>::class(),
197 "CreateListResult",
198 2,
199 param_types,
200 true,
201 )
202 });
203 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204 match &*METHOD {
205 ::core::result::Result::Ok(mi) => *mi,
206 ::core::result::Result::Err(e) => {
207 panic!(
208 "method lookup failed: {}
209::{}
210: {}
211",
212 <ResourceManagerConfig as ::unity::ClassIdentity>::NAME,
213 "CreateListResult",
214 e
215 )
216 },
217 }
218 }
219 }
220}
221
222#[cfg(feature = "unity_engine-resource_management-util-resourcemanagerconfig")]
223impl ResourceManagerConfig {
224 #[doc = "`ExtractKeyAndSubKey(crate::system::object::Object, *mut::unity::Il2CppString, *mut::unity::Il2CppString)` overload"]
225 pub fn extract_key_and_sub_key(
226 key_obj: impl ::core::convert::Into<crate::system::object::Object>,
227 ) -> (bool, ::unity::Il2CppString, ::unity::Il2CppString) {
228 unsafe {
229 let mut __out_0 = ::core::mem::MaybeUninit::<::unity::Il2CppString>::uninit();
230 let mut __out_1 = ::core::mem::MaybeUninit::<::unity::Il2CppString>::uninit();
231 let __ret = {
232 ::unity::il2cpp_call!(__ResourceManagerConfig_unity_raw::__lookup_extract_key_and_sub_key::get_method_info().method_ptr,bool;
233(crate::system::object::Object)::core::convert::Into::into(key_obj),(*mut::unity::Il2CppString)__out_0.as_mut_ptr(),(*mut::unity::Il2CppString)__out_1.as_mut_ptr())
234 };
235 (__ret, __out_0.assume_init(), __out_1.assume_init())
236 }
237 }
238
239 #[doc = "`IsPathRemote(::unity::Il2CppString)` overload"]
240 pub fn is_path_remote(path: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
241 unsafe {
242 ::unity::il2cpp_call!(__ResourceManagerConfig_unity_raw::__lookup_is_path_remote::get_method_info().method_ptr,bool;
243(::unity::Il2CppString)::core::convert::Into::into(path))
244 }
245 }
246
247 #[doc = "`StripQueryParameters(::unity::Il2CppString)` overload"]
248 pub fn strip_query_parameters(path: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
249 unsafe {
250 ::unity::il2cpp_call!(__ResourceManagerConfig_unity_raw::__lookup_strip_query_parameters::get_method_info().method_ptr, ::unity::Il2CppString;
251(::unity::Il2CppString)::core::convert::Into::into(path))
252 }
253 }
254
255 #[doc = "`ShouldPathUseWebRequest(::unity::Il2CppString)` overload"]
256 pub fn should_path_use_web_request(path: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
257 unsafe {
258 ::unity::il2cpp_call!(__ResourceManagerConfig_unity_raw::__lookup_should_path_use_web_request::get_method_info().method_ptr,bool;
259(::unity::Il2CppString)::core::convert::Into::into(path))
260 }
261 }
262
263 #[doc = "`CreateArrayResult(::unity::SystemType, ::unity::Array<crate::unity_engine::object_2::Object_2>)` overload"]
264 pub fn create_array_result(
265 r#type: impl ::core::convert::Into<::unity::SystemType>,
266 all_assets: impl ::core::convert::Into<::unity::Array<crate::unity_engine::object_2::Object_2>>,
267 ) -> ::unity::IlInstance {
268 unsafe {
269 ::unity::il2cpp_call!(__ResourceManagerConfig_unity_raw::__lookup_create_array_result::get_method_info().method_ptr, ::unity::IlInstance;
270(::unity::SystemType)::core::convert::Into::into(r#type),(::unity::Array<crate::unity_engine::object_2::Object_2>)::core::convert::Into::into(all_assets))
271 }
272 }
273
274 pub fn create_array_result_2<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
275 all_assets: impl ::core::convert::Into<::unity::Array<crate::unity_engine::object_2::Object_2>>,
276 ) -> M0 {
277 static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
278 ::unity::lookup::method_info_on_class(<ResourceManagerConfig as ::unity::ClassIdentity>::class(), "CreateArrayResult", 1)
279 });
280 #[allow(clippy::type_complexity)]
281 static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
282 ::std::sync::OnceLock::new();
283 let _ = true;
284 let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
285 ::core::result::Result::Ok(mi) => *mi,
286 ::core::result::Result::Err(e) => {
287 panic!(
288 "method lookup failed: {}
289::{}
290: {}
291",
292 <ResourceManagerConfig as ::unity::ClassIdentity>::NAME,
293 "CreateArrayResult",
294 e
295 )
296 },
297 };
298 let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
299 let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
300 let __inflated: &'static ::unity::il2cpp::MethodInfo = {
301 let mut __guard = __cache.lock().unwrap();
302 *__guard
303 .entry(__key)
304 .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
305 };
306 unsafe {
307 let __f: extern "C" fn(::unity::Array<crate::unity_engine::object_2::Object_2>, ::unity::OptionalMethod) -> M0 =
308 ::core::mem::transmute(__inflated.method_ptr);
309 let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
310 __f(::core::convert::Into::into(all_assets), ::core::option::Option::Some(__mi_opaque))
311 }
312 }
313
314 #[doc = "`CreateListResult(::unity::SystemType, ::unity::Array<crate::unity_engine::object_2::Object_2>)` overload"]
315 pub fn create_list_result(
316 r#type: impl ::core::convert::Into<::unity::SystemType>,
317 all_assets: impl ::core::convert::Into<::unity::Array<crate::unity_engine::object_2::Object_2>>,
318 ) -> crate::system::collections::ilist::IList {
319 unsafe {
320 ::unity::il2cpp_call!(__ResourceManagerConfig_unity_raw::__lookup_create_list_result::get_method_info().method_ptr,crate::system::collections::ilist::IList;
321(::unity::SystemType)::core::convert::Into::into(r#type),(::unity::Array<crate::unity_engine::object_2::Object_2>)::core::convert::Into::into(all_assets))
322 }
323 }
324
325 pub fn create_list_result_2<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
326 all_assets: impl ::core::convert::Into<::unity::Array<crate::unity_engine::object_2::Object_2>>,
327 ) -> M0 {
328 static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
329 ::unity::lookup::method_info_on_class(<ResourceManagerConfig as ::unity::ClassIdentity>::class(), "CreateListResult", 1)
330 });
331 #[allow(clippy::type_complexity)]
332 static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
333 ::std::sync::OnceLock::new();
334 let _ = true;
335 let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
336 ::core::result::Result::Ok(mi) => *mi,
337 ::core::result::Result::Err(e) => {
338 panic!(
339 "method lookup failed: {}
340::{}
341: {}
342",
343 <ResourceManagerConfig as ::unity::ClassIdentity>::NAME,
344 "CreateListResult",
345 e
346 )
347 },
348 };
349 let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
350 let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
351 let __inflated: &'static ::unity::il2cpp::MethodInfo = {
352 let mut __guard = __cache.lock().unwrap();
353 *__guard
354 .entry(__key)
355 .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
356 };
357 unsafe {
358 let __f: extern "C" fn(::unity::Array<crate::unity_engine::object_2::Object_2>, ::unity::OptionalMethod) -> M0 =
359 ::core::mem::transmute(__inflated.method_ptr);
360 let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
361 __f(::core::convert::Into::into(all_assets), ::core::option::Option::Some(__mi_opaque))
362 }
363 }
364
365 pub fn is_instance<
366 M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity,
367 M1: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity,
368 >() -> bool {
369 static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
370 ::unity::lookup::method_info_on_class(<ResourceManagerConfig as ::unity::ClassIdentity>::class(), "IsInstance", 0)
371 });
372 #[allow(clippy::type_complexity)]
373 static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
374 ::std::sync::OnceLock::new();
375 let _ = true;
376 let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
377 ::core::result::Result::Ok(mi) => *mi,
378 ::core::result::Result::Err(e) => {
379 panic!(
380 "method lookup failed: {}
381::{}
382: {}
383",
384 <ResourceManagerConfig as ::unity::ClassIdentity>::NAME,
385 "IsInstance",
386 e
387 )
388 },
389 };
390 let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
391 let __key: usize = (<M0 as ::unity::IlType>::il_type() as *const _ as usize) ^ (<M1 as ::unity::IlType>::il_type() as *const _ as usize);
392 let __inflated: &'static ::unity::il2cpp::MethodInfo = {
393 let mut __guard = __cache.lock().unwrap();
394 *__guard.entry(__key).or_insert_with(|| {
395 ::unity::il2cpp::generic::create_generic_method_info(__open, &[
396 <M0 as ::unity::IlType>::il_type(),
397 <M1 as ::unity::IlType>::il_type(),
398 ])
399 })
400 };
401 unsafe {
402 let __f: extern "C" fn(::unity::OptionalMethod) -> bool = ::core::mem::transmute(__inflated.method_ptr);
403 let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
404 __f(::core::option::Option::Some(__mi_opaque))
405 }
406 }
407}
408
409#[cfg(feature = "unity_engine-resource_management-util-resourcemanagerconfig")]
410impl ResourceManagerConfig {
411 pub fn extract_key_and_sub_key_method_info() -> &'static ::unity::il2cpp::MethodInfo {
412 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
413 }
414
415 pub fn is_path_remote_method_info() -> &'static ::unity::il2cpp::MethodInfo {
416 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
417 }
418
419 pub fn strip_query_parameters_method_info() -> &'static ::unity::il2cpp::MethodInfo {
420 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
421 }
422
423 pub fn should_path_use_web_request_method_info() -> &'static ::unity::il2cpp::MethodInfo {
424 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
425 }
426
427 pub fn create_array_result_method_info() -> &'static ::unity::il2cpp::MethodInfo {
428 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
429 }
430
431 pub fn create_list_result_method_info() -> &'static ::unity::il2cpp::MethodInfo {
432 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
433 }
434}
435
436#[cfg(feature = "unity_engine-resource_management-util-resourcemanagerconfig")]
437#[doc(hidden)]
438pub mod prelude {
439 pub use super::{IResourceManagerConfig, ResourceManagerConfig};
440 pub use crate::system::object::IObject;
441 #[cfg(feature = "system-object")]
442 pub use crate::system::object::IObjectMethods;
443}