engage/generated/combat/
hitpredictor.rs1#[cfg(feature = "combat-hitpredictor-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/hitpredictor/HitPredictor.md"))]
11 #[::unity::class(namespace = "Combat", name = "HitPredictor")]
12 #[parent(crate::system::object::Object)]
13 pub struct HitPredictor {}
14}
15
16#[cfg(feature = "combat-hitpredictor-types")]
17pub use __types::*;
18
19#[cfg(feature = "combat-hitpredictor")]
20impl HitPredictor {
21 #[doc = "`CalcLocalHitTimeFromAttackStart(crate::combat::character::Character, crate::combat::skillstack::SkillStack, f32)` overload"]
22 pub fn calc_local_hit_time_from_attack_start(
23 chr: impl ::core::convert::Into<crate::combat::character::Character>,
24 skills: impl ::core::convert::Into<crate::combat::skillstack::SkillStack>,
25 anim_time: impl ::core::convert::Into<f32>,
26 ) -> f32 {
27 unsafe {
28 ::unity::il2cpp_call!((::unity::module_base()+0x21665e0usize)as*mut u8,f32;
29(crate::combat::character::Character)::core::convert::Into::into(chr),(crate::combat::skillstack::SkillStack)::core::convert::Into::into(skills),(f32)::core::convert::Into::into(anim_time))
30 }
31 }
32
33 #[doc = "`PredictHit(crate::combat::character::Character, f32)` overload"]
34 pub fn predict_hit(chr: impl ::core::convert::Into<crate::combat::character::Character>, start_time: impl ::core::convert::Into<f32>) -> f32 {
35 unsafe {
36 ::unity::il2cpp_call!((::unity::module_base()+0x2166720usize)as*mut u8,f32;
37(crate::combat::character::Character)::core::convert::Into::into(chr),(f32)::core::convert::Into::into(start_time))
38 }
39 }
40
41 #[doc = "`PredictShoot(crate::combat::character::Character, f32)` overload"]
42 pub fn predict_shoot(chr: impl ::core::convert::Into<crate::combat::character::Character>, start_time: impl ::core::convert::Into<f32>) -> f32 {
43 unsafe {
44 ::unity::il2cpp_call!((::unity::module_base()+0x21667d0usize)as*mut u8,f32;
45(crate::combat::character::Character)::core::convert::Into::into(chr),(f32)::core::convert::Into::into(start_time))
46 }
47 }
48
49 #[doc = "`PredictMagic(crate::combat::character::Character, f32)` overload"]
50 pub fn predict_magic(chr: impl ::core::convert::Into<crate::combat::character::Character>, start_time: impl ::core::convert::Into<f32>) -> f32 {
51 unsafe {
52 ::unity::il2cpp_call!((::unity::module_base()+0x21668a0usize)as*mut u8,f32;
53(crate::combat::character::Character)::core::convert::Into::into(chr),(f32)::core::convert::Into::into(start_time))
54 }
55 }
56}
57
58#[cfg(feature = "combat-hitpredictor")]
59impl HitPredictor {
60 pub fn calc_local_hit_time_from_attack_start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
61 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
62 }
63
64 pub fn predict_hit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
65 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
66 }
67
68 pub fn predict_shoot_method_info() -> &'static ::unity::il2cpp::MethodInfo {
69 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
70 }
71
72 pub fn predict_magic_method_info() -> &'static ::unity::il2cpp::MethodInfo {
73 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
74 }
75}
76
77#[cfg(feature = "combat-hitpredictor")]
78#[doc(hidden)]
79pub mod prelude {
80 pub use super::{HitPredictor, IHitPredictor};
81 pub use crate::system::object::IObject;
82 #[cfg(feature = "system-object")]
83 pub use crate::system::object::IObjectMethods;
84}