Skip to main content

engage/generated/combat/
actionattack.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-actionattack-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            actionobservable::{ActionObservable, IActionObservable},
13            state::{IState, State},
14        },
15        system::{
16            object::{IObject, Object},
17            r#enum::{Enum, IEnum},
18            valuetype::{IValueType, ValueType},
19        },
20    };
21
22    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/actionattack/ActionAttack.md"))]
23    #[::unity::class(namespace = "Combat", name = "ActionAttack")]
24    #[parent(crate::combat::actionobservable::ActionObservable)]
25    pub struct ActionAttack {
26        #[offset(48)]
27        #[rename(name = "m_ChainAttackTimeout")]
28        pub m_chain_attack_timeout: f32,
29        #[offset(52)]
30        #[rename(name = "m_ChainSpeedRate")]
31        pub m_chain_speed_rate: f32,
32        #[offset(56)]
33        #[rename(name = "m_Stage")]
34        pub m_stage: crate::combat::actionattack::ActionAttack_Stage,
35        #[offset(60)]
36        #[rename(name = "m_WorldArrivalTime")]
37        pub m_world_arrival_time: f32,
38        #[offset(64)]
39        #[rename(name = "m_FarAttackRangeSq")]
40        pub m_far_attack_range_sq: f32,
41        #[offset(72)]
42        #[rename(name = "m_ChainGuard")]
43        pub m_chain_guard: crate::combat::character::Character,
44        #[offset(80)]
45        #[rename(name = "m_bHitPassed")]
46        pub m_b_hit_passed: bool,
47        #[offset(84)]
48        #[rename(name = "m_TimeToNext")]
49        pub m_time_to_next: f32,
50        #[offset(88)]
51        #[rename(name = "m_IsNotRepelled")]
52        pub m_is_not_repelled: bool,
53        #[offset(89)]
54        #[rename(name = "m_再生ジャンプPassed")]
55        pub m_再生ジャンプpassed: bool,
56    }
57
58    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/actionattack/ActionAttack_Stage.md"))]
59    #[repr(C)]
60    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
61    pub struct ActionAttack_Stage {
62        pub value: i32,
63    }
64    impl ::unity::ClassIdentity for ActionAttack_Stage {
65        const NAME: &'static str = "ActionAttack.Stage";
66        const NAMESPACE: &'static str = "Combat";
67
68        fn class() -> ::unity::Class {
69            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
70            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
71        }
72    }
73    impl ::unity::IlType for ActionAttack_Stage {
74        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
75            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
76        }
77    }
78    impl ActionAttack_Stage {
79        pub fn none() -> Self {
80            Self { value: 0 }
81        }
82
83        pub fn approach() -> Self {
84            Self { value: 1 }
85        }
86
87        pub fn attack() -> Self {
88            Self { value: 2 }
89        }
90
91        pub fn end() -> Self {
92            Self { value: 3 }
93        }
94    }
95}
96
97#[cfg(feature = "combat-actionattack-types")]
98pub use __types::*;
99
100#[cfg(feature = "combat-actionattack")]
101pub trait IActionAttackMethods: IActionAttack {
102    #[doc = "`get_Name()` overload"]
103    fn get_name(self) -> ::unity::Il2CppString {
104        unsafe {
105            let __receiver = <ActionAttack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106            {
107                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
108                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
109                    panic!(
110                        "unity: virtual slot {}
111 out of range (vtable len {}
112) on the runtime class behind {}
113 (method `{}
114`)",
115                        5usize,
116                        __vt.len(),
117                        <ActionAttack as ::unity::ClassIdentity>::NAME,
118                        "get_Name",
119                    )
120                });
121                let __inner: extern "C" fn(ActionAttack, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
122                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
123                __inner(__receiver, __mi)
124            }
125        }
126    }
127    #[doc = "`.ctor(crate::combat::character::Character, crate::combat::phase::Phase, f32)` overload"]
128    fn ctor(
129        self,
130        chr: impl ::core::convert::Into<crate::combat::character::Character>,
131        phase: impl ::core::convert::Into<crate::combat::phase::Phase>,
132        time_to_chain_attack: impl ::core::convert::Into<f32>,
133    ) -> () {
134        unsafe {
135            let __receiver = <ActionAttack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
136            ::unity::il2cpp_call!((::unity::module_base()+0x2bbef50usize)as*mut u8,();
137(ActionAttack)__receiver,(crate::combat::character::Character)::core::convert::Into::into(chr),(crate::combat::phase::Phase)::core::convert::Into::into(phase),(f32)::core::convert::Into::into(time_to_chain_attack))
138        }
139    }
140    #[doc = "`NextStage()` overload"]
141    fn next_stage(self) -> () {
142        unsafe {
143            let __receiver = <ActionAttack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
144            ::unity::il2cpp_call!((::unity::module_base()+0x2bbefa0usize)as*mut u8,();
145(ActionAttack)__receiver)
146        }
147    }
148    #[doc = "`OnEnter()` overload"]
149    fn on_enter(self) -> () {
150        unsafe {
151            let __receiver = <ActionAttack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
152            {
153                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
154                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
155                    panic!(
156                        "unity: virtual slot {}
157 out of range (vtable len {}
158) on the runtime class behind {}
159 (method `{}
160`)",
161                        6usize,
162                        __vt.len(),
163                        <ActionAttack as ::unity::ClassIdentity>::NAME,
164                        "OnEnter",
165                    )
166                });
167                let __inner: extern "C" fn(ActionAttack, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
168                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
169                __inner(__receiver, __mi)
170            }
171        }
172    }
173    #[doc = "`OnUpdate()` overload"]
174    fn on_update(self) -> () {
175        unsafe {
176            let __receiver = <ActionAttack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
177            {
178                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
179                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
180                    panic!(
181                        "unity: virtual slot {}
182 out of range (vtable len {}
183) on the runtime class behind {}
184 (method `{}
185`)",
186                        7usize,
187                        __vt.len(),
188                        <ActionAttack as ::unity::ClassIdentity>::NAME,
189                        "OnUpdate",
190                    )
191                });
192                let __inner: extern "C" fn(ActionAttack, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
193                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
194                __inner(__receiver, __mi)
195            }
196        }
197    }
198    #[doc = "`OnExit()` overload"]
199    fn on_exit(self) -> () {
200        unsafe {
201            let __receiver = <ActionAttack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
202            {
203                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
204                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
205                    panic!(
206                        "unity: virtual slot {}
207 out of range (vtable len {}
208) on the runtime class behind {}
209 (method `{}
210`)",
211                        9usize,
212                        __vt.len(),
213                        <ActionAttack as ::unity::ClassIdentity>::NAME,
214                        "OnExit",
215                    )
216                });
217                let __inner: extern "C" fn(ActionAttack, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
218                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
219                __inner(__receiver, __mi)
220            }
221        }
222    }
223    #[doc = "`EnterApproach()` overload"]
224    fn enter_approach(self) -> () {
225        unsafe {
226            let __receiver = <ActionAttack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
227            ::unity::il2cpp_call!((::unity::module_base()+0x2bbefe0usize)as*mut u8,();
228(ActionAttack)__receiver)
229        }
230    }
231    #[doc = "`ChainGuardPresentation()` overload"]
232    fn chain_guard_presentation(self) -> () {
233        unsafe {
234            let __receiver = <ActionAttack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
235            ::unity::il2cpp_call!((::unity::module_base()+0x2bc1050usize)as*mut u8,();
236(ActionAttack)__receiver)
237        }
238    }
239    #[doc = "`UpdateApproach()` overload"]
240    fn update_approach(self) -> () {
241        unsafe {
242            let __receiver = <ActionAttack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
243            ::unity::il2cpp_call!((::unity::module_base()+0x2bc0c10usize)as*mut u8,();
244(ActionAttack)__receiver)
245        }
246    }
247    #[doc = "`get_AbortByInterrupt()` overload"]
248    fn get_abort_by_interrupt(self) -> bool {
249        unsafe {
250            let __receiver = <ActionAttack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
251            {
252                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
253                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
254                    panic!(
255                        "unity: virtual slot {}
256 out of range (vtable len {}
257) on the runtime class behind {}
258 (method `{}
259`)",
260                        11usize,
261                        __vt.len(),
262                        <ActionAttack as ::unity::ClassIdentity>::NAME,
263                        "get_AbortByInterrupt",
264                    )
265                });
266                let __inner: extern "C" fn(ActionAttack, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
267                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
268                __inner(__receiver, __mi)
269            }
270        }
271    }
272    #[doc = "`EnterAttack()` overload"]
273    fn enter_attack(self) -> () {
274        unsafe {
275            let __receiver = <ActionAttack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
276            ::unity::il2cpp_call!((::unity::module_base()+0x2bbf9d0usize)as*mut u8,();
277(ActionAttack)__receiver)
278        }
279    }
280    #[doc = "`UpdateAttack()` overload"]
281    fn update_attack(self) -> () {
282        unsafe {
283            let __receiver = <ActionAttack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
284            ::unity::il2cpp_call!((::unity::module_base()+0x2bc0d80usize)as*mut u8,();
285(ActionAttack)__receiver)
286        }
287    }
288    #[doc = "`Miss(crate::unity_engine::animationevent::AnimationEvent)` overload"]
289    fn miss(self, ev: impl ::core::convert::Into<crate::unity_engine::animationevent::AnimationEvent>) -> () {
290        unsafe {
291            let __receiver = <ActionAttack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
292            ::unity::il2cpp_call!((::unity::module_base()+0x2bc18a0usize)as*mut u8,();
293(ActionAttack)__receiver,(crate::unity_engine::animationevent::AnimationEvent)::core::convert::Into::into(ev))
294        }
295    }
296    #[doc = "`Hit(crate::unity_engine::animationevent::AnimationEvent)` overload"]
297    fn hit(self, ev: impl ::core::convert::Into<crate::unity_engine::animationevent::AnimationEvent>) -> () {
298        unsafe {
299            let __receiver = <ActionAttack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
300            ::unity::il2cpp_call!((::unity::module_base()+0x2bc2060usize)as*mut u8,();
301(ActionAttack)__receiver,(crate::unity_engine::animationevent::AnimationEvent)::core::convert::Into::into(ev))
302        }
303    }
304    #[doc = "`SelfHit(crate::unity_engine::animationevent::AnimationEvent)` overload"]
305    fn self_hit(self, ev: impl ::core::convert::Into<crate::unity_engine::animationevent::AnimationEvent>) -> () {
306        unsafe {
307            let __receiver = <ActionAttack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
308            ::unity::il2cpp_call!((::unity::module_base()+0x2bc3020usize)as*mut u8,();
309(ActionAttack)__receiver,(crate::unity_engine::animationevent::AnimationEvent)::core::convert::Into::into(ev))
310        }
311    }
312    #[doc = "`Guard(crate::unity_engine::animationevent::AnimationEvent)` overload"]
313    fn guard(self, ev: impl ::core::convert::Into<crate::unity_engine::animationevent::AnimationEvent>) -> () {
314        unsafe {
315            let __receiver = <ActionAttack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
316            ::unity::il2cpp_call!((::unity::module_base()+0x2bc3210usize)as*mut u8,();
317(ActionAttack)__receiver,(crate::unity_engine::animationevent::AnimationEvent)::core::convert::Into::into(ev))
318        }
319    }
320}
321
322#[cfg(feature = "combat-actionattack")]
323impl<__T: IActionAttack> IActionAttackMethods for __T {}
324
325#[cfg(feature = "combat-actionattack")]
326impl ActionAttack {
327    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
328        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
329    }
330
331    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
332        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
333    }
334
335    pub fn next_stage_method_info() -> &'static ::unity::il2cpp::MethodInfo {
336        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
337    }
338
339    pub fn on_enter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
340        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
341    }
342
343    pub fn on_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
344        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
345    }
346
347    pub fn on_exit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
348        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
349    }
350
351    pub fn enter_approach_method_info() -> &'static ::unity::il2cpp::MethodInfo {
352        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
353    }
354
355    pub fn chain_guard_presentation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
356        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
357    }
358
359    pub fn update_approach_method_info() -> &'static ::unity::il2cpp::MethodInfo {
360        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
361    }
362
363    pub fn get_abort_by_interrupt_method_info() -> &'static ::unity::il2cpp::MethodInfo {
364        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
365    }
366
367    pub fn enter_attack_method_info() -> &'static ::unity::il2cpp::MethodInfo {
368        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
369    }
370
371    pub fn update_attack_method_info() -> &'static ::unity::il2cpp::MethodInfo {
372        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
373    }
374
375    pub fn miss_method_info() -> &'static ::unity::il2cpp::MethodInfo {
376        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
377    }
378
379    pub fn hit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
380        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
381    }
382
383    pub fn self_hit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
384        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
385    }
386
387    pub fn guard_method_info() -> &'static ::unity::il2cpp::MethodInfo {
388        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
389    }
390}
391
392#[cfg(feature = "combat-actionattack")]
393impl ActionAttack {
394    #[doc = "Direct (non-virtual) call to `ActionAttack`'s own `get_Name`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
395    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
396        let __mi = Self::get_name_method_info();
397        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
398        __inner(this.into(), ::core::option::Option::None)
399    }
400
401    #[doc = "Direct (non-virtual) call to `ActionAttack`'s own `OnEnter`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
402    pub unsafe fn on_enter(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
403        let __mi = Self::on_enter_method_info();
404        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
405        __inner(this.into(), ::core::option::Option::None)
406    }
407
408    #[doc = "Direct (non-virtual) call to `ActionAttack`'s own `OnUpdate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
409    pub unsafe fn on_update(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
410        let __mi = Self::on_update_method_info();
411        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
412        __inner(this.into(), ::core::option::Option::None)
413    }
414
415    #[doc = "Direct (non-virtual) call to `ActionAttack`'s own `OnExit`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
416    pub unsafe fn on_exit(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
417        let __mi = Self::on_exit_method_info();
418        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
419        __inner(this.into(), ::core::option::Option::None)
420    }
421
422    #[doc = "Direct (non-virtual) call to `ActionAttack`'s own `get_AbortByInterrupt`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
423    pub unsafe fn get_abort_by_interrupt(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
424        let __mi = Self::get_abort_by_interrupt_method_info();
425        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
426        __inner(this.into(), ::core::option::Option::None)
427    }
428}
429
430#[cfg(feature = "combat-actionattack")]
431impl ActionAttack {
432    #[doc = "`.ctor(crate::combat::character::Character, crate::combat::phase::Phase, f32)` — overload selector"]
433    pub fn new(chr: crate::combat::character::Character, phase: crate::combat::phase::Phase, time_to_chain_attack: f32) -> Self {
434        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
435            panic!(
436                "{}
437::{}
438 failed to instantiate",
439                ::core::stringify!(ActionAttack),
440                ::core::stringify!(new),
441            )
442        });
443        <Self as IActionAttackMethods>::ctor(this, chr, phase, time_to_chain_attack);
444        this
445    }
446}
447
448#[cfg(feature = "combat-actionattack")]
449#[doc(hidden)]
450pub mod prelude {
451    pub use super::{ActionAttack, ActionAttack_Stage, IActionAttack, IActionAttackMethods};
452    #[cfg(feature = "combat-actionbase")]
453    pub use crate::combat::actionbase::IActionBaseMethods;
454    #[cfg(feature = "combat-actiondisposerholder")]
455    pub use crate::combat::actiondisposerholder::IActionDisposerHolderMethods;
456    #[cfg(feature = "combat-actionobservable")]
457    pub use crate::combat::actionobservable::IActionObservableMethods;
458    #[cfg(feature = "combat-state")]
459    pub use crate::combat::state::IStateMethods;
460    #[cfg(feature = "system-object")]
461    pub use crate::system::object::IObjectMethods;
462    #[cfg(feature = "system-enum")]
463    pub use crate::system::r#enum::IEnumMethods;
464    #[cfg(feature = "system-valuetype")]
465    pub use crate::system::valuetype::IValueTypeMethods;
466    pub use crate::{
467        combat::{actionbase::IActionBase, actiondisposerholder::IActionDisposerHolder, actionobservable::IActionObservable, state::IState},
468        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
469    };
470}