engage/generated/unity_engine/resource_management/util/
dependenciescachekey.rs1#[cfg(feature = "unity_engine-resource_management-util-dependenciescachekey-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/dependenciescachekey/DependenciesCacheKey.md"))]
11 #[::unity::class(namespace = "UnityEngine.ResourceManagement.Util", name = "DependenciesCacheKey")]
12 #[parent(crate::system::object::Object)]
13 pub struct DependenciesCacheKey {
14 #[offset(16)]
15 #[rename(name = "m_Dependencies")]
16 pub m_dependencies: crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
17 crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
18 >,
19 #[offset(24)]
20 #[rename(name = "m_DependenciesHash")]
21 pub m_dependencies_hash: i32,
22 }
23}
24
25#[cfg(feature = "unity_engine-resource_management-util-dependenciescachekey-types")]
26pub use __types::*;
27
28#[cfg(feature = "unity_engine-resource_management-util-dependenciescachekey")]
29#[doc(hidden)]
30#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
31mod __DependenciesCacheKey_unity_raw {
32 use super::*;
33 #[doc(hidden)]
34 #[allow(non_snake_case)]
35 pub mod __lookup_ctor {
36 use super::*;
37 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
38 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
39 <crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
40 crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
41 > as ::unity::IlType>::il_type(),
42 <i32 as ::unity::IlType>::il_type(),
43 ];
44 ::unity::lookup::method_info_on_class_with_signature(
45 <DependenciesCacheKey as ::unity::ClassIdentity>::class(),
46 ".ctor",
47 2,
48 param_types,
49 false,
50 )
51 });
52 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
53 match &*METHOD {
54 ::core::result::Result::Ok(mi) => *mi,
55 ::core::result::Result::Err(e) => {
56 panic!(
57 "method lookup failed: {}
58::{}
59: {}
60",
61 <DependenciesCacheKey as ::unity::ClassIdentity>::NAME,
62 ".ctor",
63 e
64 )
65 },
66 }
67 }
68 }
69 #[doc(hidden)]
70 #[allow(non_snake_case)]
71 pub mod __lookup_equals_3 {
72 use super::*;
73 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
74 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
75 &[<crate::unity_engine::resource_management::util::dependenciescachekey::DependenciesCacheKey as ::unity::IlType>::il_type()];
76 ::unity::lookup::method_info_on_class_with_signature(
77 <DependenciesCacheKey as ::unity::ClassIdentity>::class(),
78 "Equals",
79 1,
80 param_types,
81 false,
82 )
83 });
84 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
85 match &*METHOD {
86 ::core::result::Result::Ok(mi) => *mi,
87 ::core::result::Result::Err(e) => {
88 panic!(
89 "method lookup failed: {}
90::{}
91: {}
92",
93 <DependenciesCacheKey as ::unity::ClassIdentity>::NAME,
94 "Equals",
95 e
96 )
97 },
98 }
99 }
100 }
101}
102
103#[cfg(feature = "unity_engine-resource_management-util-dependenciescachekey")]
104pub trait IDependenciesCacheKeyMethods: IDependenciesCacheKey {
105 #[doc = "`.ctor(crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation>, i32)` overload"]
106 fn ctor(
107 self,
108 dependencies: impl ::core::convert::Into<
109 crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
110 crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
111 >,
112 >,
113 dependencies_hash: impl ::core::convert::Into<i32>,
114 ) -> () {
115 unsafe {
116 let __receiver = <DependenciesCacheKey as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
117 ::unity::il2cpp_call!(__DependenciesCacheKey_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
118(DependenciesCacheKey)__receiver,(crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation>)::core::convert::Into::into(dependencies),(i32)::core::convert::Into::into(dependencies_hash))
119 }
120 }
121 #[doc = "`GetHashCode()` overload"]
122 fn get_hash_code(self) -> i32 {
123 unsafe {
124 let __receiver = <DependenciesCacheKey as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125 {
126 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
127 let __vi = *__vt.get(2usize).unwrap_or_else(|| {
128 panic!(
129 "unity: virtual slot {}
130 out of range (vtable len {}
131) on the runtime class behind {}
132 (method `{}
133`)",
134 2usize,
135 __vt.len(),
136 <DependenciesCacheKey as ::unity::ClassIdentity>::NAME,
137 "GetHashCode",
138 )
139 });
140 let __inner: extern "C" fn(DependenciesCacheKey, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
141 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
142 __inner(__receiver, __mi)
143 }
144 }
145 }
146 #[doc = "`Equals(crate::system::object::Object)` overload"]
147 fn equals(self, obj: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
148 unsafe {
149 let __receiver = <DependenciesCacheKey as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150 {
151 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
152 let __vi = *__vt.get(0usize).unwrap_or_else(|| {
153 panic!(
154 "unity: virtual slot {}
155 out of range (vtable len {}
156) on the runtime class behind {}
157 (method `{}
158`)",
159 0usize,
160 __vt.len(),
161 <DependenciesCacheKey as ::unity::ClassIdentity>::NAME,
162 "Equals",
163 )
164 });
165 let __inner: extern "C" fn(DependenciesCacheKey, crate::system::object::Object, ::unity::OptionalMethod) -> bool =
166 ::core::mem::transmute(__vi.method_ptr);
167 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
168 __inner(__receiver, ::core::convert::Into::into(obj), __mi)
169 }
170 }
171 }
172 #[doc = "`Equals(crate::unity_engine::resource_management::util::ioperationcachekey::IOperationCacheKey)` overload"]
173 fn equals_2(
174 self,
175 other: impl ::core::convert::Into<crate::unity_engine::resource_management::util::ioperationcachekey::IOperationCacheKey>,
176 ) -> bool {
177 unsafe {
178 let __receiver = <DependenciesCacheKey as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
179 {
180 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
181 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
182 panic!(
183 "unity: virtual slot {}
184 out of range (vtable len {}
185) on the runtime class behind {}
186 (method `{}
187`)",
188 4usize,
189 __vt.len(),
190 <DependenciesCacheKey as ::unity::ClassIdentity>::NAME,
191 "Equals",
192 )
193 });
194 let __inner: extern "C" fn(
195 DependenciesCacheKey,
196 crate::unity_engine::resource_management::util::ioperationcachekey::IOperationCacheKey,
197 ::unity::OptionalMethod,
198 ) -> bool = ::core::mem::transmute(__vi.method_ptr);
199 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
200 __inner(__receiver, ::core::convert::Into::into(other), __mi)
201 }
202 }
203 }
204 #[doc = "`Equals(crate::unity_engine::resource_management::util::dependenciescachekey::DependenciesCacheKey)` overload"]
205 fn equals_3(
206 self,
207 other: impl ::core::convert::Into<crate::unity_engine::resource_management::util::dependenciescachekey::DependenciesCacheKey>,
208 ) -> bool {
209 unsafe {
210 let __receiver = <DependenciesCacheKey as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
211 ::unity::il2cpp_call!(__DependenciesCacheKey_unity_raw::__lookup_equals_3::get_method_info().method_ptr,bool;
212(DependenciesCacheKey)__receiver,(crate::unity_engine::resource_management::util::dependenciescachekey::DependenciesCacheKey)::core::convert::Into::into(other))
213 }
214 }
215}
216
217#[cfg(feature = "unity_engine-resource_management-util-dependenciescachekey")]
218impl<__T: IDependenciesCacheKey> IDependenciesCacheKeyMethods for __T {}
219
220#[cfg(feature = "unity_engine-resource_management-util-dependenciescachekey")]
221impl DependenciesCacheKey {
222 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
224 }
225
226 pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
227 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
228 }
229
230 pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
232 }
233
234 pub fn equals_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
236 }
237
238 pub fn equals_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
240 }
241}
242
243#[cfg(feature = "unity_engine-resource_management-util-dependenciescachekey")]
244impl DependenciesCacheKey {
245 #[doc = "Direct (non-virtual) call to `DependenciesCacheKey`'s own `GetHashCode`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
246 pub unsafe fn get_hash_code(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
247 let __mi = Self::get_hash_code_method_info();
248 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
249 __inner(this.into(), ::core::option::Option::None)
250 }
251
252 #[doc = "Direct (non-virtual) call to `DependenciesCacheKey`'s own `Equals`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
253 pub unsafe fn equals(this: impl ::core::convert::Into<::unity::IlInstance>, obj: crate::system::object::Object) -> bool {
254 let __mi = Self::equals_method_info();
255 let __inner: extern "C" fn(::unity::IlInstance, crate::system::object::Object, ::unity::OptionalMethod) -> bool =
256 ::core::mem::transmute(__mi.method_ptr);
257 __inner(this.into(), obj, ::core::option::Option::None)
258 }
259
260 #[doc = "Direct (non-virtual) call to `DependenciesCacheKey`'s own `Equals`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
261 pub unsafe fn equals_2(
262 this: impl ::core::convert::Into<::unity::IlInstance>,
263 other: crate::unity_engine::resource_management::util::ioperationcachekey::IOperationCacheKey,
264 ) -> bool {
265 let __mi = Self::equals_2_method_info();
266 let __inner: extern "C" fn(
267 ::unity::IlInstance,
268 crate::unity_engine::resource_management::util::ioperationcachekey::IOperationCacheKey,
269 ::unity::OptionalMethod,
270 ) -> bool = ::core::mem::transmute(__mi.method_ptr);
271 __inner(this.into(), other, ::core::option::Option::None)
272 }
273}
274
275#[cfg(feature = "unity_engine-resource_management-util-dependenciescachekey")]
276impl DependenciesCacheKey {
277 #[doc = "`.ctor(crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation>, i32)` — overload selector"]
278 pub fn new(
279 dependencies: crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
280 crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
281 >,
282 dependencies_hash: i32,
283 ) -> Self {
284 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
285 panic!(
286 "{}
287::{}
288 failed to instantiate",
289 ::core::stringify!(DependenciesCacheKey),
290 ::core::stringify!(new),
291 )
292 });
293 <Self as IDependenciesCacheKeyMethods>::ctor(this, dependencies, dependencies_hash);
294 this
295 }
296}
297
298#[cfg(feature = "unity_engine-resource_management-util-dependenciescachekey")]
299#[doc(hidden)]
300pub mod prelude {
301 pub use super::{DependenciesCacheKey, IDependenciesCacheKey, IDependenciesCacheKeyMethods};
302 pub use crate::system::object::IObject;
303 #[cfg(feature = "system-object")]
304 pub use crate::system::object::IObjectMethods;
305}