Skip to main content

engage/generated/app/
relaytakeovermenu.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-relaytakeovermenu-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            basicmenu::{BasicMenu, IBasicMenu},
11            basicmenuitem::{BasicMenuItem, IBasicMenuItem},
12            procinst::{IProcInst, ProcInst},
13        },
14        system::{
15            object::{IObject, Object},
16            r#enum::{Enum, IEnum},
17            valuetype::{IValueType, ValueType},
18        },
19    };
20
21    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/relaytakeovermenu/RelayTakeOverMenu.md"))]
22    #[::unity::class(namespace = "App", name = "RelayTakeOverMenu")]
23    #[parent(crate::app::basicmenu::BasicMenu)]
24    pub struct RelayTakeOverMenu {}
25
26    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/relaytakeovermenu/RelayTakeOverMenu_MenuItem.md"))]
27    #[::unity::class(namespace = "App", name = "RelayTakeOverMenu.MenuItem")]
28    #[parent(crate::app::basicmenuitem::BasicMenuItem)]
29    pub struct RelayTakeOverMenu_MenuItem {
30        #[offset(104)]
31        #[rename(name = "m_TitleText")]
32        pub m_title_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
33        #[offset(112)]
34        #[rename(name = "m_CommentText")]
35        pub m_comment_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
36        #[offset(120)]
37        #[rename(name = "m_NameLabel")]
38        pub m_name_label: ::unity::Il2CppString,
39        #[offset(128)]
40        #[rename(name = "m_CommentLabel")]
41        pub m_comment_label: ::unity::Il2CppString,
42        #[offset(136)]
43        #[rename(name = "m_Mode")]
44        pub m_mode: crate::app::relay::Relay_TakeOverModes,
45    }
46
47    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/relaytakeovermenu/RelayTakeOverMenu_Result2.md"))]
48    #[repr(C)]
49    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
50    pub struct RelayTakeOverMenu_Result2 {
51        pub value: i32,
52    }
53    impl ::unity::ClassIdentity for RelayTakeOverMenu_Result2 {
54        const NAME: &'static str = "RelayTakeOverMenu.Result2";
55        const NAMESPACE: &'static str = "App";
56
57        fn class() -> ::unity::Class {
58            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
59            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
60        }
61    }
62    impl ::unity::IlType for RelayTakeOverMenu_Result2 {
63        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
64            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
65        }
66    }
67    impl RelayTakeOverMenu_Result2 {
68        pub fn random() -> Self {
69            Self { value: 0 }
70        }
71
72        pub fn data_code() -> Self {
73            Self { value: 1 }
74        }
75    }
76}
77
78#[cfg(feature = "app-relaytakeovermenu-types")]
79pub use __types::*;
80
81#[cfg(feature = "app-relaytakeovermenu")]
82impl RelayTakeOverMenu {
83    #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::relaytakeovermenu::RelayTakeOverMenu_Result2)` overload"]
84    pub fn create_bind(
85        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
86        initial_selected: impl ::core::convert::Into<crate::app::relaytakeovermenu::RelayTakeOverMenu_Result2>,
87    ) -> () {
88        unsafe {
89            ::unity::il2cpp_call!((::unity::module_base()+0x200d600usize)as*mut u8,();
90(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::relaytakeovermenu::RelayTakeOverMenu_Result2)::core::convert::Into::into(initial_selected))
91        }
92    }
93}
94
95#[cfg(feature = "app-relaytakeovermenu")]
96pub trait IRelayTakeOverMenuMethods: IRelayTakeOverMenu {
97    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::relaymodemenucontent::RelayModeMenuContent, crate::app::relaytakeovermenu::RelayTakeOverMenu_Result2)` overload"]
98    fn ctor(
99        self,
100        menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
101        menu_content: impl ::core::convert::Into<crate::app::relaymodemenucontent::RelayModeMenuContent>,
102        initial_selected: impl ::core::convert::Into<crate::app::relaytakeovermenu::RelayTakeOverMenu_Result2>,
103    ) -> () {
104        unsafe {
105            let __receiver = <RelayTakeOverMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106            ::unity::il2cpp_call!((::unity::module_base()+0x200d7d0usize)as*mut u8,();
107(RelayTakeOverMenu)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(menu_item_list),(crate::app::relaymodemenucontent::RelayModeMenuContent)::core::convert::Into::into(menu_content),(crate::app::relaytakeovermenu::RelayTakeOverMenu_Result2)::core::convert::Into::into(initial_selected))
108        }
109    }
110    #[doc = "`GetName()` overload"]
111    fn get_name(self) -> ::unity::Il2CppString {
112        unsafe {
113            let __receiver = <RelayTakeOverMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114            {
115                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
116                let __vi = *__vt.get(30usize).unwrap_or_else(|| {
117                    panic!(
118                        "unity: virtual slot {}
119 out of range (vtable len {}
120) on the runtime class behind {}
121 (method `{}
122`)",
123                        30usize,
124                        __vt.len(),
125                        <RelayTakeOverMenu as ::unity::ClassIdentity>::NAME,
126                        "GetName",
127                    )
128                });
129                let __inner: extern "C" fn(RelayTakeOverMenu, ::unity::OptionalMethod) -> ::unity::Il2CppString =
130                    ::core::mem::transmute(__vi.method_ptr);
131                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
132                __inner(__receiver, __mi)
133            }
134        }
135    }
136    #[doc = "`GetTutorial()` overload"]
137    fn get_tutorial(self) -> ::unity::Il2CppString {
138        unsafe {
139            let __receiver = <RelayTakeOverMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
140            {
141                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
142                let __vi = *__vt.get(63usize).unwrap_or_else(|| {
143                    panic!(
144                        "unity: virtual slot {}
145 out of range (vtable len {}
146) on the runtime class behind {}
147 (method `{}
148`)",
149                        63usize,
150                        __vt.len(),
151                        <RelayTakeOverMenu as ::unity::ClassIdentity>::NAME,
152                        "GetTutorial",
153                    )
154                });
155                let __inner: extern "C" fn(RelayTakeOverMenu, ::unity::OptionalMethod) -> ::unity::Il2CppString =
156                    ::core::mem::transmute(__vi.method_ptr);
157                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
158                __inner(__receiver, __mi)
159            }
160        }
161    }
162}
163
164#[cfg(feature = "app-relaytakeovermenu")]
165impl<__T: IRelayTakeOverMenu> IRelayTakeOverMenuMethods for __T {}
166
167#[cfg(feature = "app-relaytakeovermenu")]
168impl RelayTakeOverMenu {
169    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
171    }
172
173    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
175    }
176
177    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
179    }
180
181    pub fn get_tutorial_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
183    }
184}
185
186#[cfg(feature = "app-relaytakeovermenu")]
187impl RelayTakeOverMenu {
188    #[doc = "Direct (non-virtual) call to `RelayTakeOverMenu`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
189    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
190        let __mi = Self::get_name_method_info();
191        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
192        __inner(this.into(), ::core::option::Option::None)
193    }
194
195    #[doc = "Direct (non-virtual) call to `RelayTakeOverMenu`'s own `GetTutorial`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
196    pub unsafe fn get_tutorial(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
197        let __mi = Self::get_tutorial_method_info();
198        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
199        __inner(this.into(), ::core::option::Option::None)
200    }
201}
202
203#[cfg(feature = "app-relaytakeovermenu")]
204impl RelayTakeOverMenu {
205    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::relaymodemenucontent::RelayModeMenuContent, crate::app::relaytakeovermenu::RelayTakeOverMenu_Result2)` — overload selector"]
206    pub fn new(
207        menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
208        menu_content: crate::app::relaymodemenucontent::RelayModeMenuContent,
209        initial_selected: crate::app::relaytakeovermenu::RelayTakeOverMenu_Result2,
210    ) -> Self {
211        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
212            panic!(
213                "{}
214::{}
215 failed to instantiate",
216                ::core::stringify!(RelayTakeOverMenu),
217                ::core::stringify!(new),
218            )
219        });
220        <Self as IRelayTakeOverMenuMethods>::ctor(this, menu_item_list, menu_content, initial_selected);
221        this
222    }
223}
224
225#[cfg(feature = "app-relaytakeovermenu")]
226pub trait IRelayTakeOverMenu_MenuItemMethods: IRelayTakeOverMenu_MenuItem {
227    #[doc = "`.ctor(crate::unity_engine::gameobject::GameObject, crate::app::relaytakeovermenu::RelayTakeOverMenu_Result2)` overload"]
228    fn ctor(
229        self,
230        menu_obj: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
231        result: impl ::core::convert::Into<crate::app::relaytakeovermenu::RelayTakeOverMenu_Result2>,
232    ) -> () {
233        unsafe {
234            let __receiver =
235                <RelayTakeOverMenu_MenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
236            ::unity::il2cpp_call!((::unity::module_base()+0x1b0c040usize)as*mut u8,();
237(RelayTakeOverMenu_MenuItem)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(menu_obj),(crate::app::relaytakeovermenu::RelayTakeOverMenu_Result2)::core::convert::Into::into(result))
238        }
239    }
240    #[doc = "`GetName()` overload"]
241    fn get_name(self) -> ::unity::Il2CppString {
242        unsafe {
243            let __receiver =
244                <RelayTakeOverMenu_MenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
245            {
246                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
247                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
248                    panic!(
249                        "unity: virtual slot {}
250 out of range (vtable len {}
251) on the runtime class behind {}
252 (method `{}
253`)",
254                        4usize,
255                        __vt.len(),
256                        <RelayTakeOverMenu_MenuItem as ::unity::ClassIdentity>::NAME,
257                        "GetName",
258                    )
259                });
260                let __inner: extern "C" fn(RelayTakeOverMenu_MenuItem, ::unity::OptionalMethod) -> ::unity::Il2CppString =
261                    ::core::mem::transmute(__vi.method_ptr);
262                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
263                __inner(__receiver, __mi)
264            }
265        }
266    }
267    #[doc = "`ACall()` overload"]
268    fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
269        unsafe {
270            let __receiver =
271                <RelayTakeOverMenu_MenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
272            {
273                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
274                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
275                    panic!(
276                        "unity: virtual slot {}
277 out of range (vtable len {}
278) on the runtime class behind {}
279 (method `{}
280`)",
281                        18usize,
282                        __vt.len(),
283                        <RelayTakeOverMenu_MenuItem as ::unity::ClassIdentity>::NAME,
284                        "ACall",
285                    )
286                });
287                let __inner: extern "C" fn(RelayTakeOverMenu_MenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
288                    ::core::mem::transmute(__vi.method_ptr);
289                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
290                __inner(__receiver, __mi)
291            }
292        }
293    }
294    #[doc = "`OnSelect()` overload"]
295    fn on_select(self) -> () {
296        unsafe {
297            let __receiver =
298                <RelayTakeOverMenu_MenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
299            {
300                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
301                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
302                    panic!(
303                        "unity: virtual slot {}
304 out of range (vtable len {}
305) on the runtime class behind {}
306 (method `{}
307`)",
308                        12usize,
309                        __vt.len(),
310                        <RelayTakeOverMenu_MenuItem as ::unity::ClassIdentity>::NAME,
311                        "OnSelect",
312                    )
313                });
314                let __inner: extern "C" fn(RelayTakeOverMenu_MenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
315                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
316                __inner(__receiver, __mi)
317            }
318        }
319    }
320}
321
322#[cfg(feature = "app-relaytakeovermenu")]
323impl<__T: IRelayTakeOverMenu_MenuItem> IRelayTakeOverMenu_MenuItemMethods for __T {}
324
325#[cfg(feature = "app-relaytakeovermenu")]
326impl RelayTakeOverMenu_MenuItem {
327    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
328        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
329    }
330
331    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
332        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
333    }
334
335    pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
336        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
337    }
338
339    pub fn on_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
340        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
341    }
342}
343
344#[cfg(feature = "app-relaytakeovermenu")]
345impl RelayTakeOverMenu_MenuItem {
346    #[doc = "Direct (non-virtual) call to `RelayTakeOverMenu_MenuItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
347    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
348        let __mi = Self::get_name_method_info();
349        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
350        __inner(this.into(), ::core::option::Option::None)
351    }
352
353    #[doc = "Direct (non-virtual) call to `RelayTakeOverMenu_MenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
354    pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
355        let __mi = Self::a_call_method_info();
356        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
357            ::core::mem::transmute(__mi.method_ptr);
358        __inner(this.into(), ::core::option::Option::None)
359    }
360
361    #[doc = "Direct (non-virtual) call to `RelayTakeOverMenu_MenuItem`'s own `OnSelect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
362    pub unsafe fn on_select(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
363        let __mi = Self::on_select_method_info();
364        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
365        __inner(this.into(), ::core::option::Option::None)
366    }
367}
368
369#[cfg(feature = "app-relaytakeovermenu")]
370impl RelayTakeOverMenu_MenuItem {
371    #[doc = "`.ctor(crate::unity_engine::gameobject::GameObject, crate::app::relaytakeovermenu::RelayTakeOverMenu_Result2)` — overload selector"]
372    pub fn new(menu_obj: crate::unity_engine::gameobject::GameObject, result: crate::app::relaytakeovermenu::RelayTakeOverMenu_Result2) -> Self {
373        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
374            panic!(
375                "{}
376::{}
377 failed to instantiate",
378                ::core::stringify!(RelayTakeOverMenu_MenuItem),
379                ::core::stringify!(new),
380            )
381        });
382        <Self as IRelayTakeOverMenu_MenuItemMethods>::ctor(this, menu_obj, result);
383        this
384    }
385}
386
387#[cfg(feature = "app-relaytakeovermenu")]
388#[doc(hidden)]
389pub mod prelude {
390    pub use super::{
391        IRelayTakeOverMenu, IRelayTakeOverMenuMethods, IRelayTakeOverMenu_MenuItem, IRelayTakeOverMenu_MenuItemMethods, RelayTakeOverMenu,
392        RelayTakeOverMenu_MenuItem, RelayTakeOverMenu_Result2,
393    };
394    #[cfg(feature = "app-basicmenu")]
395    pub use crate::app::basicmenu::IBasicMenuMethods;
396    #[cfg(feature = "app-basicmenuitem")]
397    pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
398    #[cfg(feature = "app-procinst")]
399    pub use crate::app::procinst::IProcInstMethods;
400    #[cfg(feature = "system-object")]
401    pub use crate::system::object::IObjectMethods;
402    #[cfg(feature = "system-enum")]
403    pub use crate::system::r#enum::IEnumMethods;
404    #[cfg(feature = "system-valuetype")]
405    pub use crate::system::valuetype::IValueTypeMethods;
406    pub use crate::{
407        app::{basicmenu::IBasicMenu, basicmenuitem::IBasicMenuItem, procinst::IProcInst},
408        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
409    };
410}