Skip to main content

engage/generated/combat/
actiontalk.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-actiontalk-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        combat::{
10            actionbase::{ActionBase, IActionBase},
11            state::{IState, State},
12        },
13        system::object::{IObject, Object},
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/actiontalk/ActionTalk.md"))]
17    #[::unity::class(namespace = "Combat", name = "ActionTalk")]
18    #[parent(crate::combat::actionbase::ActionBase)]
19    pub struct ActionTalk {
20        #[offset(40)]
21        #[rename(name = "isEnd")]
22        pub is_end: bool,
23        #[offset(48)]
24        #[rename(name = "calc")]
25        pub calc: crate::app::battlecalculator::BattleCalculator,
26    }
27}
28
29#[cfg(feature = "combat-actiontalk-types")]
30pub use __types::*;
31
32#[cfg(feature = "combat-actiontalk")]
33pub trait IActionTalkMethods: IActionTalk {
34    #[doc = "`get_Name()` overload"]
35    fn get_name(self) -> ::unity::Il2CppString {
36        unsafe {
37            let __receiver = <ActionTalk as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38            {
39                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
40                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
41                    panic!(
42                        "unity: virtual slot {}
43 out of range (vtable len {}
44) on the runtime class behind {}
45 (method `{}
46`)",
47                        5usize,
48                        __vt.len(),
49                        <ActionTalk as ::unity::ClassIdentity>::NAME,
50                        "get_Name",
51                    )
52                });
53                let __inner: extern "C" fn(ActionTalk, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
54                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
55                __inner(__receiver, __mi)
56            }
57        }
58    }
59    #[doc = "`.ctor(crate::combat::character::Character, crate::app::battlecalculator::BattleCalculator)` overload"]
60    fn ctor(
61        self,
62        chr: impl ::core::convert::Into<crate::combat::character::Character>,
63        calc: impl ::core::convert::Into<crate::app::battlecalculator::BattleCalculator>,
64    ) -> () {
65        unsafe {
66            let __receiver = <ActionTalk as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67            ::unity::il2cpp_call!((::unity::module_base()+0x2bc9150usize)as*mut u8,();
68(ActionTalk)__receiver,(crate::combat::character::Character)::core::convert::Into::into(chr),(crate::app::battlecalculator::BattleCalculator)::core::convert::Into::into(calc))
69        }
70    }
71    #[doc = "`OnEnter()` overload"]
72    fn on_enter(self) -> () {
73        unsafe {
74            let __receiver = <ActionTalk as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            {
76                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
77                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
78                    panic!(
79                        "unity: virtual slot {}
80 out of range (vtable len {}
81) on the runtime class behind {}
82 (method `{}
83`)",
84                        6usize,
85                        __vt.len(),
86                        <ActionTalk as ::unity::ClassIdentity>::NAME,
87                        "OnEnter",
88                    )
89                });
90                let __inner: extern "C" fn(ActionTalk, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
91                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
92                __inner(__receiver, __mi)
93            }
94        }
95    }
96    #[doc = "`OnUpdate()` overload"]
97    fn on_update(self) -> () {
98        unsafe {
99            let __receiver = <ActionTalk as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100            {
101                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
102                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
103                    panic!(
104                        "unity: virtual slot {}
105 out of range (vtable len {}
106) on the runtime class behind {}
107 (method `{}
108`)",
109                        7usize,
110                        __vt.len(),
111                        <ActionTalk as ::unity::ClassIdentity>::NAME,
112                        "OnUpdate",
113                    )
114                });
115                let __inner: extern "C" fn(ActionTalk, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
116                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
117                __inner(__receiver, __mi)
118            }
119        }
120    }
121    #[doc = "`OnExit()` overload"]
122    fn on_exit(self) -> () {
123        unsafe {
124            let __receiver = <ActionTalk as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125            {
126                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
127                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
128                    panic!(
129                        "unity: virtual slot {}
130 out of range (vtable len {}
131) on the runtime class behind {}
132 (method `{}
133`)",
134                        9usize,
135                        __vt.len(),
136                        <ActionTalk as ::unity::ClassIdentity>::NAME,
137                        "OnExit",
138                    )
139                });
140                let __inner: extern "C" fn(ActionTalk, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
141                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
142                __inner(__receiver, __mi)
143            }
144        }
145    }
146}
147
148#[cfg(feature = "combat-actiontalk")]
149impl<__T: IActionTalk> IActionTalkMethods for __T {}
150
151#[cfg(feature = "combat-actiontalk")]
152impl ActionTalk {
153    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
155    }
156
157    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
158        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
159    }
160
161    pub fn on_enter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
163    }
164
165    pub fn on_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
167    }
168
169    pub fn on_exit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
171    }
172}
173
174#[cfg(feature = "combat-actiontalk")]
175impl ActionTalk {
176    #[doc = "Direct (non-virtual) call to `ActionTalk`'s own `get_Name`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
177    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
178        let __mi = Self::get_name_method_info();
179        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
180        __inner(this.into(), ::core::option::Option::None)
181    }
182
183    #[doc = "Direct (non-virtual) call to `ActionTalk`'s own `OnEnter`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
184    pub unsafe fn on_enter(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
185        let __mi = Self::on_enter_method_info();
186        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
187        __inner(this.into(), ::core::option::Option::None)
188    }
189
190    #[doc = "Direct (non-virtual) call to `ActionTalk`'s own `OnUpdate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
191    pub unsafe fn on_update(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
192        let __mi = Self::on_update_method_info();
193        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
194        __inner(this.into(), ::core::option::Option::None)
195    }
196
197    #[doc = "Direct (non-virtual) call to `ActionTalk`'s own `OnExit`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
198    pub unsafe fn on_exit(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
199        let __mi = Self::on_exit_method_info();
200        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
201        __inner(this.into(), ::core::option::Option::None)
202    }
203}
204
205#[cfg(feature = "combat-actiontalk")]
206impl ActionTalk {
207    #[doc = "`.ctor(crate::combat::character::Character, crate::app::battlecalculator::BattleCalculator)` — overload selector"]
208    pub fn new(chr: crate::combat::character::Character, calc: crate::app::battlecalculator::BattleCalculator) -> Self {
209        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
210            panic!(
211                "{}
212::{}
213 failed to instantiate",
214                ::core::stringify!(ActionTalk),
215                ::core::stringify!(new),
216            )
217        });
218        <Self as IActionTalkMethods>::ctor(this, chr, calc);
219        this
220    }
221}
222
223#[cfg(feature = "combat-actiontalk")]
224#[doc(hidden)]
225pub mod prelude {
226    pub use super::{ActionTalk, IActionTalk, IActionTalkMethods};
227    #[cfg(feature = "combat-actionbase")]
228    pub use crate::combat::actionbase::IActionBaseMethods;
229    #[cfg(feature = "combat-state")]
230    pub use crate::combat::state::IStateMethods;
231    #[cfg(feature = "system-object")]
232    pub use crate::system::object::IObjectMethods;
233    pub use crate::{
234        combat::{actionbase::IActionBase, state::IState},
235        system::object::IObject,
236    };
237}