Skip to main content

engage/generated/combat/
weapontossutility.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-weapontossutility-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/weapontossutility/WeaponTossUtility.md"))]
11    #[::unity::class(namespace = "Combat", name = "WeaponTossUtility")]
12    #[parent(crate::system::object::Object)]
13    pub struct WeaponTossUtility {}
14}
15
16#[cfg(feature = "combat-weapontossutility-types")]
17pub use __types::*;
18
19#[cfg(feature = "combat-weapontossutility")]
20impl WeaponTossUtility {
21    #[doc = "`Toss(crate::combat::character::Character, f32, bool)` overload"]
22    pub fn toss(
23        cp: impl ::core::convert::Into<crate::combat::character::Character>,
24        power: impl ::core::convert::Into<f32>,
25        skipped: impl ::core::convert::Into<bool>,
26    ) -> () {
27        unsafe {
28            ::unity::il2cpp_call!((::unity::module_base()+0x21d34d0usize)as*mut u8,();
29(crate::combat::character::Character)::core::convert::Into::into(cp),(f32)::core::convert::Into::into(power),(bool)::core::convert::Into::into(skipped))
30        }
31    }
32
33    #[doc = "`TossMain(crate::combat::character::Character, crate::unity_engine::gameobject::GameObject, f32, bool)` overload"]
34    pub fn toss_main(
35        cp: impl ::core::convert::Into<crate::combat::character::Character>,
36        wep: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
37        power: impl ::core::convert::Into<f32>,
38        skipped: impl ::core::convert::Into<bool>,
39    ) -> () {
40        unsafe {
41            ::unity::il2cpp_call!((::unity::module_base()+0x21d3670usize)as*mut u8,();
42(crate::combat::character::Character)::core::convert::Into::into(cp),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(wep),(f32)::core::convert::Into::into(power),(bool)::core::convert::Into::into(skipped))
43        }
44    }
45
46    #[doc = "`AddJustFitBoxCollider(crate::unity_engine::gameobject::GameObject, crate::unity_engine::gameobject::GameObject, f32)` overload"]
47    pub fn add_just_fit_box_collider(
48        go: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
49        mesh_go: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
50        scale: impl ::core::convert::Into<f32>,
51    ) -> crate::unity_engine::boxcollider::BoxCollider {
52        unsafe {
53            ::unity::il2cpp_call!((::unity::module_base()+0x21c8040usize)as*mut u8,crate::unity_engine::boxcollider::BoxCollider;
54(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(go),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(mesh_go),(f32)::core::convert::Into::into(scale))
55        }
56    }
57
58    #[doc = "`GetWeaponTipOffset(crate::unity_engine::gameobject::GameObject)` overload"]
59    pub fn get_weapon_tip_offset(mesh_go: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> f32 {
60        unsafe {
61            ::unity::il2cpp_call!((::unity::module_base()+0x21d4050usize)as*mut u8,f32;
62(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(mesh_go))
63        }
64    }
65}
66
67#[cfg(feature = "combat-weapontossutility")]
68pub trait IWeaponTossUtilityMethods: IWeaponTossUtility {
69    #[doc = "`.ctor()` overload"]
70    fn ctor(self) -> () {
71        unsafe {
72            let __receiver = <WeaponTossUtility as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73            ::unity::il2cpp_call!((::unity::module_base()+0x21d41b0usize)as*mut u8,();
74(WeaponTossUtility)__receiver)
75        }
76    }
77}
78
79#[cfg(feature = "combat-weapontossutility")]
80impl<__T: IWeaponTossUtility> IWeaponTossUtilityMethods for __T {}
81
82#[cfg(feature = "combat-weapontossutility")]
83impl WeaponTossUtility {
84    pub fn toss_method_info() -> &'static ::unity::il2cpp::MethodInfo {
85        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
86    }
87
88    pub fn toss_main_method_info() -> &'static ::unity::il2cpp::MethodInfo {
89        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
90    }
91
92    pub fn add_just_fit_box_collider_method_info() -> &'static ::unity::il2cpp::MethodInfo {
93        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
94    }
95
96    pub fn get_weapon_tip_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
97        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
98    }
99
100    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
101        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
102    }
103}
104
105#[cfg(feature = "combat-weapontossutility")]
106impl WeaponTossUtility {
107    #[doc = "`.ctor()` — no args"]
108    pub fn new() -> Self {
109        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
110            panic!(
111                "{}
112::{}
113 failed to instantiate",
114                ::core::stringify!(WeaponTossUtility),
115                ::core::stringify!(new),
116            )
117        });
118        <Self as IWeaponTossUtilityMethods>::ctor(this);
119        this
120    }
121}
122
123#[cfg(feature = "combat-weapontossutility")]
124#[doc(hidden)]
125pub mod prelude {
126    pub use super::{IWeaponTossUtility, IWeaponTossUtilityMethods, WeaponTossUtility};
127    pub use crate::system::object::IObject;
128    #[cfg(feature = "system-object")]
129    pub use crate::system::object::IObjectMethods;
130}