Skip to main content

engage/generated/combat/
actionplay.rs

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