Skip to main content

engage/generated/app/
myroomwakeupselectmenuitemcontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-myroomwakeupselectmenuitemcontent-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/myroomwakeupselectmenuitemcontent/MyRoomWakeupSelectMenuItemContent.md"))]
20    #[::unity::class(namespace = "App", name = "MyRoomWakeupSelectMenuItemContent")]
21    #[parent(crate::app::basicmenuitemcontent::BasicMenuItemContent)]
22    pub struct MyRoomWakeupSelectMenuItemContent {
23        #[static_field]
24        #[rename(name = "TYPE_MAX")]
25        pub type_max: i32,
26        #[offset(72)]
27        #[rename(name = "m_Icon")]
28        pub m_icon: crate::unity_engine::gameobject::GameObject,
29        #[offset(80)]
30        #[rename(name = "m_Name")]
31        pub m_name: crate::unity_engine::gameobject::GameObject,
32        #[offset(88)]
33        #[rename(name = "m_RankObjects")]
34        pub m_rank_objects: ::unity::Array<crate::unity_engine::gameobject::GameObject>,
35        #[offset(96)]
36        #[rename(name = "m_Frame")]
37        pub m_frame: crate::unity_engine::gameobject::GameObject,
38        #[offset(104)]
39        #[rename(name = "m_Image")]
40        pub m_image: crate::unity_engine::ui::image::Image,
41        #[offset(112)]
42        #[rename(name = "m_RankImages")]
43        pub m_rank_images: ::unity::Array<crate::unity_engine::ui::image::Image>,
44        #[offset(120)]
45        #[rename(name = "m_RankImagesBase")]
46        pub m_rank_images_base: ::unity::Array<crate::unity_engine::ui::image::Image>,
47        #[offset(128)]
48        #[rename(name = "m_RankImagesNumber")]
49        pub m_rank_images_number: ::unity::Array<crate::tm_pro::textmeshprougui::TextMeshProUGUI>,
50    }
51}
52
53#[cfg(feature = "app-myroomwakeupselectmenuitemcontent-types")]
54pub use __types::*;
55
56#[cfg(feature = "app-myroomwakeupselectmenuitemcontent")]
57pub trait IMyRoomWakeupSelectMenuItemContentMethods: IMyRoomWakeupSelectMenuItemContent {
58    #[doc = "`SetupObjects()` overload"]
59    fn setup_objects(self) -> () {
60        unsafe {
61            let __receiver =
62                <MyRoomWakeupSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63            ::unity::il2cpp_call!((::unity::module_base()+0x23a63b0usize)as*mut u8,();
64(MyRoomWakeupSelectMenuItemContent)__receiver)
65        }
66    }
67    #[doc = "`SetRankColor(crate::unity_engine::ui::image::Image, crate::unity_engine::ui::image::Image, crate::tm_pro::textmeshprougui::TextMeshProUGUI, crate::unity_engine::color::Color)` overload"]
68    fn set_rank_color(
69        self,
70        rank_image: impl ::core::convert::Into<crate::unity_engine::ui::image::Image>,
71        base_image: impl ::core::convert::Into<crate::unity_engine::ui::image::Image>,
72        number_text: impl ::core::convert::Into<crate::tm_pro::textmeshprougui::TextMeshProUGUI>,
73        color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
74    ) -> () {
75        unsafe {
76            let __receiver =
77                <MyRoomWakeupSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78            ::unity::il2cpp_call!((::unity::module_base()+0x23a6a50usize)as*mut u8,();
79(MyRoomWakeupSelectMenuItemContent)__receiver,(crate::unity_engine::ui::image::Image)::core::convert::Into::into(rank_image),(crate::unity_engine::ui::image::Image)::core::convert::Into::into(base_image),(crate::tm_pro::textmeshprougui::TextMeshProUGUI)::core::convert::Into::into(number_text),(crate::unity_engine::color::Color)::core::convert::Into::into(color))
80        }
81    }
82    #[doc = "`GetCommandColor()` overload"]
83    fn get_command_color(self) -> crate::unity_engine::color::Color {
84        unsafe {
85            let __receiver =
86                <MyRoomWakeupSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87            ::unity::il2cpp_call!((::unity::module_base()+0x23a6af0usize)as*mut u8,crate::unity_engine::color::Color;
88(MyRoomWakeupSelectMenuItemContent)__receiver)
89        }
90    }
91    #[doc = "`Build(crate::app::basicmenuitem::BasicMenuItem)` overload"]
92    fn build(self, menu_item: impl ::core::convert::Into<crate::app::basicmenuitem::BasicMenuItem>) -> () {
93        unsafe {
94            let __receiver =
95                <MyRoomWakeupSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96            {
97                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
98                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
99                    panic!(
100                        "unity: virtual slot {}
101 out of range (vtable len {}
102) on the runtime class behind {}
103 (method `{}
104`)",
105                        8usize,
106                        __vt.len(),
107                        <MyRoomWakeupSelectMenuItemContent as ::unity::ClassIdentity>::NAME,
108                        "Build",
109                    )
110                });
111                let __inner: extern "C" fn(
112                    MyRoomWakeupSelectMenuItemContent,
113                    crate::app::basicmenuitem::BasicMenuItem,
114                    ::unity::OptionalMethod,
115                ) -> () = ::core::mem::transmute(__vi.method_ptr);
116                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
117                __inner(__receiver, ::core::convert::Into::into(menu_item), __mi)
118            }
119        }
120    }
121    #[doc = "`BuildText()` overload"]
122    fn build_text(self) -> () {
123        unsafe {
124            let __receiver =
125                <MyRoomWakeupSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126            {
127                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
128                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
129                    panic!(
130                        "unity: virtual slot {}
131 out of range (vtable len {}
132) on the runtime class behind {}
133 (method `{}
134`)",
135                        10usize,
136                        __vt.len(),
137                        <MyRoomWakeupSelectMenuItemContent as ::unity::ClassIdentity>::NAME,
138                        "BuildText",
139                    )
140                });
141                let __inner: extern "C" fn(MyRoomWakeupSelectMenuItemContent, ::unity::OptionalMethod) -> () =
142                    ::core::mem::transmute(__vi.method_ptr);
143                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
144                __inner(__receiver, __mi)
145            }
146        }
147    }
148    #[doc = "`UpdateTextColor()` overload"]
149    fn update_text_color(self) -> () {
150        unsafe {
151            let __receiver =
152                <MyRoomWakeupSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153            {
154                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
155                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
156                    panic!(
157                        "unity: virtual slot {}
158 out of range (vtable len {}
159) on the runtime class behind {}
160 (method `{}
161`)",
162                        7usize,
163                        __vt.len(),
164                        <MyRoomWakeupSelectMenuItemContent as ::unity::ClassIdentity>::NAME,
165                        "UpdateTextColor",
166                    )
167                });
168                let __inner: extern "C" fn(MyRoomWakeupSelectMenuItemContent, ::unity::OptionalMethod) -> () =
169                    ::core::mem::transmute(__vi.method_ptr);
170                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
171                __inner(__receiver, __mi)
172            }
173        }
174    }
175    #[doc = "`Update()` overload"]
176    fn update(self) -> () {
177        unsafe {
178            let __receiver =
179                <MyRoomWakeupSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
180            {
181                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
182                let __vi = *__vt.get(15usize).unwrap_or_else(|| {
183                    panic!(
184                        "unity: virtual slot {}
185 out of range (vtable len {}
186) on the runtime class behind {}
187 (method `{}
188`)",
189                        15usize,
190                        __vt.len(),
191                        <MyRoomWakeupSelectMenuItemContent as ::unity::ClassIdentity>::NAME,
192                        "Update",
193                    )
194                });
195                let __inner: extern "C" fn(MyRoomWakeupSelectMenuItemContent, ::unity::OptionalMethod) -> () =
196                    ::core::mem::transmute(__vi.method_ptr);
197                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
198                __inner(__receiver, __mi)
199            }
200        }
201    }
202    #[doc = "`.ctor()` overload"]
203    fn ctor(self) -> () {
204        unsafe {
205            let __receiver =
206                <MyRoomWakeupSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207            ::unity::il2cpp_call!((::unity::module_base()+0x23a7a90usize)as*mut u8,();
208(MyRoomWakeupSelectMenuItemContent)__receiver)
209        }
210    }
211}
212
213#[cfg(feature = "app-myroomwakeupselectmenuitemcontent")]
214impl<__T: IMyRoomWakeupSelectMenuItemContent> IMyRoomWakeupSelectMenuItemContentMethods for __T {}
215
216#[cfg(feature = "app-myroomwakeupselectmenuitemcontent")]
217impl MyRoomWakeupSelectMenuItemContent {
218    pub fn setup_objects_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
220    }
221
222    pub fn set_rank_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
224    }
225
226    pub fn get_command_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
227        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
228    }
229
230    pub fn build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
232    }
233
234    pub fn build_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
236    }
237
238    pub fn update_text_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
240    }
241
242    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
244    }
245
246    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
247        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
248    }
249}
250
251#[cfg(feature = "app-myroomwakeupselectmenuitemcontent")]
252impl MyRoomWakeupSelectMenuItemContent {
253    #[doc = "Direct (non-virtual) call to `MyRoomWakeupSelectMenuItemContent`'s own `Build`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
254    pub unsafe fn build(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item: crate::app::basicmenuitem::BasicMenuItem) -> () {
255        let __mi = Self::build_method_info();
256        let __inner: extern "C" fn(::unity::IlInstance, crate::app::basicmenuitem::BasicMenuItem, ::unity::OptionalMethod) -> () =
257            ::core::mem::transmute(__mi.method_ptr);
258        __inner(this.into(), menu_item, ::core::option::Option::None)
259    }
260
261    #[doc = "Direct (non-virtual) call to `MyRoomWakeupSelectMenuItemContent`'s own `BuildText`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
262    pub unsafe fn build_text(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
263        let __mi = Self::build_text_method_info();
264        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
265        __inner(this.into(), ::core::option::Option::None)
266    }
267
268    #[doc = "Direct (non-virtual) call to `MyRoomWakeupSelectMenuItemContent`'s own `UpdateTextColor`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
269    pub unsafe fn update_text_color(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
270        let __mi = Self::update_text_color_method_info();
271        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
272        __inner(this.into(), ::core::option::Option::None)
273    }
274
275    #[doc = "Direct (non-virtual) call to `MyRoomWakeupSelectMenuItemContent`'s own `Update`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
276    pub unsafe fn update(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
277        let __mi = Self::update_method_info();
278        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
279        __inner(this.into(), ::core::option::Option::None)
280    }
281}
282
283#[cfg(feature = "app-myroomwakeupselectmenuitemcontent")]
284impl MyRoomWakeupSelectMenuItemContent {
285    #[doc = "`.ctor()` — no args"]
286    pub fn new() -> Self {
287        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
288            panic!(
289                "{}
290::{}
291 failed to instantiate",
292                ::core::stringify!(MyRoomWakeupSelectMenuItemContent),
293                ::core::stringify!(new),
294            )
295        });
296        <Self as IMyRoomWakeupSelectMenuItemContentMethods>::ctor(this);
297        this
298    }
299}
300
301#[cfg(feature = "app-myroomwakeupselectmenuitemcontent")]
302#[doc(hidden)]
303pub mod prelude {
304    pub use super::{IMyRoomWakeupSelectMenuItemContent, IMyRoomWakeupSelectMenuItemContentMethods, MyRoomWakeupSelectMenuItemContent};
305    #[cfg(feature = "app-basicmenuitemcontent")]
306    pub use crate::app::basicmenuitemcontent::IBasicMenuItemContentMethods;
307    #[cfg(feature = "system-object")]
308    pub use crate::system::object::IObjectMethods;
309    #[cfg(feature = "unity_engine-behaviour")]
310    pub use crate::unity_engine::behaviour::IBehaviourMethods;
311    #[cfg(feature = "unity_engine-component")]
312    pub use crate::unity_engine::component::IComponentMethods;
313    #[cfg(feature = "unity_engine-monobehaviour")]
314    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
315    #[cfg(feature = "unity_engine-object_2")]
316    pub use crate::unity_engine::object_2::IObject_2Methods;
317    pub use crate::{
318        app::basicmenuitemcontent::IBasicMenuItemContent,
319        system::object::IObject,
320        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
321    };
322}