engage/generated/app/
refreshfacilityselectmenuitem.rs1#[cfg(feature = "app-refreshfacilityselectmenuitem-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/app/refreshfacilityselectmenuitem/RefreshFacilitySelectMenuItem.md"))]
14 #[::unity::class(namespace = "App", name = "RefreshFacilitySelectMenuItem")]
15 #[parent(crate::app::basicmenuitem::BasicMenuItem)]
16 pub struct RefreshFacilitySelectMenuItem {
17 #[offset(104)]
18 #[rename(name = "m_FacilityData")]
19 pub m_facility_data: crate::app::hubfacilitydata::HubFacilityData,
20 #[offset(112)]
21 #[rename(name = "m_SelectEventHandler")]
22 pub m_select_event_handler: crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_SelectEventHandler,
23 #[offset(120)]
24 #[rename(name = "m_DecideEventHandler")]
25 pub m_decide_event_handler: crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_DecideEventHandler,
26 }
27}
28
29#[cfg(feature = "app-refreshfacilityselectmenuitem-types")]
30pub use __types::*;
31
32#[cfg(feature = "app-refreshfacilityselectmenuitem")]
33pub trait IRefreshFacilitySelectMenuItemMethods: IRefreshFacilitySelectMenuItem {
34 #[doc = "`.ctor(::unity::Il2CppString, crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_SelectEventHandler, crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_DecideEventHandler)` overload"]
35 fn ctor(
36 self,
37 facility_aid: impl ::core::convert::Into<::unity::Il2CppString>,
38 select_event_handler: impl ::core::convert::Into<crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_SelectEventHandler>,
39 decide_event_handler: impl ::core::convert::Into<crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_DecideEventHandler>,
40 ) -> () {
41 unsafe {
42 let __receiver =
43 <RefreshFacilitySelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44 ::unity::il2cpp_call!((::unity::module_base()+0x22bb350usize)as*mut u8,();
45(RefreshFacilitySelectMenuItem)__receiver,(::unity::Il2CppString)::core::convert::Into::into(facility_aid),(crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_SelectEventHandler)::core::convert::Into::into(select_event_handler),(crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
46 }
47 }
48 #[doc = "`GetName()` overload"]
49 fn get_name(self) -> ::unity::Il2CppString {
50 unsafe {
51 let __receiver =
52 <RefreshFacilitySelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
53 {
54 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
55 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
56 panic!(
57 "unity: virtual slot {}
58 out of range (vtable len {}
59) on the runtime class behind {}
60 (method `{}
61`)",
62 4usize,
63 __vt.len(),
64 <RefreshFacilitySelectMenuItem as ::unity::ClassIdentity>::NAME,
65 "GetName",
66 )
67 });
68 let __inner: extern "C" fn(RefreshFacilitySelectMenuItem, ::unity::OptionalMethod) -> ::unity::Il2CppString =
69 ::core::mem::transmute(__vi.method_ptr);
70 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
71 __inner(__receiver, __mi)
72 }
73 }
74 }
75 #[doc = "`OnSelect()` overload"]
76 fn on_select(self) -> () {
77 unsafe {
78 let __receiver =
79 <RefreshFacilitySelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80 {
81 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
82 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
83 panic!(
84 "unity: virtual slot {}
85 out of range (vtable len {}
86) on the runtime class behind {}
87 (method `{}
88`)",
89 12usize,
90 __vt.len(),
91 <RefreshFacilitySelectMenuItem as ::unity::ClassIdentity>::NAME,
92 "OnSelect",
93 )
94 });
95 let __inner: extern "C" fn(RefreshFacilitySelectMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
96 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
97 __inner(__receiver, __mi)
98 }
99 }
100 }
101 #[doc = "`ACall()` overload"]
102 fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
103 unsafe {
104 let __receiver =
105 <RefreshFacilitySelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106 {
107 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
108 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
109 panic!(
110 "unity: virtual slot {}
111 out of range (vtable len {}
112) on the runtime class behind {}
113 (method `{}
114`)",
115 18usize,
116 __vt.len(),
117 <RefreshFacilitySelectMenuItem as ::unity::ClassIdentity>::NAME,
118 "ACall",
119 )
120 });
121 let __inner: extern "C" fn(RefreshFacilitySelectMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
122 ::core::mem::transmute(__vi.method_ptr);
123 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
124 __inner(__receiver, __mi)
125 }
126 }
127 }
128}
129
130#[cfg(feature = "app-refreshfacilityselectmenuitem")]
131impl<__T: IRefreshFacilitySelectMenuItem> IRefreshFacilitySelectMenuItemMethods for __T {}
132
133#[cfg(feature = "app-refreshfacilityselectmenuitem")]
134impl RefreshFacilitySelectMenuItem {
135 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
137 }
138
139 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
141 }
142
143 pub fn on_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
145 }
146
147 pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
149 }
150}
151
152#[cfg(feature = "app-refreshfacilityselectmenuitem")]
153impl RefreshFacilitySelectMenuItem {
154 #[doc = "Direct (non-virtual) call to `RefreshFacilitySelectMenuItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
155 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
156 let __mi = Self::get_name_method_info();
157 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
158 __inner(this.into(), ::core::option::Option::None)
159 }
160
161 #[doc = "Direct (non-virtual) call to `RefreshFacilitySelectMenuItem`'s own `OnSelect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
162 pub unsafe fn on_select(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
163 let __mi = Self::on_select_method_info();
164 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
165 __inner(this.into(), ::core::option::Option::None)
166 }
167
168 #[doc = "Direct (non-virtual) call to `RefreshFacilitySelectMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
169 pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
170 let __mi = Self::a_call_method_info();
171 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
172 ::core::mem::transmute(__mi.method_ptr);
173 __inner(this.into(), ::core::option::Option::None)
174 }
175}
176
177#[cfg(feature = "app-refreshfacilityselectmenuitem")]
178impl RefreshFacilitySelectMenuItem {
179 #[doc = "`.ctor(::unity::Il2CppString, crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_SelectEventHandler, crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_DecideEventHandler)` — overload selector"]
180 pub fn new(
181 facility_aid: ::unity::Il2CppString,
182 select_event_handler: crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_SelectEventHandler,
183 decide_event_handler: crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_DecideEventHandler,
184 ) -> Self {
185 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
186 panic!(
187 "{}
188::{}
189 failed to instantiate",
190 ::core::stringify!(RefreshFacilitySelectMenuItem),
191 ::core::stringify!(new),
192 )
193 });
194 <Self as IRefreshFacilitySelectMenuItemMethods>::ctor(this, facility_aid, select_event_handler, decide_event_handler);
195 this
196 }
197}
198
199#[cfg(feature = "app-refreshfacilityselectmenuitem")]
200#[doc(hidden)]
201pub mod prelude {
202 pub use super::{IRefreshFacilitySelectMenuItem, IRefreshFacilitySelectMenuItemMethods, RefreshFacilitySelectMenuItem};
203 #[cfg(feature = "app-basicmenuitem")]
204 pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
205 #[cfg(feature = "system-object")]
206 pub use crate::system::object::IObjectMethods;
207 pub use crate::{app::basicmenuitem::IBasicMenuItem, system::object::IObject};
208}