Skip to main content

engage/generated/combat/
motionselect.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-motionselect-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/motionselect/MotionSelect.md"))]
11    #[::unity::class(namespace = "Combat", name = "MotionSelect")]
12    #[parent(crate::system::object::Object)]
13    pub struct MotionSelect {}
14}
15
16#[cfg(feature = "combat-motionselect-types")]
17pub use __types::*;
18
19#[cfg(feature = "combat-motionselect")]
20impl MotionSelect {
21    #[doc = "`SuggestDamage(crate::combat::phase::Phase, crate::unity_engine::animationevent::AnimationEvent)` overload"]
22    pub fn suggest_damage(
23        phase: impl ::core::convert::Into<crate::combat::phase::Phase>,
24        ev: impl ::core::convert::Into<crate::unity_engine::animationevent::AnimationEvent>,
25    ) -> i32 {
26        unsafe {
27            ::unity::il2cpp_call!((::unity::module_base()+0x277d200usize)as*mut u8,i32;
28(crate::combat::phase::Phase)::core::convert::Into::into(phase),(crate::unity_engine::animationevent::AnimationEvent)::core::convert::Into::into(ev))
29        }
30    }
31}
32
33#[cfg(feature = "combat-motionselect")]
34pub trait IMotionSelectMethods: IMotionSelect {
35    #[doc = "`.ctor()` overload"]
36    fn ctor(self) -> () {
37        unsafe {
38            let __receiver = <MotionSelect as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
39            ::unity::il2cpp_call!((::unity::module_base()+0x277d540usize)as*mut u8,();
40(MotionSelect)__receiver)
41        }
42    }
43}
44
45#[cfg(feature = "combat-motionselect")]
46impl<__T: IMotionSelect> IMotionSelectMethods for __T {}
47
48#[cfg(feature = "combat-motionselect")]
49impl MotionSelect {
50    pub fn suggest_damage_method_info() -> &'static ::unity::il2cpp::MethodInfo {
51        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
52    }
53
54    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
55        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
56    }
57}
58
59#[cfg(feature = "combat-motionselect")]
60impl MotionSelect {
61    #[doc = "`.ctor()` — no args"]
62    pub fn new() -> Self {
63        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
64            panic!(
65                "{}
66::{}
67 failed to instantiate",
68                ::core::stringify!(MotionSelect),
69                ::core::stringify!(new),
70            )
71        });
72        <Self as IMotionSelectMethods>::ctor(this);
73        this
74    }
75}
76
77#[cfg(feature = "combat-motionselect")]
78#[doc(hidden)]
79pub mod prelude {
80    pub use super::{IMotionSelect, IMotionSelectMethods, MotionSelect};
81    pub use crate::system::object::IObject;
82    #[cfg(feature = "system-object")]
83    pub use crate::system::object::IObjectMethods;
84}