Skip to main content

engage/generated/combat/
deco_rodblock.rs

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