1#[cfg(feature = "unity_engine-ui-reflectionmethodscache-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 delegate::{Delegate, IDelegate},
10 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
11 object::{IObject, Object},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/reflectionmethodscache/ReflectionMethodsCache_Raycast2DCallback.md"))]
15 #[::unity::class(namespace = "UnityEngine.UI", name = "ReflectionMethodsCache.Raycast2DCallback")]
16 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
17 pub struct ReflectionMethodsCache_Raycast2DCallback {}
18
19 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/reflectionmethodscache/ReflectionMethodsCache_Raycast3DCallback.md"))]
20 #[::unity::class(namespace = "UnityEngine.UI", name = "ReflectionMethodsCache.Raycast3DCallback")]
21 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
22 pub struct ReflectionMethodsCache_Raycast3DCallback {}
23
24 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/reflectionmethodscache/ReflectionMethodsCache_GetRayIntersectionAllCallback.md"))]
25 #[::unity::class(namespace = "UnityEngine.UI", name = "ReflectionMethodsCache.GetRayIntersectionAllCallback")]
26 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
27 pub struct ReflectionMethodsCache_GetRayIntersectionAllCallback {}
28
29 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/reflectionmethodscache/ReflectionMethodsCache.md"))]
30 #[::unity::class(namespace = "UnityEngine.UI", name = "ReflectionMethodsCache")]
31 #[parent(crate::system::object::Object)]
32 pub struct ReflectionMethodsCache {
33 #[offset(16)]
34 #[rename(name = "raycast3D")]
35 pub raycast3_d: crate::unity_engine::ui::reflectionmethodscache::ReflectionMethodsCache_Raycast3DCallback,
36 #[offset(24)]
37 #[rename(name = "raycast3DAll")]
38 pub raycast3_d_all: crate::unity_engine::ui::reflectionmethodscache::ReflectionMethodsCache_RaycastAllCallback,
39 #[offset(32)]
40 #[rename(name = "getRaycastNonAlloc")]
41 pub get_raycast_non_alloc: crate::unity_engine::ui::reflectionmethodscache::ReflectionMethodsCache_GetRaycastNonAllocCallback,
42 #[offset(40)]
43 #[rename(name = "raycast2D")]
44 pub raycast2_d: crate::unity_engine::ui::reflectionmethodscache::ReflectionMethodsCache_Raycast2DCallback,
45 #[offset(48)]
46 #[rename(name = "getRayIntersectionAll")]
47 pub get_ray_intersection_all: crate::unity_engine::ui::reflectionmethodscache::ReflectionMethodsCache_GetRayIntersectionAllCallback,
48 #[offset(56)]
49 #[rename(name = "getRayIntersectionAllNonAlloc")]
50 pub get_ray_intersection_all_non_alloc:
51 crate::unity_engine::ui::reflectionmethodscache::ReflectionMethodsCache_GetRayIntersectionAllNonAllocCallback,
52 #[static_field]
53 #[rename(name = "s_ReflectionMethodsCache")]
54 pub s_reflection_methods_cache: crate::unity_engine::ui::reflectionmethodscache::ReflectionMethodsCache,
55 }
56
57 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/reflectionmethodscache/ReflectionMethodsCache_RaycastAllCallback.md"))]
58 #[::unity::class(namespace = "UnityEngine.UI", name = "ReflectionMethodsCache.RaycastAllCallback")]
59 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
60 pub struct ReflectionMethodsCache_RaycastAllCallback {}
61
62 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/reflectionmethodscache/ReflectionMethodsCache_GetRaycastNonAllocCallback.md"))]
63 #[::unity::class(namespace = "UnityEngine.UI", name = "ReflectionMethodsCache.GetRaycastNonAllocCallback")]
64 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
65 pub struct ReflectionMethodsCache_GetRaycastNonAllocCallback {}
66
67 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/reflectionmethodscache/ReflectionMethodsCache_GetRayIntersectionAllNonAllocCallback.md"))]
68 #[::unity::class(namespace = "UnityEngine.UI", name = "ReflectionMethodsCache.GetRayIntersectionAllNonAllocCallback")]
69 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
70 pub struct ReflectionMethodsCache_GetRayIntersectionAllNonAllocCallback {}
71}
72
73#[cfg(feature = "unity_engine-ui-reflectionmethodscache-types")]
74pub use __types::*;
75
76#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
77pub trait IReflectionMethodsCache_Raycast2DCallbackMethods: IReflectionMethodsCache_Raycast2DCallback {
78 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
79 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
80 unsafe {
81 let __receiver = <ReflectionMethodsCache_Raycast2DCallback as ::unity::FromIlInstance>::from_il_instance(
82 <Self as ::unity::SystemObject>::as_instance(self),
83 );
84 ::unity::il2cpp_call!((::unity::module_base()+0x3c0f080usize)as*mut u8,();
85(ReflectionMethodsCache_Raycast2DCallback)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
86 }
87 }
88 #[doc = "`Invoke(crate::unity_engine::vector2::Vector2, crate::unity_engine::vector2::Vector2, f32, i32)` overload"]
89 fn invoke(
90 self,
91 p1: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
92 p2: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
93 f: impl ::core::convert::Into<f32>,
94 i: impl ::core::convert::Into<i32>,
95 ) -> crate::unity_engine::raycasthit2d::RaycastHit2D {
96 unsafe {
97 let __receiver = <ReflectionMethodsCache_Raycast2DCallback as ::unity::FromIlInstance>::from_il_instance(
98 <Self as ::unity::SystemObject>::as_instance(self),
99 );
100 {
101 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
102 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
103 panic!(
104 "unity: virtual slot {}
105 out of range (vtable len {}
106) on the runtime class behind {}
107 (method `{}
108`)",
109 13usize,
110 __vt.len(),
111 <ReflectionMethodsCache_Raycast2DCallback as ::unity::ClassIdentity>::NAME,
112 "Invoke",
113 )
114 });
115 let __inner: extern "C" fn(
116 ReflectionMethodsCache_Raycast2DCallback,
117 crate::unity_engine::vector2::Vector2,
118 crate::unity_engine::vector2::Vector2,
119 f32,
120 i32,
121 ::unity::OptionalMethod,
122 ) -> crate::unity_engine::raycasthit2d::RaycastHit2D = ::core::mem::transmute(__vi.method_ptr);
123 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
124 __inner(
125 __receiver,
126 ::core::convert::Into::into(p1),
127 ::core::convert::Into::into(p2),
128 ::core::convert::Into::into(f),
129 ::core::convert::Into::into(i),
130 __mi,
131 )
132 }
133 }
134 }
135}
136
137#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
138impl<__T: IReflectionMethodsCache_Raycast2DCallback> IReflectionMethodsCache_Raycast2DCallbackMethods for __T {}
139
140#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
141impl ReflectionMethodsCache_Raycast2DCallback {
142 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
143 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
144 }
145
146 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
148 }
149}
150
151#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
152impl ReflectionMethodsCache_Raycast2DCallback {
153 #[doc = "Direct (non-virtual) call to `ReflectionMethodsCache_Raycast2DCallback`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
154 pub unsafe fn invoke(
155 this: impl ::core::convert::Into<::unity::IlInstance>,
156 p1: crate::unity_engine::vector2::Vector2,
157 p2: crate::unity_engine::vector2::Vector2,
158 f: f32,
159 i: i32,
160 ) -> crate::unity_engine::raycasthit2d::RaycastHit2D {
161 let __mi = Self::invoke_method_info();
162 let __inner: extern "C" fn(
163 ::unity::IlInstance,
164 crate::unity_engine::vector2::Vector2,
165 crate::unity_engine::vector2::Vector2,
166 f32,
167 i32,
168 ::unity::OptionalMethod,
169 ) -> crate::unity_engine::raycasthit2d::RaycastHit2D = ::core::mem::transmute(__mi.method_ptr);
170 __inner(this.into(), p1, p2, f, i, ::core::option::Option::None)
171 }
172}
173
174#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
175impl ReflectionMethodsCache_Raycast2DCallback {
176 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
177 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
178 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
179 panic!(
180 "{}
181::{}
182 failed to instantiate",
183 ::core::stringify!(ReflectionMethodsCache_Raycast2DCallback),
184 ::core::stringify!(new),
185 )
186 });
187 <Self as IReflectionMethodsCache_Raycast2DCallbackMethods>::ctor(this, object, method);
188 this
189 }
190}
191
192#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
193pub trait IReflectionMethodsCache_Raycast3DCallbackMethods: IReflectionMethodsCache_Raycast3DCallback {
194 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
195 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
196 unsafe {
197 let __receiver = <ReflectionMethodsCache_Raycast3DCallback as ::unity::FromIlInstance>::from_il_instance(
198 <Self as ::unity::SystemObject>::as_instance(self),
199 );
200 ::unity::il2cpp_call!((::unity::module_base()+0x3c0f4f0usize)as*mut u8,();
201(ReflectionMethodsCache_Raycast3DCallback)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
202 }
203 }
204 #[doc = "`Invoke(crate::unity_engine::ray::Ray, *mutcrate::unity_engine::raycasthit::RaycastHit, f32, i32)` overload"]
205 fn invoke(
206 self,
207 r: impl ::core::convert::Into<crate::unity_engine::ray::Ray>,
208 f: impl ::core::convert::Into<f32>,
209 i: impl ::core::convert::Into<i32>,
210 ) -> (bool, crate::unity_engine::raycasthit::RaycastHit) {
211 unsafe {
212 let __receiver = <ReflectionMethodsCache_Raycast3DCallback as ::unity::FromIlInstance>::from_il_instance(
213 <Self as ::unity::SystemObject>::as_instance(self),
214 );
215 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::raycasthit::RaycastHit>::uninit();
216 let __ret = {
217 {
218 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
219 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
220 panic!(
221 "unity: virtual slot {}
222 out of range (vtable len {}
223) on the runtime class behind {}
224 (method `{}
225`)",
226 13usize,
227 __vt.len(),
228 <ReflectionMethodsCache_Raycast3DCallback as ::unity::ClassIdentity>::NAME,
229 "Invoke",
230 )
231 });
232 let __inner: extern "C" fn(
233 ReflectionMethodsCache_Raycast3DCallback,
234 crate::unity_engine::ray::Ray,
235 *mut crate::unity_engine::raycasthit::RaycastHit,
236 f32,
237 i32,
238 ::unity::OptionalMethod,
239 ) -> bool = ::core::mem::transmute(__vi.method_ptr);
240 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
241 __inner(
242 __receiver,
243 ::core::convert::Into::into(r),
244 __out_0.as_mut_ptr(),
245 ::core::convert::Into::into(f),
246 ::core::convert::Into::into(i),
247 __mi,
248 )
249 }
250 };
251 (__ret, __out_0.assume_init())
252 }
253 }
254}
255
256#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
257impl<__T: IReflectionMethodsCache_Raycast3DCallback> IReflectionMethodsCache_Raycast3DCallbackMethods for __T {}
258
259#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
260impl ReflectionMethodsCache_Raycast3DCallback {
261 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
262 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
263 }
264
265 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
266 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
267 }
268}
269
270#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
271impl ReflectionMethodsCache_Raycast3DCallback {
272 #[doc = "Direct (non-virtual) call to `ReflectionMethodsCache_Raycast3DCallback`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
273 pub unsafe fn invoke(
274 this: impl ::core::convert::Into<::unity::IlInstance>,
275 r: crate::unity_engine::ray::Ray,
276 hit: *mut crate::unity_engine::raycasthit::RaycastHit,
277 f: f32,
278 i: i32,
279 ) -> bool {
280 let __mi = Self::invoke_method_info();
281 let __inner: extern "C" fn(
282 ::unity::IlInstance,
283 crate::unity_engine::ray::Ray,
284 *mut crate::unity_engine::raycasthit::RaycastHit,
285 f32,
286 i32,
287 ::unity::OptionalMethod,
288 ) -> bool = ::core::mem::transmute(__mi.method_ptr);
289 __inner(this.into(), r, hit, f, i, ::core::option::Option::None)
290 }
291}
292
293#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
294impl ReflectionMethodsCache_Raycast3DCallback {
295 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
296 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
297 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
298 panic!(
299 "{}
300::{}
301 failed to instantiate",
302 ::core::stringify!(ReflectionMethodsCache_Raycast3DCallback),
303 ::core::stringify!(new),
304 )
305 });
306 <Self as IReflectionMethodsCache_Raycast3DCallbackMethods>::ctor(this, object, method);
307 this
308 }
309}
310
311#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
312pub trait IReflectionMethodsCache_GetRayIntersectionAllCallbackMethods: IReflectionMethodsCache_GetRayIntersectionAllCallback {
313 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
314 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
315 unsafe {
316 let __receiver = <ReflectionMethodsCache_GetRayIntersectionAllCallback as ::unity::FromIlInstance>::from_il_instance(
317 <Self as ::unity::SystemObject>::as_instance(self),
318 );
319 ::unity::il2cpp_call!((::unity::module_base()+0x3c0e290usize)as*mut u8,();
320(ReflectionMethodsCache_GetRayIntersectionAllCallback)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
321 }
322 }
323 #[doc = "`Invoke(crate::unity_engine::ray::Ray, f32, i32)` overload"]
324 fn invoke(
325 self,
326 r: impl ::core::convert::Into<crate::unity_engine::ray::Ray>,
327 f: impl ::core::convert::Into<f32>,
328 i: impl ::core::convert::Into<i32>,
329 ) -> ::unity::Array<crate::unity_engine::raycasthit2d::RaycastHit2D> {
330 unsafe {
331 let __receiver = <ReflectionMethodsCache_GetRayIntersectionAllCallback as ::unity::FromIlInstance>::from_il_instance(
332 <Self as ::unity::SystemObject>::as_instance(self),
333 );
334 {
335 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
336 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
337 panic!(
338 "unity: virtual slot {}
339 out of range (vtable len {}
340) on the runtime class behind {}
341 (method `{}
342`)",
343 13usize,
344 __vt.len(),
345 <ReflectionMethodsCache_GetRayIntersectionAllCallback as ::unity::ClassIdentity>::NAME,
346 "Invoke",
347 )
348 });
349 let __inner: extern "C" fn(
350 ReflectionMethodsCache_GetRayIntersectionAllCallback,
351 crate::unity_engine::ray::Ray,
352 f32,
353 i32,
354 ::unity::OptionalMethod,
355 ) -> ::unity::Array<crate::unity_engine::raycasthit2d::RaycastHit2D> = ::core::mem::transmute(__vi.method_ptr);
356 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
357 __inner(
358 __receiver,
359 ::core::convert::Into::into(r),
360 ::core::convert::Into::into(f),
361 ::core::convert::Into::into(i),
362 __mi,
363 )
364 }
365 }
366 }
367}
368
369#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
370impl<__T: IReflectionMethodsCache_GetRayIntersectionAllCallback> IReflectionMethodsCache_GetRayIntersectionAllCallbackMethods for __T {}
371
372#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
373impl ReflectionMethodsCache_GetRayIntersectionAllCallback {
374 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
375 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
376 }
377
378 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
379 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
380 }
381}
382
383#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
384impl ReflectionMethodsCache_GetRayIntersectionAllCallback {
385 #[doc = "Direct (non-virtual) call to `ReflectionMethodsCache_GetRayIntersectionAllCallback`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
386 pub unsafe fn invoke(
387 this: impl ::core::convert::Into<::unity::IlInstance>,
388 r: crate::unity_engine::ray::Ray,
389 f: f32,
390 i: i32,
391 ) -> ::unity::Array<crate::unity_engine::raycasthit2d::RaycastHit2D> {
392 let __mi = Self::invoke_method_info();
393 let __inner: extern "C" fn(
394 ::unity::IlInstance,
395 crate::unity_engine::ray::Ray,
396 f32,
397 i32,
398 ::unity::OptionalMethod,
399 ) -> ::unity::Array<crate::unity_engine::raycasthit2d::RaycastHit2D> = ::core::mem::transmute(__mi.method_ptr);
400 __inner(this.into(), r, f, i, ::core::option::Option::None)
401 }
402}
403
404#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
405impl ReflectionMethodsCache_GetRayIntersectionAllCallback {
406 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
407 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
408 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
409 panic!(
410 "{}
411::{}
412 failed to instantiate",
413 ::core::stringify!(ReflectionMethodsCache_GetRayIntersectionAllCallback),
414 ::core::stringify!(new),
415 )
416 });
417 <Self as IReflectionMethodsCache_GetRayIntersectionAllCallbackMethods>::ctor(this, object, method);
418 this
419 }
420}
421
422#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
423impl ReflectionMethodsCache {
424 #[doc = "`get_Singleton()` overload"]
425 pub fn get_singleton() -> crate::unity_engine::ui::reflectionmethodscache::ReflectionMethodsCache {
426 unsafe {
427 ::unity::il2cpp_call!((::unity::module_base()+0x371e840usize)as*mut u8,crate::unity_engine::ui::reflectionmethodscache::ReflectionMethodsCache;
428 )
429 }
430 }
431
432 #[doc = "`.cctor()` overload"]
433 pub fn cctor() -> () {
434 unsafe {
435 ::unity::il2cpp_call!((::unity::module_base()+0x3724b90usize)as*mut u8,();
436 )
437 }
438 }
439}
440
441#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
442pub trait IReflectionMethodsCacheMethods: IReflectionMethodsCache {
443 #[doc = "`.ctor()` overload"]
444 fn ctor(self) -> () {
445 unsafe {
446 let __receiver =
447 <ReflectionMethodsCache as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
448 ::unity::il2cpp_call!((::unity::module_base()+0x3723e50usize)as*mut u8,();
449(ReflectionMethodsCache)__receiver)
450 }
451 }
452}
453
454#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
455impl<__T: IReflectionMethodsCache> IReflectionMethodsCacheMethods for __T {}
456
457#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
458impl ReflectionMethodsCache {
459 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
460 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
461 }
462
463 pub fn get_singleton_method_info() -> &'static ::unity::il2cpp::MethodInfo {
464 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
465 }
466
467 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
468 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
469 }
470}
471
472#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
473impl ReflectionMethodsCache {
474 #[doc = "`.ctor()` — no args"]
475 pub fn new() -> Self {
476 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
477 panic!(
478 "{}
479::{}
480 failed to instantiate",
481 ::core::stringify!(ReflectionMethodsCache),
482 ::core::stringify!(new),
483 )
484 });
485 <Self as IReflectionMethodsCacheMethods>::ctor(this);
486 this
487 }
488}
489
490#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
491pub trait IReflectionMethodsCache_RaycastAllCallbackMethods: IReflectionMethodsCache_RaycastAllCallback {
492 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
493 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
494 unsafe {
495 let __receiver = <ReflectionMethodsCache_RaycastAllCallback as ::unity::FromIlInstance>::from_il_instance(
496 <Self as ::unity::SystemObject>::as_instance(self),
497 );
498 ::unity::il2cpp_call!((::unity::module_base()+0x3c0f9e0usize)as*mut u8,();
499(ReflectionMethodsCache_RaycastAllCallback)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
500 }
501 }
502 #[doc = "`Invoke(crate::unity_engine::ray::Ray, f32, i32)` overload"]
503 fn invoke(
504 self,
505 r: impl ::core::convert::Into<crate::unity_engine::ray::Ray>,
506 f: impl ::core::convert::Into<f32>,
507 i: impl ::core::convert::Into<i32>,
508 ) -> ::unity::Array<crate::unity_engine::raycasthit::RaycastHit> {
509 unsafe {
510 let __receiver = <ReflectionMethodsCache_RaycastAllCallback as ::unity::FromIlInstance>::from_il_instance(
511 <Self as ::unity::SystemObject>::as_instance(self),
512 );
513 {
514 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
515 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
516 panic!(
517 "unity: virtual slot {}
518 out of range (vtable len {}
519) on the runtime class behind {}
520 (method `{}
521`)",
522 13usize,
523 __vt.len(),
524 <ReflectionMethodsCache_RaycastAllCallback as ::unity::ClassIdentity>::NAME,
525 "Invoke",
526 )
527 });
528 let __inner: extern "C" fn(
529 ReflectionMethodsCache_RaycastAllCallback,
530 crate::unity_engine::ray::Ray,
531 f32,
532 i32,
533 ::unity::OptionalMethod,
534 ) -> ::unity::Array<crate::unity_engine::raycasthit::RaycastHit> = ::core::mem::transmute(__vi.method_ptr);
535 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
536 __inner(
537 __receiver,
538 ::core::convert::Into::into(r),
539 ::core::convert::Into::into(f),
540 ::core::convert::Into::into(i),
541 __mi,
542 )
543 }
544 }
545 }
546}
547
548#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
549impl<__T: IReflectionMethodsCache_RaycastAllCallback> IReflectionMethodsCache_RaycastAllCallbackMethods for __T {}
550
551#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
552impl ReflectionMethodsCache_RaycastAllCallback {
553 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
554 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
555 }
556
557 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
558 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
559 }
560}
561
562#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
563impl ReflectionMethodsCache_RaycastAllCallback {
564 #[doc = "Direct (non-virtual) call to `ReflectionMethodsCache_RaycastAllCallback`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
565 pub unsafe fn invoke(
566 this: impl ::core::convert::Into<::unity::IlInstance>,
567 r: crate::unity_engine::ray::Ray,
568 f: f32,
569 i: i32,
570 ) -> ::unity::Array<crate::unity_engine::raycasthit::RaycastHit> {
571 let __mi = Self::invoke_method_info();
572 let __inner: extern "C" fn(
573 ::unity::IlInstance,
574 crate::unity_engine::ray::Ray,
575 f32,
576 i32,
577 ::unity::OptionalMethod,
578 ) -> ::unity::Array<crate::unity_engine::raycasthit::RaycastHit> = ::core::mem::transmute(__mi.method_ptr);
579 __inner(this.into(), r, f, i, ::core::option::Option::None)
580 }
581}
582
583#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
584impl ReflectionMethodsCache_RaycastAllCallback {
585 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
586 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
587 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
588 panic!(
589 "{}
590::{}
591 failed to instantiate",
592 ::core::stringify!(ReflectionMethodsCache_RaycastAllCallback),
593 ::core::stringify!(new),
594 )
595 });
596 <Self as IReflectionMethodsCache_RaycastAllCallbackMethods>::ctor(this, object, method);
597 this
598 }
599}
600
601#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
602pub trait IReflectionMethodsCache_GetRaycastNonAllocCallbackMethods: IReflectionMethodsCache_GetRaycastNonAllocCallback {
603 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
604 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
605 unsafe {
606 let __receiver = <ReflectionMethodsCache_GetRaycastNonAllocCallback as ::unity::FromIlInstance>::from_il_instance(
607 <Self as ::unity::SystemObject>::as_instance(self),
608 );
609 ::unity::il2cpp_call!((::unity::module_base()+0x3c0ebc0usize)as*mut u8,();
610(ReflectionMethodsCache_GetRaycastNonAllocCallback)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
611 }
612 }
613 #[doc = "`Invoke(crate::unity_engine::ray::Ray, ::unity::Array<crate::unity_engine::raycasthit::RaycastHit>, f32, i32)` overload"]
614 fn invoke(
615 self,
616 r: impl ::core::convert::Into<crate::unity_engine::ray::Ray>,
617 results: impl ::core::convert::Into<::unity::Array<crate::unity_engine::raycasthit::RaycastHit>>,
618 f: impl ::core::convert::Into<f32>,
619 i: impl ::core::convert::Into<i32>,
620 ) -> i32 {
621 unsafe {
622 let __receiver = <ReflectionMethodsCache_GetRaycastNonAllocCallback as ::unity::FromIlInstance>::from_il_instance(
623 <Self as ::unity::SystemObject>::as_instance(self),
624 );
625 {
626 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
627 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
628 panic!(
629 "unity: virtual slot {}
630 out of range (vtable len {}
631) on the runtime class behind {}
632 (method `{}
633`)",
634 13usize,
635 __vt.len(),
636 <ReflectionMethodsCache_GetRaycastNonAllocCallback as ::unity::ClassIdentity>::NAME,
637 "Invoke",
638 )
639 });
640 let __inner: extern "C" fn(
641 ReflectionMethodsCache_GetRaycastNonAllocCallback,
642 crate::unity_engine::ray::Ray,
643 ::unity::Array<crate::unity_engine::raycasthit::RaycastHit>,
644 f32,
645 i32,
646 ::unity::OptionalMethod,
647 ) -> i32 = ::core::mem::transmute(__vi.method_ptr);
648 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
649 __inner(
650 __receiver,
651 ::core::convert::Into::into(r),
652 ::core::convert::Into::into(results),
653 ::core::convert::Into::into(f),
654 ::core::convert::Into::into(i),
655 __mi,
656 )
657 }
658 }
659 }
660}
661
662#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
663impl<__T: IReflectionMethodsCache_GetRaycastNonAllocCallback> IReflectionMethodsCache_GetRaycastNonAllocCallbackMethods for __T {}
664
665#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
666impl ReflectionMethodsCache_GetRaycastNonAllocCallback {
667 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
668 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
669 }
670
671 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
672 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
673 }
674}
675
676#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
677impl ReflectionMethodsCache_GetRaycastNonAllocCallback {
678 #[doc = "Direct (non-virtual) call to `ReflectionMethodsCache_GetRaycastNonAllocCallback`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
679 pub unsafe fn invoke(
680 this: impl ::core::convert::Into<::unity::IlInstance>,
681 r: crate::unity_engine::ray::Ray,
682 results: ::unity::Array<crate::unity_engine::raycasthit::RaycastHit>,
683 f: f32,
684 i: i32,
685 ) -> i32 {
686 let __mi = Self::invoke_method_info();
687 let __inner: extern "C" fn(
688 ::unity::IlInstance,
689 crate::unity_engine::ray::Ray,
690 ::unity::Array<crate::unity_engine::raycasthit::RaycastHit>,
691 f32,
692 i32,
693 ::unity::OptionalMethod,
694 ) -> i32 = ::core::mem::transmute(__mi.method_ptr);
695 __inner(this.into(), r, results, f, i, ::core::option::Option::None)
696 }
697}
698
699#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
700impl ReflectionMethodsCache_GetRaycastNonAllocCallback {
701 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
702 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
703 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
704 panic!(
705 "{}
706::{}
707 failed to instantiate",
708 ::core::stringify!(ReflectionMethodsCache_GetRaycastNonAllocCallback),
709 ::core::stringify!(new),
710 )
711 });
712 <Self as IReflectionMethodsCache_GetRaycastNonAllocCallbackMethods>::ctor(this, object, method);
713 this
714 }
715}
716
717#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
718pub trait IReflectionMethodsCache_GetRayIntersectionAllNonAllocCallbackMethods:
719 IReflectionMethodsCache_GetRayIntersectionAllNonAllocCallback
720{
721 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
722 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
723 unsafe {
724 let __receiver = <ReflectionMethodsCache_GetRayIntersectionAllNonAllocCallback as ::unity::FromIlInstance>::from_il_instance(
725 <Self as ::unity::SystemObject>::as_instance(self),
726 );
727 ::unity::il2cpp_call!((::unity::module_base()+0x3c0e700usize)as*mut u8,();
728(ReflectionMethodsCache_GetRayIntersectionAllNonAllocCallback)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
729 }
730 }
731 #[doc = "`Invoke(crate::unity_engine::ray::Ray, ::unity::Array<crate::unity_engine::raycasthit2d::RaycastHit2D>, f32, i32)` overload"]
732 fn invoke(
733 self,
734 r: impl ::core::convert::Into<crate::unity_engine::ray::Ray>,
735 results: impl ::core::convert::Into<::unity::Array<crate::unity_engine::raycasthit2d::RaycastHit2D>>,
736 f: impl ::core::convert::Into<f32>,
737 i: impl ::core::convert::Into<i32>,
738 ) -> i32 {
739 unsafe {
740 let __receiver = <ReflectionMethodsCache_GetRayIntersectionAllNonAllocCallback as ::unity::FromIlInstance>::from_il_instance(
741 <Self as ::unity::SystemObject>::as_instance(self),
742 );
743 {
744 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
745 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
746 panic!(
747 "unity: virtual slot {}
748 out of range (vtable len {}
749) on the runtime class behind {}
750 (method `{}
751`)",
752 13usize,
753 __vt.len(),
754 <ReflectionMethodsCache_GetRayIntersectionAllNonAllocCallback as ::unity::ClassIdentity>::NAME,
755 "Invoke",
756 )
757 });
758 let __inner: extern "C" fn(
759 ReflectionMethodsCache_GetRayIntersectionAllNonAllocCallback,
760 crate::unity_engine::ray::Ray,
761 ::unity::Array<crate::unity_engine::raycasthit2d::RaycastHit2D>,
762 f32,
763 i32,
764 ::unity::OptionalMethod,
765 ) -> i32 = ::core::mem::transmute(__vi.method_ptr);
766 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
767 __inner(
768 __receiver,
769 ::core::convert::Into::into(r),
770 ::core::convert::Into::into(results),
771 ::core::convert::Into::into(f),
772 ::core::convert::Into::into(i),
773 __mi,
774 )
775 }
776 }
777 }
778}
779
780#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
781impl<__T: IReflectionMethodsCache_GetRayIntersectionAllNonAllocCallback> IReflectionMethodsCache_GetRayIntersectionAllNonAllocCallbackMethods
782 for __T
783{
784}
785
786#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
787impl ReflectionMethodsCache_GetRayIntersectionAllNonAllocCallback {
788 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
789 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
790 }
791
792 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
793 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
794 }
795}
796
797#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
798impl ReflectionMethodsCache_GetRayIntersectionAllNonAllocCallback {
799 #[doc = "Direct (non-virtual) call to `ReflectionMethodsCache_GetRayIntersectionAllNonAllocCallback`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
800 pub unsafe fn invoke(
801 this: impl ::core::convert::Into<::unity::IlInstance>,
802 r: crate::unity_engine::ray::Ray,
803 results: ::unity::Array<crate::unity_engine::raycasthit2d::RaycastHit2D>,
804 f: f32,
805 i: i32,
806 ) -> i32 {
807 let __mi = Self::invoke_method_info();
808 let __inner: extern "C" fn(
809 ::unity::IlInstance,
810 crate::unity_engine::ray::Ray,
811 ::unity::Array<crate::unity_engine::raycasthit2d::RaycastHit2D>,
812 f32,
813 i32,
814 ::unity::OptionalMethod,
815 ) -> i32 = ::core::mem::transmute(__mi.method_ptr);
816 __inner(this.into(), r, results, f, i, ::core::option::Option::None)
817 }
818}
819
820#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
821impl ReflectionMethodsCache_GetRayIntersectionAllNonAllocCallback {
822 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
823 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
824 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
825 panic!(
826 "{}
827::{}
828 failed to instantiate",
829 ::core::stringify!(ReflectionMethodsCache_GetRayIntersectionAllNonAllocCallback),
830 ::core::stringify!(new),
831 )
832 });
833 <Self as IReflectionMethodsCache_GetRayIntersectionAllNonAllocCallbackMethods>::ctor(this, object, method);
834 this
835 }
836}
837
838#[cfg(feature = "unity_engine-ui-reflectionmethodscache")]
839#[doc(hidden)]
840pub mod prelude {
841 pub use super::{
842 IReflectionMethodsCache, IReflectionMethodsCacheMethods, IReflectionMethodsCache_GetRayIntersectionAllCallback,
843 IReflectionMethodsCache_GetRayIntersectionAllCallbackMethods, IReflectionMethodsCache_GetRayIntersectionAllNonAllocCallback,
844 IReflectionMethodsCache_GetRayIntersectionAllNonAllocCallbackMethods, IReflectionMethodsCache_GetRaycastNonAllocCallback,
845 IReflectionMethodsCache_GetRaycastNonAllocCallbackMethods, IReflectionMethodsCache_Raycast2DCallback,
846 IReflectionMethodsCache_Raycast2DCallbackMethods, IReflectionMethodsCache_Raycast3DCallback,
847 IReflectionMethodsCache_Raycast3DCallbackMethods, IReflectionMethodsCache_RaycastAllCallback,
848 IReflectionMethodsCache_RaycastAllCallbackMethods, ReflectionMethodsCache, ReflectionMethodsCache_GetRayIntersectionAllCallback,
849 ReflectionMethodsCache_GetRayIntersectionAllNonAllocCallback, ReflectionMethodsCache_GetRaycastNonAllocCallback,
850 ReflectionMethodsCache_Raycast2DCallback, ReflectionMethodsCache_Raycast3DCallback, ReflectionMethodsCache_RaycastAllCallback,
851 };
852 #[cfg(feature = "system-delegate")]
853 pub use crate::system::delegate::IDelegateMethods;
854 #[cfg(feature = "system-multicastdelegate")]
855 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
856 #[cfg(feature = "system-object")]
857 pub use crate::system::object::IObjectMethods;
858 pub use crate::system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject};
859}