Skip to main content

engage/generated/root/
supportanimetypemenuitem.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-supportanimetypemenuitem-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::basicmenuitem::{BasicMenuItem, IBasicMenuItem},
10        root::configbasicmenuitem::{ConfigBasicMenuItem, IConfigBasicMenuItem},
11        system::object::{IObject, Object},
12    };
13
14    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/supportanimetypemenuitem/SupportAnimeTypeMenuItem.md"))]
15    #[::unity::class(namespace = "", name = "SupportAnimeTypeMenuItem")]
16    #[parent(crate::root::configbasicmenuitem::ConfigBasicMenuItem)]
17    pub struct SupportAnimeTypeMenuItem {}
18}
19
20#[cfg(feature = "root-supportanimetypemenuitem-types")]
21pub use __types::*;
22
23#[cfg(feature = "root-supportanimetypemenuitem")]
24pub trait ISupportAnimeTypeMenuItemMethods: ISupportAnimeTypeMenuItem {
25    #[doc = "`.ctor()` overload"]
26    fn ctor(self) -> () {
27        unsafe {
28            let __receiver =
29                <SupportAnimeTypeMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
30            ::unity::il2cpp_call!((::unity::module_base()+0x20add10usize)as*mut u8,();
31(SupportAnimeTypeMenuItem)__receiver)
32        }
33    }
34    #[doc = "`CustomCall()` overload"]
35    fn custom_call(self) -> crate::app::basicmenu::BasicMenu_Result {
36        unsafe {
37            let __receiver =
38                <SupportAnimeTypeMenuItem 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(26usize).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                        26usize,
49                        __vt.len(),
50                        <SupportAnimeTypeMenuItem as ::unity::ClassIdentity>::NAME,
51                        "CustomCall",
52                    )
53                });
54                let __inner: extern "C" fn(SupportAnimeTypeMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
55                    ::core::mem::transmute(__vi.method_ptr);
56                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
57                __inner(__receiver, __mi)
58            }
59        }
60    }
61    #[doc = "`InitContent()` overload"]
62    fn init_content(self) -> () {
63        unsafe {
64            let __receiver =
65                <SupportAnimeTypeMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66            {
67                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
68                let __vi = *__vt.get(27usize).unwrap_or_else(|| {
69                    panic!(
70                        "unity: virtual slot {}
71 out of range (vtable len {}
72) on the runtime class behind {}
73 (method `{}
74`)",
75                        27usize,
76                        __vt.len(),
77                        <SupportAnimeTypeMenuItem as ::unity::ClassIdentity>::NAME,
78                        "InitContent",
79                    )
80                });
81                let __inner: extern "C" fn(SupportAnimeTypeMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
82                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
83                __inner(__receiver, __mi)
84            }
85        }
86    }
87    #[doc = "`SetCommandText()` overload"]
88    fn set_command_text(self) -> () {
89        unsafe {
90            let __receiver =
91                <SupportAnimeTypeMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92            ::unity::il2cpp_call!((::unity::module_base()+0x20addd0usize)as*mut u8,();
93(SupportAnimeTypeMenuItem)__receiver)
94        }
95    }
96    #[doc = "`SetHelpText()` overload"]
97    fn set_help_text(self) -> () {
98        unsafe {
99            let __receiver =
100                <SupportAnimeTypeMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
101            ::unity::il2cpp_call!((::unity::module_base()+0x20adf90usize)as*mut u8,();
102(SupportAnimeTypeMenuItem)__receiver)
103        }
104    }
105}
106
107#[cfg(feature = "root-supportanimetypemenuitem")]
108impl<__T: ISupportAnimeTypeMenuItem> ISupportAnimeTypeMenuItemMethods for __T {}
109
110#[cfg(feature = "root-supportanimetypemenuitem")]
111impl SupportAnimeTypeMenuItem {
112    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
113        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
114    }
115
116    pub fn custom_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
117        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
118    }
119
120    pub fn init_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
121        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
122    }
123
124    pub fn set_command_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
125        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
126    }
127
128    pub fn set_help_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
129        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
130    }
131}
132
133#[cfg(feature = "root-supportanimetypemenuitem")]
134impl SupportAnimeTypeMenuItem {
135    #[doc = "Direct (non-virtual) call to `SupportAnimeTypeMenuItem`'s own `CustomCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
136    pub unsafe fn custom_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
137        let __mi = Self::custom_call_method_info();
138        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
139            ::core::mem::transmute(__mi.method_ptr);
140        __inner(this.into(), ::core::option::Option::None)
141    }
142
143    #[doc = "Direct (non-virtual) call to `SupportAnimeTypeMenuItem`'s own `InitContent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
144    pub unsafe fn init_content(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
145        let __mi = Self::init_content_method_info();
146        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
147        __inner(this.into(), ::core::option::Option::None)
148    }
149}
150
151#[cfg(feature = "root-supportanimetypemenuitem")]
152impl SupportAnimeTypeMenuItem {
153    #[doc = "`.ctor()` — no args"]
154    pub fn new() -> Self {
155        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
156            panic!(
157                "{}
158::{}
159 failed to instantiate",
160                ::core::stringify!(SupportAnimeTypeMenuItem),
161                ::core::stringify!(new),
162            )
163        });
164        <Self as ISupportAnimeTypeMenuItemMethods>::ctor(this);
165        this
166    }
167}
168
169#[cfg(feature = "root-supportanimetypemenuitem")]
170#[doc(hidden)]
171pub mod prelude {
172    pub use super::{ISupportAnimeTypeMenuItem, ISupportAnimeTypeMenuItemMethods, SupportAnimeTypeMenuItem};
173    #[cfg(feature = "app-basicmenuitem")]
174    pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
175    #[cfg(feature = "root-configbasicmenuitem")]
176    pub use crate::root::configbasicmenuitem::IConfigBasicMenuItemMethods;
177    #[cfg(feature = "system-object")]
178    pub use crate::system::object::IObjectMethods;
179    pub use crate::{app::basicmenuitem::IBasicMenuItem, root::configbasicmenuitem::IConfigBasicMenuItem, system::object::IObject};
180}