engage/generated/unity_engine/resource_management/util/
locationutils.rs1#[cfg(feature = "unity_engine-resource_management-util-locationutils-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/locationutils/LocationUtils.md"))]
11 #[::unity::class(namespace = "UnityEngine.ResourceManagement.Util", name = "LocationUtils")]
12 #[parent(crate::system::object::Object)]
13 pub struct LocationUtils {}
14}
15
16#[cfg(feature = "unity_engine-resource_management-util-locationutils-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-resource_management-util-locationutils")]
20#[doc(hidden)]
21#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
22mod __LocationUtils_unity_raw {
23 use super::*;
24 #[doc(hidden)]
25 #[allow(non_snake_case)]
26 pub mod __lookup_location_equals {
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::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation as ::unity::IlType>::il_type(),
31 <crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation as ::unity::IlType>::il_type(),
32 ];
33 ::unity::lookup::method_info_on_class_with_signature(
34 <LocationUtils as ::unity::ClassIdentity>::class(),
35 "LocationEquals",
36 2,
37 param_types,
38 true,
39 )
40 });
41 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
42 match &*METHOD {
43 ::core::result::Result::Ok(mi) => *mi,
44 ::core::result::Result::Err(e) => {
45 panic!(
46 "method lookup failed: {}
47::{}
48: {}
49",
50 <LocationUtils as ::unity::ClassIdentity>::NAME,
51 "LocationEquals",
52 e
53 )
54 },
55 }
56 }
57 }
58 #[doc(hidden)]
59 #[allow(non_snake_case)]
60 pub mod __lookup_dependencies_equal {
61 use super::*;
62 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
63 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
64 <crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
65 crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
66 > as ::unity::IlType>::il_type(),
67 <crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
68 crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
69 > as ::unity::IlType>::il_type(),
70 ];
71 ::unity::lookup::method_info_on_class_with_signature(
72 <LocationUtils as ::unity::ClassIdentity>::class(),
73 "DependenciesEqual",
74 2,
75 param_types,
76 true,
77 )
78 });
79 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
80 match &*METHOD {
81 ::core::result::Result::Ok(mi) => *mi,
82 ::core::result::Result::Err(e) => {
83 panic!(
84 "method lookup failed: {}
85::{}
86: {}
87",
88 <LocationUtils as ::unity::ClassIdentity>::NAME,
89 "DependenciesEqual",
90 e
91 )
92 },
93 }
94 }
95 }
96}
97
98#[cfg(feature = "unity_engine-resource_management-util-locationutils")]
99impl LocationUtils {
100 #[doc = "`LocationEquals(crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation, crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation)` overload"]
101 pub fn location_equals(
102 loc1: impl ::core::convert::Into<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation>,
103 loc2: impl ::core::convert::Into<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation>,
104 ) -> bool {
105 unsafe {
106 ::unity::il2cpp_call!(__LocationUtils_unity_raw::__lookup_location_equals::get_method_info().method_ptr,bool;
107(crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation)::core::convert::Into::into(loc1),(crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation)::core::convert::Into::into(loc2))
108 }
109 }
110
111 #[doc = "`DependenciesEqual(crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation>, crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation>)` overload"]
112 pub fn dependencies_equal(
113 deps1: impl ::core::convert::Into<
114 crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
115 crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
116 >,
117 >,
118 deps2: impl ::core::convert::Into<
119 crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
120 crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
121 >,
122 >,
123 ) -> bool {
124 unsafe {
125 ::unity::il2cpp_call!(__LocationUtils_unity_raw::__lookup_dependencies_equal::get_method_info().method_ptr,bool;
126(crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation>)::core::convert::Into::into(deps1),(crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation>)::core::convert::Into::into(deps2))
127 }
128 }
129}
130
131#[cfg(feature = "unity_engine-resource_management-util-locationutils")]
132impl LocationUtils {
133 pub fn location_equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
134 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
135 }
136
137 pub fn dependencies_equal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
138 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
139 }
140}
141
142#[cfg(feature = "unity_engine-resource_management-util-locationutils")]
143#[doc(hidden)]
144pub mod prelude {
145 pub use super::{ILocationUtils, LocationUtils};
146 pub use crate::system::object::IObject;
147 #[cfg(feature = "system-object")]
148 pub use crate::system::object::IObjectMethods;
149}