Skip to main content

engage/generated/root/
hubcamerarotatespeedmenuitem.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-hubcamerarotatespeedmenuitem-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/hubcamerarotatespeedmenuitem/HubCameraRotateSpeedMenuItem.md"))]
15    #[::unity::class(namespace = "", name = "HubCameraRotateSpeedMenuItem")]
16    #[parent(crate::root::configbasicmenuitem::ConfigBasicMenuItem)]
17    pub struct HubCameraRotateSpeedMenuItem {}
18}
19
20#[cfg(feature = "root-hubcamerarotatespeedmenuitem-types")]
21pub use __types::*;
22
23#[cfg(feature = "root-hubcamerarotatespeedmenuitem")]
24pub trait IHubCameraRotateSpeedMenuItemMethods: IHubCameraRotateSpeedMenuItem {
25    #[doc = "`.ctor()` overload"]
26    fn ctor(self) -> () {
27        unsafe {
28            let __receiver =
29                <HubCameraRotateSpeedMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
30            ::unity::il2cpp_call!((::unity::module_base()+0x2d7f340usize)as*mut u8,();
31(HubCameraRotateSpeedMenuItem)__receiver)
32        }
33    }
34    #[doc = "`CustomCall()` overload"]
35    fn custom_call(self) -> crate::app::basicmenu::BasicMenu_Result {
36        unsafe {
37            let __receiver =
38                <HubCameraRotateSpeedMenuItem 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                        <HubCameraRotateSpeedMenuItem as ::unity::ClassIdentity>::NAME,
51                        "CustomCall",
52                    )
53                });
54                let __inner: extern "C" fn(HubCameraRotateSpeedMenuItem, ::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                <HubCameraRotateSpeedMenuItem 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                        <HubCameraRotateSpeedMenuItem as ::unity::ClassIdentity>::NAME,
78                        "InitContent",
79                    )
80                });
81                let __inner: extern "C" fn(HubCameraRotateSpeedMenuItem, ::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 = "`SetHelpText()` overload"]
88    fn set_help_text(self) -> () {
89        unsafe {
90            let __receiver =
91                <HubCameraRotateSpeedMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92            ::unity::il2cpp_call!((::unity::module_base()+0x2d7f560usize)as*mut u8,();
93(HubCameraRotateSpeedMenuItem)__receiver)
94        }
95    }
96}
97
98#[cfg(feature = "root-hubcamerarotatespeedmenuitem")]
99impl<__T: IHubCameraRotateSpeedMenuItem> IHubCameraRotateSpeedMenuItemMethods for __T {}
100
101#[cfg(feature = "root-hubcamerarotatespeedmenuitem")]
102impl HubCameraRotateSpeedMenuItem {
103    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
104        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
105    }
106
107    pub fn custom_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
108        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
109    }
110
111    pub fn init_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
112        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
113    }
114
115    pub fn set_help_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
116        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
117    }
118}
119
120#[cfg(feature = "root-hubcamerarotatespeedmenuitem")]
121impl HubCameraRotateSpeedMenuItem {
122    #[doc = "Direct (non-virtual) call to `HubCameraRotateSpeedMenuItem`'s own `CustomCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
123    pub unsafe fn custom_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
124        let __mi = Self::custom_call_method_info();
125        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
126            ::core::mem::transmute(__mi.method_ptr);
127        __inner(this.into(), ::core::option::Option::None)
128    }
129
130    #[doc = "Direct (non-virtual) call to `HubCameraRotateSpeedMenuItem`'s own `InitContent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
131    pub unsafe fn init_content(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
132        let __mi = Self::init_content_method_info();
133        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
134        __inner(this.into(), ::core::option::Option::None)
135    }
136}
137
138#[cfg(feature = "root-hubcamerarotatespeedmenuitem")]
139impl HubCameraRotateSpeedMenuItem {
140    #[doc = "`.ctor()` — no args"]
141    pub fn new() -> Self {
142        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
143            panic!(
144                "{}
145::{}
146 failed to instantiate",
147                ::core::stringify!(HubCameraRotateSpeedMenuItem),
148                ::core::stringify!(new),
149            )
150        });
151        <Self as IHubCameraRotateSpeedMenuItemMethods>::ctor(this);
152        this
153    }
154}
155
156#[cfg(feature = "root-hubcamerarotatespeedmenuitem")]
157#[doc(hidden)]
158pub mod prelude {
159    pub use super::{HubCameraRotateSpeedMenuItem, IHubCameraRotateSpeedMenuItem, IHubCameraRotateSpeedMenuItemMethods};
160    #[cfg(feature = "app-basicmenuitem")]
161    pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
162    #[cfg(feature = "root-configbasicmenuitem")]
163    pub use crate::root::configbasicmenuitem::IConfigBasicMenuItemMethods;
164    #[cfg(feature = "system-object")]
165    pub use crate::system::object::IObjectMethods;
166    pub use crate::{app::basicmenuitem::IBasicMenuItem, root::configbasicmenuitem::IConfigBasicMenuItem, system::object::IObject};
167}