engage/generated/combat/
actioninvoke2_1.rs1#[cfg(feature = "combat-actioninvoke2_1-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 combat::state::{IState, State},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/actioninvoke2_1/ActionInvoke2_1.md"))]
14 #[::unity::class(namespace = "Combat", name = "ActionInvoke2`1")]
15 #[parent(crate::combat::state::State)]
16 #[parent(crate::system::object::Object)]
17 pub struct ActionInvoke2_1<T0: ::unity::ClassIdentity> {
18 #[rename(name = "m_Func")]
19 pub m_func: crate::system::action_1::Action_1<T0>,
20 #[rename(name = "m_Arg")]
21 pub m_arg: T0,
22 }
23}
24
25#[cfg(feature = "combat-actioninvoke2_1-types")]
26pub use __types::*;
27
28#[cfg(feature = "combat-actioninvoke2_1")]
29#[::unity::methods]
30impl<T0: ::unity::ClassIdentity> ActionInvoke2_1<T0> {
31 #[doc = "`get_Name()` overload"]
32 #[method(name = "get_Name", args = 0)]
33 pub fn get_name(self) -> ::unity::Il2CppString;
34
35 #[doc = "`.ctor(T0, crate::system::action_1::Action_1<T0>)` overload"]
36 #[method(name = ".ctor", args = 2)]
37 pub fn ctor(self, arg: T0, func: crate::system::action_1::Action_1<T0>) -> ();
38
39 #[doc = "`OnEnter()` overload"]
40 #[method(name = "OnEnter", args = 0)]
41 pub fn on_enter(self) -> ();
42}
43
44#[cfg(feature = "combat-actioninvoke2_1")]
45impl<T0: ::unity::ClassIdentity> ActionInvoke2_1<T0> {
46 #[doc = "`.ctor(T0, crate::system::action_1::Action_1<T0>)` — overload selector"]
47 pub fn new(arg: T0, func: crate::system::action_1::Action_1<T0>) -> Self {
48 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
49 panic!(
50 "{}
51::{}
52 failed to instantiate",
53 ::core::stringify!(ActionInvoke2_1),
54 ::core::stringify!(new),
55 )
56 });
57 <Self as IActionInvoke2_1Methods<T0>>::ctor(this, arg, func);
58 this
59 }
60}
61
62#[cfg(feature = "combat-actioninvoke2_1")]
63#[doc(hidden)]
64pub mod prelude {
65 pub use super::{ActionInvoke2_1, IActionInvoke2_1, IActionInvoke2_1Methods};
66 #[cfg(feature = "combat-state")]
67 pub use crate::combat::state::IStateMethods;
68 #[cfg(feature = "system-object")]
69 pub use crate::system::object::IObjectMethods;
70 pub use crate::{combat::state::IState, system::object::IObject};
71}