Skip to main content

engage/generated/combat/
actionobservable.rs

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