Skip to main content

engage/generated/combat/
deco_rodweak.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-deco_rodweak-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_rodweak/Deco_RodWeak.md"))]
17    #[::unity::class(namespace = "Combat", name = "Deco_RodWeak")]
18    #[parent(crate::combat::deco_rod::Deco_Rod)]
19    pub struct Deco_RodWeak {}
20}
21
22#[cfg(feature = "combat-deco_rodweak-types")]
23pub use __types::*;
24
25#[cfg(feature = "combat-deco_rodweak")]
26impl Deco_RodWeak {
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()+0x1ce9090usize)as*mut u8,bool;
31(crate::combat::decoratorargs::DecoratorArgs)::core::convert::Into::into(that))
32        }
33    }
34}
35
36#[cfg(feature = "combat-deco_rodweak")]
37pub trait IDeco_RodWeakMethods: IDeco_RodWeak {
38    #[doc = "`get_Name()` overload"]
39    fn get_name(self) -> ::unity::Il2CppString {
40        unsafe {
41            let __receiver = <Deco_RodWeak 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_RodWeak as ::unity::ClassIdentity>::NAME,
54                        "get_Name",
55                    )
56                });
57                let __inner: extern "C" fn(Deco_RodWeak, ::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_RodWeak 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_RodWeak as ::unity::ClassIdentity>::NAME,
79                        "OnEnemyDamage_",
80                    )
81                });
82                let __inner: extern "C" fn(Deco_RodWeak, 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 = "`.ctor()` overload"]
90    fn ctor(self) -> () {
91        unsafe {
92            let __receiver = <Deco_RodWeak as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
93            ::unity::il2cpp_call!((::unity::module_base()+0x1ce9270usize)as*mut u8,();
94(Deco_RodWeak)__receiver)
95        }
96    }
97}
98
99#[cfg(feature = "combat-deco_rodweak")]
100impl<__T: IDeco_RodWeak> IDeco_RodWeakMethods for __T {}
101
102#[cfg(feature = "combat-deco_rodweak")]
103impl Deco_RodWeak {
104    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
105        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
106    }
107
108    pub fn is_available_method_info() -> &'static ::unity::il2cpp::MethodInfo {
109        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
110    }
111
112    pub fn on_enemy_damage_method_info() -> &'static ::unity::il2cpp::MethodInfo {
113        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
114    }
115
116    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
117        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
118    }
119}
120
121#[cfg(feature = "combat-deco_rodweak")]
122impl Deco_RodWeak {
123    #[doc = "Direct (non-virtual) call to `Deco_RodWeak`'s own `get_Name`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
124    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
125        let __mi = Self::get_name_method_info();
126        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
127        __inner(this.into(), ::core::option::Option::None)
128    }
129
130    #[doc = "Direct (non-virtual) call to `Deco_RodWeak`'s own `OnEnemyDamage_`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
131    pub unsafe fn on_enemy_damage(
132        this: impl ::core::convert::Into<::unity::IlInstance>,
133        ev: crate::unity_engine::animationevent::AnimationEvent,
134    ) -> () {
135        let __mi = Self::on_enemy_damage_method_info();
136        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::animationevent::AnimationEvent, ::unity::OptionalMethod) -> () =
137            ::core::mem::transmute(__mi.method_ptr);
138        __inner(this.into(), ev, ::core::option::Option::None)
139    }
140}
141
142#[cfg(feature = "combat-deco_rodweak")]
143impl Deco_RodWeak {
144    #[doc = "`.ctor()` — no args"]
145    pub fn new() -> Self {
146        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
147            panic!(
148                "{}
149::{}
150 failed to instantiate",
151                ::core::stringify!(Deco_RodWeak),
152                ::core::stringify!(new),
153            )
154        });
155        <Self as IDeco_RodWeakMethods>::ctor(this);
156        this
157    }
158}
159
160#[cfg(feature = "combat-deco_rodweak")]
161#[doc(hidden)]
162pub mod prelude {
163    pub use super::{Deco_RodWeak, IDeco_RodWeak, IDeco_RodWeakMethods};
164    #[cfg(feature = "combat-deco_rod")]
165    pub use crate::combat::deco_rod::IDeco_RodMethods;
166    #[cfg(feature = "combat-decorator")]
167    pub use crate::combat::decorator::IDecoratorMethods;
168    #[cfg(feature = "system-object")]
169    pub use crate::system::object::IObjectMethods;
170    pub use crate::{
171        combat::{deco_rod::IDeco_Rod, decorator::IDecorator},
172        system::object::IObject,
173    };
174}