Skip to main content

engage/generated/app/
godunitselectmenuitem.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-godunitselectmenuitem-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::basicmenuitemcontent::{BasicMenuItemContent, IBasicMenuItemContent},
10        system::object::{IObject, Object},
11        unity_engine::{
12            behaviour::{Behaviour, IBehaviour},
13            component::{Component, IComponent},
14            monobehaviour::{IMonoBehaviour, MonoBehaviour},
15            object_2::{IObject_2, Object_2},
16        },
17    };
18
19    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/godunitselectmenuitem/GodUnitSelectMenuItem.md"))]
20    #[::unity::class(namespace = "App", name = "GodUnitSelectMenuItem")]
21    #[parent(crate::app::basicmenuitemcontent::BasicMenuItemContent)]
22    pub struct GodUnitSelectMenuItem {
23        #[offset(72)]
24        #[rename(name = "m_Setter")]
25        pub m_setter: crate::app::unitmenuitemsetter::UnitMenuItemSetter,
26        #[offset(80)]
27        #[rename(name = "m_MenuContent")]
28        pub m_menu_content: crate::app::godunitselectmenucontent::GodUnitSelectMenuContent,
29    }
30}
31
32#[cfg(feature = "app-godunitselectmenuitem-types")]
33pub use __types::*;
34
35#[cfg(feature = "app-godunitselectmenuitem")]
36pub trait IGodUnitSelectMenuItemMethods: IGodUnitSelectMenuItem {
37    #[doc = "`GetTextMeshProComponent()` overload"]
38    fn get_text_mesh_pro_component(self) -> crate::tm_pro::textmeshprougui::TextMeshProUGUI {
39        unsafe {
40            let __receiver = <GodUnitSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
41            {
42                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
43                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
44                    panic!(
45                        "unity: virtual slot {}
46 out of range (vtable len {}
47) on the runtime class behind {}
48 (method `{}
49`)",
50                        5usize,
51                        __vt.len(),
52                        <GodUnitSelectMenuItem as ::unity::ClassIdentity>::NAME,
53                        "GetTextMeshProComponent",
54                    )
55                });
56                let __inner: extern "C" fn(GodUnitSelectMenuItem, ::unity::OptionalMethod) -> crate::tm_pro::textmeshprougui::TextMeshProUGUI =
57                    ::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 = "`Build(crate::app::basicmenuitem::BasicMenuItem)` overload"]
64    fn build(self, menu_item: impl ::core::convert::Into<crate::app::basicmenuitem::BasicMenuItem>) -> () {
65        unsafe {
66            let __receiver = <GodUnitSelectMenuItem 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(8usize).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                        8usize,
77                        __vt.len(),
78                        <GodUnitSelectMenuItem as ::unity::ClassIdentity>::NAME,
79                        "Build",
80                    )
81                });
82                let __inner: extern "C" fn(GodUnitSelectMenuItem, crate::app::basicmenuitem::BasicMenuItem, ::unity::OptionalMethod) -> () =
83                    ::core::mem::transmute(__vi.method_ptr);
84                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
85                __inner(__receiver, ::core::convert::Into::into(menu_item), __mi)
86            }
87        }
88    }
89    #[doc = "`SetFace(crate::app::goddata::GodData, crate::app::ringcleaningsequence::RingCleaningSequence_GodType)` overload"]
90    fn set_face(
91        self,
92        god_data: impl ::core::convert::Into<crate::app::goddata::GodData>,
93        r#type: impl ::core::convert::Into<crate::app::ringcleaningsequence::RingCleaningSequence_GodType>,
94    ) -> () {
95        unsafe {
96            let __receiver = <GodUnitSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97            ::unity::il2cpp_call!((::unity::module_base()+0x2347cc0usize)as*mut u8,();
98(GodUnitSelectMenuItem)__receiver,(crate::app::goddata::GodData)::core::convert::Into::into(god_data),(crate::app::ringcleaningsequence::RingCleaningSequence_GodType)::core::convert::Into::into(r#type))
99        }
100    }
101    #[doc = "`UpdateTextColor()` overload"]
102    fn update_text_color(self) -> () {
103        unsafe {
104            let __receiver = <GodUnitSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
105            {
106                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
107                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
108                    panic!(
109                        "unity: virtual slot {}
110 out of range (vtable len {}
111) on the runtime class behind {}
112 (method `{}
113`)",
114                        7usize,
115                        __vt.len(),
116                        <GodUnitSelectMenuItem as ::unity::ClassIdentity>::NAME,
117                        "UpdateTextColor",
118                    )
119                });
120                let __inner: extern "C" fn(GodUnitSelectMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
121                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
122                __inner(__receiver, __mi)
123            }
124        }
125    }
126    #[doc = "`.ctor()` overload"]
127    fn ctor(self) -> () {
128        unsafe {
129            let __receiver = <GodUnitSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
130            ::unity::il2cpp_call!((::unity::module_base()+0x2347f70usize)as*mut u8,();
131(GodUnitSelectMenuItem)__receiver)
132        }
133    }
134}
135
136#[cfg(feature = "app-godunitselectmenuitem")]
137impl<__T: IGodUnitSelectMenuItem> IGodUnitSelectMenuItemMethods for __T {}
138
139#[cfg(feature = "app-godunitselectmenuitem")]
140impl GodUnitSelectMenuItem {
141    pub fn get_text_mesh_pro_component_method_info() -> &'static ::unity::il2cpp::MethodInfo {
142        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
143    }
144
145    pub fn build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
146        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
147    }
148
149    pub fn set_face_method_info() -> &'static ::unity::il2cpp::MethodInfo {
150        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
151    }
152
153    pub fn update_text_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
155    }
156
157    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
158        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
159    }
160}
161
162#[cfg(feature = "app-godunitselectmenuitem")]
163impl GodUnitSelectMenuItem {
164    #[doc = "Direct (non-virtual) call to `GodUnitSelectMenuItem`'s own `GetTextMeshProComponent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
165    pub unsafe fn get_text_mesh_pro_component(
166        this: impl ::core::convert::Into<::unity::IlInstance>,
167    ) -> crate::tm_pro::textmeshprougui::TextMeshProUGUI {
168        let __mi = Self::get_text_mesh_pro_component_method_info();
169        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::tm_pro::textmeshprougui::TextMeshProUGUI =
170            ::core::mem::transmute(__mi.method_ptr);
171        __inner(this.into(), ::core::option::Option::None)
172    }
173
174    #[doc = "Direct (non-virtual) call to `GodUnitSelectMenuItem`'s own `Build`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
175    pub unsafe fn build(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item: crate::app::basicmenuitem::BasicMenuItem) -> () {
176        let __mi = Self::build_method_info();
177        let __inner: extern "C" fn(::unity::IlInstance, crate::app::basicmenuitem::BasicMenuItem, ::unity::OptionalMethod) -> () =
178            ::core::mem::transmute(__mi.method_ptr);
179        __inner(this.into(), menu_item, ::core::option::Option::None)
180    }
181
182    #[doc = "Direct (non-virtual) call to `GodUnitSelectMenuItem`'s own `UpdateTextColor`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
183    pub unsafe fn update_text_color(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
184        let __mi = Self::update_text_color_method_info();
185        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
186        __inner(this.into(), ::core::option::Option::None)
187    }
188}
189
190#[cfg(feature = "app-godunitselectmenuitem")]
191impl GodUnitSelectMenuItem {
192    #[doc = "`.ctor()` — no args"]
193    pub fn new() -> Self {
194        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
195            panic!(
196                "{}
197::{}
198 failed to instantiate",
199                ::core::stringify!(GodUnitSelectMenuItem),
200                ::core::stringify!(new),
201            )
202        });
203        <Self as IGodUnitSelectMenuItemMethods>::ctor(this);
204        this
205    }
206}
207
208#[cfg(feature = "app-godunitselectmenuitem")]
209#[doc(hidden)]
210pub mod prelude {
211    pub use super::{GodUnitSelectMenuItem, IGodUnitSelectMenuItem, IGodUnitSelectMenuItemMethods};
212    #[cfg(feature = "app-basicmenuitemcontent")]
213    pub use crate::app::basicmenuitemcontent::IBasicMenuItemContentMethods;
214    #[cfg(feature = "system-object")]
215    pub use crate::system::object::IObjectMethods;
216    #[cfg(feature = "unity_engine-behaviour")]
217    pub use crate::unity_engine::behaviour::IBehaviourMethods;
218    #[cfg(feature = "unity_engine-component")]
219    pub use crate::unity_engine::component::IComponentMethods;
220    #[cfg(feature = "unity_engine-monobehaviour")]
221    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
222    #[cfg(feature = "unity_engine-object_2")]
223    pub use crate::unity_engine::object_2::IObject_2Methods;
224    pub use crate::{
225        app::basicmenuitemcontent::IBasicMenuItemContent,
226        system::object::IObject,
227        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
228    };
229}