engage/generated/combat/
parabola.rs1#[cfg(feature = "combat-parabola-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/parabola/Parabola.md"))]
11 #[::unity::class(namespace = "Combat", name = "Parabola")]
12 #[parent(crate::system::object::Object)]
13 pub struct Parabola {}
14}
15
16#[cfg(feature = "combat-parabola-types")]
17pub use __types::*;
18
19#[cfg(feature = "combat-parabola")]
20impl Parabola {
21 #[doc = "`Kmph_mps(f32)` overload"]
22 pub fn kmph_mps(kmph: impl ::core::convert::Into<f32>) -> f32 {
23 unsafe {
24 ::unity::il2cpp_call!((::unity::module_base()+0x1f24d40usize)as*mut u8,f32;
25(f32)::core::convert::Into::into(kmph))
26 }
27 }
28
29 #[doc = "`CalculateTrajectory(f32, f32, *mutcrate::unity_engine::vector3::Vector3)` overload"]
30 pub fn calculate_trajectory(
31 time: impl ::core::convert::Into<f32>,
32 mass: impl ::core::convert::Into<f32>,
33 ) -> (crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3) {
34 unsafe {
35 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::vector3::Vector3>::uninit();
36 let __ret = {
37 ::unity::il2cpp_call!((::unity::module_base()+0x1f24bd0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
38(f32)::core::convert::Into::into(time),(f32)::core::convert::Into::into(mass),(*mut crate::unity_engine::vector3::Vector3)__out_0.as_mut_ptr())
39 };
40 (__ret, __out_0.assume_init())
41 }
42 }
43
44 #[doc = "`CalculateTrajectoryVelocity2D(*mutcrate::unity_engine::vector2::Vector2, f32)` overload"]
45 pub fn calculate_trajectory_velocity2_d(
46 power: impl ::core::convert::Into<f32>,
47 ) -> (crate::unity_engine::vector2::Vector2, crate::unity_engine::vector2::Vector2) {
48 unsafe {
49 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::vector2::Vector2>::uninit();
50 let __ret = {
51 ::unity::il2cpp_call!((::unity::module_base()+0x1f24d60usize)as*mut u8,crate::unity_engine::vector2::Vector2;
52(*mut crate::unity_engine::vector2::Vector2)__out_0.as_mut_ptr(),(f32)::core::convert::Into::into(power))
53 };
54 (__ret, __out_0.assume_init())
55 }
56 }
57
58 #[doc = "`CalculateTrajectoryVelocity(crate::unity_engine::vector3::Vector3, f32, *mutf32)` overload"]
59 pub fn calculate_trajectory_velocity(
60 target: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
61 power: impl ::core::convert::Into<f32>,
62 ) -> (crate::unity_engine::vector3::Vector3, f32) {
63 unsafe {
64 let mut __out_0 = ::core::mem::MaybeUninit::<f32>::uninit();
65 let __ret = {
66 ::unity::il2cpp_call!((::unity::module_base()+0x1f248a0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
67(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(target),(f32)::core::convert::Into::into(power),(*mut f32)__out_0.as_mut_ptr())
68 };
69 (__ret, __out_0.assume_init())
70 }
71 }
72
73 #[doc = "`CalculateTrajectoryVelocityByTime(crate::unity_engine::vector3::Vector3, f32)` overload"]
74 pub fn calculate_trajectory_velocity_by_time(
75 target: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
76 time: impl ::core::convert::Into<f32>,
77 ) -> crate::unity_engine::vector3::Vector3 {
78 unsafe {
79 ::unity::il2cpp_call!((::unity::module_base()+0x1f24cd0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
80(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(target),(f32)::core::convert::Into::into(time))
81 }
82 }
83}
84
85#[cfg(feature = "combat-parabola")]
86pub trait IParabolaMethods: IParabola {
87 #[doc = "`get_in_Speed()` overload"]
88 fn get_in_speed(self) -> f32 {
89 unsafe {
90 let __receiver = <Parabola as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91 ::unity::il2cpp_call!((::unity::module_base()+0x1f24660usize)as*mut u8,f32;
92(Parabola)__receiver)
93 }
94 }
95 #[doc = "`set_in_Speed(f32)` overload"]
96 fn set_in_speed(self, value: impl ::core::convert::Into<f32>) -> () {
97 unsafe {
98 let __receiver = <Parabola as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99 ::unity::il2cpp_call!((::unity::module_base()+0x1f24670usize)as*mut u8,();
100(Parabola)__receiver,(f32)::core::convert::Into::into(value))
101 }
102 }
103 #[doc = "`get_in_Mass()` overload"]
104 fn get_in_mass(self) -> f32 {
105 unsafe {
106 let __receiver = <Parabola as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107 ::unity::il2cpp_call!((::unity::module_base()+0x1f24680usize)as*mut u8,f32;
108(Parabola)__receiver)
109 }
110 }
111 #[doc = "`set_in_Mass(f32)` overload"]
112 fn set_in_mass(self, value: impl ::core::convert::Into<f32>) -> () {
113 unsafe {
114 let __receiver = <Parabola as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115 ::unity::il2cpp_call!((::unity::module_base()+0x1f24690usize)as*mut u8,();
116(Parabola)__receiver,(f32)::core::convert::Into::into(value))
117 }
118 }
119 #[doc = "`get_in_StartPos()` overload"]
120 fn get_in_start_pos(self) -> crate::unity_engine::vector3::Vector3 {
121 unsafe {
122 let __receiver = <Parabola as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123 ::unity::il2cpp_call!((::unity::module_base()+0x1f246a0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
124(Parabola)__receiver)
125 }
126 }
127 #[doc = "`set_in_StartPos(crate::unity_engine::vector3::Vector3)` overload"]
128 fn set_in_start_pos(self, value: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
129 unsafe {
130 let __receiver = <Parabola as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131 ::unity::il2cpp_call!((::unity::module_base()+0x1f246b0usize)as*mut u8,();
132(Parabola)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(value))
133 }
134 }
135 #[doc = "`get_in_EndPos()` overload"]
136 fn get_in_end_pos(self) -> crate::unity_engine::vector3::Vector3 {
137 unsafe {
138 let __receiver = <Parabola as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
139 ::unity::il2cpp_call!((::unity::module_base()+0x1f246c0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
140(Parabola)__receiver)
141 }
142 }
143 #[doc = "`set_in_EndPos(crate::unity_engine::vector3::Vector3)` overload"]
144 fn set_in_end_pos(self, value: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
145 unsafe {
146 let __receiver = <Parabola as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147 ::unity::il2cpp_call!((::unity::module_base()+0x1f246d0usize)as*mut u8,();
148(Parabola)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(value))
149 }
150 }
151 #[doc = "`get_in_WeaponLength()` overload"]
152 fn get_in_weapon_length(self) -> f32 {
153 unsafe {
154 let __receiver = <Parabola as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155 ::unity::il2cpp_call!((::unity::module_base()+0x1f246e0usize)as*mut u8,f32;
156(Parabola)__receiver)
157 }
158 }
159 #[doc = "`set_in_WeaponLength(f32)` overload"]
160 fn set_in_weapon_length(self, value: impl ::core::convert::Into<f32>) -> () {
161 unsafe {
162 let __receiver = <Parabola as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163 ::unity::il2cpp_call!((::unity::module_base()+0x1f246f0usize)as*mut u8,();
164(Parabola)__receiver,(f32)::core::convert::Into::into(value))
165 }
166 }
167 #[doc = "`get_out_FlyingTime()` overload"]
168 fn get_out_flying_time(self) -> f32 {
169 unsafe {
170 let __receiver = <Parabola as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
171 ::unity::il2cpp_call!((::unity::module_base()+0x1f24700usize)as*mut u8,f32;
172(Parabola)__receiver)
173 }
174 }
175 #[doc = "`set_out_FlyingTime(f32)` overload"]
176 fn set_out_flying_time(self, value: impl ::core::convert::Into<f32>) -> () {
177 unsafe {
178 let __receiver = <Parabola as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
179 ::unity::il2cpp_call!((::unity::module_base()+0x1f24710usize)as*mut u8,();
180(Parabola)__receiver,(f32)::core::convert::Into::into(value))
181 }
182 }
183 #[doc = "`get_out_InitialVelocity()` overload"]
184 fn get_out_initial_velocity(self) -> crate::unity_engine::vector3::Vector3 {
185 unsafe {
186 let __receiver = <Parabola as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
187 ::unity::il2cpp_call!((::unity::module_base()+0x1f24720usize)as*mut u8,crate::unity_engine::vector3::Vector3;
188(Parabola)__receiver)
189 }
190 }
191 #[doc = "`set_out_InitialVelocity(crate::unity_engine::vector3::Vector3)` overload"]
192 fn set_out_initial_velocity(self, value: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
193 unsafe {
194 let __receiver = <Parabola as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
195 ::unity::il2cpp_call!((::unity::module_base()+0x1f24730usize)as*mut u8,();
196(Parabola)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(value))
197 }
198 }
199 #[doc = "`get_out_WorldHitDir()` overload"]
200 fn get_out_world_hit_dir(self) -> crate::unity_engine::vector3::Vector3 {
201 unsafe {
202 let __receiver = <Parabola as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
203 ::unity::il2cpp_call!((::unity::module_base()+0x1f24740usize)as*mut u8,crate::unity_engine::vector3::Vector3;
204(Parabola)__receiver)
205 }
206 }
207 #[doc = "`set_out_WorldHitDir(crate::unity_engine::vector3::Vector3)` overload"]
208 fn set_out_world_hit_dir(self, value: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
209 unsafe {
210 let __receiver = <Parabola as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
211 ::unity::il2cpp_call!((::unity::module_base()+0x1f24750usize)as*mut u8,();
212(Parabola)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(value))
213 }
214 }
215 #[doc = "`get_WorldCentroidOffset()` overload"]
216 fn get_world_centroid_offset(self) -> crate::unity_engine::vector3::Vector3 {
217 unsafe {
218 let __receiver = <Parabola as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
219 ::unity::il2cpp_call!((::unity::module_base()+0x1f24760usize)as*mut u8,crate::unity_engine::vector3::Vector3;
220(Parabola)__receiver)
221 }
222 }
223 #[doc = "`Calculate()` overload"]
224 fn calculate(self) -> () {
225 unsafe {
226 let __receiver = <Parabola as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
227 ::unity::il2cpp_call!((::unity::module_base()+0x1f24780usize)as*mut u8,();
228(Parabola)__receiver)
229 }
230 }
231 #[doc = "`CalcHitDir()` overload"]
232 fn calc_hit_dir(self) -> crate::unity_engine::vector3::Vector3 {
233 unsafe {
234 let __receiver = <Parabola as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
235 ::unity::il2cpp_call!((::unity::module_base()+0x1f24b00usize)as*mut u8,crate::unity_engine::vector3::Vector3;
236(Parabola)__receiver)
237 }
238 }
239 #[doc = "`RecalcInitialVelocity(f32)` overload"]
240 fn recalc_initial_velocity(self, flying_time: impl ::core::convert::Into<f32>) -> () {
241 unsafe {
242 let __receiver = <Parabola as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
243 ::unity::il2cpp_call!((::unity::module_base()+0x1f24c40usize)as*mut u8,();
244(Parabola)__receiver,(f32)::core::convert::Into::into(flying_time))
245 }
246 }
247 #[doc = "`.ctor()` overload"]
248 fn ctor(self) -> () {
249 unsafe {
250 let __receiver = <Parabola as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
251 ::unity::il2cpp_call!((::unity::module_base()+0x1f24e90usize)as*mut u8,();
252(Parabola)__receiver)
253 }
254 }
255}
256
257#[cfg(feature = "combat-parabola")]
258impl<__T: IParabola> IParabolaMethods for __T {}
259
260#[cfg(feature = "combat-parabola")]
261impl Parabola {
262 pub fn get_in_speed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
263 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
264 }
265
266 pub fn set_in_speed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
267 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
268 }
269
270 pub fn get_in_mass_method_info() -> &'static ::unity::il2cpp::MethodInfo {
271 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
272 }
273
274 pub fn set_in_mass_method_info() -> &'static ::unity::il2cpp::MethodInfo {
275 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
276 }
277
278 pub fn get_in_start_pos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
280 }
281
282 pub fn set_in_start_pos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
283 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
284 }
285
286 pub fn get_in_end_pos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
287 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
288 }
289
290 pub fn set_in_end_pos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
291 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
292 }
293
294 pub fn get_in_weapon_length_method_info() -> &'static ::unity::il2cpp::MethodInfo {
295 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
296 }
297
298 pub fn set_in_weapon_length_method_info() -> &'static ::unity::il2cpp::MethodInfo {
299 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
300 }
301
302 pub fn get_out_flying_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
303 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
304 }
305
306 pub fn set_out_flying_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
307 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
308 }
309
310 pub fn get_out_initial_velocity_method_info() -> &'static ::unity::il2cpp::MethodInfo {
311 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
312 }
313
314 pub fn set_out_initial_velocity_method_info() -> &'static ::unity::il2cpp::MethodInfo {
315 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
316 }
317
318 pub fn get_out_world_hit_dir_method_info() -> &'static ::unity::il2cpp::MethodInfo {
319 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
320 }
321
322 pub fn set_out_world_hit_dir_method_info() -> &'static ::unity::il2cpp::MethodInfo {
323 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
324 }
325
326 pub fn get_world_centroid_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
327 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
328 }
329
330 pub fn calculate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
331 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
332 }
333
334 pub fn calc_hit_dir_method_info() -> &'static ::unity::il2cpp::MethodInfo {
335 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
336 }
337
338 pub fn recalc_initial_velocity_method_info() -> &'static ::unity::il2cpp::MethodInfo {
339 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
340 }
341
342 pub fn kmph_mps_method_info() -> &'static ::unity::il2cpp::MethodInfo {
343 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
344 }
345
346 pub fn calculate_trajectory_method_info() -> &'static ::unity::il2cpp::MethodInfo {
347 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
348 }
349
350 pub fn calculate_trajectory_velocity2_d_method_info() -> &'static ::unity::il2cpp::MethodInfo {
351 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
352 }
353
354 pub fn calculate_trajectory_velocity_method_info() -> &'static ::unity::il2cpp::MethodInfo {
355 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
356 }
357
358 pub fn calculate_trajectory_velocity_by_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
359 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
360 }
361
362 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
363 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
364 }
365}
366
367#[cfg(feature = "combat-parabola")]
368impl Parabola {
369 #[doc = "`.ctor()` — no args"]
370 pub fn new() -> Self {
371 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
372 panic!(
373 "{}
374::{}
375 failed to instantiate",
376 ::core::stringify!(Parabola),
377 ::core::stringify!(new),
378 )
379 });
380 <Self as IParabolaMethods>::ctor(this);
381 this
382 }
383}
384
385#[cfg(feature = "combat-parabola")]
386#[doc(hidden)]
387pub mod prelude {
388 pub use super::{IParabola, IParabolaMethods, Parabola};
389 pub use crate::system::object::IObject;
390 #[cfg(feature = "system-object")]
391 pub use crate::system::object::IObjectMethods;
392}