Skip to main content

engage/generated/combat/
deco___.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-deco___-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        combat::decorator::{Decorator, IDecorator},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/deco___/Deco___.md"))]
14    #[::unity::class(namespace = "Combat", name = "Deco_自爆")]
15    #[parent(crate::combat::decorator::Decorator)]
16    pub struct Deco___ {}
17}
18
19#[cfg(feature = "combat-deco___-types")]
20pub use __types::*;
21
22#[cfg(feature = "combat-deco___")]
23impl Deco___ {
24    #[doc = "`IsAvailable(crate::combat::decoratorargs::DecoratorArgs)` overload"]
25    pub fn is_available(that: impl ::core::convert::Into<crate::combat::decoratorargs::DecoratorArgs>) -> bool {
26        unsafe {
27            ::unity::il2cpp_call!((::unity::module_base()+0x1ce9f70usize)as*mut u8,bool;
28(crate::combat::decoratorargs::DecoratorArgs)::core::convert::Into::into(that))
29        }
30    }
31}
32
33#[cfg(feature = "combat-deco___")]
34pub trait IDeco___Methods: IDeco___ {
35    #[doc = "`get_Name()` overload"]
36    fn get_name(self) -> ::unity::Il2CppString {
37        unsafe {
38            let __receiver = <Deco___ as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
39            {
40                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
41                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
42                    panic!(
43                        "unity: virtual slot {}
44 out of range (vtable len {}
45) on the runtime class behind {}
46 (method `{}
47`)",
48                        4usize,
49                        __vt.len(),
50                        <Deco___ as ::unity::ClassIdentity>::NAME,
51                        "get_Name",
52                    )
53                });
54                let __inner: extern "C" fn(Deco___, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
55                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
56                __inner(__receiver, __mi)
57            }
58        }
59    }
60    #[doc = "`.ctor()` overload"]
61    fn ctor(self) -> () {
62        unsafe {
63            let __receiver = <Deco___ as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64            ::unity::il2cpp_call!((::unity::module_base()+0x1cea010usize)as*mut u8,();
65(Deco___)__receiver)
66        }
67    }
68}
69
70#[cfg(feature = "combat-deco___")]
71impl<__T: IDeco___> IDeco___Methods for __T {}
72
73#[cfg(feature = "combat-deco___")]
74impl Deco___ {
75    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
76        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
77    }
78
79    pub fn is_available_method_info() -> &'static ::unity::il2cpp::MethodInfo {
80        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
81    }
82
83    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
84        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
85    }
86}
87
88#[cfg(feature = "combat-deco___")]
89impl Deco___ {
90    #[doc = "Direct (non-virtual) call to `Deco___`'s own `get_Name`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
91    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
92        let __mi = Self::get_name_method_info();
93        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
94        __inner(this.into(), ::core::option::Option::None)
95    }
96}
97
98#[cfg(feature = "combat-deco___")]
99impl Deco___ {
100    #[doc = "`.ctor()` — no args"]
101    pub fn new() -> Self {
102        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
103            panic!(
104                "{}
105::{}
106 failed to instantiate",
107                ::core::stringify!(Deco___),
108                ::core::stringify!(new),
109            )
110        });
111        <Self as IDeco___Methods>::ctor(this);
112        this
113    }
114}
115
116#[cfg(feature = "combat-deco___")]
117#[doc(hidden)]
118pub mod prelude {
119    pub use super::{Deco___, IDeco___, IDeco___Methods};
120    #[cfg(feature = "combat-decorator")]
121    pub use crate::combat::decorator::IDecoratorMethods;
122    #[cfg(feature = "system-object")]
123    pub use crate::system::object::IObjectMethods;
124    pub use crate::{combat::decorator::IDecorator, system::object::IObject};
125}