Skip to main content

engage/generated/combat/
deco_rodwarp.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-deco_rodwarp-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_rodwarp/Deco_RodWarp.md"))]
17    #[::unity::class(namespace = "Combat", name = "Deco_RodWarp")]
18    #[parent(crate::combat::deco_rod::Deco_Rod)]
19    pub struct Deco_RodWarp {
20        #[offset(40)]
21        #[rename(name = "m_Use")]
22        pub m_use: crate::app::itemdata::ItemData_UseTypes,
23        #[offset(48)]
24        #[rename(name = "m_Target")]
25        pub m_target: crate::combat::character::Character,
26        #[offset(56)]
27        #[rename(name = "m_FinalAlpha")]
28        pub m_final_alpha: f32,
29    }
30}
31
32#[cfg(feature = "combat-deco_rodwarp-types")]
33pub use __types::*;
34
35#[cfg(feature = "combat-deco_rodwarp")]
36impl Deco_RodWarp {
37    #[doc = "`IsAvailable(crate::combat::decoratorargs::DecoratorArgs)` overload"]
38    pub fn is_available(that: impl ::core::convert::Into<crate::combat::decoratorargs::DecoratorArgs>) -> bool {
39        unsafe {
40            ::unity::il2cpp_call!((::unity::module_base()+0x1ce8b50usize)as*mut u8,bool;
41(crate::combat::decoratorargs::DecoratorArgs)::core::convert::Into::into(that))
42        }
43    }
44}
45
46#[cfg(feature = "combat-deco_rodwarp")]
47pub trait IDeco_RodWarpMethods: IDeco_RodWarp {
48    #[doc = "`get_Name()` overload"]
49    fn get_name(self) -> ::unity::Il2CppString {
50        unsafe {
51            let __receiver = <Deco_RodWarp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
52            {
53                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
54                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
55                    panic!(
56                        "unity: virtual slot {}
57 out of range (vtable len {}
58) on the runtime class behind {}
59 (method `{}
60`)",
61                        4usize,
62                        __vt.len(),
63                        <Deco_RodWarp as ::unity::ClassIdentity>::NAME,
64                        "get_Name",
65                    )
66                });
67                let __inner: extern "C" fn(Deco_RodWarp, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
68                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
69                __inner(__receiver, __mi)
70            }
71        }
72    }
73    #[doc = "`OnEnter()` overload"]
74    fn on_enter(self) -> () {
75        unsafe {
76            let __receiver = <Deco_RodWarp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
77            {
78                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
79                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
80                    panic!(
81                        "unity: virtual slot {}
82 out of range (vtable len {}
83) on the runtime class behind {}
84 (method `{}
85`)",
86                        5usize,
87                        __vt.len(),
88                        <Deco_RodWarp as ::unity::ClassIdentity>::NAME,
89                        "OnEnter",
90                    )
91                });
92                let __inner: extern "C" fn(Deco_RodWarp, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
93                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
94                __inner(__receiver, __mi)
95            }
96        }
97    }
98    #[doc = "`OnHitPassed(crate::unity_engine::animationevent::AnimationEvent)` overload"]
99    fn on_hit_passed(self, ev: impl ::core::convert::Into<crate::unity_engine::animationevent::AnimationEvent>) -> () {
100        unsafe {
101            let __receiver = <Deco_RodWarp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102            {
103                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
104                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
105                    panic!(
106                        "unity: virtual slot {}
107 out of range (vtable len {}
108) on the runtime class behind {}
109 (method `{}
110`)",
111                        13usize,
112                        __vt.len(),
113                        <Deco_RodWarp as ::unity::ClassIdentity>::NAME,
114                        "OnHitPassed",
115                    )
116                });
117                let __inner: extern "C" fn(Deco_RodWarp, crate::unity_engine::animationevent::AnimationEvent, ::unity::OptionalMethod) -> () =
118                    ::core::mem::transmute(__vi.method_ptr);
119                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
120                __inner(__receiver, ::core::convert::Into::into(ev), __mi)
121            }
122        }
123    }
124    #[doc = "`UpdateAlpha()` overload"]
125    fn update_alpha(self) -> () {
126        unsafe {
127            let __receiver = <Deco_RodWarp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128            ::unity::il2cpp_call!((::unity::module_base()+0x1ce8ed0usize)as*mut u8,();
129(Deco_RodWarp)__receiver)
130        }
131    }
132    #[doc = "`.ctor()` overload"]
133    fn ctor(self) -> () {
134        unsafe {
135            let __receiver = <Deco_RodWarp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
136            ::unity::il2cpp_call!((::unity::module_base()+0x1ce8fb0usize)as*mut u8,();
137(Deco_RodWarp)__receiver)
138        }
139    }
140}
141
142#[cfg(feature = "combat-deco_rodwarp")]
143impl<__T: IDeco_RodWarp> IDeco_RodWarpMethods for __T {}
144
145#[cfg(feature = "combat-deco_rodwarp")]
146impl Deco_RodWarp {
147    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
149    }
150
151    pub fn is_available_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
153    }
154
155    pub fn on_enter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
157    }
158
159    pub fn on_hit_passed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
161    }
162
163    pub fn update_alpha_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
165    }
166
167    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
169    }
170}
171
172#[cfg(feature = "combat-deco_rodwarp")]
173impl Deco_RodWarp {
174    #[doc = "Direct (non-virtual) call to `Deco_RodWarp`'s own `get_Name`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
175    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
176        let __mi = Self::get_name_method_info();
177        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
178        __inner(this.into(), ::core::option::Option::None)
179    }
180
181    #[doc = "Direct (non-virtual) call to `Deco_RodWarp`'s own `OnEnter`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
182    pub unsafe fn on_enter(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
183        let __mi = Self::on_enter_method_info();
184        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
185        __inner(this.into(), ::core::option::Option::None)
186    }
187
188    #[doc = "Direct (non-virtual) call to `Deco_RodWarp`'s own `OnHitPassed`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
189    pub unsafe fn on_hit_passed(
190        this: impl ::core::convert::Into<::unity::IlInstance>,
191        ev: crate::unity_engine::animationevent::AnimationEvent,
192    ) -> () {
193        let __mi = Self::on_hit_passed_method_info();
194        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::animationevent::AnimationEvent, ::unity::OptionalMethod) -> () =
195            ::core::mem::transmute(__mi.method_ptr);
196        __inner(this.into(), ev, ::core::option::Option::None)
197    }
198}
199
200#[cfg(feature = "combat-deco_rodwarp")]
201impl Deco_RodWarp {
202    #[doc = "`.ctor()` — no args"]
203    pub fn new() -> Self {
204        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
205            panic!(
206                "{}
207::{}
208 failed to instantiate",
209                ::core::stringify!(Deco_RodWarp),
210                ::core::stringify!(new),
211            )
212        });
213        <Self as IDeco_RodWarpMethods>::ctor(this);
214        this
215    }
216}
217
218#[cfg(feature = "combat-deco_rodwarp")]
219#[doc(hidden)]
220pub mod prelude {
221    pub use super::{Deco_RodWarp, IDeco_RodWarp, IDeco_RodWarpMethods};
222    #[cfg(feature = "combat-deco_rod")]
223    pub use crate::combat::deco_rod::IDeco_RodMethods;
224    #[cfg(feature = "combat-decorator")]
225    pub use crate::combat::decorator::IDecoratorMethods;
226    #[cfg(feature = "system-object")]
227    pub use crate::system::object::IObjectMethods;
228    pub use crate::{
229        combat::{deco_rod::IDeco_Rod, decorator::IDecorator},
230        system::object::IObject,
231    };
232}