Skip to main content

engage/generated/combat/
grandewbrain.rs

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