Skip to main content

engage/generated/app/
fortunetellingunitselectmenuitemcontent.rs

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