Skip to main content

engage/generated/app/
hubplaytalkaftermenucontent.rs

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