Skip to main content

engage/generated/root/
tutoriallistselectmenuitem.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-tutoriallistselectmenuitem-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::basicmenuitem::{BasicMenuItem, IBasicMenuItem},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/tutoriallistselectmenuitem/TutorialListSelectMenuItem.md"))]
14    #[::unity::class(namespace = "", name = "TutorialListSelectMenuItem")]
15    #[parent(crate::app::basicmenuitem::BasicMenuItem)]
16    pub struct TutorialListSelectMenuItem {
17        #[offset(104)]
18        #[rename(name = "m_TutorialID")]
19        pub m_tutorial_id: ::unity::Il2CppString,
20        #[offset(112)]
21        #[rename(name = "m_TutorialData")]
22        pub m_tutorial_data: crate::system::collections::generic::list_1::List_1<crate::app::tutorialdata::TutorialData>,
23        #[offset(120)]
24        #[rename(name = "m_MainSpriteAtlas")]
25        pub m_main_sprite_atlas: crate::unity_engine::u2d::spriteatlas::SpriteAtlas,
26        #[offset(128)]
27        #[rename(name = "m_SubSpriteAtlas")]
28        pub m_sub_sprite_atlas: crate::unity_engine::u2d::spriteatlas::SpriteAtlas,
29        #[offset(136)]
30        #[rename(name = "m_Root")]
31        pub m_root: crate::root::tutoriallistroot::TutorialListRoot,
32        #[offset(144)]
33        #[rename(name = "m_IsUnread")]
34        pub m_is_unread: bool,
35        #[static_field]
36        #[rename(name = "FirstPage")]
37        pub first_page: i32,
38        #[offset(148)]
39        #[rename(name = "m_Page")]
40        pub m_page: i32,
41    }
42}
43
44#[cfg(feature = "root-tutoriallistselectmenuitem-types")]
45pub use __types::*;
46
47#[cfg(feature = "root-tutoriallistselectmenuitem")]
48pub trait ITutorialListSelectMenuItemMethods: ITutorialListSelectMenuItem {
49    #[doc = "`.ctor(::unity::Il2CppString, crate::root::tutoriallistroot::TutorialListRoot)` overload"]
50    fn ctor(
51        self,
52        tutorial_id: impl ::core::convert::Into<::unity::Il2CppString>,
53        root: impl ::core::convert::Into<crate::root::tutoriallistroot::TutorialListRoot>,
54    ) -> () {
55        unsafe {
56            let __receiver =
57                <TutorialListSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
58            ::unity::il2cpp_call!((::unity::module_base()+0x22b0180usize)as*mut u8,();
59(TutorialListSelectMenuItem)__receiver,(::unity::Il2CppString)::core::convert::Into::into(tutorial_id),(crate::root::tutoriallistroot::TutorialListRoot)::core::convert::Into::into(root))
60        }
61    }
62    #[doc = "`OnBuild()` overload"]
63    fn on_build(self) -> () {
64        unsafe {
65            let __receiver =
66                <TutorialListSelectMenuItem 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(10usize).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                        10usize,
77                        __vt.len(),
78                        <TutorialListSelectMenuItem as ::unity::ClassIdentity>::NAME,
79                        "OnBuild",
80                    )
81                });
82                let __inner: extern "C" fn(TutorialListSelectMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
83                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
84                __inner(__receiver, __mi)
85            }
86        }
87    }
88    #[doc = "`OnBuildMenuItemContent()` overload"]
89    fn on_build_menu_item_content(self) -> () {
90        unsafe {
91            let __receiver =
92                <TutorialListSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
93            {
94                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
95                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
96                    panic!(
97                        "unity: virtual slot {}
98 out of range (vtable len {}
99) on the runtime class behind {}
100 (method `{}
101`)",
102                        11usize,
103                        __vt.len(),
104                        <TutorialListSelectMenuItem as ::unity::ClassIdentity>::NAME,
105                        "OnBuildMenuItemContent",
106                    )
107                });
108                let __inner: extern "C" fn(TutorialListSelectMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
109                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
110                __inner(__receiver, __mi)
111            }
112        }
113    }
114    #[doc = "`OnSelect()` overload"]
115    fn on_select(self) -> () {
116        unsafe {
117            let __receiver =
118                <TutorialListSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
119            {
120                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
121                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
122                    panic!(
123                        "unity: virtual slot {}
124 out of range (vtable len {}
125) on the runtime class behind {}
126 (method `{}
127`)",
128                        12usize,
129                        __vt.len(),
130                        <TutorialListSelectMenuItem as ::unity::ClassIdentity>::NAME,
131                        "OnSelect",
132                    )
133                });
134                let __inner: extern "C" fn(TutorialListSelectMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
135                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
136                __inner(__receiver, __mi)
137            }
138        }
139    }
140    #[doc = "`OnDeselect()` overload"]
141    fn on_deselect(self) -> () {
142        unsafe {
143            let __receiver =
144                <TutorialListSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
145            {
146                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
147                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
148                    panic!(
149                        "unity: virtual slot {}
150 out of range (vtable len {}
151) on the runtime class behind {}
152 (method `{}
153`)",
154                        13usize,
155                        __vt.len(),
156                        <TutorialListSelectMenuItem as ::unity::ClassIdentity>::NAME,
157                        "OnDeselect",
158                    )
159                });
160                let __inner: extern "C" fn(TutorialListSelectMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
161                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
162                __inner(__receiver, __mi)
163            }
164        }
165    }
166    #[doc = "`Tick()` overload"]
167    fn tick(self) -> () {
168        unsafe {
169            let __receiver =
170                <TutorialListSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
171            {
172                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
173                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
174                    panic!(
175                        "unity: virtual slot {}
176 out of range (vtable len {}
177) on the runtime class behind {}
178 (method `{}
179`)",
180                        9usize,
181                        __vt.len(),
182                        <TutorialListSelectMenuItem as ::unity::ClassIdentity>::NAME,
183                        "Tick",
184                    )
185                });
186                let __inner: extern "C" fn(TutorialListSelectMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
187                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
188                __inner(__receiver, __mi)
189            }
190        }
191    }
192    #[doc = "`BCall()` overload"]
193    fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
194        unsafe {
195            let __receiver =
196                <TutorialListSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
197            {
198                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
199                let __vi = *__vt.get(19usize).unwrap_or_else(|| {
200                    panic!(
201                        "unity: virtual slot {}
202 out of range (vtable len {}
203) on the runtime class behind {}
204 (method `{}
205`)",
206                        19usize,
207                        __vt.len(),
208                        <TutorialListSelectMenuItem as ::unity::ClassIdentity>::NAME,
209                        "BCall",
210                    )
211                });
212                let __inner: extern "C" fn(TutorialListSelectMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
213                    ::core::mem::transmute(__vi.method_ptr);
214                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
215                __inner(__receiver, __mi)
216            }
217        }
218    }
219    #[doc = "`CustomCall()` overload"]
220    fn custom_call(self) -> crate::app::basicmenu::BasicMenu_Result {
221        unsafe {
222            let __receiver =
223                <TutorialListSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
224            {
225                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
226                let __vi = *__vt.get(26usize).unwrap_or_else(|| {
227                    panic!(
228                        "unity: virtual slot {}
229 out of range (vtable len {}
230) on the runtime class behind {}
231 (method `{}
232`)",
233                        26usize,
234                        __vt.len(),
235                        <TutorialListSelectMenuItem as ::unity::ClassIdentity>::NAME,
236                        "CustomCall",
237                    )
238                });
239                let __inner: extern "C" fn(TutorialListSelectMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
240                    ::core::mem::transmute(__vi.method_ptr);
241                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
242                __inner(__receiver, __mi)
243            }
244        }
245    }
246    #[doc = "`InitParam()` overload"]
247    fn init_param(self) -> () {
248        unsafe {
249            let __receiver =
250                <TutorialListSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
251            ::unity::il2cpp_call!((::unity::module_base()+0x22b0ca0usize)as*mut u8,();
252(TutorialListSelectMenuItem)__receiver)
253        }
254    }
255    #[doc = "`InitColor()` overload"]
256    fn init_color(self) -> () {
257        unsafe {
258            let __receiver =
259                <TutorialListSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
260            ::unity::il2cpp_call!((::unity::module_base()+0x22b0a20usize)as*mut u8,();
261(TutorialListSelectMenuItem)__receiver)
262        }
263    }
264    #[doc = "`UpdateText()` overload"]
265    fn update_text(self) -> () {
266        unsafe {
267            let __receiver =
268                <TutorialListSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
269            ::unity::il2cpp_call!((::unity::module_base()+0x22b0920usize)as*mut u8,();
270(TutorialListSelectMenuItem)__receiver)
271        }
272    }
273    #[doc = "`TurnTutorial()` overload"]
274    fn turn_tutorial(self) -> () {
275        unsafe {
276            let __receiver =
277                <TutorialListSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
278            ::unity::il2cpp_call!((::unity::module_base()+0x22b12e0usize)as*mut u8,();
279(TutorialListSelectMenuItem)__receiver)
280        }
281    }
282    #[doc = "`SetTutorialImage()` overload"]
283    fn set_tutorial_image(self) -> () {
284        unsafe {
285            let __receiver =
286                <TutorialListSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
287            ::unity::il2cpp_call!((::unity::module_base()+0x22b10b0usize)as*mut u8,();
288(TutorialListSelectMenuItem)__receiver)
289        }
290    }
291    #[doc = "`SetTutorialText()` overload"]
292    fn set_tutorial_text(self) -> () {
293        unsafe {
294            let __receiver =
295                <TutorialListSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
296            ::unity::il2cpp_call!((::unity::module_base()+0x22b0cc0usize)as*mut u8,();
297(TutorialListSelectMenuItem)__receiver)
298        }
299    }
300    #[doc = "`SetArrow()` overload"]
301    fn set_arrow(self) -> () {
302        unsafe {
303            let __receiver =
304                <TutorialListSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
305            ::unity::il2cpp_call!((::unity::module_base()+0x22b0ed0usize)as*mut u8,();
306(TutorialListSelectMenuItem)__receiver)
307        }
308    }
309    #[doc = "`get_IsUnread()` overload"]
310    fn get_is_unread(self) -> bool {
311        unsafe {
312            let __receiver =
313                <TutorialListSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
314            ::unity::il2cpp_call!((::unity::module_base()+0x22b1820usize)as*mut u8,bool;
315(TutorialListSelectMenuItem)__receiver)
316        }
317    }
318}
319
320#[cfg(feature = "root-tutoriallistselectmenuitem")]
321impl<__T: ITutorialListSelectMenuItem> ITutorialListSelectMenuItemMethods for __T {}
322
323#[cfg(feature = "root-tutoriallistselectmenuitem")]
324impl TutorialListSelectMenuItem {
325    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
326        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
327    }
328
329    pub fn on_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
330        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
331    }
332
333    pub fn on_build_menu_item_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
334        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
335    }
336
337    pub fn on_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
338        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
339    }
340
341    pub fn on_deselect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
342        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
343    }
344
345    pub fn tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
346        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
347    }
348
349    pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
350        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
351    }
352
353    pub fn custom_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
354        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
355    }
356
357    pub fn init_param_method_info() -> &'static ::unity::il2cpp::MethodInfo {
358        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
359    }
360
361    pub fn init_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
362        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
363    }
364
365    pub fn update_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
366        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
367    }
368
369    pub fn turn_tutorial_method_info() -> &'static ::unity::il2cpp::MethodInfo {
370        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
371    }
372
373    pub fn set_tutorial_image_method_info() -> &'static ::unity::il2cpp::MethodInfo {
374        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
375    }
376
377    pub fn set_tutorial_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
378        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
379    }
380
381    pub fn set_arrow_method_info() -> &'static ::unity::il2cpp::MethodInfo {
382        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
383    }
384
385    pub fn get_is_unread_method_info() -> &'static ::unity::il2cpp::MethodInfo {
386        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
387    }
388}
389
390#[cfg(feature = "root-tutoriallistselectmenuitem")]
391impl TutorialListSelectMenuItem {
392    #[doc = "Direct (non-virtual) call to `TutorialListSelectMenuItem`'s own `OnBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
393    pub unsafe fn on_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
394        let __mi = Self::on_build_method_info();
395        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
396        __inner(this.into(), ::core::option::Option::None)
397    }
398
399    #[doc = "Direct (non-virtual) call to `TutorialListSelectMenuItem`'s own `OnBuildMenuItemContent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
400    pub unsafe fn on_build_menu_item_content(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
401        let __mi = Self::on_build_menu_item_content_method_info();
402        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
403        __inner(this.into(), ::core::option::Option::None)
404    }
405
406    #[doc = "Direct (non-virtual) call to `TutorialListSelectMenuItem`'s own `OnSelect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
407    pub unsafe fn on_select(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
408        let __mi = Self::on_select_method_info();
409        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
410        __inner(this.into(), ::core::option::Option::None)
411    }
412
413    #[doc = "Direct (non-virtual) call to `TutorialListSelectMenuItem`'s own `OnDeselect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
414    pub unsafe fn on_deselect(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
415        let __mi = Self::on_deselect_method_info();
416        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
417        __inner(this.into(), ::core::option::Option::None)
418    }
419
420    #[doc = "Direct (non-virtual) call to `TutorialListSelectMenuItem`'s own `Tick`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
421    pub unsafe fn tick(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
422        let __mi = Self::tick_method_info();
423        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
424        __inner(this.into(), ::core::option::Option::None)
425    }
426
427    #[doc = "Direct (non-virtual) call to `TutorialListSelectMenuItem`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
428    pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
429        let __mi = Self::b_call_method_info();
430        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
431            ::core::mem::transmute(__mi.method_ptr);
432        __inner(this.into(), ::core::option::Option::None)
433    }
434
435    #[doc = "Direct (non-virtual) call to `TutorialListSelectMenuItem`'s own `CustomCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
436    pub unsafe fn custom_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
437        let __mi = Self::custom_call_method_info();
438        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
439            ::core::mem::transmute(__mi.method_ptr);
440        __inner(this.into(), ::core::option::Option::None)
441    }
442}
443
444#[cfg(feature = "root-tutoriallistselectmenuitem")]
445impl TutorialListSelectMenuItem {
446    #[doc = "`.ctor(::unity::Il2CppString, crate::root::tutoriallistroot::TutorialListRoot)` — overload selector"]
447    pub fn new(tutorial_id: ::unity::Il2CppString, root: crate::root::tutoriallistroot::TutorialListRoot) -> Self {
448        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
449            panic!(
450                "{}
451::{}
452 failed to instantiate",
453                ::core::stringify!(TutorialListSelectMenuItem),
454                ::core::stringify!(new),
455            )
456        });
457        <Self as ITutorialListSelectMenuItemMethods>::ctor(this, tutorial_id, root);
458        this
459    }
460}
461
462#[cfg(feature = "root-tutoriallistselectmenuitem")]
463#[doc(hidden)]
464pub mod prelude {
465    pub use super::{ITutorialListSelectMenuItem, ITutorialListSelectMenuItemMethods, TutorialListSelectMenuItem};
466    #[cfg(feature = "app-basicmenuitem")]
467    pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
468    #[cfg(feature = "system-object")]
469    pub use crate::system::object::IObjectMethods;
470    pub use crate::{app::basicmenuitem::IBasicMenuItem, system::object::IObject};
471}