Skip to main content

engage/generated/combat/
deco_rodheal.rs

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