Skip to main content

engage/generated/combat/
boxcaster.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-boxcaster-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/combat/boxcaster/BoxCaster.md"))]
11    #[::unity::class(namespace = "Combat", name = "BoxCaster")]
12    #[parent(crate::system::object::Object)]
13    pub struct BoxCaster {
14        #[offset(16)]
15        #[rename(name = "BoxHalfXZ")]
16        pub box_half_xz: f32,
17        #[offset(20)]
18        #[rename(name = "BoxHalfY")]
19        pub box_half_y: f32,
20        #[offset(24)]
21        #[rename(name = "BoxFlotingHeight")]
22        pub box_floting_height: f32,
23        #[offset(40)]
24        #[rename(name = "IsFlying")]
25        pub is_flying: bool,
26        #[offset(44)]
27        #[rename(name = "in_Pos0")]
28        pub in_pos0: crate::unity_engine::vector3::Vector3,
29        #[offset(56)]
30        #[rename(name = "in_Pos1")]
31        pub in_pos1: crate::unity_engine::vector3::Vector3,
32        #[offset(72)]
33        #[rename(name = "Dir2D")]
34        pub dir2_d: crate::combat::fxz::FXZ,
35        #[offset(80)]
36        #[rename(name = "WorldPos0")]
37        pub world_pos0: crate::unity_engine::vector3::Vector3,
38        #[offset(92)]
39        #[rename(name = "WorldPos1")]
40        pub world_pos1: crate::unity_engine::vector3::Vector3,
41        #[offset(104)]
42        #[rename(name = "Dir3D")]
43        pub dir3_d: crate::unity_engine::vector3::Vector3,
44        #[offset(120)]
45        #[rename(name = "Result0")]
46        pub result0: crate::combat::boxcaster::BoxCaster_CastResult,
47        #[offset(128)]
48        #[rename(name = "Result1")]
49        pub result1: crate::combat::boxcaster::BoxCaster_CastResult,
50    }
51
52    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/boxcaster/BoxCaster_CastResult.md"))]
53    #[::unity::class(namespace = "Combat", name = "BoxCaster.CastResult")]
54    #[parent(crate::system::object::Object)]
55    pub struct BoxCaster_CastResult {
56        #[offset(16)]
57        #[rename(name = "startPos")]
58        pub start_pos: crate::unity_engine::vector3::Vector3,
59        #[offset(28)]
60        #[rename(name = "endPos")]
61        pub end_pos: crate::unity_engine::vector3::Vector3,
62        #[offset(40)]
63        #[rename(name = "dir")]
64        pub dir: crate::unity_engine::vector3::Vector3,
65        #[offset(52)]
66        #[rename(name = "sizeXZ")]
67        pub size_xz: f32,
68        #[offset(56)]
69        #[rename(name = "sizeY")]
70        pub size_y: f32,
71        #[offset(60)]
72        #[rename(name = "forward")]
73        pub forward: crate::unity_engine::quaternion::Quaternion,
74        #[offset(76)]
75        #[rename(name = "NumHits")]
76        pub num_hits: i32,
77        #[offset(80)]
78        #[rename(name = "Hits")]
79        pub hits: ::unity::Array<crate::unity_engine::raycasthit::RaycastHit>,
80    }
81}
82
83#[cfg(feature = "combat-boxcaster-types")]
84pub use __types::*;
85
86#[cfg(feature = "combat-boxcaster")]
87pub trait IBoxCasterMethods: IBoxCaster {
88    #[doc = "`get_HalfBoxSize()` overload"]
89    fn get_half_box_size(self) -> crate::unity_engine::vector3::Vector3 {
90        unsafe {
91            let __receiver = <BoxCaster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92            ::unity::il2cpp_call!((::unity::module_base()+0x298b280usize)as*mut u8,crate::unity_engine::vector3::Vector3;
93(BoxCaster)__receiver)
94        }
95    }
96    #[doc = "`set_HalfBoxSize(crate::unity_engine::vector3::Vector3)` overload"]
97    fn set_half_box_size(self, value: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
98        unsafe {
99            let __receiver = <BoxCaster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100            ::unity::il2cpp_call!((::unity::module_base()+0x298b290usize)as*mut u8,();
101(BoxCaster)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(value))
102        }
103    }
104    #[doc = "`get_TryCount()` overload"]
105    fn get_try_count(self) -> i32 {
106        unsafe {
107            let __receiver = <BoxCaster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108            ::unity::il2cpp_call!((::unity::module_base()+0x298b2a0usize)as*mut u8,i32;
109(BoxCaster)__receiver)
110        }
111    }
112    #[doc = "`set_TryCount(i32)` overload"]
113    fn set_try_count(self, value: impl ::core::convert::Into<i32>) -> () {
114        unsafe {
115            let __receiver = <BoxCaster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116            ::unity::il2cpp_call!((::unity::module_base()+0x298b2b0usize)as*mut u8,();
117(BoxCaster)__receiver,(i32)::core::convert::Into::into(value))
118        }
119    }
120    #[doc = "`get_Center2D()` overload"]
121    fn get_center2_d(self) -> crate::combat::fxz::FXZ {
122        unsafe {
123            let __receiver = <BoxCaster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
124            ::unity::il2cpp_call!((::unity::module_base()+0x298b2c0usize)as*mut u8,crate::combat::fxz::FXZ;
125(BoxCaster)__receiver)
126        }
127    }
128    #[doc = "`get_Center3D()` overload"]
129    fn get_center3_d(self) -> crate::unity_engine::vector3::Vector3 {
130        unsafe {
131            let __receiver = <BoxCaster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132            ::unity::il2cpp_call!((::unity::module_base()+0x298b370usize)as*mut u8,crate::unity_engine::vector3::Vector3;
133(BoxCaster)__receiver)
134        }
135    }
136    #[doc = "`get_DebugColor()` overload"]
137    fn get_debug_color(self) -> crate::unity_engine::color::Color {
138        unsafe {
139            let __receiver = <BoxCaster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
140            ::unity::il2cpp_call!((::unity::module_base()+0x298b3a0usize)as*mut u8,crate::unity_engine::color::Color;
141(BoxCaster)__receiver)
142        }
143    }
144    #[doc = "`set_DebugColor(crate::unity_engine::color::Color)` overload"]
145    fn set_debug_color(self, value: impl ::core::convert::Into<crate::unity_engine::color::Color>) -> () {
146        unsafe {
147            let __receiver = <BoxCaster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
148            ::unity::il2cpp_call!((::unity::module_base()+0x298b3b0usize)as*mut u8,();
149(BoxCaster)__receiver,(crate::unity_engine::color::Color)::core::convert::Into::into(value))
150        }
151    }
152    #[doc = "`get_Right()` overload"]
153    fn get_right(self) -> crate::combat::fxz::FXZ {
154        unsafe {
155            let __receiver = <BoxCaster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
156            ::unity::il2cpp_call!((::unity::module_base()+0x298b3d0usize)as*mut u8,crate::combat::fxz::FXZ;
157(BoxCaster)__receiver)
158        }
159    }
160    #[doc = "`.ctor()` overload"]
161    fn ctor(self) -> () {
162        unsafe {
163            let __receiver = <BoxCaster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
164            ::unity::il2cpp_call!((::unity::module_base()+0x298b430usize)as*mut u8,();
165(BoxCaster)__receiver)
166        }
167    }
168    #[doc = "`.ctor(crate::unity_engine::vector3::Vector3)` overload"]
169    fn ctor_2(self, pos0: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
170        unsafe {
171            let __receiver = <BoxCaster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
172            ::unity::il2cpp_call!((::unity::module_base()+0x298b4a0usize)as*mut u8,();
173(BoxCaster)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(pos0))
174        }
175    }
176    #[doc = "`.ctor(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3)` overload"]
177    fn ctor_3(
178        self,
179        pos0: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
180        pos1: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
181    ) -> () {
182        unsafe {
183            let __receiver = <BoxCaster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
184            ::unity::il2cpp_call!((::unity::module_base()+0x298b520usize)as*mut u8,();
185(BoxCaster)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(pos0),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(pos1))
186        }
187    }
188    #[doc = "`MakeParams()` overload"]
189    fn make_params(self) -> () {
190        unsafe {
191            let __receiver = <BoxCaster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
192            ::unity::il2cpp_call!((::unity::module_base()+0x298b5b0usize)as*mut u8,();
193(BoxCaster)__receiver)
194        }
195    }
196    #[doc = "`Cast()` overload"]
197    fn cast(self) -> () {
198        unsafe {
199            let __receiver = <BoxCaster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
200            ::unity::il2cpp_call!((::unity::module_base()+0x298b890usize)as*mut u8,();
201(BoxCaster)__receiver)
202        }
203    }
204    #[doc = "`CastOne(i32, *mutcrate::unity_engine::raycasthit::RaycastHit, *mutcrate::unity_engine::raycasthit::RaycastHit)` overload"]
205    fn cast_one(
206        self,
207        mask: impl ::core::convert::Into<i32>,
208    ) -> (
209        bool,
210        crate::unity_engine::raycasthit::RaycastHit,
211        crate::unity_engine::raycasthit::RaycastHit,
212    ) {
213        unsafe {
214            let __receiver = <BoxCaster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
215            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::raycasthit::RaycastHit>::uninit();
216            let mut __out_1 = ::core::mem::MaybeUninit::<crate::unity_engine::raycasthit::RaycastHit>::uninit();
217            let __ret = {
218                ::unity::il2cpp_call!((::unity::module_base()+0x298ba80usize)as*mut u8,bool;
219(BoxCaster)__receiver,(i32)::core::convert::Into::into(mask),(*mut crate::unity_engine::raycasthit::RaycastHit)__out_0.as_mut_ptr(),(*mut crate::unity_engine::raycasthit::RaycastHit)__out_1.as_mut_ptr())
220            };
221            (__ret, __out_0.assume_init(), __out_1.assume_init())
222        }
223    }
224    #[doc = "`RayCast(*mutcrate::unity_engine::raycasthit::RaycastHit, i32, f32)` overload"]
225    fn ray_cast(
226        self,
227        mask: impl ::core::convert::Into<i32>,
228        max_length: impl ::core::convert::Into<f32>,
229    ) -> (bool, crate::unity_engine::raycasthit::RaycastHit) {
230        unsafe {
231            let __receiver = <BoxCaster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
232            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::raycasthit::RaycastHit>::uninit();
233            let __ret = {
234                ::unity::il2cpp_call!((::unity::module_base()+0x298bca0usize)as*mut u8,bool;
235(BoxCaster)__receiver,(*mut crate::unity_engine::raycasthit::RaycastHit)__out_0.as_mut_ptr(),(i32)::core::convert::Into::into(mask),(f32)::core::convert::Into::into(max_length))
236            };
237            (__ret, __out_0.assume_init())
238        }
239    }
240    #[doc = "`WillCollide(crate::unity_engine::quaternion::Quaternion, i32)` overload"]
241    fn will_collide(
242        self,
243        rotation: impl ::core::convert::Into<crate::unity_engine::quaternion::Quaternion>,
244        mask: impl ::core::convert::Into<i32>,
245    ) -> bool {
246        unsafe {
247            let __receiver = <BoxCaster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
248            ::unity::il2cpp_call!((::unity::module_base()+0x298bd10usize)as*mut u8,bool;
249(BoxCaster)__receiver,(crate::unity_engine::quaternion::Quaternion)::core::convert::Into::into(rotation),(i32)::core::convert::Into::into(mask))
250        }
251    }
252    #[doc = "`DebugCastTrajectory(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, crate::unity_engine::quaternion::Quaternion, f32)` overload"]
253    fn debug_cast_trajectory(
254        self,
255        world_pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
256        direction: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
257        forward: impl ::core::convert::Into<crate::unity_engine::quaternion::Quaternion>,
258        distance: impl ::core::convert::Into<f32>,
259    ) -> () {
260        unsafe {
261            let __receiver = <BoxCaster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
262            ::unity::il2cpp_call!((::unity::module_base()+0x298bc90usize)as*mut u8,();
263(BoxCaster)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(world_pos),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(direction),(crate::unity_engine::quaternion::Quaternion)::core::convert::Into::into(forward),(f32)::core::convert::Into::into(distance))
264        }
265    }
266    #[doc = "`DrawGizmos()` overload"]
267    fn draw_gizmos(self) -> () {
268        unsafe {
269            let __receiver = <BoxCaster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
270            ::unity::il2cpp_call!((::unity::module_base()+0x298bd60usize)as*mut u8,();
271(BoxCaster)__receiver)
272        }
273    }
274    #[doc = "`IsDividedBy(i32)` overload"]
275    fn is_divided_by(self, mask: impl ::core::convert::Into<i32>) -> bool {
276        unsafe {
277            let __receiver = <BoxCaster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
278            ::unity::il2cpp_call!((::unity::module_base()+0x298bd90usize)as*mut u8,bool;
279(BoxCaster)__receiver,(i32)::core::convert::Into::into(mask))
280        }
281    }
282    #[doc = "`Pullup()` overload"]
283    fn pullup(self) -> () {
284        unsafe {
285            let __receiver = <BoxCaster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
286            ::unity::il2cpp_call!((::unity::module_base()+0x298b850usize)as*mut u8,();
287(BoxCaster)__receiver)
288        }
289    }
290    #[doc = "`ToString()` overload"]
291    fn to_string(self) -> ::unity::Il2CppString {
292        unsafe {
293            let __receiver = <BoxCaster as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
294            {
295                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
296                let __vi = *__vt.get(3usize).unwrap_or_else(|| {
297                    panic!(
298                        "unity: virtual slot {}
299 out of range (vtable len {}
300) on the runtime class behind {}
301 (method `{}
302`)",
303                        3usize,
304                        __vt.len(),
305                        <BoxCaster as ::unity::ClassIdentity>::NAME,
306                        "ToString",
307                    )
308                });
309                let __inner: extern "C" fn(BoxCaster, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
310                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
311                __inner(__receiver, __mi)
312            }
313        }
314    }
315}
316
317#[cfg(feature = "combat-boxcaster")]
318impl<__T: IBoxCaster> IBoxCasterMethods for __T {}
319
320#[cfg(feature = "combat-boxcaster")]
321impl BoxCaster {
322    pub fn get_half_box_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
323        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
324    }
325
326    pub fn set_half_box_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
327        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
328    }
329
330    pub fn get_try_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
331        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
332    }
333
334    pub fn set_try_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
335        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
336    }
337
338    pub fn get_center2_d_method_info() -> &'static ::unity::il2cpp::MethodInfo {
339        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
340    }
341
342    pub fn get_center3_d_method_info() -> &'static ::unity::il2cpp::MethodInfo {
343        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
344    }
345
346    pub fn get_debug_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
347        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
348    }
349
350    pub fn set_debug_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
351        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
352    }
353
354    pub fn get_right_method_info() -> &'static ::unity::il2cpp::MethodInfo {
355        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
356    }
357
358    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
359        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
360    }
361
362    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
363        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
364    }
365
366    pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
367        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
368    }
369
370    pub fn make_params_method_info() -> &'static ::unity::il2cpp::MethodInfo {
371        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
372    }
373
374    pub fn cast_method_info() -> &'static ::unity::il2cpp::MethodInfo {
375        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
376    }
377
378    pub fn cast_one_method_info() -> &'static ::unity::il2cpp::MethodInfo {
379        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
380    }
381
382    pub fn ray_cast_method_info() -> &'static ::unity::il2cpp::MethodInfo {
383        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
384    }
385
386    pub fn will_collide_method_info() -> &'static ::unity::il2cpp::MethodInfo {
387        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
388    }
389
390    pub fn debug_cast_trajectory_method_info() -> &'static ::unity::il2cpp::MethodInfo {
391        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
392    }
393
394    pub fn draw_gizmos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
395        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
396    }
397
398    pub fn is_divided_by_method_info() -> &'static ::unity::il2cpp::MethodInfo {
399        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
400    }
401
402    pub fn pullup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
403        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
404    }
405
406    pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
407        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
408    }
409}
410
411#[cfg(feature = "combat-boxcaster")]
412impl BoxCaster {
413    #[doc = "Direct (non-virtual) call to `BoxCaster`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
414    pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
415        let __mi = Self::to_string_method_info();
416        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
417        __inner(this.into(), ::core::option::Option::None)
418    }
419}
420
421#[cfg(feature = "combat-boxcaster")]
422impl BoxCaster {
423    #[doc = "`.ctor()` — no args"]
424    pub fn new() -> Self {
425        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
426            panic!(
427                "{}
428::{}
429 failed to instantiate",
430                ::core::stringify!(BoxCaster),
431                ::core::stringify!(new),
432            )
433        });
434        <Self as IBoxCasterMethods>::ctor(this);
435        this
436    }
437
438    #[doc = "`.ctor(crate::unity_engine::vector3::Vector3)` — overload selector"]
439    pub fn new_2(pos0: crate::unity_engine::vector3::Vector3) -> Self {
440        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
441            panic!(
442                "{}
443::{}
444 failed to instantiate",
445                ::core::stringify!(BoxCaster),
446                ::core::stringify!(new_2),
447            )
448        });
449        <Self as IBoxCasterMethods>::ctor_2(this, pos0);
450        this
451    }
452
453    #[doc = "`.ctor(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3)` — overload selector"]
454    pub fn new_3(pos0: crate::unity_engine::vector3::Vector3, pos1: crate::unity_engine::vector3::Vector3) -> Self {
455        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
456            panic!(
457                "{}
458::{}
459 failed to instantiate",
460                ::core::stringify!(BoxCaster),
461                ::core::stringify!(new_3),
462            )
463        });
464        <Self as IBoxCasterMethods>::ctor_3(this, pos0, pos1);
465        this
466    }
467}
468
469#[cfg(feature = "combat-boxcaster")]
470pub trait IBoxCaster_CastResultMethods: IBoxCaster_CastResult {
471    #[doc = "`get_centerPos()` overload"]
472    fn get_center_pos(self) -> crate::unity_engine::vector3::Vector3 {
473        unsafe {
474            let __receiver = <BoxCaster_CastResult as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
475            ::unity::il2cpp_call!((::unity::module_base()+0x19bc160usize)as*mut u8,crate::unity_engine::vector3::Vector3;
476(BoxCaster_CastResult)__receiver)
477        }
478    }
479    #[doc = "`.ctor(f32, f32)` overload"]
480    fn ctor(self, setting_xz: impl ::core::convert::Into<f32>, setting_y: impl ::core::convert::Into<f32>) -> () {
481        unsafe {
482            let __receiver = <BoxCaster_CastResult as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
483            ::unity::il2cpp_call!((::unity::module_base()+0x19bc190usize)as*mut u8,();
484(BoxCaster_CastResult)__receiver,(f32)::core::convert::Into::into(setting_xz),(f32)::core::convert::Into::into(setting_y))
485        }
486    }
487    #[doc = "`Cast(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, i32)` overload"]
488    fn cast(
489        self,
490        start_pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
491        end_pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
492        half_box_size: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
493        mask: impl ::core::convert::Into<i32>,
494    ) -> () {
495        unsafe {
496            let __receiver = <BoxCaster_CastResult as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
497            ::unity::il2cpp_call!((::unity::module_base()+0x19bc220usize)as*mut u8,();
498(BoxCaster_CastResult)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(start_pos),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(end_pos),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(half_box_size),(i32)::core::convert::Into::into(mask))
499        }
500    }
501    #[doc = "`IsIntersect(crate::combat::fxz::FXZ, f32)` overload"]
502    fn is_intersect(self, pos: impl ::core::convert::Into<crate::combat::fxz::FXZ>, radius: impl ::core::convert::Into<f32>) -> bool {
503        unsafe {
504            let __receiver = <BoxCaster_CastResult as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
505            ::unity::il2cpp_call!((::unity::module_base()+0x19bc430usize)as*mut u8,bool;
506(BoxCaster_CastResult)__receiver,(crate::combat::fxz::FXZ)::core::convert::Into::into(pos),(f32)::core::convert::Into::into(radius))
507        }
508    }
509    #[doc = "`IsDividedBy(i32)` overload"]
510    fn is_divided_by(self, mask: impl ::core::convert::Into<i32>) -> bool {
511        unsafe {
512            let __receiver = <BoxCaster_CastResult as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
513            ::unity::il2cpp_call!((::unity::module_base()+0x19bc5b0usize)as*mut u8,bool;
514(BoxCaster_CastResult)__receiver,(i32)::core::convert::Into::into(mask))
515        }
516    }
517    #[doc = "`DrawGizmos()` overload"]
518    fn draw_gizmos(self) -> () {
519        unsafe {
520            let __receiver = <BoxCaster_CastResult as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
521            ::unity::il2cpp_call!((::unity::module_base()+0x19bc650usize)as*mut u8,();
522(BoxCaster_CastResult)__receiver)
523        }
524    }
525    #[doc = "`ToString()` overload"]
526    fn to_string(self) -> ::unity::Il2CppString {
527        unsafe {
528            let __receiver = <BoxCaster_CastResult as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
529            {
530                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
531                let __vi = *__vt.get(3usize).unwrap_or_else(|| {
532                    panic!(
533                        "unity: virtual slot {}
534 out of range (vtable len {}
535) on the runtime class behind {}
536 (method `{}
537`)",
538                        3usize,
539                        __vt.len(),
540                        <BoxCaster_CastResult as ::unity::ClassIdentity>::NAME,
541                        "ToString",
542                    )
543                });
544                let __inner: extern "C" fn(BoxCaster_CastResult, ::unity::OptionalMethod) -> ::unity::Il2CppString =
545                    ::core::mem::transmute(__vi.method_ptr);
546                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
547                __inner(__receiver, __mi)
548            }
549        }
550    }
551}
552
553#[cfg(feature = "combat-boxcaster")]
554impl<__T: IBoxCaster_CastResult> IBoxCaster_CastResultMethods for __T {}
555
556#[cfg(feature = "combat-boxcaster")]
557impl BoxCaster_CastResult {
558    pub fn get_center_pos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
559        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
560    }
561
562    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
563        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
564    }
565
566    pub fn cast_method_info() -> &'static ::unity::il2cpp::MethodInfo {
567        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
568    }
569
570    pub fn is_intersect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
571        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
572    }
573
574    pub fn is_divided_by_method_info() -> &'static ::unity::il2cpp::MethodInfo {
575        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
576    }
577
578    pub fn draw_gizmos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
579        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
580    }
581
582    pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
583        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
584    }
585}
586
587#[cfg(feature = "combat-boxcaster")]
588impl BoxCaster_CastResult {
589    #[doc = "Direct (non-virtual) call to `BoxCaster_CastResult`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
590    pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
591        let __mi = Self::to_string_method_info();
592        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
593        __inner(this.into(), ::core::option::Option::None)
594    }
595}
596
597#[cfg(feature = "combat-boxcaster")]
598impl BoxCaster_CastResult {
599    #[doc = "`.ctor(f32, f32)` — overload selector"]
600    pub fn new(setting_xz: f32, setting_y: f32) -> Self {
601        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
602            panic!(
603                "{}
604::{}
605 failed to instantiate",
606                ::core::stringify!(BoxCaster_CastResult),
607                ::core::stringify!(new),
608            )
609        });
610        <Self as IBoxCaster_CastResultMethods>::ctor(this, setting_xz, setting_y);
611        this
612    }
613}
614
615#[cfg(feature = "combat-boxcaster")]
616#[doc(hidden)]
617pub mod prelude {
618    pub use super::{BoxCaster, BoxCaster_CastResult, IBoxCaster, IBoxCasterMethods, IBoxCaster_CastResult, IBoxCaster_CastResultMethods};
619    pub use crate::system::object::IObject;
620    #[cfg(feature = "system-object")]
621    pub use crate::system::object::IObjectMethods;
622}