Skip to main content

engage/generated/app/
rankingmenucontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-rankingmenucontent-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::basicmenucontent::{BasicMenuContent, IBasicMenuContent},
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/rankingmenucontent/RankingMenuContent.md"))]
20    #[::unity::class(namespace = "App", name = "RankingMenuContent")]
21    #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22    pub struct RankingMenuContent {
23        #[static_field]
24        #[rename(name = "PrefabPath")]
25        pub prefab_path: ::unity::Il2CppString,
26        #[offset(232)]
27        #[rename(name = "m_chapterNo")]
28        pub m_chapter_no: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
29        #[offset(240)]
30        #[rename(name = "m_chapterTitle")]
31        pub m_chapter_title: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
32    }
33}
34
35#[cfg(feature = "app-rankingmenucontent-types")]
36pub use __types::*;
37
38#[cfg(feature = "app-rankingmenucontent")]
39impl RankingMenuContent {
40    #[doc = "`LoadPrefabAsync()` overload"]
41    pub fn load_prefab_async() -> () {
42        unsafe {
43            ::unity::il2cpp_call!((::unity::module_base()+0x237ad90usize)as*mut u8,();
44            )
45        }
46    }
47
48    #[doc = "`IsLoadingPrefab()` overload"]
49    pub fn is_loading_prefab() -> bool {
50        unsafe {
51            ::unity::il2cpp_call!((::unity::module_base()+0x237ae30usize)as*mut u8,bool;
52            )
53        }
54    }
55
56    #[doc = "`UnloadPrefab()` overload"]
57    pub fn unload_prefab() -> () {
58        unsafe {
59            ::unity::il2cpp_call!((::unity::module_base()+0x237aeb0usize)as*mut u8,();
60            )
61        }
62    }
63
64    #[doc = "`Create()` overload"]
65    pub fn create() -> crate::app::rankingmenucontent::RankingMenuContent {
66        unsafe {
67            ::unity::il2cpp_call!((::unity::module_base()+0x237a9b0usize)as*mut u8,crate::app::rankingmenucontent::RankingMenuContent;
68            )
69        }
70    }
71
72    #[doc = "`Destroy(crate::app::rankingmenucontent::RankingMenuContent)` overload"]
73    pub fn destroy(content: impl ::core::convert::Into<crate::app::rankingmenucontent::RankingMenuContent>) -> () {
74        unsafe {
75            ::unity::il2cpp_call!((::unity::module_base()+0x237af30usize)as*mut u8,();
76(crate::app::rankingmenucontent::RankingMenuContent)::core::convert::Into::into(content))
77        }
78    }
79}
80
81#[cfg(feature = "app-rankingmenucontent")]
82pub trait IRankingMenuContentMethods: IRankingMenuContent {
83    #[doc = "`AfterBuild()` overload"]
84    fn after_build(self) -> () {
85        unsafe {
86            let __receiver = <RankingMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87            {
88                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
89                let __vi = *__vt.get(27usize).unwrap_or_else(|| {
90                    panic!(
91                        "unity: virtual slot {}
92 out of range (vtable len {}
93) on the runtime class behind {}
94 (method `{}
95`)",
96                        27usize,
97                        __vt.len(),
98                        <RankingMenuContent as ::unity::ClassIdentity>::NAME,
99                        "AfterBuild",
100                    )
101                });
102                let __inner: extern "C" fn(RankingMenuContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
103                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
104                __inner(__receiver, __mi)
105            }
106        }
107    }
108    #[doc = "`CalcCursorMovedPosY(i32)` overload"]
109    fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
110        unsafe {
111            let __receiver = <RankingMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
112            {
113                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
114                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
115                    panic!(
116                        "unity: virtual slot {}
117 out of range (vtable len {}
118) on the runtime class behind {}
119 (method `{}
120`)",
121                        10usize,
122                        __vt.len(),
123                        <RankingMenuContent as ::unity::ClassIdentity>::NAME,
124                        "CalcCursorMovedPosY",
125                    )
126                });
127                let __inner: extern "C" fn(RankingMenuContent, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
128                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
129                __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
130            }
131        }
132    }
133    #[doc = "`GetMenuItemContentMax()` overload"]
134    fn get_menu_item_content_max(self) -> i32 {
135        unsafe {
136            let __receiver = <RankingMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
137            {
138                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
139                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
140                    panic!(
141                        "unity: virtual slot {}
142 out of range (vtable len {}
143) on the runtime class behind {}
144 (method `{}
145`)",
146                        4usize,
147                        __vt.len(),
148                        <RankingMenuContent as ::unity::ClassIdentity>::NAME,
149                        "GetMenuItemContentMax",
150                    )
151                });
152                let __inner: extern "C" fn(RankingMenuContent, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
153                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
154                __inner(__receiver, __mi)
155            }
156        }
157    }
158    #[doc = "`CalcW()` overload"]
159    fn calc_w(self) -> f32 {
160        unsafe {
161            let __receiver = <RankingMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162            {
163                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
164                let __vi = *__vt.get(21usize).unwrap_or_else(|| {
165                    panic!(
166                        "unity: virtual slot {}
167 out of range (vtable len {}
168) on the runtime class behind {}
169 (method `{}
170`)",
171                        21usize,
172                        __vt.len(),
173                        <RankingMenuContent as ::unity::ClassIdentity>::NAME,
174                        "CalcW",
175                    )
176                });
177                let __inner: extern "C" fn(RankingMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
178                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
179                __inner(__receiver, __mi)
180            }
181        }
182    }
183    #[doc = "`CalcH()` overload"]
184    fn calc_h(self) -> f32 {
185        unsafe {
186            let __receiver = <RankingMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
187            {
188                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
189                let __vi = *__vt.get(22usize).unwrap_or_else(|| {
190                    panic!(
191                        "unity: virtual slot {}
192 out of range (vtable len {}
193) on the runtime class behind {}
194 (method `{}
195`)",
196                        22usize,
197                        __vt.len(),
198                        <RankingMenuContent as ::unity::ClassIdentity>::NAME,
199                        "CalcH",
200                    )
201                });
202                let __inner: extern "C" fn(RankingMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
203                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
204                __inner(__receiver, __mi)
205            }
206        }
207    }
208    #[doc = "`SetCapter(crate::app::chapterdata::ChapterData)` overload"]
209    fn set_capter(self, chapter: impl ::core::convert::Into<crate::app::chapterdata::ChapterData>) -> () {
210        unsafe {
211            let __receiver = <RankingMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
212            ::unity::il2cpp_call!((::unity::module_base()+0x237aa70usize)as*mut u8,();
213(RankingMenuContent)__receiver,(crate::app::chapterdata::ChapterData)::core::convert::Into::into(chapter))
214        }
215    }
216    #[doc = "`.ctor()` overload"]
217    fn ctor(self) -> () {
218        unsafe {
219            let __receiver = <RankingMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
220            ::unity::il2cpp_call!((::unity::module_base()+0x237b0a0usize)as*mut u8,();
221(RankingMenuContent)__receiver)
222        }
223    }
224}
225
226#[cfg(feature = "app-rankingmenucontent")]
227impl<__T: IRankingMenuContent> IRankingMenuContentMethods for __T {}
228
229#[cfg(feature = "app-rankingmenucontent")]
230impl RankingMenuContent {
231    pub fn after_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
232        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
233    }
234
235    pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
236        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
237    }
238
239    pub fn load_prefab_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
241    }
242
243    pub fn is_loading_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
244        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
245    }
246
247    pub fn unload_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
249    }
250
251    pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
253    }
254
255    pub fn destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
257    }
258
259    pub fn get_menu_item_content_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
261    }
262
263    pub fn calc_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
265    }
266
267    pub fn calc_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
269    }
270
271    pub fn set_capter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
272        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
273    }
274
275    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
276        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
277    }
278}
279
280#[cfg(feature = "app-rankingmenucontent")]
281impl RankingMenuContent {
282    #[doc = "Direct (non-virtual) call to `RankingMenuContent`'s own `AfterBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
283    pub unsafe fn after_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
284        let __mi = Self::after_build_method_info();
285        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
286        __inner(this.into(), ::core::option::Option::None)
287    }
288
289    #[doc = "Direct (non-virtual) call to `RankingMenuContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
290    pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
291        let __mi = Self::calc_cursor_moved_pos_y_method_info();
292        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
293        __inner(this.into(), menu_item_index, ::core::option::Option::None)
294    }
295
296    #[doc = "Direct (non-virtual) call to `RankingMenuContent`'s own `GetMenuItemContentMax`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
297    pub unsafe fn get_menu_item_content_max(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
298        let __mi = Self::get_menu_item_content_max_method_info();
299        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
300        __inner(this.into(), ::core::option::Option::None)
301    }
302
303    #[doc = "Direct (non-virtual) call to `RankingMenuContent`'s own `CalcW`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
304    pub unsafe fn calc_w(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
305        let __mi = Self::calc_w_method_info();
306        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
307        __inner(this.into(), ::core::option::Option::None)
308    }
309
310    #[doc = "Direct (non-virtual) call to `RankingMenuContent`'s own `CalcH`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
311    pub unsafe fn calc_h(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
312        let __mi = Self::calc_h_method_info();
313        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
314        __inner(this.into(), ::core::option::Option::None)
315    }
316}
317
318#[cfg(feature = "app-rankingmenucontent")]
319impl RankingMenuContent {
320    #[doc = "`.ctor()` — no args"]
321    pub fn new() -> Self {
322        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
323            panic!(
324                "{}
325::{}
326 failed to instantiate",
327                ::core::stringify!(RankingMenuContent),
328                ::core::stringify!(new),
329            )
330        });
331        <Self as IRankingMenuContentMethods>::ctor(this);
332        this
333    }
334}
335
336#[cfg(feature = "app-rankingmenucontent")]
337#[doc(hidden)]
338pub mod prelude {
339    pub use super::{IRankingMenuContent, IRankingMenuContentMethods, RankingMenuContent};
340    #[cfg(feature = "app-basicmenucontent")]
341    pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
342    #[cfg(feature = "system-object")]
343    pub use crate::system::object::IObjectMethods;
344    #[cfg(feature = "unity_engine-behaviour")]
345    pub use crate::unity_engine::behaviour::IBehaviourMethods;
346    #[cfg(feature = "unity_engine-component")]
347    pub use crate::unity_engine::component::IComponentMethods;
348    #[cfg(feature = "unity_engine-monobehaviour")]
349    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
350    #[cfg(feature = "unity_engine-object_2")]
351    pub use crate::unity_engine::object_2::IObject_2Methods;
352    pub use crate::{
353        app::basicmenucontent::IBasicMenuContent,
354        system::object::IObject,
355        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
356    };
357}