Skip to main content

engage/generated/app/
friendlistselectmenucontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-friendlistselectmenucontent-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/friendlistselectmenucontent/FriendListSelectMenuContent.md"))]
20    #[::unity::class(namespace = "App", name = "FriendListSelectMenuContent")]
21    #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22    pub struct FriendListSelectMenuContent {
23        #[static_field]
24        #[rename(name = "PrefabPath")]
25        pub prefab_path: ::unity::Il2CppString,
26    }
27}
28
29#[cfg(feature = "app-friendlistselectmenucontent-types")]
30pub use __types::*;
31
32#[cfg(feature = "app-friendlistselectmenucontent")]
33impl FriendListSelectMenuContent {
34    #[doc = "`LoadPrefabAsync()` overload"]
35    pub fn load_prefab_async() -> () {
36        unsafe {
37            ::unity::il2cpp_call!((::unity::module_base()+0x226feb0usize)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()+0x226ff50usize)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()+0x226ffd0usize)as*mut u8,();
54            )
55        }
56    }
57
58    #[doc = "`Create()` overload"]
59    pub fn create() -> crate::app::friendlistselectmenucontent::FriendListSelectMenuContent {
60        unsafe {
61            ::unity::il2cpp_call!((::unity::module_base()+0x226fc40usize)as*mut u8,crate::app::friendlistselectmenucontent::FriendListSelectMenuContent;
62            )
63        }
64    }
65
66    #[doc = "`Destroy(crate::app::fortunetellingunitselectmenucontent::FortuneTellingUnitSelectMenuContent)` overload"]
67    pub fn destroy(content: impl ::core::convert::Into<crate::app::fortunetellingunitselectmenucontent::FortuneTellingUnitSelectMenuContent>) -> () {
68        unsafe {
69            ::unity::il2cpp_call!((::unity::module_base()+0x2270050usize)as*mut u8,();
70(crate::app::fortunetellingunitselectmenucontent::FortuneTellingUnitSelectMenuContent)::core::convert::Into::into(content))
71        }
72    }
73}
74
75#[cfg(feature = "app-friendlistselectmenucontent")]
76pub trait IFriendListSelectMenuContentMethods: IFriendListSelectMenuContent {
77    #[doc = "`CalcCursorMovedPosY(i32)` overload"]
78    fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
79        unsafe {
80            let __receiver =
81                <FriendListSelectMenuContent 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(10usize).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                        10usize,
92                        __vt.len(),
93                        <FriendListSelectMenuContent as ::unity::ClassIdentity>::NAME,
94                        "CalcCursorMovedPosY",
95                    )
96                });
97                let __inner: extern "C" fn(FriendListSelectMenuContent, i32, ::unity::OptionalMethod) -> f32 =
98                    ::core::mem::transmute(__vi.method_ptr);
99                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
100                __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
101            }
102        }
103    }
104    #[doc = "`CalcW()` overload"]
105    fn calc_w(self) -> f32 {
106        unsafe {
107            let __receiver =
108                <FriendListSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109            {
110                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
111                let __vi = *__vt.get(21usize).unwrap_or_else(|| {
112                    panic!(
113                        "unity: virtual slot {}
114 out of range (vtable len {}
115) on the runtime class behind {}
116 (method `{}
117`)",
118                        21usize,
119                        __vt.len(),
120                        <FriendListSelectMenuContent as ::unity::ClassIdentity>::NAME,
121                        "CalcW",
122                    )
123                });
124                let __inner: extern "C" fn(FriendListSelectMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
125                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
126                __inner(__receiver, __mi)
127            }
128        }
129    }
130    #[doc = "`CalcH()` overload"]
131    fn calc_h(self) -> f32 {
132        unsafe {
133            let __receiver =
134                <FriendListSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135            {
136                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
137                let __vi = *__vt.get(22usize).unwrap_or_else(|| {
138                    panic!(
139                        "unity: virtual slot {}
140 out of range (vtable len {}
141) on the runtime class behind {}
142 (method `{}
143`)",
144                        22usize,
145                        __vt.len(),
146                        <FriendListSelectMenuContent as ::unity::ClassIdentity>::NAME,
147                        "CalcH",
148                    )
149                });
150                let __inner: extern "C" fn(FriendListSelectMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
151                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
152                __inner(__receiver, __mi)
153            }
154        }
155    }
156    #[doc = "`.ctor()` overload"]
157    fn ctor(self) -> () {
158        unsafe {
159            let __receiver =
160                <FriendListSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161            ::unity::il2cpp_call!((::unity::module_base()+0x22701b0usize)as*mut u8,();
162(FriendListSelectMenuContent)__receiver)
163        }
164    }
165}
166
167#[cfg(feature = "app-friendlistselectmenucontent")]
168impl<__T: IFriendListSelectMenuContent> IFriendListSelectMenuContentMethods for __T {}
169
170#[cfg(feature = "app-friendlistselectmenucontent")]
171impl FriendListSelectMenuContent {
172    pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
174    }
175
176    pub fn load_prefab_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
178    }
179
180    pub fn is_loading_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
182    }
183
184    pub fn unload_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
186    }
187
188    pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
190    }
191
192    pub fn destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
194    }
195
196    pub fn calc_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
198    }
199
200    pub fn calc_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
202    }
203
204    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
206    }
207}
208
209#[cfg(feature = "app-friendlistselectmenucontent")]
210impl FriendListSelectMenuContent {
211    #[doc = "Direct (non-virtual) call to `FriendListSelectMenuContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
212    pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
213        let __mi = Self::calc_cursor_moved_pos_y_method_info();
214        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
215        __inner(this.into(), menu_item_index, ::core::option::Option::None)
216    }
217
218    #[doc = "Direct (non-virtual) call to `FriendListSelectMenuContent`'s own `CalcW`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
219    pub unsafe fn calc_w(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
220        let __mi = Self::calc_w_method_info();
221        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
222        __inner(this.into(), ::core::option::Option::None)
223    }
224
225    #[doc = "Direct (non-virtual) call to `FriendListSelectMenuContent`'s own `CalcH`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
226    pub unsafe fn calc_h(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
227        let __mi = Self::calc_h_method_info();
228        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
229        __inner(this.into(), ::core::option::Option::None)
230    }
231}
232
233#[cfg(feature = "app-friendlistselectmenucontent")]
234impl FriendListSelectMenuContent {
235    #[doc = "`.ctor()` — no args"]
236    pub fn new() -> Self {
237        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
238            panic!(
239                "{}
240::{}
241 failed to instantiate",
242                ::core::stringify!(FriendListSelectMenuContent),
243                ::core::stringify!(new),
244            )
245        });
246        <Self as IFriendListSelectMenuContentMethods>::ctor(this);
247        this
248    }
249}
250
251#[cfg(feature = "app-friendlistselectmenucontent")]
252#[doc(hidden)]
253pub mod prelude {
254    pub use super::{FriendListSelectMenuContent, IFriendListSelectMenuContent, IFriendListSelectMenuContentMethods};
255    #[cfg(feature = "app-basicmenucontent")]
256    pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
257    #[cfg(feature = "system-object")]
258    pub use crate::system::object::IObjectMethods;
259    #[cfg(feature = "unity_engine-behaviour")]
260    pub use crate::unity_engine::behaviour::IBehaviourMethods;
261    #[cfg(feature = "unity_engine-component")]
262    pub use crate::unity_engine::component::IComponentMethods;
263    #[cfg(feature = "unity_engine-monobehaviour")]
264    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
265    #[cfg(feature = "unity_engine-object_2")]
266    pub use crate::unity_engine::object_2::IObject_2Methods;
267    pub use crate::{
268        app::basicmenucontent::IBasicMenuContent,
269        system::object::IObject,
270        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
271    };
272}