Skip to main content

engage/generated/combat/
deco_rodcollapse.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-deco_rodcollapse-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        combat::{
10            deco_rod::{Deco_Rod, IDeco_Rod},
11            decorator::{Decorator, IDecorator},
12        },
13        system::object::{IObject, Object},
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/deco_rodcollapse/Deco_RodCollapse.md"))]
17    #[::unity::class(namespace = "Combat", name = "Deco_RodCollapse")]
18    #[parent(crate::combat::deco_rod::Deco_Rod)]
19    pub struct Deco_RodCollapse {}
20}
21
22#[cfg(feature = "combat-deco_rodcollapse-types")]
23pub use __types::*;
24
25#[cfg(feature = "combat-deco_rodcollapse")]
26impl Deco_RodCollapse {
27    #[doc = "`IsAvailable(crate::combat::decoratorargs::DecoratorArgs)` overload"]
28    pub fn is_available(that: impl ::core::convert::Into<crate::combat::decoratorargs::DecoratorArgs>) -> bool {
29        unsafe {
30            ::unity::il2cpp_call!((::unity::module_base()+0x1ce8320usize)as*mut u8,bool;
31(crate::combat::decoratorargs::DecoratorArgs)::core::convert::Into::into(that))
32        }
33    }
34}
35
36#[cfg(feature = "combat-deco_rodcollapse")]
37pub trait IDeco_RodCollapseMethods: IDeco_RodCollapse {
38    #[doc = "`get_Name()` overload"]
39    fn get_name(self) -> ::unity::Il2CppString {
40        unsafe {
41            let __receiver = <Deco_RodCollapse as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
42            {
43                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
44                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
45                    panic!(
46                        "unity: virtual slot {}
47 out of range (vtable len {}
48) on the runtime class behind {}
49 (method `{}
50`)",
51                        4usize,
52                        __vt.len(),
53                        <Deco_RodCollapse as ::unity::ClassIdentity>::NAME,
54                        "get_Name",
55                    )
56                });
57                let __inner: extern "C" fn(Deco_RodCollapse, ::unity::OptionalMethod) -> ::unity::Il2CppString =
58                    ::core::mem::transmute(__vi.method_ptr);
59                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
60                __inner(__receiver, __mi)
61            }
62        }
63    }
64    #[doc = "`OnEnemyDamage_(crate::unity_engine::animationevent::AnimationEvent)` overload"]
65    fn on_enemy_damage(self, ev: impl ::core::convert::Into<crate::unity_engine::animationevent::AnimationEvent>) -> () {
66        unsafe {
67            let __receiver = <Deco_RodCollapse as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68            {
69                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
70                let __vi = *__vt.get(14usize).unwrap_or_else(|| {
71                    panic!(
72                        "unity: virtual slot {}
73 out of range (vtable len {}
74) on the runtime class behind {}
75 (method `{}
76`)",
77                        14usize,
78                        __vt.len(),
79                        <Deco_RodCollapse as ::unity::ClassIdentity>::NAME,
80                        "OnEnemyDamage_",
81                    )
82                });
83                let __inner: extern "C" fn(Deco_RodCollapse, crate::unity_engine::animationevent::AnimationEvent, ::unity::OptionalMethod) -> () =
84                    ::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, ::core::convert::Into::into(ev), __mi)
87            }
88        }
89    }
90    #[doc = "`.ctor()` overload"]
91    fn ctor(self) -> () {
92        unsafe {
93            let __receiver = <Deco_RodCollapse as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
94            ::unity::il2cpp_call!((::unity::module_base()+0x1ce85c0usize)as*mut u8,();
95(Deco_RodCollapse)__receiver)
96        }
97    }
98}
99
100#[cfg(feature = "combat-deco_rodcollapse")]
101impl<__T: IDeco_RodCollapse> IDeco_RodCollapseMethods for __T {}
102
103#[cfg(feature = "combat-deco_rodcollapse")]
104impl Deco_RodCollapse {
105    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
107    }
108
109    pub fn is_available_method_info() -> &'static ::unity::il2cpp::MethodInfo {
110        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
111    }
112
113    pub fn on_enemy_damage_method_info() -> &'static ::unity::il2cpp::MethodInfo {
114        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
115    }
116
117    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
118        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
119    }
120}
121
122#[cfg(feature = "combat-deco_rodcollapse")]
123impl Deco_RodCollapse {
124    #[doc = "Direct (non-virtual) call to `Deco_RodCollapse`'s own `get_Name`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
125    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
126        let __mi = Self::get_name_method_info();
127        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
128        __inner(this.into(), ::core::option::Option::None)
129    }
130
131    #[doc = "Direct (non-virtual) call to `Deco_RodCollapse`'s own `OnEnemyDamage_`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
132    pub unsafe fn on_enemy_damage(
133        this: impl ::core::convert::Into<::unity::IlInstance>,
134        ev: crate::unity_engine::animationevent::AnimationEvent,
135    ) -> () {
136        let __mi = Self::on_enemy_damage_method_info();
137        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::animationevent::AnimationEvent, ::unity::OptionalMethod) -> () =
138            ::core::mem::transmute(__mi.method_ptr);
139        __inner(this.into(), ev, ::core::option::Option::None)
140    }
141}
142
143#[cfg(feature = "combat-deco_rodcollapse")]
144impl Deco_RodCollapse {
145    #[doc = "`.ctor()` — no args"]
146    pub fn new() -> Self {
147        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
148            panic!(
149                "{}
150::{}
151 failed to instantiate",
152                ::core::stringify!(Deco_RodCollapse),
153                ::core::stringify!(new),
154            )
155        });
156        <Self as IDeco_RodCollapseMethods>::ctor(this);
157        this
158    }
159}
160
161#[cfg(feature = "combat-deco_rodcollapse")]
162#[doc(hidden)]
163pub mod prelude {
164    pub use super::{Deco_RodCollapse, IDeco_RodCollapse, IDeco_RodCollapseMethods};
165    #[cfg(feature = "combat-deco_rod")]
166    pub use crate::combat::deco_rod::IDeco_RodMethods;
167    #[cfg(feature = "combat-decorator")]
168    pub use crate::combat::decorator::IDecoratorMethods;
169    #[cfg(feature = "system-object")]
170    pub use crate::system::object::IObjectMethods;
171    pub use crate::{
172        combat::{deco_rod::IDeco_Rod, decorator::IDecorator},
173        system::object::IObject,
174    };
175}