1#[cfg(feature = "app-refreshfacilityselectmenu-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 basicmenu::{BasicMenu, IBasicMenu},
11 procinst::{IProcInst, ProcInst},
12 },
13 system::{
14 delegate::{Delegate, IDelegate},
15 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
16 object::{IObject, Object},
17 },
18 };
19
20 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refreshfacilityselectmenu/RefreshFacilitySelectMenu_DecideEventHandler.md"))]
21 #[::unity::class(namespace = "App", name = "RefreshFacilitySelectMenu.DecideEventHandler")]
22 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
23 pub struct RefreshFacilitySelectMenu_DecideEventHandler {}
24
25 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refreshfacilityselectmenu/RefreshFacilitySelectMenu_SelectEventHandler.md"))]
26 #[::unity::class(namespace = "App", name = "RefreshFacilitySelectMenu.SelectEventHandler")]
27 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
28 pub struct RefreshFacilitySelectMenu_SelectEventHandler {}
29
30 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refreshfacilityselectmenu/RefreshFacilitySelectMenu_CloseEventHandler.md"))]
31 #[::unity::class(namespace = "App", name = "RefreshFacilitySelectMenu.CloseEventHandler")]
32 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
33 pub struct RefreshFacilitySelectMenu_CloseEventHandler {}
34
35 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refreshfacilityselectmenu/RefreshFacilitySelectMenu.md"))]
36 #[::unity::class(namespace = "App", name = "RefreshFacilitySelectMenu")]
37 #[parent(crate::app::basicmenu::BasicMenu)]
38 pub struct RefreshFacilitySelectMenu {
39 #[static_field]
40 #[rename(name = "m_FacilityAid")]
41 pub m_facility_aid: ::unity::Array<::unity::Il2CppString>,
42 #[offset(200)]
43 #[rename(name = "m_DecideEventHandler")]
44 pub m_decide_event_handler: crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_DecideEventHandler,
45 #[offset(208)]
46 #[rename(name = "m_CloseEventHandler")]
47 pub m_close_event_handler: crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_CloseEventHandler,
48 #[offset(216)]
49 #[rename(name = "m_DisposeEventHandler")]
50 pub m_dispose_event_handler: crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_DisposeEventHandler,
51 }
52
53 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refreshfacilityselectmenu/RefreshFacilitySelectMenu_DisposeEventHandler.md"))]
54 #[::unity::class(namespace = "App", name = "RefreshFacilitySelectMenu.DisposeEventHandler")]
55 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
56 pub struct RefreshFacilitySelectMenu_DisposeEventHandler {}
57}
58
59#[cfg(feature = "app-refreshfacilityselectmenu-types")]
60pub use __types::*;
61
62#[cfg(feature = "app-refreshfacilityselectmenu")]
63pub trait IRefreshFacilitySelectMenu_DecideEventHandlerMethods: IRefreshFacilitySelectMenu_DecideEventHandler {
64 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
65 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
66 unsafe {
67 let __receiver = <RefreshFacilitySelectMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
68 <Self as ::unity::SystemObject>::as_instance(self),
69 );
70 ::unity::il2cpp_call!((::unity::module_base()+0x1affe70usize)as*mut u8,();
71(RefreshFacilitySelectMenu_DecideEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
72 }
73 }
74 #[doc = "`Invoke(crate::app::hubfacilitydata::HubFacilityData)` overload"]
75 fn invoke(self, facility_data: impl ::core::convert::Into<crate::app::hubfacilitydata::HubFacilityData>) -> () {
76 unsafe {
77 let __receiver = <RefreshFacilitySelectMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
78 <Self as ::unity::SystemObject>::as_instance(self),
79 );
80 {
81 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
82 let __vi = *__vt.get(13usize).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 13usize,
90 __vt.len(),
91 <RefreshFacilitySelectMenu_DecideEventHandler as ::unity::ClassIdentity>::NAME,
92 "Invoke",
93 )
94 });
95 let __inner: extern "C" fn(
96 RefreshFacilitySelectMenu_DecideEventHandler,
97 crate::app::hubfacilitydata::HubFacilityData,
98 ::unity::OptionalMethod,
99 ) -> () = ::core::mem::transmute(__vi.method_ptr);
100 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
101 __inner(__receiver, ::core::convert::Into::into(facility_data), __mi)
102 }
103 }
104 }
105}
106
107#[cfg(feature = "app-refreshfacilityselectmenu")]
108impl<__T: IRefreshFacilitySelectMenu_DecideEventHandler> IRefreshFacilitySelectMenu_DecideEventHandlerMethods for __T {}
109
110#[cfg(feature = "app-refreshfacilityselectmenu")]
111impl RefreshFacilitySelectMenu_DecideEventHandler {
112 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
113 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
114 }
115
116 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
117 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
118 }
119}
120
121#[cfg(feature = "app-refreshfacilityselectmenu")]
122impl RefreshFacilitySelectMenu_DecideEventHandler {
123 #[doc = "Direct (non-virtual) call to `RefreshFacilitySelectMenu_DecideEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
124 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, facility_data: crate::app::hubfacilitydata::HubFacilityData) -> () {
125 let __mi = Self::invoke_method_info();
126 let __inner: extern "C" fn(::unity::IlInstance, crate::app::hubfacilitydata::HubFacilityData, ::unity::OptionalMethod) -> () =
127 ::core::mem::transmute(__mi.method_ptr);
128 __inner(this.into(), facility_data, ::core::option::Option::None)
129 }
130}
131
132#[cfg(feature = "app-refreshfacilityselectmenu")]
133impl RefreshFacilitySelectMenu_DecideEventHandler {
134 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
135 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
136 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
137 panic!(
138 "{}
139::{}
140 failed to instantiate",
141 ::core::stringify!(RefreshFacilitySelectMenu_DecideEventHandler),
142 ::core::stringify!(new),
143 )
144 });
145 <Self as IRefreshFacilitySelectMenu_DecideEventHandlerMethods>::ctor(this, object, method);
146 this
147 }
148}
149
150#[cfg(feature = "app-refreshfacilityselectmenu")]
151pub trait IRefreshFacilitySelectMenu_SelectEventHandlerMethods: IRefreshFacilitySelectMenu_SelectEventHandler {
152 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
153 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
154 unsafe {
155 let __receiver = <RefreshFacilitySelectMenu_SelectEventHandler as ::unity::FromIlInstance>::from_il_instance(
156 <Self as ::unity::SystemObject>::as_instance(self),
157 );
158 ::unity::il2cpp_call!((::unity::module_base()+0x1b004a0usize)as*mut u8,();
159(RefreshFacilitySelectMenu_SelectEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
160 }
161 }
162 #[doc = "`Invoke(crate::app::hubfacilitydata::HubFacilityData)` overload"]
163 fn invoke(self, facility_data: impl ::core::convert::Into<crate::app::hubfacilitydata::HubFacilityData>) -> () {
164 unsafe {
165 let __receiver = <RefreshFacilitySelectMenu_SelectEventHandler as ::unity::FromIlInstance>::from_il_instance(
166 <Self as ::unity::SystemObject>::as_instance(self),
167 );
168 {
169 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
170 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
171 panic!(
172 "unity: virtual slot {}
173 out of range (vtable len {}
174) on the runtime class behind {}
175 (method `{}
176`)",
177 13usize,
178 __vt.len(),
179 <RefreshFacilitySelectMenu_SelectEventHandler as ::unity::ClassIdentity>::NAME,
180 "Invoke",
181 )
182 });
183 let __inner: extern "C" fn(
184 RefreshFacilitySelectMenu_SelectEventHandler,
185 crate::app::hubfacilitydata::HubFacilityData,
186 ::unity::OptionalMethod,
187 ) -> () = ::core::mem::transmute(__vi.method_ptr);
188 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
189 __inner(__receiver, ::core::convert::Into::into(facility_data), __mi)
190 }
191 }
192 }
193}
194
195#[cfg(feature = "app-refreshfacilityselectmenu")]
196impl<__T: IRefreshFacilitySelectMenu_SelectEventHandler> IRefreshFacilitySelectMenu_SelectEventHandlerMethods for __T {}
197
198#[cfg(feature = "app-refreshfacilityselectmenu")]
199impl RefreshFacilitySelectMenu_SelectEventHandler {
200 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
202 }
203
204 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
206 }
207}
208
209#[cfg(feature = "app-refreshfacilityselectmenu")]
210impl RefreshFacilitySelectMenu_SelectEventHandler {
211 #[doc = "Direct (non-virtual) call to `RefreshFacilitySelectMenu_SelectEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
212 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, facility_data: crate::app::hubfacilitydata::HubFacilityData) -> () {
213 let __mi = Self::invoke_method_info();
214 let __inner: extern "C" fn(::unity::IlInstance, crate::app::hubfacilitydata::HubFacilityData, ::unity::OptionalMethod) -> () =
215 ::core::mem::transmute(__mi.method_ptr);
216 __inner(this.into(), facility_data, ::core::option::Option::None)
217 }
218}
219
220#[cfg(feature = "app-refreshfacilityselectmenu")]
221impl RefreshFacilitySelectMenu_SelectEventHandler {
222 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
223 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
224 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
225 panic!(
226 "{}
227::{}
228 failed to instantiate",
229 ::core::stringify!(RefreshFacilitySelectMenu_SelectEventHandler),
230 ::core::stringify!(new),
231 )
232 });
233 <Self as IRefreshFacilitySelectMenu_SelectEventHandlerMethods>::ctor(this, object, method);
234 this
235 }
236}
237
238#[cfg(feature = "app-refreshfacilityselectmenu")]
239pub trait IRefreshFacilitySelectMenu_CloseEventHandlerMethods: IRefreshFacilitySelectMenu_CloseEventHandler {
240 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
241 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
242 unsafe {
243 let __receiver = <RefreshFacilitySelectMenu_CloseEventHandler as ::unity::FromIlInstance>::from_il_instance(
244 <Self as ::unity::SystemObject>::as_instance(self),
245 );
246 ::unity::il2cpp_call!((::unity::module_base()+0x1affc00usize)as*mut u8,();
247(RefreshFacilitySelectMenu_CloseEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
248 }
249 }
250 #[doc = "`Invoke()` overload"]
251 fn invoke(self) -> () {
252 unsafe {
253 let __receiver = <RefreshFacilitySelectMenu_CloseEventHandler as ::unity::FromIlInstance>::from_il_instance(
254 <Self as ::unity::SystemObject>::as_instance(self),
255 );
256 {
257 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
258 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
259 panic!(
260 "unity: virtual slot {}
261 out of range (vtable len {}
262) on the runtime class behind {}
263 (method `{}
264`)",
265 13usize,
266 __vt.len(),
267 <RefreshFacilitySelectMenu_CloseEventHandler as ::unity::ClassIdentity>::NAME,
268 "Invoke",
269 )
270 });
271 let __inner: extern "C" fn(RefreshFacilitySelectMenu_CloseEventHandler, ::unity::OptionalMethod) -> () =
272 ::core::mem::transmute(__vi.method_ptr);
273 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
274 __inner(__receiver, __mi)
275 }
276 }
277 }
278}
279
280#[cfg(feature = "app-refreshfacilityselectmenu")]
281impl<__T: IRefreshFacilitySelectMenu_CloseEventHandler> IRefreshFacilitySelectMenu_CloseEventHandlerMethods for __T {}
282
283#[cfg(feature = "app-refreshfacilityselectmenu")]
284impl RefreshFacilitySelectMenu_CloseEventHandler {
285 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
287 }
288
289 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
291 }
292}
293
294#[cfg(feature = "app-refreshfacilityselectmenu")]
295impl RefreshFacilitySelectMenu_CloseEventHandler {
296 #[doc = "Direct (non-virtual) call to `RefreshFacilitySelectMenu_CloseEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
297 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
298 let __mi = Self::invoke_method_info();
299 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
300 __inner(this.into(), ::core::option::Option::None)
301 }
302}
303
304#[cfg(feature = "app-refreshfacilityselectmenu")]
305impl RefreshFacilitySelectMenu_CloseEventHandler {
306 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
307 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
308 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
309 panic!(
310 "{}
311::{}
312 failed to instantiate",
313 ::core::stringify!(RefreshFacilitySelectMenu_CloseEventHandler),
314 ::core::stringify!(new),
315 )
316 });
317 <Self as IRefreshFacilitySelectMenu_CloseEventHandlerMethods>::ctor(this, object, method);
318 this
319 }
320}
321
322#[cfg(feature = "app-refreshfacilityselectmenu")]
323impl RefreshFacilitySelectMenu {
324 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::refreshfacilityselectmenucontent::RefreshFacilitySelectMenuContent, crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_SelectEventHandler, crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_DecideEventHandler, crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_CloseEventHandler, crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_DisposeEventHandler)` overload"]
325 pub fn create_bind(
326 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
327 menu_content: impl ::core::convert::Into<crate::app::refreshfacilityselectmenucontent::RefreshFacilitySelectMenuContent>,
328 select_event_handler: impl ::core::convert::Into<crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_SelectEventHandler>,
329 decide_event_handler: impl ::core::convert::Into<crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_DecideEventHandler>,
330 close_event_handler: impl ::core::convert::Into<crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_CloseEventHandler>,
331 dispose_event_handler: impl ::core::convert::Into<crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_DisposeEventHandler>,
332 ) -> crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu {
333 unsafe {
334 ::unity::il2cpp_call!((::unity::module_base()+0x22baf70usize)as*mut u8,crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu;
335(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::refreshfacilityselectmenucontent::RefreshFacilitySelectMenuContent)::core::convert::Into::into(menu_content),(crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_SelectEventHandler)::core::convert::Into::into(select_event_handler),(crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler),(crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_CloseEventHandler)::core::convert::Into::into(close_event_handler),(crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_DisposeEventHandler)::core::convert::Into::into(dispose_event_handler))
336 }
337 }
338
339 #[doc = "`CreateMenuItem(crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_SelectEventHandler, crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_DecideEventHandler)` overload"]
340 pub fn create_menu_item(
341 select_event_handler: impl ::core::convert::Into<crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_SelectEventHandler>,
342 decide_event_handler: impl ::core::convert::Into<crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_DecideEventHandler>,
343 ) -> crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem> {
344 unsafe {
345 ::unity::il2cpp_call!((::unity::module_base()+0x22bb140usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem> ;
346(crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_SelectEventHandler)::core::convert::Into::into(select_event_handler),(crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
347 }
348 }
349
350 #[doc = "`.cctor()` overload"]
351 pub fn cctor() -> () {
352 unsafe {
353 ::unity::il2cpp_call!((::unity::module_base()+0x22bb580usize)as*mut u8,();
354 )
355 }
356 }
357}
358
359#[cfg(feature = "app-refreshfacilityselectmenu")]
360pub trait IRefreshFacilitySelectMenuMethods: IRefreshFacilitySelectMenu {
361 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::refreshfacilityselectmenucontent::RefreshFacilitySelectMenuContent, crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_DecideEventHandler, crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_CloseEventHandler, crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_DisposeEventHandler)` overload"]
362 fn ctor(
363 self,
364 menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
365 menu_content: impl ::core::convert::Into<crate::app::refreshfacilityselectmenucontent::RefreshFacilitySelectMenuContent>,
366 decide_event_handler: impl ::core::convert::Into<crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_DecideEventHandler>,
367 close_event_handler: impl ::core::convert::Into<crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_CloseEventHandler>,
368 dispose_event_handler: impl ::core::convert::Into<crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_DisposeEventHandler>,
369 ) -> () {
370 unsafe {
371 let __receiver =
372 <RefreshFacilitySelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
373 ::unity::il2cpp_call!((::unity::module_base()+0x22bb2d0usize)as*mut u8,();
374(RefreshFacilitySelectMenu)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(menu_item_list),(crate::app::refreshfacilityselectmenucontent::RefreshFacilitySelectMenuContent)::core::convert::Into::into(menu_content),(crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler),(crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_CloseEventHandler)::core::convert::Into::into(close_event_handler),(crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_DisposeEventHandler)::core::convert::Into::into(dispose_event_handler))
375 }
376 }
377 #[doc = "`GetName()` overload"]
378 fn get_name(self) -> ::unity::Il2CppString {
379 unsafe {
380 let __receiver =
381 <RefreshFacilitySelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
382 {
383 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
384 let __vi = *__vt.get(30usize).unwrap_or_else(|| {
385 panic!(
386 "unity: virtual slot {}
387 out of range (vtable len {}
388) on the runtime class behind {}
389 (method `{}
390`)",
391 30usize,
392 __vt.len(),
393 <RefreshFacilitySelectMenu as ::unity::ClassIdentity>::NAME,
394 "GetName",
395 )
396 });
397 let __inner: extern "C" fn(RefreshFacilitySelectMenu, ::unity::OptionalMethod) -> ::unity::Il2CppString =
398 ::core::mem::transmute(__vi.method_ptr);
399 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
400 __inner(__receiver, __mi)
401 }
402 }
403 }
404 #[doc = "`BCall()` overload"]
405 fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
406 unsafe {
407 let __receiver =
408 <RefreshFacilitySelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
409 {
410 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
411 let __vi = *__vt.get(51usize).unwrap_or_else(|| {
412 panic!(
413 "unity: virtual slot {}
414 out of range (vtable len {}
415) on the runtime class behind {}
416 (method `{}
417`)",
418 51usize,
419 __vt.len(),
420 <RefreshFacilitySelectMenu as ::unity::ClassIdentity>::NAME,
421 "BCall",
422 )
423 });
424 let __inner: extern "C" fn(RefreshFacilitySelectMenu, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
425 ::core::mem::transmute(__vi.method_ptr);
426 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
427 __inner(__receiver, __mi)
428 }
429 }
430 }
431 #[doc = "`OnDispose()` overload"]
432 fn on_dispose(self) -> () {
433 unsafe {
434 let __receiver =
435 <RefreshFacilitySelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
436 {
437 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
438 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
439 panic!(
440 "unity: virtual slot {}
441 out of range (vtable len {}
442) on the runtime class behind {}
443 (method `{}
444`)",
445 10usize,
446 __vt.len(),
447 <RefreshFacilitySelectMenu as ::unity::ClassIdentity>::NAME,
448 "OnDispose",
449 )
450 });
451 let __inner: extern "C" fn(RefreshFacilitySelectMenu, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
452 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
453 __inner(__receiver, __mi)
454 }
455 }
456 }
457}
458
459#[cfg(feature = "app-refreshfacilityselectmenu")]
460impl<__T: IRefreshFacilitySelectMenu> IRefreshFacilitySelectMenuMethods for __T {}
461
462#[cfg(feature = "app-refreshfacilityselectmenu")]
463impl RefreshFacilitySelectMenu {
464 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
465 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
466 }
467
468 pub fn create_menu_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
469 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
470 }
471
472 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
473 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
474 }
475
476 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
477 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
478 }
479
480 pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
481 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
482 }
483
484 pub fn on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
485 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
486 }
487
488 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
489 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
490 }
491}
492
493#[cfg(feature = "app-refreshfacilityselectmenu")]
494impl RefreshFacilitySelectMenu {
495 #[doc = "Direct (non-virtual) call to `RefreshFacilitySelectMenu`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
496 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
497 let __mi = Self::get_name_method_info();
498 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
499 __inner(this.into(), ::core::option::Option::None)
500 }
501
502 #[doc = "Direct (non-virtual) call to `RefreshFacilitySelectMenu`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
503 pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
504 let __mi = Self::b_call_method_info();
505 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
506 ::core::mem::transmute(__mi.method_ptr);
507 __inner(this.into(), ::core::option::Option::None)
508 }
509
510 #[doc = "Direct (non-virtual) call to `RefreshFacilitySelectMenu`'s own `OnDispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
511 pub unsafe fn on_dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
512 let __mi = Self::on_dispose_method_info();
513 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
514 __inner(this.into(), ::core::option::Option::None)
515 }
516}
517
518#[cfg(feature = "app-refreshfacilityselectmenu")]
519impl RefreshFacilitySelectMenu {
520 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::refreshfacilityselectmenucontent::RefreshFacilitySelectMenuContent, crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_DecideEventHandler, crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_CloseEventHandler, crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_DisposeEventHandler)` — overload selector"]
521 pub fn new(
522 menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
523 menu_content: crate::app::refreshfacilityselectmenucontent::RefreshFacilitySelectMenuContent,
524 decide_event_handler: crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_DecideEventHandler,
525 close_event_handler: crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_CloseEventHandler,
526 dispose_event_handler: crate::app::refreshfacilityselectmenu::RefreshFacilitySelectMenu_DisposeEventHandler,
527 ) -> Self {
528 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
529 panic!(
530 "{}
531::{}
532 failed to instantiate",
533 ::core::stringify!(RefreshFacilitySelectMenu),
534 ::core::stringify!(new),
535 )
536 });
537 <Self as IRefreshFacilitySelectMenuMethods>::ctor(
538 this,
539 menu_item_list,
540 menu_content,
541 decide_event_handler,
542 close_event_handler,
543 dispose_event_handler,
544 );
545 this
546 }
547}
548
549#[cfg(feature = "app-refreshfacilityselectmenu")]
550pub trait IRefreshFacilitySelectMenu_DisposeEventHandlerMethods: IRefreshFacilitySelectMenu_DisposeEventHandler {
551 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
552 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
553 unsafe {
554 let __receiver = <RefreshFacilitySelectMenu_DisposeEventHandler as ::unity::FromIlInstance>::from_il_instance(
555 <Self as ::unity::SystemObject>::as_instance(self),
556 );
557 ::unity::il2cpp_call!((::unity::module_base()+0x1b00230usize)as*mut u8,();
558(RefreshFacilitySelectMenu_DisposeEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
559 }
560 }
561 #[doc = "`Invoke()` overload"]
562 fn invoke(self) -> () {
563 unsafe {
564 let __receiver = <RefreshFacilitySelectMenu_DisposeEventHandler as ::unity::FromIlInstance>::from_il_instance(
565 <Self as ::unity::SystemObject>::as_instance(self),
566 );
567 {
568 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
569 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
570 panic!(
571 "unity: virtual slot {}
572 out of range (vtable len {}
573) on the runtime class behind {}
574 (method `{}
575`)",
576 13usize,
577 __vt.len(),
578 <RefreshFacilitySelectMenu_DisposeEventHandler as ::unity::ClassIdentity>::NAME,
579 "Invoke",
580 )
581 });
582 let __inner: extern "C" fn(RefreshFacilitySelectMenu_DisposeEventHandler, ::unity::OptionalMethod) -> () =
583 ::core::mem::transmute(__vi.method_ptr);
584 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
585 __inner(__receiver, __mi)
586 }
587 }
588 }
589}
590
591#[cfg(feature = "app-refreshfacilityselectmenu")]
592impl<__T: IRefreshFacilitySelectMenu_DisposeEventHandler> IRefreshFacilitySelectMenu_DisposeEventHandlerMethods for __T {}
593
594#[cfg(feature = "app-refreshfacilityselectmenu")]
595impl RefreshFacilitySelectMenu_DisposeEventHandler {
596 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
597 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
598 }
599
600 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
601 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
602 }
603}
604
605#[cfg(feature = "app-refreshfacilityselectmenu")]
606impl RefreshFacilitySelectMenu_DisposeEventHandler {
607 #[doc = "Direct (non-virtual) call to `RefreshFacilitySelectMenu_DisposeEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
608 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
609 let __mi = Self::invoke_method_info();
610 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
611 __inner(this.into(), ::core::option::Option::None)
612 }
613}
614
615#[cfg(feature = "app-refreshfacilityselectmenu")]
616impl RefreshFacilitySelectMenu_DisposeEventHandler {
617 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
618 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
619 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
620 panic!(
621 "{}
622::{}
623 failed to instantiate",
624 ::core::stringify!(RefreshFacilitySelectMenu_DisposeEventHandler),
625 ::core::stringify!(new),
626 )
627 });
628 <Self as IRefreshFacilitySelectMenu_DisposeEventHandlerMethods>::ctor(this, object, method);
629 this
630 }
631}
632
633#[cfg(feature = "app-refreshfacilityselectmenu")]
634#[doc(hidden)]
635pub mod prelude {
636 pub use super::{
637 IRefreshFacilitySelectMenu, IRefreshFacilitySelectMenuMethods, IRefreshFacilitySelectMenu_CloseEventHandler,
638 IRefreshFacilitySelectMenu_CloseEventHandlerMethods, IRefreshFacilitySelectMenu_DecideEventHandler,
639 IRefreshFacilitySelectMenu_DecideEventHandlerMethods, IRefreshFacilitySelectMenu_DisposeEventHandler,
640 IRefreshFacilitySelectMenu_DisposeEventHandlerMethods, IRefreshFacilitySelectMenu_SelectEventHandler,
641 IRefreshFacilitySelectMenu_SelectEventHandlerMethods, RefreshFacilitySelectMenu, RefreshFacilitySelectMenu_CloseEventHandler,
642 RefreshFacilitySelectMenu_DecideEventHandler, RefreshFacilitySelectMenu_DisposeEventHandler, RefreshFacilitySelectMenu_SelectEventHandler,
643 };
644 #[cfg(feature = "app-basicmenu")]
645 pub use crate::app::basicmenu::IBasicMenuMethods;
646 #[cfg(feature = "app-procinst")]
647 pub use crate::app::procinst::IProcInstMethods;
648 #[cfg(feature = "system-delegate")]
649 pub use crate::system::delegate::IDelegateMethods;
650 #[cfg(feature = "system-multicastdelegate")]
651 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
652 #[cfg(feature = "system-object")]
653 pub use crate::system::object::IObjectMethods;
654 pub use crate::{
655 app::{basicmenu::IBasicMenu, procinst::IProcInst},
656 system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
657 };
658}