1#[cfg(feature = "unity_engine-resource_management-resource_locations-resourcelocationbase-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/resource_locations/resourcelocationbase/ResourceLocationBase.md"))]
11 #[::unity::class(namespace = "UnityEngine.ResourceManagement.ResourceLocations", name = "ResourceLocationBase")]
12 #[parent(crate::system::object::Object)]
13 pub struct ResourceLocationBase {
14 #[offset(16)]
15 #[rename(name = "m_Name")]
16 pub m_name: ::unity::Il2CppString,
17 #[offset(24)]
18 #[rename(name = "m_Id")]
19 pub m_id: ::unity::Il2CppString,
20 #[offset(32)]
21 #[rename(name = "m_ProviderId")]
22 pub m_provider_id: ::unity::Il2CppString,
23 #[offset(40)]
24 #[rename(name = "m_Data")]
25 pub m_data: ::unity::IlInstance,
26 #[offset(48)]
27 #[rename(name = "m_DependencyHashCode")]
28 pub m_dependency_hash_code: i32,
29 #[offset(52)]
30 #[rename(name = "m_HashCode")]
31 pub m_hash_code: i32,
32 #[offset(56)]
33 #[rename(name = "m_Type")]
34 pub m_type: ::unity::SystemType,
35 #[offset(64)]
36 #[rename(name = "m_Dependencies")]
37 pub m_dependencies: crate::system::collections::generic::list_1::List_1<
38 crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
39 >,
40 #[offset(72)]
41 #[rename(name = "m_PrimaryKey")]
42 pub m_primary_key: ::unity::Il2CppString,
43 }
44}
45
46#[cfg(feature = "unity_engine-resource_management-resource_locations-resourcelocationbase-types")]
47pub use __types::*;
48
49#[cfg(feature = "unity_engine-resource_management-resource_locations-resourcelocationbase")]
50#[doc(hidden)]
51#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
52mod __ResourceLocationBase_unity_raw {
53 use super::*;
54 #[doc(hidden)]
55 #[allow(non_snake_case)]
56 pub mod __lookup_set_data {
57 use super::*;
58 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
59 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<crate::system::object::Object as ::unity::IlType>::il_type()];
60 ::unity::lookup::method_info_on_class_with_signature(
61 <ResourceLocationBase as ::unity::ClassIdentity>::class(),
62 "set_Data",
63 1,
64 param_types,
65 false,
66 )
67 });
68 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
69 match &*METHOD {
70 ::core::result::Result::Ok(mi) => *mi,
71 ::core::result::Result::Err(e) => {
72 panic!(
73 "method lookup failed: {}
74::{}
75: {}
76",
77 <ResourceLocationBase as ::unity::ClassIdentity>::NAME,
78 "set_Data",
79 e
80 )
81 },
82 }
83 }
84 }
85 #[doc(hidden)]
86 #[allow(non_snake_case)]
87 pub mod __lookup_set_primary_key {
88 use super::*;
89 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
90 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
91 ::unity::lookup::method_info_on_class_with_signature(
92 <ResourceLocationBase as ::unity::ClassIdentity>::class(),
93 "set_PrimaryKey",
94 1,
95 param_types,
96 false,
97 )
98 });
99 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100 match &*METHOD {
101 ::core::result::Result::Ok(mi) => *mi,
102 ::core::result::Result::Err(e) => {
103 panic!(
104 "method lookup failed: {}
105::{}
106: {}
107",
108 <ResourceLocationBase as ::unity::ClassIdentity>::NAME,
109 "set_PrimaryKey",
110 e
111 )
112 },
113 }
114 }
115 }
116 #[doc(hidden)]
117 #[allow(non_snake_case)]
118 pub mod __lookup_ctor {
119 use super::*;
120 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
121 let param_types: &[& 'static::unity::il2cpp::Il2CppType]= &[< ::unity::Il2CppString as::unity::IlType> ::il_type(), < ::unity::Il2CppString as::unity::IlType> ::il_type(), < ::unity::Il2CppString as::unity::IlType> ::il_type(), < ::unity::SystemType as::unity::IlType> ::il_type(), < ::unity::Array<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation>as::unity::IlType> ::il_type()];
122 ::unity::lookup::method_info_on_class_with_signature(
123 <ResourceLocationBase as ::unity::ClassIdentity>::class(),
124 ".ctor",
125 5,
126 param_types,
127 false,
128 )
129 });
130 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131 match &*METHOD {
132 ::core::result::Result::Ok(mi) => *mi,
133 ::core::result::Result::Err(e) => {
134 panic!(
135 "method lookup failed: {}
136::{}
137: {}
138",
139 <ResourceLocationBase as ::unity::ClassIdentity>::NAME,
140 ".ctor",
141 e
142 )
143 },
144 }
145 }
146 }
147 #[doc(hidden)]
148 #[allow(non_snake_case)]
149 pub mod __lookup_compute_dependency_hash {
150 use super::*;
151 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
152 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
153 ::unity::lookup::method_info_on_class_with_signature(
154 <ResourceLocationBase as ::unity::ClassIdentity>::class(),
155 "ComputeDependencyHash",
156 0,
157 param_types,
158 false,
159 )
160 });
161 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162 match &*METHOD {
163 ::core::result::Result::Ok(mi) => *mi,
164 ::core::result::Result::Err(e) => {
165 panic!(
166 "method lookup failed: {}
167::{}
168: {}
169",
170 <ResourceLocationBase as ::unity::ClassIdentity>::NAME,
171 "ComputeDependencyHash",
172 e
173 )
174 },
175 }
176 }
177 }
178}
179
180#[cfg(feature = "unity_engine-resource_management-resource_locations-resourcelocationbase")]
181pub trait IResourceLocationBaseMethods: IResourceLocationBase {
182 #[doc = "`get_InternalId()` overload"]
183 fn get_internal_id(self) -> ::unity::Il2CppString {
184 unsafe {
185 let __receiver = <ResourceLocationBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
186 {
187 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
188 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
189 panic!(
190 "unity: virtual slot {}
191 out of range (vtable len {}
192) on the runtime class behind {}
193 (method `{}
194`)",
195 4usize,
196 __vt.len(),
197 <ResourceLocationBase as ::unity::ClassIdentity>::NAME,
198 "get_InternalId",
199 )
200 });
201 let __inner: extern "C" fn(ResourceLocationBase, ::unity::OptionalMethod) -> ::unity::Il2CppString =
202 ::core::mem::transmute(__vi.method_ptr);
203 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
204 __inner(__receiver, __mi)
205 }
206 }
207 }
208 #[doc = "`get_ProviderId()` overload"]
209 fn get_provider_id(self) -> ::unity::Il2CppString {
210 unsafe {
211 let __receiver = <ResourceLocationBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
212 {
213 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
214 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
215 panic!(
216 "unity: virtual slot {}
217 out of range (vtable len {}
218) on the runtime class behind {}
219 (method `{}
220`)",
221 5usize,
222 __vt.len(),
223 <ResourceLocationBase as ::unity::ClassIdentity>::NAME,
224 "get_ProviderId",
225 )
226 });
227 let __inner: extern "C" fn(ResourceLocationBase, ::unity::OptionalMethod) -> ::unity::Il2CppString =
228 ::core::mem::transmute(__vi.method_ptr);
229 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
230 __inner(__receiver, __mi)
231 }
232 }
233 }
234 #[doc = "`get_Dependencies()` overload"]
235 fn get_dependencies(
236 self,
237 ) -> crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
238 crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
239 > {
240 unsafe {
241 let __receiver = <ResourceLocationBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
242 {
243 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
244 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
245 panic!(
246 "unity: virtual slot {}
247 out of range (vtable len {}
248) on the runtime class behind {}
249 (method `{}
250`)",
251 6usize,
252 __vt.len(),
253 <ResourceLocationBase as ::unity::ClassIdentity>::NAME,
254 "get_Dependencies",
255 )
256 });
257 let __inner: extern "C" fn(
258 ResourceLocationBase,
259 ::unity::OptionalMethod,
260 ) -> crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
261 crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
262 > = ::core::mem::transmute(__vi.method_ptr);
263 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
264 __inner(__receiver, __mi)
265 }
266 }
267 }
268 #[doc = "`get_HasDependencies()` overload"]
269 fn get_has_dependencies(self) -> bool {
270 unsafe {
271 let __receiver = <ResourceLocationBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
272 {
273 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
274 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
275 panic!(
276 "unity: virtual slot {}
277 out of range (vtable len {}
278) on the runtime class behind {}
279 (method `{}
280`)",
281 9usize,
282 __vt.len(),
283 <ResourceLocationBase as ::unity::ClassIdentity>::NAME,
284 "get_HasDependencies",
285 )
286 });
287 let __inner: extern "C" fn(ResourceLocationBase, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
288 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
289 __inner(__receiver, __mi)
290 }
291 }
292 }
293 #[doc = "`get_Data()` overload"]
294 fn get_data(self) -> crate::system::object::Object {
295 unsafe {
296 let __receiver = <ResourceLocationBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
297 {
298 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
299 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
300 panic!(
301 "unity: virtual slot {}
302 out of range (vtable len {}
303) on the runtime class behind {}
304 (method `{}
305`)",
306 10usize,
307 __vt.len(),
308 <ResourceLocationBase as ::unity::ClassIdentity>::NAME,
309 "get_Data",
310 )
311 });
312 let __inner: extern "C" fn(ResourceLocationBase, ::unity::OptionalMethod) -> crate::system::object::Object =
313 ::core::mem::transmute(__vi.method_ptr);
314 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
315 __inner(__receiver, __mi)
316 }
317 }
318 }
319 #[doc = "`set_Data(crate::system::object::Object)` overload"]
320 fn set_data(self, value: impl ::core::convert::Into<crate::system::object::Object>) -> () {
321 unsafe {
322 let __receiver = <ResourceLocationBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
323 ::unity::il2cpp_call!(__ResourceLocationBase_unity_raw::__lookup_set_data::get_method_info().method_ptr,();
324(ResourceLocationBase)__receiver,(crate::system::object::Object)::core::convert::Into::into(value))
325 }
326 }
327 #[doc = "`get_PrimaryKey()` overload"]
328 fn get_primary_key(self) -> ::unity::Il2CppString {
329 unsafe {
330 let __receiver = <ResourceLocationBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
331 {
332 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
333 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
334 panic!(
335 "unity: virtual slot {}
336 out of range (vtable len {}
337) on the runtime class behind {}
338 (method `{}
339`)",
340 11usize,
341 __vt.len(),
342 <ResourceLocationBase as ::unity::ClassIdentity>::NAME,
343 "get_PrimaryKey",
344 )
345 });
346 let __inner: extern "C" fn(ResourceLocationBase, ::unity::OptionalMethod) -> ::unity::Il2CppString =
347 ::core::mem::transmute(__vi.method_ptr);
348 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
349 __inner(__receiver, __mi)
350 }
351 }
352 }
353 #[doc = "`set_PrimaryKey(::unity::Il2CppString)` overload"]
354 fn set_primary_key(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
355 unsafe {
356 let __receiver = <ResourceLocationBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
357 ::unity::il2cpp_call!(__ResourceLocationBase_unity_raw::__lookup_set_primary_key::get_method_info().method_ptr,();
358(ResourceLocationBase)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
359 }
360 }
361 #[doc = "`get_DependencyHashCode()` overload"]
362 fn get_dependency_hash_code(self) -> i32 {
363 unsafe {
364 let __receiver = <ResourceLocationBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
365 {
366 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
367 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
368 panic!(
369 "unity: virtual slot {}
370 out of range (vtable len {}
371) on the runtime class behind {}
372 (method `{}
373`)",
374 8usize,
375 __vt.len(),
376 <ResourceLocationBase as ::unity::ClassIdentity>::NAME,
377 "get_DependencyHashCode",
378 )
379 });
380 let __inner: extern "C" fn(ResourceLocationBase, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
381 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
382 __inner(__receiver, __mi)
383 }
384 }
385 }
386 #[doc = "`get_ResourceType()` overload"]
387 fn get_resource_type(self) -> ::unity::SystemType {
388 unsafe {
389 let __receiver = <ResourceLocationBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
390 {
391 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
392 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
393 panic!(
394 "unity: virtual slot {}
395 out of range (vtable len {}
396) on the runtime class behind {}
397 (method `{}
398`)",
399 12usize,
400 __vt.len(),
401 <ResourceLocationBase as ::unity::ClassIdentity>::NAME,
402 "get_ResourceType",
403 )
404 });
405 let __inner: extern "C" fn(ResourceLocationBase, ::unity::OptionalMethod) -> ::unity::SystemType =
406 ::core::mem::transmute(__vi.method_ptr);
407 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
408 __inner(__receiver, __mi)
409 }
410 }
411 }
412 #[doc = "`Hash(::unity::SystemType)` overload"]
413 fn hash(self, t: impl ::core::convert::Into<::unity::SystemType>) -> i32 {
414 unsafe {
415 let __receiver = <ResourceLocationBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
416 {
417 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
418 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
419 panic!(
420 "unity: virtual slot {}
421 out of range (vtable len {}
422) on the runtime class behind {}
423 (method `{}
424`)",
425 7usize,
426 __vt.len(),
427 <ResourceLocationBase as ::unity::ClassIdentity>::NAME,
428 "Hash",
429 )
430 });
431 let __inner: extern "C" fn(ResourceLocationBase, ::unity::SystemType, ::unity::OptionalMethod) -> i32 =
432 ::core::mem::transmute(__vi.method_ptr);
433 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
434 __inner(__receiver, ::core::convert::Into::into(t), __mi)
435 }
436 }
437 }
438 #[doc = "`ToString()` overload"]
439 fn to_string(self) -> ::unity::Il2CppString {
440 unsafe {
441 let __receiver = <ResourceLocationBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
442 {
443 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
444 let __vi = *__vt.get(3usize).unwrap_or_else(|| {
445 panic!(
446 "unity: virtual slot {}
447 out of range (vtable len {}
448) on the runtime class behind {}
449 (method `{}
450`)",
451 3usize,
452 __vt.len(),
453 <ResourceLocationBase as ::unity::ClassIdentity>::NAME,
454 "ToString",
455 )
456 });
457 let __inner: extern "C" fn(ResourceLocationBase, ::unity::OptionalMethod) -> ::unity::Il2CppString =
458 ::core::mem::transmute(__vi.method_ptr);
459 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
460 __inner(__receiver, __mi)
461 }
462 }
463 }
464 #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString, ::unity::Il2CppString, ::unity::SystemType, ::unity::Array<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation>)` overload"]
465 fn ctor(
466 self,
467 name: impl ::core::convert::Into<::unity::Il2CppString>,
468 id: impl ::core::convert::Into<::unity::Il2CppString>,
469 provider_id: impl ::core::convert::Into<::unity::Il2CppString>,
470 t: impl ::core::convert::Into<::unity::SystemType>,
471 dependencies: impl ::core::convert::Into<
472 ::unity::Array<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation>,
473 >,
474 ) -> () {
475 unsafe {
476 let __receiver = <ResourceLocationBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
477 ::unity::il2cpp_call!(__ResourceLocationBase_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
478(ResourceLocationBase)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name),(::unity::Il2CppString)::core::convert::Into::into(id),(::unity::Il2CppString)::core::convert::Into::into(provider_id),(::unity::SystemType)::core::convert::Into::into(t),(::unity::Array<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation>)::core::convert::Into::into(dependencies))
479 }
480 }
481 #[doc = "`ComputeDependencyHash()` overload"]
482 fn compute_dependency_hash(self) -> () {
483 unsafe {
484 let __receiver = <ResourceLocationBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
485 ::unity::il2cpp_call!(__ResourceLocationBase_unity_raw::__lookup_compute_dependency_hash::get_method_info().method_ptr,();
486(ResourceLocationBase)__receiver)
487 }
488 }
489}
490
491#[cfg(feature = "unity_engine-resource_management-resource_locations-resourcelocationbase")]
492impl<__T: IResourceLocationBase> IResourceLocationBaseMethods for __T {}
493
494#[cfg(feature = "unity_engine-resource_management-resource_locations-resourcelocationbase")]
495impl ResourceLocationBase {
496 pub fn get_internal_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
497 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
498 }
499
500 pub fn get_provider_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
501 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
502 }
503
504 pub fn get_dependencies_method_info() -> &'static ::unity::il2cpp::MethodInfo {
505 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
506 }
507
508 pub fn get_has_dependencies_method_info() -> &'static ::unity::il2cpp::MethodInfo {
509 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
510 }
511
512 pub fn get_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
513 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
514 }
515
516 pub fn set_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
517 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
518 }
519
520 pub fn get_primary_key_method_info() -> &'static ::unity::il2cpp::MethodInfo {
521 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
522 }
523
524 pub fn set_primary_key_method_info() -> &'static ::unity::il2cpp::MethodInfo {
525 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
526 }
527
528 pub fn get_dependency_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
529 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
530 }
531
532 pub fn get_resource_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
533 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
534 }
535
536 pub fn hash_method_info() -> &'static ::unity::il2cpp::MethodInfo {
537 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
538 }
539
540 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
541 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
542 }
543
544 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
545 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
546 }
547
548 pub fn compute_dependency_hash_method_info() -> &'static ::unity::il2cpp::MethodInfo {
549 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
550 }
551}
552
553#[cfg(feature = "unity_engine-resource_management-resource_locations-resourcelocationbase")]
554impl ResourceLocationBase {
555 #[doc = "Direct (non-virtual) call to `ResourceLocationBase`'s own `get_InternalId`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
556 pub unsafe fn get_internal_id(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
557 let __mi = Self::get_internal_id_method_info();
558 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
559 __inner(this.into(), ::core::option::Option::None)
560 }
561
562 #[doc = "Direct (non-virtual) call to `ResourceLocationBase`'s own `get_ProviderId`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
563 pub unsafe fn get_provider_id(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
564 let __mi = Self::get_provider_id_method_info();
565 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
566 __inner(this.into(), ::core::option::Option::None)
567 }
568
569 #[doc = "Direct (non-virtual) call to `ResourceLocationBase`'s own `get_Dependencies`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
570 pub unsafe fn get_dependencies(
571 this: impl ::core::convert::Into<::unity::IlInstance>,
572 ) -> crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
573 crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
574 > {
575 let __mi = Self::get_dependencies_method_info();
576 let __inner: extern "C" fn(
577 ::unity::IlInstance,
578 ::unity::OptionalMethod,
579 ) -> crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
580 crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
581 > = ::core::mem::transmute(__mi.method_ptr);
582 __inner(this.into(), ::core::option::Option::None)
583 }
584
585 #[doc = "Direct (non-virtual) call to `ResourceLocationBase`'s own `get_HasDependencies`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
586 pub unsafe fn get_has_dependencies(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
587 let __mi = Self::get_has_dependencies_method_info();
588 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
589 __inner(this.into(), ::core::option::Option::None)
590 }
591
592 #[doc = "Direct (non-virtual) call to `ResourceLocationBase`'s own `get_Data`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
593 pub unsafe fn get_data(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::object::Object {
594 let __mi = Self::get_data_method_info();
595 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::object::Object =
596 ::core::mem::transmute(__mi.method_ptr);
597 __inner(this.into(), ::core::option::Option::None)
598 }
599
600 #[doc = "Direct (non-virtual) call to `ResourceLocationBase`'s own `get_PrimaryKey`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
601 pub unsafe fn get_primary_key(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
602 let __mi = Self::get_primary_key_method_info();
603 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
604 __inner(this.into(), ::core::option::Option::None)
605 }
606
607 #[doc = "Direct (non-virtual) call to `ResourceLocationBase`'s own `get_DependencyHashCode`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
608 pub unsafe fn get_dependency_hash_code(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
609 let __mi = Self::get_dependency_hash_code_method_info();
610 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
611 __inner(this.into(), ::core::option::Option::None)
612 }
613
614 #[doc = "Direct (non-virtual) call to `ResourceLocationBase`'s own `get_ResourceType`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
615 pub unsafe fn get_resource_type(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::SystemType {
616 let __mi = Self::get_resource_type_method_info();
617 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::SystemType = ::core::mem::transmute(__mi.method_ptr);
618 __inner(this.into(), ::core::option::Option::None)
619 }
620
621 #[doc = "Direct (non-virtual) call to `ResourceLocationBase`'s own `Hash`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
622 pub unsafe fn hash(this: impl ::core::convert::Into<::unity::IlInstance>, t: ::unity::SystemType) -> i32 {
623 let __mi = Self::hash_method_info();
624 let __inner: extern "C" fn(::unity::IlInstance, ::unity::SystemType, ::unity::OptionalMethod) -> i32 =
625 ::core::mem::transmute(__mi.method_ptr);
626 __inner(this.into(), t, ::core::option::Option::None)
627 }
628
629 #[doc = "Direct (non-virtual) call to `ResourceLocationBase`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
630 pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
631 let __mi = Self::to_string_method_info();
632 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
633 __inner(this.into(), ::core::option::Option::None)
634 }
635}
636
637#[cfg(feature = "unity_engine-resource_management-resource_locations-resourcelocationbase")]
638impl ResourceLocationBase {
639 #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString, ::unity::Il2CppString, ::unity::SystemType, ::unity::Array<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation>)` — overload selector"]
640 pub fn new(
641 name: ::unity::Il2CppString,
642 id: ::unity::Il2CppString,
643 provider_id: ::unity::Il2CppString,
644 t: ::unity::SystemType,
645 dependencies: ::unity::Array<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation>,
646 ) -> Self {
647 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
648 panic!(
649 "{}
650::{}
651 failed to instantiate",
652 ::core::stringify!(ResourceLocationBase),
653 ::core::stringify!(new),
654 )
655 });
656 <Self as IResourceLocationBaseMethods>::ctor(this, name, id, provider_id, t, dependencies);
657 this
658 }
659}
660
661#[cfg(feature = "unity_engine-resource_management-resource_locations-resourcelocationbase")]
662#[doc(hidden)]
663pub mod prelude {
664 pub use super::{IResourceLocationBase, IResourceLocationBaseMethods, ResourceLocationBase};
665 pub use crate::system::object::IObject;
666 #[cfg(feature = "system-object")]
667 pub use crate::system::object::IObjectMethods;
668}