Skip to main content

engage/generated/combat/
characterjump.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-characterjump-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/characterjump/CharacterJump.md"))]
11    #[::unity::class(namespace = "Combat", name = "CharacterJump")]
12    #[parent(crate::system::object::Object)]
13    pub struct CharacterJump {
14        #[offset(16)]
15        #[rename(name = "m_Chr")]
16        pub m_chr: crate::combat::character::Character,
17        #[offset(24)]
18        #[rename(name = "m_Target")]
19        pub m_target: crate::unity_engine::transform::Transform,
20        #[offset(32)]
21        #[rename(name = "m_StartPos")]
22        pub m_start_pos: crate::unity_engine::vector3::Vector3,
23        #[offset(44)]
24        #[rename(name = "m_GoalPos")]
25        pub m_goal_pos: crate::unity_engine::vector3::Vector3,
26        #[offset(56)]
27        #[rename(name = "m_PullOffset")]
28        pub m_pull_offset: f32,
29        #[offset(60)]
30        #[rename(name = "m_Elapsed")]
31        pub m_elapsed: f32,
32        #[offset(64)]
33        #[rename(name = "m_Duration")]
34        pub m_duration: f32,
35        #[offset(68)]
36        #[rename(name = "m_CurveType")]
37        pub m_curve_type: crate::app::curve::Curve_Type,
38        #[offset(72)]
39        #[rename(name = "m_bGrounding")]
40        pub m_b_grounding: bool,
41    }
42}
43
44#[cfg(feature = "combat-characterjump-types")]
45pub use __types::*;
46
47#[cfg(feature = "combat-characterjump")]
48impl CharacterJump {
49    #[doc = "`ClampToBorder(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, bool)` overload"]
50    pub fn clamp_to_border(
51        start: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
52        goal: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
53        is_big: impl ::core::convert::Into<bool>,
54    ) -> crate::unity_engine::vector3::Vector3 {
55        unsafe {
56            ::unity::il2cpp_call!((::unity::module_base()+0x27eadc0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
57(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(start),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(goal),(bool)::core::convert::Into::into(is_big))
58        }
59    }
60
61    #[doc = "`ClampToBorder(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, f32)` overload"]
62    pub fn clamp_to_border_2(
63        start: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
64        goal: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
65        radius: impl ::core::convert::Into<f32>,
66    ) -> crate::unity_engine::vector3::Vector3 {
67        unsafe {
68            ::unity::il2cpp_call!((::unity::module_base()+0x27eae00usize)as*mut u8,crate::unity_engine::vector3::Vector3;
69(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(start),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(goal),(f32)::core::convert::Into::into(radius))
70        }
71    }
72
73    #[doc = "`ClampToBorder(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, crate::combat::character::Character)` overload"]
74    pub fn clamp_to_border_3(
75        start: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
76        goal: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
77        chr: impl ::core::convert::Into<crate::combat::character::Character>,
78    ) -> crate::unity_engine::vector3::Vector3 {
79        unsafe {
80            ::unity::il2cpp_call!((::unity::module_base()+0x27eafe0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
81(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(start),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(goal),(crate::combat::character::Character)::core::convert::Into::into(chr))
82        }
83    }
84
85    #[doc = "`ClampToBorder(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, f32, crate::unity_engine::vector3::Vector3)` overload"]
86    pub fn clamp_to_border_4(
87        start: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
88        goal: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
89        radius: impl ::core::convert::Into<f32>,
90        offset: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
91    ) -> crate::unity_engine::vector3::Vector3 {
92        unsafe {
93            ::unity::il2cpp_call!((::unity::module_base()+0x27eae30usize)as*mut u8,crate::unity_engine::vector3::Vector3;
94(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(start),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(goal),(f32)::core::convert::Into::into(radius),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(offset))
95        }
96    }
97}
98
99#[cfg(feature = "combat-characterjump")]
100pub trait ICharacterJumpMethods: ICharacterJump {
101    #[doc = "`get_IsEnd()` overload"]
102    fn get_is_end(self) -> bool {
103        unsafe {
104            let __receiver = <CharacterJump as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
105            ::unity::il2cpp_call!((::unity::module_base()+0x27eadb0usize)as*mut u8,bool;
106(CharacterJump)__receiver)
107        }
108    }
109    #[doc = "`JumpTo(crate::combat::character::Character, crate::unity_engine::vector3::Vector3, f32, f32, bool)` overload"]
110    fn jump_to(
111        self,
112        chr: impl ::core::convert::Into<crate::combat::character::Character>,
113        goal: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
114        pull_offset: impl ::core::convert::Into<f32>,
115        duration: impl ::core::convert::Into<f32>,
116        is_grounding: impl ::core::convert::Into<bool>,
117    ) -> () {
118        unsafe {
119            let __receiver = <CharacterJump as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120            ::unity::il2cpp_call!((::unity::module_base()+0x27eb150usize)as*mut u8,();
121(CharacterJump)__receiver,(crate::combat::character::Character)::core::convert::Into::into(chr),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(goal),(f32)::core::convert::Into::into(pull_offset),(f32)::core::convert::Into::into(duration),(bool)::core::convert::Into::into(is_grounding))
122        }
123    }
124    #[doc = "`JumpTo(crate::combat::character::Character, crate::unity_engine::transform::Transform, f32, f32, bool)` overload"]
125    fn jump_to_2(
126        self,
127        chr: impl ::core::convert::Into<crate::combat::character::Character>,
128        target: impl ::core::convert::Into<crate::unity_engine::transform::Transform>,
129        pull_offset: impl ::core::convert::Into<f32>,
130        duration: impl ::core::convert::Into<f32>,
131        is_grounding: impl ::core::convert::Into<bool>,
132    ) -> () {
133        unsafe {
134            let __receiver = <CharacterJump as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135            ::unity::il2cpp_call!((::unity::module_base()+0x27eb250usize)as*mut u8,();
136(CharacterJump)__receiver,(crate::combat::character::Character)::core::convert::Into::into(chr),(crate::unity_engine::transform::Transform)::core::convert::Into::into(target),(f32)::core::convert::Into::into(pull_offset),(f32)::core::convert::Into::into(duration),(bool)::core::convert::Into::into(is_grounding))
137        }
138    }
139    #[doc = "`Stop()` overload"]
140    fn stop(self) -> () {
141        unsafe {
142            let __receiver = <CharacterJump as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143            ::unity::il2cpp_call!((::unity::module_base()+0x27eb2e0usize)as*mut u8,();
144(CharacterJump)__receiver)
145        }
146    }
147    #[doc = "`Update(f32)` overload"]
148    fn update(self, delta_time: impl ::core::convert::Into<f32>) -> () {
149        unsafe {
150            let __receiver = <CharacterJump as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151            ::unity::il2cpp_call!((::unity::module_base()+0x27eb2f0usize)as*mut u8,();
152(CharacterJump)__receiver,(f32)::core::convert::Into::into(delta_time))
153        }
154    }
155    #[doc = "`.ctor()` overload"]
156    fn ctor(self) -> () {
157        unsafe {
158            let __receiver = <CharacterJump as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159            ::unity::il2cpp_call!((::unity::module_base()+0x27eb510usize)as*mut u8,();
160(CharacterJump)__receiver)
161        }
162    }
163}
164
165#[cfg(feature = "combat-characterjump")]
166impl<__T: ICharacterJump> ICharacterJumpMethods for __T {}
167
168#[cfg(feature = "combat-characterjump")]
169impl CharacterJump {
170    pub fn get_is_end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
171        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
172    }
173
174    pub fn clamp_to_border_method_info() -> &'static ::unity::il2cpp::MethodInfo {
175        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
176    }
177
178    pub fn clamp_to_border_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
179        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
180    }
181
182    pub fn clamp_to_border_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
183        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
184    }
185
186    pub fn clamp_to_border_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
187        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
188    }
189
190    pub fn jump_to_method_info() -> &'static ::unity::il2cpp::MethodInfo {
191        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
192    }
193
194    pub fn jump_to_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
195        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
196    }
197
198    pub fn stop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
199        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
200    }
201
202    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
203        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
204    }
205
206    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
207        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
208    }
209}
210
211#[cfg(feature = "combat-characterjump")]
212impl CharacterJump {
213    #[doc = "`.ctor()` — no args"]
214    pub fn new() -> Self {
215        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
216            panic!(
217                "{}
218::{}
219 failed to instantiate",
220                ::core::stringify!(CharacterJump),
221                ::core::stringify!(new),
222            )
223        });
224        <Self as ICharacterJumpMethods>::ctor(this);
225        this
226    }
227}
228
229#[cfg(feature = "combat-characterjump")]
230#[doc(hidden)]
231pub mod prelude {
232    pub use super::{CharacterJump, ICharacterJump, ICharacterJumpMethods};
233    pub use crate::system::object::IObject;
234    #[cfg(feature = "system-object")]
235    pub use crate::system::object::IObjectMethods;
236}