Skip to main content

engage/generated/combat/
actionbase.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-actionbase-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/actionbase/ActionBase.md"))]
14    #[::unity::class(namespace = "Combat", name = "ActionBase")]
15    #[parent(crate::combat::state::State)]
16    pub struct ActionBase {}
17}
18
19#[cfg(feature = "combat-actionbase-types")]
20pub use __types::*;
21
22#[cfg(feature = "combat-actionbase")]
23pub trait IActionBaseMethods: IActionBase {
24    #[doc = "`get_CP()` overload"]
25    fn get_cp(self) -> crate::combat::character::Character {
26        unsafe {
27            let __receiver = <ActionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
28            ::unity::il2cpp_call!((::unity::module_base()+0x2bc3f00usize)as*mut u8,crate::combat::character::Character;
29(ActionBase)__receiver)
30        }
31    }
32    #[doc = "`set_CP(crate::combat::character::Character)` overload"]
33    fn set_cp(self, value: impl ::core::convert::Into<crate::combat::character::Character>) -> () {
34        unsafe {
35            let __receiver = <ActionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
36            ::unity::il2cpp_call!((::unity::module_base()+0x2bc3f10usize)as*mut u8,();
37(ActionBase)__receiver,(crate::combat::character::Character)::core::convert::Into::into(value))
38        }
39    }
40    #[doc = "`get_m_Phase()` overload"]
41    fn get_m_phase(self) -> crate::combat::phase::Phase {
42        unsafe {
43            let __receiver = <ActionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44            ::unity::il2cpp_call!((::unity::module_base()+0x2bc3f20usize)as*mut u8,crate::combat::phase::Phase;
45(ActionBase)__receiver)
46        }
47    }
48    #[doc = "`set_m_Phase(crate::combat::phase::Phase)` overload"]
49    fn set_m_phase(self, value: impl ::core::convert::Into<crate::combat::phase::Phase>) -> () {
50        unsafe {
51            let __receiver = <ActionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
52            ::unity::il2cpp_call!((::unity::module_base()+0x2bc3f30usize)as*mut u8,();
53(ActionBase)__receiver,(crate::combat::phase::Phase)::core::convert::Into::into(value))
54        }
55    }
56    #[doc = "`.ctor(crate::combat::character::Character, crate::combat::phase::Phase)` overload"]
57    fn ctor(
58        self,
59        chr: impl ::core::convert::Into<crate::combat::character::Character>,
60        phase: impl ::core::convert::Into<crate::combat::phase::Phase>,
61    ) -> () {
62        unsafe {
63            let __receiver = <ActionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64            ::unity::il2cpp_call!((::unity::module_base()+0x2bc3f40usize)as*mut u8,();
65(ActionBase)__receiver,(crate::combat::character::Character)::core::convert::Into::into(chr),(crate::combat::phase::Phase)::core::convert::Into::into(phase))
66        }
67    }
68    #[doc = "`SetPhaseForRush(crate::combat::phase::Phase)` overload"]
69    fn set_phase_for_rush(self, phase: impl ::core::convert::Into<crate::combat::phase::Phase>) -> () {
70        unsafe {
71            let __receiver = <ActionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72            ::unity::il2cpp_call!((::unity::module_base()+0x2bc3940usize)as*mut u8,();
73(ActionBase)__receiver,(crate::combat::phase::Phase)::core::convert::Into::into(phase))
74        }
75    }
76}
77
78#[cfg(feature = "combat-actionbase")]
79impl<__T: IActionBase> IActionBaseMethods for __T {}
80
81#[cfg(feature = "combat-actionbase")]
82impl ActionBase {
83    pub fn get_cp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
84        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
85    }
86
87    pub fn set_cp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
88        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
89    }
90
91    pub fn get_m_phase_method_info() -> &'static ::unity::il2cpp::MethodInfo {
92        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
93    }
94
95    pub fn set_m_phase_method_info() -> &'static ::unity::il2cpp::MethodInfo {
96        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
97    }
98
99    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
101    }
102
103    pub fn set_phase_for_rush_method_info() -> &'static ::unity::il2cpp::MethodInfo {
104        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
105    }
106}
107
108#[cfg(feature = "combat-actionbase")]
109impl ActionBase {
110    #[doc = "`.ctor(crate::combat::character::Character, crate::combat::phase::Phase)` — overload selector"]
111    pub fn new(chr: crate::combat::character::Character, phase: crate::combat::phase::Phase) -> Self {
112        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
113            panic!(
114                "{}
115::{}
116 failed to instantiate",
117                ::core::stringify!(ActionBase),
118                ::core::stringify!(new),
119            )
120        });
121        <Self as IActionBaseMethods>::ctor(this, chr, phase);
122        this
123    }
124}
125
126#[cfg(feature = "combat-actionbase")]
127#[doc(hidden)]
128pub mod prelude {
129    pub use super::{ActionBase, IActionBase, IActionBaseMethods};
130    #[cfg(feature = "combat-state")]
131    pub use crate::combat::state::IStateMethods;
132    #[cfg(feature = "system-object")]
133    pub use crate::system::object::IObjectMethods;
134    pub use crate::{combat::state::IState, system::object::IObject};
135}