Skip to main content

engage/generated/app/
photographselectcharactermenuitemcontent.rs

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