1#[cfg(feature = "unity_engine-addressable_assets-resource_locators-contentcatalogdata-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 valuetype::{IValueType, ValueType},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/addressable_assets/resource_locators/contentcatalogdata/ContentCatalogData_CompactLocation.md"))]
14 #[::unity::class(namespace = "UnityEngine.AddressableAssets.ResourceLocators", name = "ContentCatalogData.CompactLocation")]
15 #[parent(crate::system::object::Object)]
16 pub struct ContentCatalogData_CompactLocation {
17 #[offset(16)]
18 #[rename(name = "m_Locator")]
19 pub m_locator: crate::unity_engine::addressable_assets::resource_locators::resourcelocationmap::ResourceLocationMap,
20 #[offset(24)]
21 #[rename(name = "m_InternalId")]
22 pub m_internal_id: ::unity::Il2CppString,
23 #[offset(32)]
24 #[rename(name = "m_ProviderId")]
25 pub m_provider_id: ::unity::Il2CppString,
26 #[offset(40)]
27 #[rename(name = "m_Dependency")]
28 pub m_dependency: ::unity::IlInstance,
29 #[offset(48)]
30 #[rename(name = "m_Data")]
31 pub m_data: ::unity::IlInstance,
32 #[offset(56)]
33 #[rename(name = "m_HashCode")]
34 pub m_hash_code: i32,
35 #[offset(60)]
36 #[rename(name = "m_DependencyHashCode")]
37 pub m_dependency_hash_code: i32,
38 #[offset(64)]
39 #[rename(name = "m_PrimaryKey")]
40 pub m_primary_key: ::unity::Il2CppString,
41 #[offset(72)]
42 #[rename(name = "m_Type")]
43 pub m_type: ::unity::SystemType,
44 }
45
46 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/addressable_assets/resource_locators/contentcatalogdata/ContentCatalogData.md"))]
47 #[::unity::class(namespace = "UnityEngine.AddressableAssets.ResourceLocators", name = "ContentCatalogData")]
48 #[parent(crate::system::object::Object)]
49 pub struct ContentCatalogData {
50 #[offset(16)]
51 #[rename(name = "localHash")]
52 pub local_hash: ::unity::Il2CppString,
53 #[offset(24)]
54 #[rename(name = "location")]
55 pub location: crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
56 #[offset(32)]
57 #[rename(name = "m_LocatorId")]
58 pub m_locator_id: ::unity::Il2CppString,
59 #[offset(40)]
60 #[rename(name = "m_InstanceProviderData")]
61 pub m_instance_provider_data: crate::unity_engine::resource_management::util::objectinitializationdata::ObjectInitializationData,
62 #[offset(88)]
63 #[rename(name = "m_SceneProviderData")]
64 pub m_scene_provider_data: crate::unity_engine::resource_management::util::objectinitializationdata::ObjectInitializationData,
65 #[offset(136)]
66 #[rename(name = "m_ResourceProviderData")]
67 pub m_resource_provider_data: crate::system::collections::generic::list_1::List_1<
68 crate::unity_engine::resource_management::util::objectinitializationdata::ObjectInitializationData,
69 >,
70 #[offset(144)]
71 #[rename(name = "m_ProviderIds")]
72 pub m_provider_ids: ::unity::Array<::unity::Il2CppString>,
73 #[offset(152)]
74 #[rename(name = "m_InternalIds")]
75 pub m_internal_ids: ::unity::Array<::unity::Il2CppString>,
76 #[offset(160)]
77 #[rename(name = "m_KeyDataString")]
78 pub m_key_data_string: ::unity::Il2CppString,
79 #[offset(168)]
80 #[rename(name = "m_BucketDataString")]
81 pub m_bucket_data_string: ::unity::Il2CppString,
82 #[offset(176)]
83 #[rename(name = "m_EntryDataString")]
84 pub m_entry_data_string: ::unity::Il2CppString,
85 #[static_field]
86 #[rename(name = "kBytesPerInt32")]
87 pub k_bytes_per_int32: i32,
88 #[static_field]
89 #[rename(name = "k_EntryDataItemPerEntry")]
90 pub k_entry_data_item_per_entry: i32,
91 #[offset(184)]
92 #[rename(name = "m_ExtraDataString")]
93 pub m_extra_data_string: ::unity::Il2CppString,
94 #[offset(192)]
95 #[rename(name = "m_resourceTypes")]
96 pub m_resource_types: ::unity::Array<crate::unity_engine::resource_management::util::serializedtype::SerializedType>,
97 #[offset(200)]
98 #[rename(name = "m_InternalIdPrefixes")]
99 pub m_internal_id_prefixes: ::unity::Array<::unity::Il2CppString>,
100 }
101
102 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/addressable_assets/resource_locators/contentcatalogdata/ContentCatalogData_Bucket.md"))]
103 #[repr(C)]
104 #[derive(::core::clone::Clone, ::core::marker::Copy)]
105 pub struct ContentCatalogData_Bucket {
106 pub data_offset: i32,
107 pub entries: ::unity::Array<i32>,
108 }
109 impl ::unity::ClassIdentity for ContentCatalogData_Bucket {
110 const NAME: &'static str = "ContentCatalogData.Bucket";
111 const NAMESPACE: &'static str = "UnityEngine.AddressableAssets.ResourceLocators";
112
113 fn class() -> ::unity::Class {
114 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
115 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
116 }
117 }
118 impl ::unity::IlType for ContentCatalogData_Bucket {
119 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
120 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
121 }
122 }
123}
124
125#[cfg(feature = "unity_engine-addressable_assets-resource_locators-contentcatalogdata-types")]
126pub use __types::*;
127
128#[cfg(feature = "unity_engine-addressable_assets-resource_locators-contentcatalogdata")]
129pub trait IContentCatalogData_CompactLocationMethods: IContentCatalogData_CompactLocation {
130 #[doc = "`get_InternalId()` overload"]
131 fn get_internal_id(self) -> ::unity::Il2CppString {
132 unsafe {
133 let __receiver =
134 <ContentCatalogData_CompactLocation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135 {
136 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
137 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
138 panic!(
139 "unity: virtual slot {}
140 out of range (vtable len {}
141) on the runtime class behind {}
142 (method `{}
143`)",
144 4usize,
145 __vt.len(),
146 <ContentCatalogData_CompactLocation as ::unity::ClassIdentity>::NAME,
147 "get_InternalId",
148 )
149 });
150 let __inner: extern "C" fn(ContentCatalogData_CompactLocation, ::unity::OptionalMethod) -> ::unity::Il2CppString =
151 ::core::mem::transmute(__vi.method_ptr);
152 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
153 __inner(__receiver, __mi)
154 }
155 }
156 }
157 #[doc = "`get_ProviderId()` overload"]
158 fn get_provider_id(self) -> ::unity::Il2CppString {
159 unsafe {
160 let __receiver =
161 <ContentCatalogData_CompactLocation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162 {
163 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
164 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
165 panic!(
166 "unity: virtual slot {}
167 out of range (vtable len {}
168) on the runtime class behind {}
169 (method `{}
170`)",
171 5usize,
172 __vt.len(),
173 <ContentCatalogData_CompactLocation as ::unity::ClassIdentity>::NAME,
174 "get_ProviderId",
175 )
176 });
177 let __inner: extern "C" fn(ContentCatalogData_CompactLocation, ::unity::OptionalMethod) -> ::unity::Il2CppString =
178 ::core::mem::transmute(__vi.method_ptr);
179 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
180 __inner(__receiver, __mi)
181 }
182 }
183 }
184 #[doc = "`get_Dependencies()` overload"]
185 fn get_dependencies(
186 self,
187 ) -> crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
188 crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
189 > {
190 unsafe {
191 let __receiver =
192 <ContentCatalogData_CompactLocation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
193 {
194 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
195 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
196 panic!(
197 "unity: virtual slot {}
198 out of range (vtable len {}
199) on the runtime class behind {}
200 (method `{}
201`)",
202 6usize,
203 __vt.len(),
204 <ContentCatalogData_CompactLocation as ::unity::ClassIdentity>::NAME,
205 "get_Dependencies",
206 )
207 });
208 let __inner: extern "C" fn(
209 ContentCatalogData_CompactLocation,
210 ::unity::OptionalMethod,
211 ) -> crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
212 crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
213 > = ::core::mem::transmute(__vi.method_ptr);
214 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
215 __inner(__receiver, __mi)
216 }
217 }
218 }
219 #[doc = "`get_HasDependencies()` overload"]
220 fn get_has_dependencies(self) -> bool {
221 unsafe {
222 let __receiver =
223 <ContentCatalogData_CompactLocation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
224 {
225 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
226 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
227 panic!(
228 "unity: virtual slot {}
229 out of range (vtable len {}
230) on the runtime class behind {}
231 (method `{}
232`)",
233 9usize,
234 __vt.len(),
235 <ContentCatalogData_CompactLocation as ::unity::ClassIdentity>::NAME,
236 "get_HasDependencies",
237 )
238 });
239 let __inner: extern "C" fn(ContentCatalogData_CompactLocation, ::unity::OptionalMethod) -> bool =
240 ::core::mem::transmute(__vi.method_ptr);
241 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
242 __inner(__receiver, __mi)
243 }
244 }
245 }
246 #[doc = "`get_DependencyHashCode()` overload"]
247 fn get_dependency_hash_code(self) -> i32 {
248 unsafe {
249 let __receiver =
250 <ContentCatalogData_CompactLocation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
251 {
252 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
253 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
254 panic!(
255 "unity: virtual slot {}
256 out of range (vtable len {}
257) on the runtime class behind {}
258 (method `{}
259`)",
260 8usize,
261 __vt.len(),
262 <ContentCatalogData_CompactLocation as ::unity::ClassIdentity>::NAME,
263 "get_DependencyHashCode",
264 )
265 });
266 let __inner: extern "C" fn(ContentCatalogData_CompactLocation, ::unity::OptionalMethod) -> i32 =
267 ::core::mem::transmute(__vi.method_ptr);
268 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
269 __inner(__receiver, __mi)
270 }
271 }
272 }
273 #[doc = "`get_Data()` overload"]
274 fn get_data(self) -> crate::system::object::Object {
275 unsafe {
276 let __receiver =
277 <ContentCatalogData_CompactLocation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
278 {
279 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
280 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
281 panic!(
282 "unity: virtual slot {}
283 out of range (vtable len {}
284) on the runtime class behind {}
285 (method `{}
286`)",
287 10usize,
288 __vt.len(),
289 <ContentCatalogData_CompactLocation as ::unity::ClassIdentity>::NAME,
290 "get_Data",
291 )
292 });
293 let __inner: extern "C" fn(ContentCatalogData_CompactLocation, ::unity::OptionalMethod) -> crate::system::object::Object =
294 ::core::mem::transmute(__vi.method_ptr);
295 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
296 __inner(__receiver, __mi)
297 }
298 }
299 }
300 #[doc = "`get_PrimaryKey()` overload"]
301 fn get_primary_key(self) -> ::unity::Il2CppString {
302 unsafe {
303 let __receiver =
304 <ContentCatalogData_CompactLocation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
305 {
306 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
307 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
308 panic!(
309 "unity: virtual slot {}
310 out of range (vtable len {}
311) on the runtime class behind {}
312 (method `{}
313`)",
314 11usize,
315 __vt.len(),
316 <ContentCatalogData_CompactLocation as ::unity::ClassIdentity>::NAME,
317 "get_PrimaryKey",
318 )
319 });
320 let __inner: extern "C" fn(ContentCatalogData_CompactLocation, ::unity::OptionalMethod) -> ::unity::Il2CppString =
321 ::core::mem::transmute(__vi.method_ptr);
322 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
323 __inner(__receiver, __mi)
324 }
325 }
326 }
327 #[doc = "`set_PrimaryKey(::unity::Il2CppString)` overload"]
328 fn set_primary_key(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
329 unsafe {
330 let __receiver =
331 <ContentCatalogData_CompactLocation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
332 ::unity::il2cpp_call!((::unity::module_base()+0x2dbeef0usize)as*mut u8,();
333(ContentCatalogData_CompactLocation)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
334 }
335 }
336 #[doc = "`get_ResourceType()` overload"]
337 fn get_resource_type(self) -> ::unity::SystemType {
338 unsafe {
339 let __receiver =
340 <ContentCatalogData_CompactLocation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
341 {
342 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
343 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
344 panic!(
345 "unity: virtual slot {}
346 out of range (vtable len {}
347) on the runtime class behind {}
348 (method `{}
349`)",
350 12usize,
351 __vt.len(),
352 <ContentCatalogData_CompactLocation as ::unity::ClassIdentity>::NAME,
353 "get_ResourceType",
354 )
355 });
356 let __inner: extern "C" fn(ContentCatalogData_CompactLocation, ::unity::OptionalMethod) -> ::unity::SystemType =
357 ::core::mem::transmute(__vi.method_ptr);
358 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
359 __inner(__receiver, __mi)
360 }
361 }
362 }
363 #[doc = "`ToString()` overload"]
364 fn to_string(self) -> ::unity::Il2CppString {
365 unsafe {
366 let __receiver =
367 <ContentCatalogData_CompactLocation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
368 {
369 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
370 let __vi = *__vt.get(3usize).unwrap_or_else(|| {
371 panic!(
372 "unity: virtual slot {}
373 out of range (vtable len {}
374) on the runtime class behind {}
375 (method `{}
376`)",
377 3usize,
378 __vt.len(),
379 <ContentCatalogData_CompactLocation as ::unity::ClassIdentity>::NAME,
380 "ToString",
381 )
382 });
383 let __inner: extern "C" fn(ContentCatalogData_CompactLocation, ::unity::OptionalMethod) -> ::unity::Il2CppString =
384 ::core::mem::transmute(__vi.method_ptr);
385 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
386 __inner(__receiver, __mi)
387 }
388 }
389 }
390 #[doc = "`Hash(::unity::SystemType)` overload"]
391 fn hash(self, t: impl ::core::convert::Into<::unity::SystemType>) -> i32 {
392 unsafe {
393 let __receiver =
394 <ContentCatalogData_CompactLocation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
395 {
396 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
397 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
398 panic!(
399 "unity: virtual slot {}
400 out of range (vtable len {}
401) on the runtime class behind {}
402 (method `{}
403`)",
404 7usize,
405 __vt.len(),
406 <ContentCatalogData_CompactLocation as ::unity::ClassIdentity>::NAME,
407 "Hash",
408 )
409 });
410 let __inner: extern "C" fn(ContentCatalogData_CompactLocation, ::unity::SystemType, ::unity::OptionalMethod) -> i32 =
411 ::core::mem::transmute(__vi.method_ptr);
412 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
413 __inner(__receiver, ::core::convert::Into::into(t), __mi)
414 }
415 }
416 }
417 #[doc = "`.ctor(crate::unity_engine::addressable_assets::resource_locators::resourcelocationmap::ResourceLocationMap, ::unity::Il2CppString, ::unity::Il2CppString, crate::system::object::Object, crate::system::object::Object, i32, ::unity::Il2CppString, ::unity::SystemType)` overload"]
418 fn ctor(
419 self,
420 locator: impl ::core::convert::Into<crate::unity_engine::addressable_assets::resource_locators::resourcelocationmap::ResourceLocationMap>,
421 internal_id: impl ::core::convert::Into<::unity::Il2CppString>,
422 provider_id: impl ::core::convert::Into<::unity::Il2CppString>,
423 dependency_key: impl ::core::convert::Into<crate::system::object::Object>,
424 data: impl ::core::convert::Into<crate::system::object::Object>,
425 dep_hash: impl ::core::convert::Into<i32>,
426 primary_key: impl ::core::convert::Into<::unity::Il2CppString>,
427 r#type: impl ::core::convert::Into<::unity::SystemType>,
428 ) -> () {
429 unsafe {
430 let __receiver =
431 <ContentCatalogData_CompactLocation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
432 ::unity::il2cpp_call!((::unity::module_base()+0x2db5180usize)as*mut u8,();
433(ContentCatalogData_CompactLocation)__receiver,(crate::unity_engine::addressable_assets::resource_locators::resourcelocationmap::ResourceLocationMap)::core::convert::Into::into(locator),(::unity::Il2CppString)::core::convert::Into::into(internal_id),(::unity::Il2CppString)::core::convert::Into::into(provider_id),(crate::system::object::Object)::core::convert::Into::into(dependency_key),(crate::system::object::Object)::core::convert::Into::into(data),(i32)::core::convert::Into::into(dep_hash),(::unity::Il2CppString)::core::convert::Into::into(primary_key),(::unity::SystemType)::core::convert::Into::into(r#type))
434 }
435 }
436}
437
438#[cfg(feature = "unity_engine-addressable_assets-resource_locators-contentcatalogdata")]
439impl<__T: IContentCatalogData_CompactLocation> IContentCatalogData_CompactLocationMethods for __T {}
440
441#[cfg(feature = "unity_engine-addressable_assets-resource_locators-contentcatalogdata")]
442impl ContentCatalogData_CompactLocation {
443 pub fn get_internal_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
444 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
445 }
446
447 pub fn get_provider_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
448 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
449 }
450
451 pub fn get_dependencies_method_info() -> &'static ::unity::il2cpp::MethodInfo {
452 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
453 }
454
455 pub fn get_has_dependencies_method_info() -> &'static ::unity::il2cpp::MethodInfo {
456 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
457 }
458
459 pub fn get_dependency_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
460 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
461 }
462
463 pub fn get_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
464 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
465 }
466
467 pub fn get_primary_key_method_info() -> &'static ::unity::il2cpp::MethodInfo {
468 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
469 }
470
471 pub fn set_primary_key_method_info() -> &'static ::unity::il2cpp::MethodInfo {
472 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
473 }
474
475 pub fn get_resource_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
476 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
477 }
478
479 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
480 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
481 }
482
483 pub fn hash_method_info() -> &'static ::unity::il2cpp::MethodInfo {
484 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
485 }
486
487 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
488 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
489 }
490}
491
492#[cfg(feature = "unity_engine-addressable_assets-resource_locators-contentcatalogdata")]
493impl ContentCatalogData_CompactLocation {
494 #[doc = "Direct (non-virtual) call to `ContentCatalogData_CompactLocation`'s own `get_InternalId`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
495 pub unsafe fn get_internal_id(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
496 let __mi = Self::get_internal_id_method_info();
497 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
498 __inner(this.into(), ::core::option::Option::None)
499 }
500
501 #[doc = "Direct (non-virtual) call to `ContentCatalogData_CompactLocation`'s own `get_ProviderId`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
502 pub unsafe fn get_provider_id(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
503 let __mi = Self::get_provider_id_method_info();
504 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
505 __inner(this.into(), ::core::option::Option::None)
506 }
507
508 #[doc = "Direct (non-virtual) call to `ContentCatalogData_CompactLocation`'s own `get_Dependencies`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
509 pub unsafe fn get_dependencies(
510 this: impl ::core::convert::Into<::unity::IlInstance>,
511 ) -> crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
512 crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
513 > {
514 let __mi = Self::get_dependencies_method_info();
515 let __inner: extern "C" fn(
516 ::unity::IlInstance,
517 ::unity::OptionalMethod,
518 ) -> crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
519 crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
520 > = ::core::mem::transmute(__mi.method_ptr);
521 __inner(this.into(), ::core::option::Option::None)
522 }
523
524 #[doc = "Direct (non-virtual) call to `ContentCatalogData_CompactLocation`'s own `get_HasDependencies`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
525 pub unsafe fn get_has_dependencies(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
526 let __mi = Self::get_has_dependencies_method_info();
527 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
528 __inner(this.into(), ::core::option::Option::None)
529 }
530
531 #[doc = "Direct (non-virtual) call to `ContentCatalogData_CompactLocation`'s own `get_DependencyHashCode`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
532 pub unsafe fn get_dependency_hash_code(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
533 let __mi = Self::get_dependency_hash_code_method_info();
534 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
535 __inner(this.into(), ::core::option::Option::None)
536 }
537
538 #[doc = "Direct (non-virtual) call to `ContentCatalogData_CompactLocation`'s own `get_Data`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
539 pub unsafe fn get_data(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::object::Object {
540 let __mi = Self::get_data_method_info();
541 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::object::Object =
542 ::core::mem::transmute(__mi.method_ptr);
543 __inner(this.into(), ::core::option::Option::None)
544 }
545
546 #[doc = "Direct (non-virtual) call to `ContentCatalogData_CompactLocation`'s own `get_PrimaryKey`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
547 pub unsafe fn get_primary_key(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
548 let __mi = Self::get_primary_key_method_info();
549 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
550 __inner(this.into(), ::core::option::Option::None)
551 }
552
553 #[doc = "Direct (non-virtual) call to `ContentCatalogData_CompactLocation`'s own `get_ResourceType`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
554 pub unsafe fn get_resource_type(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::SystemType {
555 let __mi = Self::get_resource_type_method_info();
556 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::SystemType = ::core::mem::transmute(__mi.method_ptr);
557 __inner(this.into(), ::core::option::Option::None)
558 }
559
560 #[doc = "Direct (non-virtual) call to `ContentCatalogData_CompactLocation`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
561 pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
562 let __mi = Self::to_string_method_info();
563 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
564 __inner(this.into(), ::core::option::Option::None)
565 }
566
567 #[doc = "Direct (non-virtual) call to `ContentCatalogData_CompactLocation`'s own `Hash`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
568 pub unsafe fn hash(this: impl ::core::convert::Into<::unity::IlInstance>, t: ::unity::SystemType) -> i32 {
569 let __mi = Self::hash_method_info();
570 let __inner: extern "C" fn(::unity::IlInstance, ::unity::SystemType, ::unity::OptionalMethod) -> i32 =
571 ::core::mem::transmute(__mi.method_ptr);
572 __inner(this.into(), t, ::core::option::Option::None)
573 }
574}
575
576#[cfg(feature = "unity_engine-addressable_assets-resource_locators-contentcatalogdata")]
577impl ContentCatalogData_CompactLocation {
578 #[doc = "`.ctor(crate::unity_engine::addressable_assets::resource_locators::resourcelocationmap::ResourceLocationMap, ::unity::Il2CppString, ::unity::Il2CppString, crate::system::object::Object, crate::system::object::Object, i32, ::unity::Il2CppString, ::unity::SystemType)` — overload selector"]
579 pub fn new(
580 locator: crate::unity_engine::addressable_assets::resource_locators::resourcelocationmap::ResourceLocationMap,
581 internal_id: ::unity::Il2CppString,
582 provider_id: ::unity::Il2CppString,
583 dependency_key: crate::system::object::Object,
584 data: crate::system::object::Object,
585 dep_hash: i32,
586 primary_key: ::unity::Il2CppString,
587 r#type: ::unity::SystemType,
588 ) -> Self {
589 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
590 panic!(
591 "{}
592::{}
593 failed to instantiate",
594 ::core::stringify!(ContentCatalogData_CompactLocation),
595 ::core::stringify!(new),
596 )
597 });
598 <Self as IContentCatalogData_CompactLocationMethods>::ctor(
599 this,
600 locator,
601 internal_id,
602 provider_id,
603 dependency_key,
604 data,
605 dep_hash,
606 primary_key,
607 r#type,
608 );
609 this
610 }
611}
612
613#[cfg(feature = "unity_engine-addressable_assets-resource_locators-contentcatalogdata")]
614impl ContentCatalogData {
615 #[doc = "`ExpandInternalId(::unity::Array<::unity::Il2CppString>, ::unity::Il2CppString)` overload"]
616 pub fn expand_internal_id(
617 internal_id_prefixes: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>,
618 v: impl ::core::convert::Into<::unity::Il2CppString>,
619 ) -> ::unity::Il2CppString {
620 unsafe {
621 ::unity::il2cpp_call!((::unity::module_base()+0x2db50b0usize)as*mut u8, ::unity::Il2CppString;
622(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(internal_id_prefixes),(::unity::Il2CppString)::core::convert::Into::into(v))
623 }
624 }
625}
626
627#[cfg(feature = "unity_engine-addressable_assets-resource_locators-contentcatalogdata")]
628pub trait IContentCatalogDataMethods: IContentCatalogData {
629 #[doc = "`get_ProviderId()` overload"]
630 fn get_provider_id(self) -> ::unity::Il2CppString {
631 unsafe {
632 let __receiver = <ContentCatalogData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
633 ::unity::il2cpp_call!((::unity::module_base()+0x2db3f60usize)as*mut u8, ::unity::Il2CppString;
634(ContentCatalogData)__receiver)
635 }
636 }
637 #[doc = "`set_ProviderId(::unity::Il2CppString)` overload"]
638 fn set_provider_id(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
639 unsafe {
640 let __receiver = <ContentCatalogData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
641 ::unity::il2cpp_call!((::unity::module_base()+0x2db3f70usize)as*mut u8,();
642(ContentCatalogData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
643 }
644 }
645 #[doc = "`get_InstanceProviderData()` overload"]
646 fn get_instance_provider_data(self) -> crate::unity_engine::resource_management::util::objectinitializationdata::ObjectInitializationData {
647 unsafe {
648 let __receiver = <ContentCatalogData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
649 ::unity::il2cpp_call!((::unity::module_base()+0x2db3f80usize)as*mut u8,crate::unity_engine::resource_management::util::objectinitializationdata::ObjectInitializationData;
650(ContentCatalogData)__receiver)
651 }
652 }
653 #[doc = "`set_InstanceProviderData(crate::unity_engine::resource_management::util::objectinitializationdata::ObjectInitializationData)` overload"]
654 fn set_instance_provider_data(
655 self,
656 value: impl ::core::convert::Into<crate::unity_engine::resource_management::util::objectinitializationdata::ObjectInitializationData>,
657 ) -> () {
658 unsafe {
659 let __receiver = <ContentCatalogData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
660 ::unity::il2cpp_call!((::unity::module_base()+0x2db3fa0usize)as*mut u8,();
661(ContentCatalogData)__receiver,(crate::unity_engine::resource_management::util::objectinitializationdata::ObjectInitializationData)::core::convert::Into::into(value))
662 }
663 }
664 #[doc = "`get_SceneProviderData()` overload"]
665 fn get_scene_provider_data(self) -> crate::unity_engine::resource_management::util::objectinitializationdata::ObjectInitializationData {
666 unsafe {
667 let __receiver = <ContentCatalogData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
668 ::unity::il2cpp_call!((::unity::module_base()+0x2db3fd0usize)as*mut u8,crate::unity_engine::resource_management::util::objectinitializationdata::ObjectInitializationData;
669(ContentCatalogData)__receiver)
670 }
671 }
672 #[doc = "`set_SceneProviderData(crate::unity_engine::resource_management::util::objectinitializationdata::ObjectInitializationData)` overload"]
673 fn set_scene_provider_data(
674 self,
675 value: impl ::core::convert::Into<crate::unity_engine::resource_management::util::objectinitializationdata::ObjectInitializationData>,
676 ) -> () {
677 unsafe {
678 let __receiver = <ContentCatalogData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
679 ::unity::il2cpp_call!((::unity::module_base()+0x2db3ff0usize)as*mut u8,();
680(ContentCatalogData)__receiver,(crate::unity_engine::resource_management::util::objectinitializationdata::ObjectInitializationData)::core::convert::Into::into(value))
681 }
682 }
683 #[doc = "`get_ResourceProviderData()` overload"]
684 fn get_resource_provider_data(
685 self,
686 ) -> crate::system::collections::generic::list_1::List_1<
687 crate::unity_engine::resource_management::util::objectinitializationdata::ObjectInitializationData,
688 > {
689 unsafe {
690 let __receiver = <ContentCatalogData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
691 ::unity::il2cpp_call!((::unity::module_base()+0x2db4020usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::unity_engine::resource_management::util::objectinitializationdata::ObjectInitializationData> ;
692(ContentCatalogData)__receiver)
693 }
694 }
695 #[doc = "`set_ResourceProviderData(crate::system::collections::generic::list_1::List_1<crate::unity_engine::resource_management::util::objectinitializationdata::ObjectInitializationData>)` overload"]
696 fn set_resource_provider_data(
697 self,
698 value: impl ::core::convert::Into<
699 crate::system::collections::generic::list_1::List_1<
700 crate::unity_engine::resource_management::util::objectinitializationdata::ObjectInitializationData,
701 >,
702 >,
703 ) -> () {
704 unsafe {
705 let __receiver = <ContentCatalogData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
706 ::unity::il2cpp_call!((::unity::module_base()+0x2db4030usize)as*mut u8,();
707(ContentCatalogData)__receiver,(crate::system::collections::generic::list_1::List_1<crate::unity_engine::resource_management::util::objectinitializationdata::ObjectInitializationData>)::core::convert::Into::into(value))
708 }
709 }
710 #[doc = "`get_ProviderIds()` overload"]
711 fn get_provider_ids(self) -> ::unity::Array<::unity::Il2CppString> {
712 unsafe {
713 let __receiver = <ContentCatalogData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
714 ::unity::il2cpp_call!((::unity::module_base()+0x2db4040usize)as*mut u8, ::unity::Array< ::unity::Il2CppString> ;
715(ContentCatalogData)__receiver)
716 }
717 }
718 #[doc = "`get_InternalIds()` overload"]
719 fn get_internal_ids(self) -> ::unity::Array<::unity::Il2CppString> {
720 unsafe {
721 let __receiver = <ContentCatalogData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
722 ::unity::il2cpp_call!((::unity::module_base()+0x2db4050usize)as*mut u8, ::unity::Array< ::unity::Il2CppString> ;
723(ContentCatalogData)__receiver)
724 }
725 }
726 #[doc = "`CleanData()` overload"]
727 fn clean_data(self) -> () {
728 unsafe {
729 let __receiver = <ContentCatalogData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
730 ::unity::il2cpp_call!((::unity::module_base()+0x2db4060usize)as*mut u8,();
731(ContentCatalogData)__receiver)
732 }
733 }
734 #[doc = "`CreateCustomLocator(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
735 fn create_custom_locator(
736 self,
737 override_id: impl ::core::convert::Into<::unity::Il2CppString>,
738 provider_suffix: impl ::core::convert::Into<::unity::Il2CppString>,
739 ) -> crate::unity_engine::addressable_assets::resource_locators::resourcelocationmap::ResourceLocationMap {
740 unsafe {
741 let __receiver = <ContentCatalogData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
742 ::unity::il2cpp_call!((::unity::module_base()+0x2db4140usize)as*mut u8,crate::unity_engine::addressable_assets::resource_locators::resourcelocationmap::ResourceLocationMap;
743(ContentCatalogData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(override_id),(::unity::Il2CppString)::core::convert::Into::into(provider_suffix))
744 }
745 }
746 #[doc = "`CreateLocator(::unity::Il2CppString)` overload"]
747 fn create_locator(
748 self,
749 provider_suffix: impl ::core::convert::Into<::unity::Il2CppString>,
750 ) -> crate::unity_engine::addressable_assets::resource_locators::resourcelocationmap::ResourceLocationMap {
751 unsafe {
752 let __receiver = <ContentCatalogData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
753 ::unity::il2cpp_call!((::unity::module_base()+0x2db4170usize)as*mut u8,crate::unity_engine::addressable_assets::resource_locators::resourcelocationmap::ResourceLocationMap;
754(ContentCatalogData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(provider_suffix))
755 }
756 }
757 #[doc = "`.ctor()` overload"]
758 fn ctor(self) -> () {
759 unsafe {
760 let __receiver = <ContentCatalogData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
761 ::unity::il2cpp_call!((::unity::module_base()+0x2db5390usize)as*mut u8,();
762(ContentCatalogData)__receiver)
763 }
764 }
765}
766
767#[cfg(feature = "unity_engine-addressable_assets-resource_locators-contentcatalogdata")]
768impl<__T: IContentCatalogData> IContentCatalogDataMethods for __T {}
769
770#[cfg(feature = "unity_engine-addressable_assets-resource_locators-contentcatalogdata")]
771impl ContentCatalogData {
772 pub fn get_provider_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
773 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
774 }
775
776 pub fn set_provider_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
777 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
778 }
779
780 pub fn get_instance_provider_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
781 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
782 }
783
784 pub fn set_instance_provider_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
785 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
786 }
787
788 pub fn get_scene_provider_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
789 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
790 }
791
792 pub fn set_scene_provider_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
793 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
794 }
795
796 pub fn get_resource_provider_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
797 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
798 }
799
800 pub fn set_resource_provider_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
801 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
802 }
803
804 pub fn get_provider_ids_method_info() -> &'static ::unity::il2cpp::MethodInfo {
805 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
806 }
807
808 pub fn get_internal_ids_method_info() -> &'static ::unity::il2cpp::MethodInfo {
809 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
810 }
811
812 pub fn clean_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
813 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
814 }
815
816 pub fn create_custom_locator_method_info() -> &'static ::unity::il2cpp::MethodInfo {
817 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
818 }
819
820 pub fn create_locator_method_info() -> &'static ::unity::il2cpp::MethodInfo {
821 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
822 }
823
824 pub fn expand_internal_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
825 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
826 }
827
828 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
829 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
830 }
831}
832
833#[cfg(feature = "unity_engine-addressable_assets-resource_locators-contentcatalogdata")]
834impl ContentCatalogData {
835 #[doc = "`.ctor()` — no args"]
836 pub fn new() -> Self {
837 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
838 panic!(
839 "{}
840::{}
841 failed to instantiate",
842 ::core::stringify!(ContentCatalogData),
843 ::core::stringify!(new),
844 )
845 });
846 <Self as IContentCatalogDataMethods>::ctor(this);
847 this
848 }
849}
850
851#[cfg(feature = "unity_engine-addressable_assets-resource_locators-contentcatalogdata")]
852#[doc(hidden)]
853pub mod prelude {
854 pub use super::{
855 ContentCatalogData, ContentCatalogData_Bucket, ContentCatalogData_CompactLocation, IContentCatalogData, IContentCatalogDataMethods,
856 IContentCatalogData_CompactLocation, IContentCatalogData_CompactLocationMethods,
857 };
858 #[cfg(feature = "system-object")]
859 pub use crate::system::object::IObjectMethods;
860 #[cfg(feature = "system-valuetype")]
861 pub use crate::system::valuetype::IValueTypeMethods;
862 pub use crate::system::{object::IObject, valuetype::IValueType};
863}