engage/generated/unity_engine/resource_management/resource_locations/
iresourcelocation.rs1#[cfg(feature = "unity_engine-resource_management-resource_locations-iresourcelocation-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8
9 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/resource_management/resource_locations/iresourcelocation/IResourceLocation.md"))]
10 #[::unity::class(namespace = "UnityEngine.ResourceManagement.ResourceLocations", name = "IResourceLocation")]
11 pub struct IResourceLocation {}
12}
13
14#[cfg(feature = "unity_engine-resource_management-resource_locations-iresourcelocation-types")]
15pub use __types::*;
16
17#[cfg(feature = "unity_engine-resource_management-resource_locations-iresourcelocation")]
18pub trait IIResourceLocationMethods: IIResourceLocation {
19 #[doc = "`get_InternalId()` overload"]
20 fn get_internal_id(self) -> ::unity::Il2CppString {
21 unsafe {
22 let __receiver = <IResourceLocation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
23 {
24 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
25 let __vi = *__vt.get(0usize).unwrap_or_else(|| {
26 panic!(
27 "unity: virtual slot {}
28 out of range (vtable len {}
29) on the runtime class behind {}
30 (method `{}
31`)",
32 0usize,
33 __vt.len(),
34 <IResourceLocation as ::unity::ClassIdentity>::NAME,
35 "get_InternalId",
36 )
37 });
38 let __inner: extern "C" fn(IResourceLocation, ::unity::OptionalMethod) -> ::unity::Il2CppString =
39 ::core::mem::transmute(__vi.method_ptr);
40 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
41 __inner(__receiver, __mi)
42 }
43 }
44 }
45 #[doc = "`get_ProviderId()` overload"]
46 fn get_provider_id(self) -> ::unity::Il2CppString {
47 unsafe {
48 let __receiver = <IResourceLocation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49 {
50 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
51 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
52 panic!(
53 "unity: virtual slot {}
54 out of range (vtable len {}
55) on the runtime class behind {}
56 (method `{}
57`)",
58 1usize,
59 __vt.len(),
60 <IResourceLocation as ::unity::ClassIdentity>::NAME,
61 "get_ProviderId",
62 )
63 });
64 let __inner: extern "C" fn(IResourceLocation, ::unity::OptionalMethod) -> ::unity::Il2CppString =
65 ::core::mem::transmute(__vi.method_ptr);
66 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
67 __inner(__receiver, __mi)
68 }
69 }
70 }
71 #[doc = "`get_Dependencies()` overload"]
72 fn get_dependencies(
73 self,
74 ) -> crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
75 crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
76 > {
77 unsafe {
78 let __receiver = <IResourceLocation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79 {
80 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
81 let __vi = *__vt.get(2usize).unwrap_or_else(|| {
82 panic!(
83 "unity: virtual slot {}
84 out of range (vtable len {}
85) on the runtime class behind {}
86 (method `{}
87`)",
88 2usize,
89 __vt.len(),
90 <IResourceLocation as ::unity::ClassIdentity>::NAME,
91 "get_Dependencies",
92 )
93 });
94 let __inner: extern "C" fn(
95 IResourceLocation,
96 ::unity::OptionalMethod,
97 ) -> crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
98 crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
99 > = ::core::mem::transmute(__vi.method_ptr);
100 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
101 __inner(__receiver, __mi)
102 }
103 }
104 }
105 #[doc = "`Hash(::unity::SystemType)` overload"]
106 fn hash(self, result_type: impl ::core::convert::Into<::unity::SystemType>) -> i32 {
107 unsafe {
108 let __receiver = <IResourceLocation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109 {
110 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
111 let __vi = *__vt.get(3usize).unwrap_or_else(|| {
112 panic!(
113 "unity: virtual slot {}
114 out of range (vtable len {}
115) on the runtime class behind {}
116 (method `{}
117`)",
118 3usize,
119 __vt.len(),
120 <IResourceLocation as ::unity::ClassIdentity>::NAME,
121 "Hash",
122 )
123 });
124 let __inner: extern "C" fn(IResourceLocation, ::unity::SystemType, ::unity::OptionalMethod) -> i32 =
125 ::core::mem::transmute(__vi.method_ptr);
126 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
127 __inner(__receiver, ::core::convert::Into::into(result_type), __mi)
128 }
129 }
130 }
131 #[doc = "`get_DependencyHashCode()` overload"]
132 fn get_dependency_hash_code(self) -> i32 {
133 unsafe {
134 let __receiver = <IResourceLocation 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 <IResourceLocation as ::unity::ClassIdentity>::NAME,
147 "get_DependencyHashCode",
148 )
149 });
150 let __inner: extern "C" fn(IResourceLocation, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
151 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
152 __inner(__receiver, __mi)
153 }
154 }
155 }
156 #[doc = "`get_HasDependencies()` overload"]
157 fn get_has_dependencies(self) -> bool {
158 unsafe {
159 let __receiver = <IResourceLocation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
160 {
161 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
162 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
163 panic!(
164 "unity: virtual slot {}
165 out of range (vtable len {}
166) on the runtime class behind {}
167 (method `{}
168`)",
169 5usize,
170 __vt.len(),
171 <IResourceLocation as ::unity::ClassIdentity>::NAME,
172 "get_HasDependencies",
173 )
174 });
175 let __inner: extern "C" fn(IResourceLocation, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
176 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
177 __inner(__receiver, __mi)
178 }
179 }
180 }
181 #[doc = "`get_Data()` overload"]
182 fn get_data(self) -> crate::system::object::Object {
183 unsafe {
184 let __receiver = <IResourceLocation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
185 {
186 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
187 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
188 panic!(
189 "unity: virtual slot {}
190 out of range (vtable len {}
191) on the runtime class behind {}
192 (method `{}
193`)",
194 6usize,
195 __vt.len(),
196 <IResourceLocation as ::unity::ClassIdentity>::NAME,
197 "get_Data",
198 )
199 });
200 let __inner: extern "C" fn(IResourceLocation, ::unity::OptionalMethod) -> crate::system::object::Object =
201 ::core::mem::transmute(__vi.method_ptr);
202 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
203 __inner(__receiver, __mi)
204 }
205 }
206 }
207 #[doc = "`get_PrimaryKey()` overload"]
208 fn get_primary_key(self) -> ::unity::Il2CppString {
209 unsafe {
210 let __receiver = <IResourceLocation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
211 {
212 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
213 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
214 panic!(
215 "unity: virtual slot {}
216 out of range (vtable len {}
217) on the runtime class behind {}
218 (method `{}
219`)",
220 7usize,
221 __vt.len(),
222 <IResourceLocation as ::unity::ClassIdentity>::NAME,
223 "get_PrimaryKey",
224 )
225 });
226 let __inner: extern "C" fn(IResourceLocation, ::unity::OptionalMethod) -> ::unity::Il2CppString =
227 ::core::mem::transmute(__vi.method_ptr);
228 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
229 __inner(__receiver, __mi)
230 }
231 }
232 }
233 #[doc = "`get_ResourceType()` overload"]
234 fn get_resource_type(self) -> ::unity::SystemType {
235 unsafe {
236 let __receiver = <IResourceLocation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
237 {
238 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
239 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
240 panic!(
241 "unity: virtual slot {}
242 out of range (vtable len {}
243) on the runtime class behind {}
244 (method `{}
245`)",
246 8usize,
247 __vt.len(),
248 <IResourceLocation as ::unity::ClassIdentity>::NAME,
249 "get_ResourceType",
250 )
251 });
252 let __inner: extern "C" fn(IResourceLocation, ::unity::OptionalMethod) -> ::unity::SystemType =
253 ::core::mem::transmute(__vi.method_ptr);
254 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
255 __inner(__receiver, __mi)
256 }
257 }
258 }
259}
260
261#[cfg(feature = "unity_engine-resource_management-resource_locations-iresourcelocation")]
262impl<__T: IIResourceLocation> IIResourceLocationMethods for __T {}
263
264#[cfg(feature = "unity_engine-resource_management-resource_locations-iresourcelocation")]
265impl IResourceLocation {
266 pub fn get_internal_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
267 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
268 }
269
270 pub fn get_provider_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
271 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
272 }
273
274 pub fn get_dependencies_method_info() -> &'static ::unity::il2cpp::MethodInfo {
275 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
276 }
277
278 pub fn hash_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
280 }
281
282 pub fn get_dependency_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
283 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
284 }
285
286 pub fn get_has_dependencies_method_info() -> &'static ::unity::il2cpp::MethodInfo {
287 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
288 }
289
290 pub fn get_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
291 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
292 }
293
294 pub fn get_primary_key_method_info() -> &'static ::unity::il2cpp::MethodInfo {
295 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
296 }
297
298 pub fn get_resource_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
299 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
300 }
301}
302
303#[cfg(feature = "unity_engine-resource_management-resource_locations-iresourcelocation")]
304impl IResourceLocation {
305 #[doc = "Direct (non-virtual) call to `IResourceLocation`'s own `get_InternalId`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
306 pub unsafe fn get_internal_id(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
307 let __mi = Self::get_internal_id_method_info();
308 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
309 __inner(this.into(), ::core::option::Option::None)
310 }
311
312 #[doc = "Direct (non-virtual) call to `IResourceLocation`'s own `get_ProviderId`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
313 pub unsafe fn get_provider_id(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
314 let __mi = Self::get_provider_id_method_info();
315 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
316 __inner(this.into(), ::core::option::Option::None)
317 }
318
319 #[doc = "Direct (non-virtual) call to `IResourceLocation`'s own `get_Dependencies`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
320 pub unsafe fn get_dependencies(
321 this: impl ::core::convert::Into<::unity::IlInstance>,
322 ) -> crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
323 crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
324 > {
325 let __mi = Self::get_dependencies_method_info();
326 let __inner: extern "C" fn(
327 ::unity::IlInstance,
328 ::unity::OptionalMethod,
329 ) -> crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
330 crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,
331 > = ::core::mem::transmute(__mi.method_ptr);
332 __inner(this.into(), ::core::option::Option::None)
333 }
334
335 #[doc = "Direct (non-virtual) call to `IResourceLocation`'s own `Hash`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
336 pub unsafe fn hash(this: impl ::core::convert::Into<::unity::IlInstance>, result_type: ::unity::SystemType) -> i32 {
337 let __mi = Self::hash_method_info();
338 let __inner: extern "C" fn(::unity::IlInstance, ::unity::SystemType, ::unity::OptionalMethod) -> i32 =
339 ::core::mem::transmute(__mi.method_ptr);
340 __inner(this.into(), result_type, ::core::option::Option::None)
341 }
342
343 #[doc = "Direct (non-virtual) call to `IResourceLocation`'s own `get_DependencyHashCode`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
344 pub unsafe fn get_dependency_hash_code(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
345 let __mi = Self::get_dependency_hash_code_method_info();
346 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
347 __inner(this.into(), ::core::option::Option::None)
348 }
349
350 #[doc = "Direct (non-virtual) call to `IResourceLocation`'s own `get_HasDependencies`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
351 pub unsafe fn get_has_dependencies(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
352 let __mi = Self::get_has_dependencies_method_info();
353 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
354 __inner(this.into(), ::core::option::Option::None)
355 }
356
357 #[doc = "Direct (non-virtual) call to `IResourceLocation`'s own `get_Data`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
358 pub unsafe fn get_data(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::object::Object {
359 let __mi = Self::get_data_method_info();
360 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::object::Object =
361 ::core::mem::transmute(__mi.method_ptr);
362 __inner(this.into(), ::core::option::Option::None)
363 }
364
365 #[doc = "Direct (non-virtual) call to `IResourceLocation`'s own `get_PrimaryKey`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
366 pub unsafe fn get_primary_key(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
367 let __mi = Self::get_primary_key_method_info();
368 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
369 __inner(this.into(), ::core::option::Option::None)
370 }
371
372 #[doc = "Direct (non-virtual) call to `IResourceLocation`'s own `get_ResourceType`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
373 pub unsafe fn get_resource_type(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::SystemType {
374 let __mi = Self::get_resource_type_method_info();
375 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::SystemType = ::core::mem::transmute(__mi.method_ptr);
376 __inner(this.into(), ::core::option::Option::None)
377 }
378}
379
380#[cfg(feature = "unity_engine-resource_management-resource_locations-iresourcelocation")]
381#[doc(hidden)]
382pub mod prelude {
383 pub use super::{IIResourceLocation, IIResourceLocationMethods, IResourceLocation};
384}