1#[cfg(feature = "app-refreshunitsetmenu-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 r#enum::{Enum, IEnum},
18 valuetype::{IValueType, ValueType},
19 },
20 };
21
22 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refreshunitsetmenu/RefreshUnitSetMenu_SelectFacilityEventHandler.md"))]
23 #[::unity::class(namespace = "App", name = "RefreshUnitSetMenu.SelectFacilityEventHandler")]
24 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
25 pub struct RefreshUnitSetMenu_SelectFacilityEventHandler {}
26
27 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refreshunitsetmenu/RefreshUnitSetMenu_Result2.md"))]
28 #[repr(C)]
29 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
30 pub struct RefreshUnitSetMenu_Result2 {
31 pub value: i32,
32 }
33 impl ::unity::ClassIdentity for RefreshUnitSetMenu_Result2 {
34 const NAME: &'static str = "RefreshUnitSetMenu.Result2";
35 const NAMESPACE: &'static str = "App";
36
37 fn class() -> ::unity::Class {
38 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
39 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
40 }
41 }
42 impl ::unity::IlType for RefreshUnitSetMenu_Result2 {
43 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
44 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
45 }
46 }
47 impl RefreshUnitSetMenu_Result2 {
48 pub fn unit_select() -> Self {
49 Self { value: 0 }
50 }
51
52 pub fn ok() -> Self {
53 Self { value: 1 }
54 }
55
56 pub fn ok_without_demo() -> Self {
57 Self { value: 2 }
58 }
59
60 pub fn cancel() -> Self {
61 Self { value: 3 }
62 }
63 }
64
65 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refreshunitsetmenu/RefreshUnitSetMenu_DecideEventHandler.md"))]
66 #[::unity::class(namespace = "App", name = "RefreshUnitSetMenu.DecideEventHandler")]
67 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
68 pub struct RefreshUnitSetMenu_DecideEventHandler {}
69
70 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refreshunitsetmenu/RefreshUnitSetMenu_SetUnitEventHandler.md"))]
71 #[::unity::class(namespace = "App", name = "RefreshUnitSetMenu.SetUnitEventHandler")]
72 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
73 pub struct RefreshUnitSetMenu_SetUnitEventHandler {}
74
75 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refreshunitsetmenu/RefreshUnitSetMenu.md"))]
76 #[::unity::class(namespace = "App", name = "RefreshUnitSetMenu")]
77 #[parent(crate::app::basicmenu::BasicMenu)]
78 pub struct RefreshUnitSetMenu {
79 #[offset(200)]
80 #[rename(name = "m_SelectFacilityEventHandler")]
81 pub m_select_facility_event_handler: crate::app::refreshunitsetmenu::RefreshUnitSetMenu_SelectFacilityEventHandler,
82 #[offset(208)]
83 #[rename(name = "m_SetUnitEventHandler")]
84 pub m_set_unit_event_handler: crate::app::refreshunitsetmenu::RefreshUnitSetMenu_SetUnitEventHandler,
85 #[offset(216)]
86 #[rename(name = "m_DecideEventHandler")]
87 pub m_decide_event_handler: crate::app::refreshunitsetmenu::RefreshUnitSetMenu_DecideEventHandler,
88 #[offset(224)]
89 #[rename(name = "m_DecideMenu")]
90 pub m_decide_menu: crate::app::refreshunitsetdecidemenu::RefreshUnitSetDecideMenu,
91 #[offset(232)]
92 #[rename(name = "m_FacilityIndex")]
93 pub m_facility_index: i32,
94 #[offset(240)]
95 #[rename(name = "m_Unit")]
96 pub m_unit: crate::system::collections::generic::dictionary_2::Dictionary_2<::unity::Il2CppString, ::unity::Array<crate::app::unit::Unit>>,
97 }
98}
99
100#[cfg(feature = "app-refreshunitsetmenu-types")]
101pub use __types::*;
102
103#[cfg(feature = "app-refreshunitsetmenu")]
104pub trait IRefreshUnitSetMenu_SelectFacilityEventHandlerMethods: IRefreshUnitSetMenu_SelectFacilityEventHandler {
105 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
106 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
107 unsafe {
108 let __receiver = <RefreshUnitSetMenu_SelectFacilityEventHandler as ::unity::FromIlInstance>::from_il_instance(
109 <Self as ::unity::SystemObject>::as_instance(self),
110 );
111 ::unity::il2cpp_call!((::unity::module_base()+0x1b030b0usize)as*mut u8,();
112(RefreshUnitSetMenu_SelectFacilityEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
113 }
114 }
115 #[doc = "`Invoke(crate::app::hubfacilitydata::HubFacilityData)` overload"]
116 fn invoke(self, facility_data: impl ::core::convert::Into<crate::app::hubfacilitydata::HubFacilityData>) -> () {
117 unsafe {
118 let __receiver = <RefreshUnitSetMenu_SelectFacilityEventHandler as ::unity::FromIlInstance>::from_il_instance(
119 <Self as ::unity::SystemObject>::as_instance(self),
120 );
121 {
122 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
123 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
124 panic!(
125 "unity: virtual slot {}
126 out of range (vtable len {}
127) on the runtime class behind {}
128 (method `{}
129`)",
130 13usize,
131 __vt.len(),
132 <RefreshUnitSetMenu_SelectFacilityEventHandler as ::unity::ClassIdentity>::NAME,
133 "Invoke",
134 )
135 });
136 let __inner: extern "C" fn(
137 RefreshUnitSetMenu_SelectFacilityEventHandler,
138 crate::app::hubfacilitydata::HubFacilityData,
139 ::unity::OptionalMethod,
140 ) -> () = ::core::mem::transmute(__vi.method_ptr);
141 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
142 __inner(__receiver, ::core::convert::Into::into(facility_data), __mi)
143 }
144 }
145 }
146}
147
148#[cfg(feature = "app-refreshunitsetmenu")]
149impl<__T: IRefreshUnitSetMenu_SelectFacilityEventHandler> IRefreshUnitSetMenu_SelectFacilityEventHandlerMethods for __T {}
150
151#[cfg(feature = "app-refreshunitsetmenu")]
152impl RefreshUnitSetMenu_SelectFacilityEventHandler {
153 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
155 }
156
157 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
158 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
159 }
160}
161
162#[cfg(feature = "app-refreshunitsetmenu")]
163impl RefreshUnitSetMenu_SelectFacilityEventHandler {
164 #[doc = "Direct (non-virtual) call to `RefreshUnitSetMenu_SelectFacilityEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
165 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, facility_data: crate::app::hubfacilitydata::HubFacilityData) -> () {
166 let __mi = Self::invoke_method_info();
167 let __inner: extern "C" fn(::unity::IlInstance, crate::app::hubfacilitydata::HubFacilityData, ::unity::OptionalMethod) -> () =
168 ::core::mem::transmute(__mi.method_ptr);
169 __inner(this.into(), facility_data, ::core::option::Option::None)
170 }
171}
172
173#[cfg(feature = "app-refreshunitsetmenu")]
174impl RefreshUnitSetMenu_SelectFacilityEventHandler {
175 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
176 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
177 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
178 panic!(
179 "{}
180::{}
181 failed to instantiate",
182 ::core::stringify!(RefreshUnitSetMenu_SelectFacilityEventHandler),
183 ::core::stringify!(new),
184 )
185 });
186 <Self as IRefreshUnitSetMenu_SelectFacilityEventHandlerMethods>::ctor(this, object, method);
187 this
188 }
189}
190
191#[cfg(feature = "app-refreshunitsetmenu")]
192pub trait IRefreshUnitSetMenu_DecideEventHandlerMethods: IRefreshUnitSetMenu_DecideEventHandler {
193 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
194 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
195 unsafe {
196 let __receiver = <RefreshUnitSetMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
197 <Self as ::unity::SystemObject>::as_instance(self),
198 );
199 ::unity::il2cpp_call!((::unity::module_base()+0x1b02d30usize)as*mut u8,();
200(RefreshUnitSetMenu_DecideEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
201 }
202 }
203 #[doc = "`Invoke(crate::app::refreshunitsetmenu::RefreshUnitSetMenu_Result2, i32, crate::app::hubfacilitydata::HubFacilityData)` overload"]
204 fn invoke(
205 self,
206 result: impl ::core::convert::Into<crate::app::refreshunitsetmenu::RefreshUnitSetMenu_Result2>,
207 unit_index: impl ::core::convert::Into<i32>,
208 facility_data: impl ::core::convert::Into<crate::app::hubfacilitydata::HubFacilityData>,
209 ) -> () {
210 unsafe {
211 let __receiver = <RefreshUnitSetMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
212 <Self as ::unity::SystemObject>::as_instance(self),
213 );
214 {
215 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
216 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
217 panic!(
218 "unity: virtual slot {}
219 out of range (vtable len {}
220) on the runtime class behind {}
221 (method `{}
222`)",
223 13usize,
224 __vt.len(),
225 <RefreshUnitSetMenu_DecideEventHandler as ::unity::ClassIdentity>::NAME,
226 "Invoke",
227 )
228 });
229 let __inner: extern "C" fn(
230 RefreshUnitSetMenu_DecideEventHandler,
231 crate::app::refreshunitsetmenu::RefreshUnitSetMenu_Result2,
232 i32,
233 crate::app::hubfacilitydata::HubFacilityData,
234 ::unity::OptionalMethod,
235 ) -> () = ::core::mem::transmute(__vi.method_ptr);
236 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
237 __inner(
238 __receiver,
239 ::core::convert::Into::into(result),
240 ::core::convert::Into::into(unit_index),
241 ::core::convert::Into::into(facility_data),
242 __mi,
243 )
244 }
245 }
246 }
247}
248
249#[cfg(feature = "app-refreshunitsetmenu")]
250impl<__T: IRefreshUnitSetMenu_DecideEventHandler> IRefreshUnitSetMenu_DecideEventHandlerMethods for __T {}
251
252#[cfg(feature = "app-refreshunitsetmenu")]
253impl RefreshUnitSetMenu_DecideEventHandler {
254 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
255 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
256 }
257
258 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
259 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
260 }
261}
262
263#[cfg(feature = "app-refreshunitsetmenu")]
264impl RefreshUnitSetMenu_DecideEventHandler {
265 #[doc = "Direct (non-virtual) call to `RefreshUnitSetMenu_DecideEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
266 pub unsafe fn invoke(
267 this: impl ::core::convert::Into<::unity::IlInstance>,
268 result: crate::app::refreshunitsetmenu::RefreshUnitSetMenu_Result2,
269 unit_index: i32,
270 facility_data: crate::app::hubfacilitydata::HubFacilityData,
271 ) -> () {
272 let __mi = Self::invoke_method_info();
273 let __inner: extern "C" fn(
274 ::unity::IlInstance,
275 crate::app::refreshunitsetmenu::RefreshUnitSetMenu_Result2,
276 i32,
277 crate::app::hubfacilitydata::HubFacilityData,
278 ::unity::OptionalMethod,
279 ) -> () = ::core::mem::transmute(__mi.method_ptr);
280 __inner(this.into(), result, unit_index, facility_data, ::core::option::Option::None)
281 }
282}
283
284#[cfg(feature = "app-refreshunitsetmenu")]
285impl RefreshUnitSetMenu_DecideEventHandler {
286 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
287 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
288 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
289 panic!(
290 "{}
291::{}
292 failed to instantiate",
293 ::core::stringify!(RefreshUnitSetMenu_DecideEventHandler),
294 ::core::stringify!(new),
295 )
296 });
297 <Self as IRefreshUnitSetMenu_DecideEventHandlerMethods>::ctor(this, object, method);
298 this
299 }
300}
301
302#[cfg(feature = "app-refreshunitsetmenu")]
303pub trait IRefreshUnitSetMenu_SetUnitEventHandlerMethods: IRefreshUnitSetMenu_SetUnitEventHandler {
304 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
305 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
306 unsafe {
307 let __receiver = <RefreshUnitSetMenu_SetUnitEventHandler as ::unity::FromIlInstance>::from_il_instance(
308 <Self as ::unity::SystemObject>::as_instance(self),
309 );
310 ::unity::il2cpp_call!((::unity::module_base()+0x1b03470usize)as*mut u8,();
311(RefreshUnitSetMenu_SetUnitEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
312 }
313 }
314 #[doc = "`Invoke(i32, crate::app::unit::Unit)` overload"]
315 fn invoke(self, unit_index: impl ::core::convert::Into<i32>, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
316 unsafe {
317 let __receiver = <RefreshUnitSetMenu_SetUnitEventHandler as ::unity::FromIlInstance>::from_il_instance(
318 <Self as ::unity::SystemObject>::as_instance(self),
319 );
320 {
321 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
322 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
323 panic!(
324 "unity: virtual slot {}
325 out of range (vtable len {}
326) on the runtime class behind {}
327 (method `{}
328`)",
329 13usize,
330 __vt.len(),
331 <RefreshUnitSetMenu_SetUnitEventHandler as ::unity::ClassIdentity>::NAME,
332 "Invoke",
333 )
334 });
335 let __inner: extern "C" fn(RefreshUnitSetMenu_SetUnitEventHandler, i32, crate::app::unit::Unit, ::unity::OptionalMethod) -> () =
336 ::core::mem::transmute(__vi.method_ptr);
337 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
338 __inner(
339 __receiver,
340 ::core::convert::Into::into(unit_index),
341 ::core::convert::Into::into(unit),
342 __mi,
343 )
344 }
345 }
346 }
347}
348
349#[cfg(feature = "app-refreshunitsetmenu")]
350impl<__T: IRefreshUnitSetMenu_SetUnitEventHandler> IRefreshUnitSetMenu_SetUnitEventHandlerMethods for __T {}
351
352#[cfg(feature = "app-refreshunitsetmenu")]
353impl RefreshUnitSetMenu_SetUnitEventHandler {
354 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
355 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
356 }
357
358 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
359 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
360 }
361}
362
363#[cfg(feature = "app-refreshunitsetmenu")]
364impl RefreshUnitSetMenu_SetUnitEventHandler {
365 #[doc = "Direct (non-virtual) call to `RefreshUnitSetMenu_SetUnitEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
366 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, unit_index: i32, unit: crate::app::unit::Unit) -> () {
367 let __mi = Self::invoke_method_info();
368 let __inner: extern "C" fn(::unity::IlInstance, i32, crate::app::unit::Unit, ::unity::OptionalMethod) -> () =
369 ::core::mem::transmute(__mi.method_ptr);
370 __inner(this.into(), unit_index, unit, ::core::option::Option::None)
371 }
372}
373
374#[cfg(feature = "app-refreshunitsetmenu")]
375impl RefreshUnitSetMenu_SetUnitEventHandler {
376 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
377 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
378 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
379 panic!(
380 "{}
381::{}
382 failed to instantiate",
383 ::core::stringify!(RefreshUnitSetMenu_SetUnitEventHandler),
384 ::core::stringify!(new),
385 )
386 });
387 <Self as IRefreshUnitSetMenu_SetUnitEventHandlerMethods>::ctor(this, object, method);
388 this
389 }
390}
391
392#[cfg(feature = "app-refreshunitsetmenu")]
393impl RefreshUnitSetMenu {
394 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::refreshunitsetmenucontent::RefreshUnitSetMenuContent, crate::system::collections::generic::dictionary_2::Dictionary_2<::unity::Il2CppString,::unity::Array<crate::app::unit::Unit>>, crate::app::hubfacilitydata::HubFacilityData, crate::app::refreshunitsetmenu::RefreshUnitSetMenu_SelectFacilityEventHandler, crate::app::refreshunitsetmenu::RefreshUnitSetMenu_SetUnitEventHandler, crate::app::refreshunitsetmenu::RefreshUnitSetMenu_DecideEventHandler)` overload"]
395 pub fn create_bind(
396 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
397 menu_content: impl ::core::convert::Into<crate::app::refreshunitsetmenucontent::RefreshUnitSetMenuContent>,
398 unit_array_dic: impl ::core::convert::Into<
399 crate::system::collections::generic::dictionary_2::Dictionary_2<::unity::Il2CppString, ::unity::Array<crate::app::unit::Unit>>,
400 >,
401 initial_facility_data: impl ::core::convert::Into<crate::app::hubfacilitydata::HubFacilityData>,
402 select_facility_event_handler: impl ::core::convert::Into<crate::app::refreshunitsetmenu::RefreshUnitSetMenu_SelectFacilityEventHandler>,
403 set_unit_event_handler: impl ::core::convert::Into<crate::app::refreshunitsetmenu::RefreshUnitSetMenu_SetUnitEventHandler>,
404 decide_event_handler: impl ::core::convert::Into<crate::app::refreshunitsetmenu::RefreshUnitSetMenu_DecideEventHandler>,
405 ) -> crate::app::refreshunitsetmenu::RefreshUnitSetMenu {
406 unsafe {
407 ::unity::il2cpp_call!((::unity::module_base()+0x22bf540usize)as*mut u8,crate::app::refreshunitsetmenu::RefreshUnitSetMenu;
408(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::refreshunitsetmenucontent::RefreshUnitSetMenuContent)::core::convert::Into::into(menu_content),(crate::system::collections::generic::dictionary_2::Dictionary_2< ::unity::Il2CppString, ::unity::Array<crate::app::unit::Unit> >)::core::convert::Into::into(unit_array_dic),(crate::app::hubfacilitydata::HubFacilityData)::core::convert::Into::into(initial_facility_data),(crate::app::refreshunitsetmenu::RefreshUnitSetMenu_SelectFacilityEventHandler)::core::convert::Into::into(select_facility_event_handler),(crate::app::refreshunitsetmenu::RefreshUnitSetMenu_SetUnitEventHandler)::core::convert::Into::into(set_unit_event_handler),(crate::app::refreshunitsetmenu::RefreshUnitSetMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
409 }
410 }
411
412 #[doc = "`CreateMenuItem(::unity::Array<crate::app::unit::Unit>, crate::app::refreshunitsetmenu::RefreshUnitSetMenu_DecideEventHandler, *muti32)` overload"]
413 pub fn create_menu_item(
414 unit_array: impl ::core::convert::Into<::unity::Array<crate::app::unit::Unit>>,
415 decide_event_handler: impl ::core::convert::Into<crate::app::refreshunitsetmenu::RefreshUnitSetMenu_DecideEventHandler>,
416 ) -> (
417 crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
418 i32,
419 ) {
420 unsafe {
421 let mut __out_0 = ::core::mem::MaybeUninit::<i32>::uninit();
422 let __ret = {
423 ::unity::il2cpp_call!((::unity::module_base()+0x22c49f0usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem> ;
424(::unity::Array<crate::app::unit::Unit>)::core::convert::Into::into(unit_array),(crate::app::refreshunitsetmenu::RefreshUnitSetMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler),(*mut i32)__out_0.as_mut_ptr())
425 };
426 (__ret, __out_0.assume_init())
427 }
428 }
429}
430
431#[cfg(feature = "app-refreshunitsetmenu")]
432pub trait IRefreshUnitSetMenuMethods: IRefreshUnitSetMenu {
433 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::refreshunitsetmenucontent::RefreshUnitSetMenuContent, i32, crate::system::collections::generic::dictionary_2::Dictionary_2<::unity::Il2CppString,::unity::Array<crate::app::unit::Unit>>, crate::app::hubfacilitydata::HubFacilityData, crate::app::refreshunitsetmenu::RefreshUnitSetMenu_SelectFacilityEventHandler, crate::app::refreshunitsetmenu::RefreshUnitSetMenu_SetUnitEventHandler, crate::app::refreshunitsetmenu::RefreshUnitSetMenu_DecideEventHandler)` overload"]
434 fn ctor(
435 self,
436 menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
437 menu_content: impl ::core::convert::Into<crate::app::refreshunitsetmenucontent::RefreshUnitSetMenuContent>,
438 initial_select_index: impl ::core::convert::Into<i32>,
439 unit_array_dic: impl ::core::convert::Into<
440 crate::system::collections::generic::dictionary_2::Dictionary_2<::unity::Il2CppString, ::unity::Array<crate::app::unit::Unit>>,
441 >,
442 initial_facility_data: impl ::core::convert::Into<crate::app::hubfacilitydata::HubFacilityData>,
443 select_facility_event_handler: impl ::core::convert::Into<crate::app::refreshunitsetmenu::RefreshUnitSetMenu_SelectFacilityEventHandler>,
444 set_unit_event_handler: impl ::core::convert::Into<crate::app::refreshunitsetmenu::RefreshUnitSetMenu_SetUnitEventHandler>,
445 decide_event_handler: impl ::core::convert::Into<crate::app::refreshunitsetmenu::RefreshUnitSetMenu_DecideEventHandler>,
446 ) -> () {
447 unsafe {
448 let __receiver = <RefreshUnitSetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
449 ::unity::il2cpp_call!((::unity::module_base()+0x22c4ba0usize)as*mut u8,();
450(RefreshUnitSetMenu)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(menu_item_list),(crate::app::refreshunitsetmenucontent::RefreshUnitSetMenuContent)::core::convert::Into::into(menu_content),(i32)::core::convert::Into::into(initial_select_index),(crate::system::collections::generic::dictionary_2::Dictionary_2< ::unity::Il2CppString, ::unity::Array<crate::app::unit::Unit> >)::core::convert::Into::into(unit_array_dic),(crate::app::hubfacilitydata::HubFacilityData)::core::convert::Into::into(initial_facility_data),(crate::app::refreshunitsetmenu::RefreshUnitSetMenu_SelectFacilityEventHandler)::core::convert::Into::into(select_facility_event_handler),(crate::app::refreshunitsetmenu::RefreshUnitSetMenu_SetUnitEventHandler)::core::convert::Into::into(set_unit_event_handler),(crate::app::refreshunitsetmenu::RefreshUnitSetMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
451 }
452 }
453 #[doc = "`GetName()` overload"]
454 fn get_name(self) -> ::unity::Il2CppString {
455 unsafe {
456 let __receiver = <RefreshUnitSetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
457 {
458 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
459 let __vi = *__vt.get(30usize).unwrap_or_else(|| {
460 panic!(
461 "unity: virtual slot {}
462 out of range (vtable len {}
463) on the runtime class behind {}
464 (method `{}
465`)",
466 30usize,
467 __vt.len(),
468 <RefreshUnitSetMenu as ::unity::ClassIdentity>::NAME,
469 "GetName",
470 )
471 });
472 let __inner: extern "C" fn(RefreshUnitSetMenu, ::unity::OptionalMethod) -> ::unity::Il2CppString =
473 ::core::mem::transmute(__vi.method_ptr);
474 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
475 __inner(__receiver, __mi)
476 }
477 }
478 }
479 #[doc = "`GetFacilityData()` overload"]
480 fn get_facility_data(self) -> crate::app::hubfacilitydata::HubFacilityData {
481 unsafe {
482 let __receiver = <RefreshUnitSetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
483 ::unity::il2cpp_call!((::unity::module_base()+0x22c56f0usize)as*mut u8,crate::app::hubfacilitydata::HubFacilityData;
484(RefreshUnitSetMenu)__receiver)
485 }
486 }
487 #[doc = "`IncFacilityIndex()` overload"]
488 fn inc_facility_index(self) -> () {
489 unsafe {
490 let __receiver = <RefreshUnitSetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
491 ::unity::il2cpp_call!((::unity::module_base()+0x22c4350usize)as*mut u8,();
492(RefreshUnitSetMenu)__receiver)
493 }
494 }
495 #[doc = "`DecFacilityIndex()` overload"]
496 fn dec_facility_index(self) -> () {
497 unsafe {
498 let __receiver = <RefreshUnitSetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
499 ::unity::il2cpp_call!((::unity::module_base()+0x22c40c0usize)as*mut u8,();
500(RefreshUnitSetMenu)__receiver)
501 }
502 }
503 #[doc = "`IsSelectedFirstFacility()` overload"]
504 fn is_selected_first_facility(self) -> bool {
505 unsafe {
506 let __receiver = <RefreshUnitSetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
507 ::unity::il2cpp_call!((::unity::module_base()+0x22c40b0usize)as*mut u8,bool;
508(RefreshUnitSetMenu)__receiver)
509 }
510 }
511 #[doc = "`IsSelectedLastFacility()` overload"]
512 fn is_selected_last_facility(self) -> bool {
513 unsafe {
514 let __receiver = <RefreshUnitSetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
515 ::unity::il2cpp_call!((::unity::module_base()+0x22c42c0usize)as*mut u8,bool;
516(RefreshUnitSetMenu)__receiver)
517 }
518 }
519 #[doc = "`ChangeFacilityIndex()` overload"]
520 fn change_facility_index(self) -> () {
521 unsafe {
522 let __receiver = <RefreshUnitSetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
523 ::unity::il2cpp_call!((::unity::module_base()+0x22c5850usize)as*mut u8,();
524(RefreshUnitSetMenu)__receiver)
525 }
526 }
527 #[doc = "`UpdataFacility()` overload"]
528 fn updata_facility(self) -> () {
529 unsafe {
530 let __receiver = <RefreshUnitSetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
531 ::unity::il2cpp_call!((::unity::module_base()+0x22c5380usize)as*mut u8,();
532(RefreshUnitSetMenu)__receiver)
533 }
534 }
535 #[doc = "`SetUnit(i32, crate::app::unit::Unit)` overload"]
536 fn set_unit(self, index: impl ::core::convert::Into<i32>, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
537 unsafe {
538 let __receiver = <RefreshUnitSetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
539 ::unity::il2cpp_call!((::unity::module_base()+0x22c5a20usize)as*mut u8,();
540(RefreshUnitSetMenu)__receiver,(i32)::core::convert::Into::into(index),(crate::app::unit::Unit)::core::convert::Into::into(unit))
541 }
542 }
543 #[doc = "`EntrustUnit()` overload"]
544 fn entrust_unit(self) -> () {
545 unsafe {
546 let __receiver = <RefreshUnitSetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
547 ::unity::il2cpp_call!((::unity::module_base()+0x22c4480usize)as*mut u8,();
548(RefreshUnitSetMenu)__receiver)
549 }
550 }
551 #[doc = "`DecideUnit(i32, bool)` overload"]
552 fn decide_unit(self, index: impl ::core::convert::Into<i32>, decided: impl ::core::convert::Into<bool>) -> () {
553 unsafe {
554 let __receiver = <RefreshUnitSetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
555 ::unity::il2cpp_call!((::unity::module_base()+0x22c5f00usize)as*mut u8,();
556(RefreshUnitSetMenu)__receiver,(i32)::core::convert::Into::into(index),(bool)::core::convert::Into::into(decided))
557 }
558 }
559 #[doc = "`UpdateReliance()` overload"]
560 fn update_reliance(self) -> () {
561 unsafe {
562 let __receiver = <RefreshUnitSetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
563 ::unity::il2cpp_call!((::unity::module_base()+0x22c54d0usize)as*mut u8,();
564(RefreshUnitSetMenu)__receiver)
565 }
566 }
567 #[doc = "`IsEnabledDecideMenu()` overload"]
568 fn is_enabled_decide_menu(self) -> bool {
569 unsafe {
570 let __receiver = <RefreshUnitSetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
571 ::unity::il2cpp_call!((::unity::module_base()+0x22c4f40usize)as*mut u8,bool;
572(RefreshUnitSetMenu)__receiver)
573 }
574 }
575 #[doc = "`IsUsabledDecideMenu()` overload"]
576 fn is_usabled_decide_menu(self) -> bool {
577 unsafe {
578 let __receiver = <RefreshUnitSetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
579 ::unity::il2cpp_call!((::unity::module_base()+0x22c50f0usize)as*mut u8,bool;
580(RefreshUnitSetMenu)__receiver)
581 }
582 }
583 #[doc = "`UpdateDecideMenu()` overload"]
584 fn update_decide_menu(self) -> () {
585 unsafe {
586 let __receiver = <RefreshUnitSetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
587 ::unity::il2cpp_call!((::unity::module_base()+0x22c5be0usize)as*mut u8,();
588(RefreshUnitSetMenu)__receiver)
589 }
590 }
591 #[doc = "`FocusDecideMenu()` overload"]
592 fn focus_decide_menu(self) -> () {
593 unsafe {
594 let __receiver = <RefreshUnitSetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
595 ::unity::il2cpp_call!((::unity::module_base()+0x22c52c0usize)as*mut u8,();
596(RefreshUnitSetMenu)__receiver)
597 }
598 }
599 #[doc = "`FocusThisMenu()` overload"]
600 fn focus_this_menu(self) -> () {
601 unsafe {
602 let __receiver = <RefreshUnitSetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
603 ::unity::il2cpp_call!((::unity::module_base()+0x22c5200usize)as*mut u8,();
604(RefreshUnitSetMenu)__receiver)
605 }
606 }
607 #[doc = "`KeyUp(bool)` overload"]
608 fn key_up(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
609 unsafe {
610 let __receiver = <RefreshUnitSetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
611 {
612 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
613 let __vi = *__vt.get(40usize).unwrap_or_else(|| {
614 panic!(
615 "unity: virtual slot {}
616 out of range (vtable len {}
617) on the runtime class behind {}
618 (method `{}
619`)",
620 40usize,
621 __vt.len(),
622 <RefreshUnitSetMenu as ::unity::ClassIdentity>::NAME,
623 "KeyUp",
624 )
625 });
626 let __inner: extern "C" fn(RefreshUnitSetMenu, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
627 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
628 __inner(__receiver, ::core::convert::Into::into(is_trigger), __mi)
629 }
630 }
631 }
632 #[doc = "`KeyDown(bool)` overload"]
633 fn key_down(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
634 unsafe {
635 let __receiver = <RefreshUnitSetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
636 {
637 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
638 let __vi = *__vt.get(41usize).unwrap_or_else(|| {
639 panic!(
640 "unity: virtual slot {}
641 out of range (vtable len {}
642) on the runtime class behind {}
643 (method `{}
644`)",
645 41usize,
646 __vt.len(),
647 <RefreshUnitSetMenu as ::unity::ClassIdentity>::NAME,
648 "KeyDown",
649 )
650 });
651 let __inner: extern "C" fn(RefreshUnitSetMenu, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
652 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
653 __inner(__receiver, ::core::convert::Into::into(is_trigger), __mi)
654 }
655 }
656 }
657 #[doc = "`KeyLeft(bool)` overload"]
658 fn key_left(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
659 unsafe {
660 let __receiver = <RefreshUnitSetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
661 {
662 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
663 let __vi = *__vt.get(42usize).unwrap_or_else(|| {
664 panic!(
665 "unity: virtual slot {}
666 out of range (vtable len {}
667) on the runtime class behind {}
668 (method `{}
669`)",
670 42usize,
671 __vt.len(),
672 <RefreshUnitSetMenu as ::unity::ClassIdentity>::NAME,
673 "KeyLeft",
674 )
675 });
676 let __inner: extern "C" fn(RefreshUnitSetMenu, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
677 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
678 __inner(__receiver, ::core::convert::Into::into(is_trigger), __mi)
679 }
680 }
681 }
682 #[doc = "`KeyRight(bool)` overload"]
683 fn key_right(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
684 unsafe {
685 let __receiver = <RefreshUnitSetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
686 {
687 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
688 let __vi = *__vt.get(43usize).unwrap_or_else(|| {
689 panic!(
690 "unity: virtual slot {}
691 out of range (vtable len {}
692) on the runtime class behind {}
693 (method `{}
694`)",
695 43usize,
696 __vt.len(),
697 <RefreshUnitSetMenu as ::unity::ClassIdentity>::NAME,
698 "KeyRight",
699 )
700 });
701 let __inner: extern "C" fn(RefreshUnitSetMenu, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
702 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
703 __inner(__receiver, ::core::convert::Into::into(is_trigger), __mi)
704 }
705 }
706 }
707 #[doc = "`LCall()` overload"]
708 fn l_call(self) -> crate::app::basicmenu::BasicMenu_Result {
709 unsafe {
710 let __receiver = <RefreshUnitSetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
711 {
712 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
713 let __vi = *__vt.get(54usize).unwrap_or_else(|| {
714 panic!(
715 "unity: virtual slot {}
716 out of range (vtable len {}
717) on the runtime class behind {}
718 (method `{}
719`)",
720 54usize,
721 __vt.len(),
722 <RefreshUnitSetMenu as ::unity::ClassIdentity>::NAME,
723 "LCall",
724 )
725 });
726 let __inner: extern "C" fn(RefreshUnitSetMenu, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
727 ::core::mem::transmute(__vi.method_ptr);
728 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
729 __inner(__receiver, __mi)
730 }
731 }
732 }
733 #[doc = "`BCall()` overload"]
734 fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
735 unsafe {
736 let __receiver = <RefreshUnitSetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
737 {
738 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
739 let __vi = *__vt.get(51usize).unwrap_or_else(|| {
740 panic!(
741 "unity: virtual slot {}
742 out of range (vtable len {}
743) on the runtime class behind {}
744 (method `{}
745`)",
746 51usize,
747 __vt.len(),
748 <RefreshUnitSetMenu as ::unity::ClassIdentity>::NAME,
749 "BCall",
750 )
751 });
752 let __inner: extern "C" fn(RefreshUnitSetMenu, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
753 ::core::mem::transmute(__vi.method_ptr);
754 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
755 __inner(__receiver, __mi)
756 }
757 }
758 }
759 #[doc = "`OnDispose()` overload"]
760 fn on_dispose(self) -> () {
761 unsafe {
762 let __receiver = <RefreshUnitSetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
763 {
764 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
765 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
766 panic!(
767 "unity: virtual slot {}
768 out of range (vtable len {}
769) on the runtime class behind {}
770 (method `{}
771`)",
772 10usize,
773 __vt.len(),
774 <RefreshUnitSetMenu as ::unity::ClassIdentity>::NAME,
775 "OnDispose",
776 )
777 });
778 let __inner: extern "C" fn(RefreshUnitSetMenu, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
779 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
780 __inner(__receiver, __mi)
781 }
782 }
783 }
784}
785
786#[cfg(feature = "app-refreshunitsetmenu")]
787impl<__T: IRefreshUnitSetMenu> IRefreshUnitSetMenuMethods for __T {}
788
789#[cfg(feature = "app-refreshunitsetmenu")]
790impl RefreshUnitSetMenu {
791 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
792 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
793 }
794
795 pub fn create_menu_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
796 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
797 }
798
799 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
800 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
801 }
802
803 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
804 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
805 }
806
807 pub fn get_facility_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
808 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
809 }
810
811 pub fn inc_facility_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
812 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
813 }
814
815 pub fn dec_facility_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
816 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
817 }
818
819 pub fn is_selected_first_facility_method_info() -> &'static ::unity::il2cpp::MethodInfo {
820 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
821 }
822
823 pub fn is_selected_last_facility_method_info() -> &'static ::unity::il2cpp::MethodInfo {
824 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
825 }
826
827 pub fn change_facility_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
828 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
829 }
830
831 pub fn updata_facility_method_info() -> &'static ::unity::il2cpp::MethodInfo {
832 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
833 }
834
835 pub fn set_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
836 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
837 }
838
839 pub fn entrust_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
840 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
841 }
842
843 pub fn decide_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
844 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
845 }
846
847 pub fn update_reliance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
848 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
849 }
850
851 pub fn is_enabled_decide_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
852 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
853 }
854
855 pub fn is_usabled_decide_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
856 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
857 }
858
859 pub fn update_decide_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
860 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
861 }
862
863 pub fn focus_decide_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
864 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
865 }
866
867 pub fn focus_this_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
868 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
869 }
870
871 pub fn key_up_method_info() -> &'static ::unity::il2cpp::MethodInfo {
872 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
873 }
874
875 pub fn key_down_method_info() -> &'static ::unity::il2cpp::MethodInfo {
876 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
877 }
878
879 pub fn key_left_method_info() -> &'static ::unity::il2cpp::MethodInfo {
880 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
881 }
882
883 pub fn key_right_method_info() -> &'static ::unity::il2cpp::MethodInfo {
884 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
885 }
886
887 pub fn l_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
888 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
889 }
890
891 pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
892 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
893 }
894
895 pub fn on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
896 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
897 }
898}
899
900#[cfg(feature = "app-refreshunitsetmenu")]
901impl RefreshUnitSetMenu {
902 #[doc = "Direct (non-virtual) call to `RefreshUnitSetMenu`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
903 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
904 let __mi = Self::get_name_method_info();
905 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
906 __inner(this.into(), ::core::option::Option::None)
907 }
908
909 #[doc = "Direct (non-virtual) call to `RefreshUnitSetMenu`'s own `KeyUp`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
910 pub unsafe fn key_up(this: impl ::core::convert::Into<::unity::IlInstance>, is_trigger: bool) -> () {
911 let __mi = Self::key_up_method_info();
912 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
913 __inner(this.into(), is_trigger, ::core::option::Option::None)
914 }
915
916 #[doc = "Direct (non-virtual) call to `RefreshUnitSetMenu`'s own `KeyDown`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
917 pub unsafe fn key_down(this: impl ::core::convert::Into<::unity::IlInstance>, is_trigger: bool) -> () {
918 let __mi = Self::key_down_method_info();
919 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
920 __inner(this.into(), is_trigger, ::core::option::Option::None)
921 }
922
923 #[doc = "Direct (non-virtual) call to `RefreshUnitSetMenu`'s own `KeyLeft`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
924 pub unsafe fn key_left(this: impl ::core::convert::Into<::unity::IlInstance>, is_trigger: bool) -> () {
925 let __mi = Self::key_left_method_info();
926 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
927 __inner(this.into(), is_trigger, ::core::option::Option::None)
928 }
929
930 #[doc = "Direct (non-virtual) call to `RefreshUnitSetMenu`'s own `KeyRight`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
931 pub unsafe fn key_right(this: impl ::core::convert::Into<::unity::IlInstance>, is_trigger: bool) -> () {
932 let __mi = Self::key_right_method_info();
933 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
934 __inner(this.into(), is_trigger, ::core::option::Option::None)
935 }
936
937 #[doc = "Direct (non-virtual) call to `RefreshUnitSetMenu`'s own `LCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
938 pub unsafe fn l_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
939 let __mi = Self::l_call_method_info();
940 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
941 ::core::mem::transmute(__mi.method_ptr);
942 __inner(this.into(), ::core::option::Option::None)
943 }
944
945 #[doc = "Direct (non-virtual) call to `RefreshUnitSetMenu`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
946 pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
947 let __mi = Self::b_call_method_info();
948 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
949 ::core::mem::transmute(__mi.method_ptr);
950 __inner(this.into(), ::core::option::Option::None)
951 }
952
953 #[doc = "Direct (non-virtual) call to `RefreshUnitSetMenu`'s own `OnDispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
954 pub unsafe fn on_dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
955 let __mi = Self::on_dispose_method_info();
956 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
957 __inner(this.into(), ::core::option::Option::None)
958 }
959}
960
961#[cfg(feature = "app-refreshunitsetmenu")]
962impl RefreshUnitSetMenu {
963 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::refreshunitsetmenucontent::RefreshUnitSetMenuContent, i32, crate::system::collections::generic::dictionary_2::Dictionary_2<::unity::Il2CppString,::unity::Array<crate::app::unit::Unit>>, crate::app::hubfacilitydata::HubFacilityData, crate::app::refreshunitsetmenu::RefreshUnitSetMenu_SelectFacilityEventHandler, crate::app::refreshunitsetmenu::RefreshUnitSetMenu_SetUnitEventHandler, crate::app::refreshunitsetmenu::RefreshUnitSetMenu_DecideEventHandler)` — overload selector"]
964 pub fn new(
965 menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
966 menu_content: crate::app::refreshunitsetmenucontent::RefreshUnitSetMenuContent,
967 initial_select_index: i32,
968 unit_array_dic: crate::system::collections::generic::dictionary_2::Dictionary_2<
969 ::unity::Il2CppString,
970 ::unity::Array<crate::app::unit::Unit>,
971 >,
972 initial_facility_data: crate::app::hubfacilitydata::HubFacilityData,
973 select_facility_event_handler: crate::app::refreshunitsetmenu::RefreshUnitSetMenu_SelectFacilityEventHandler,
974 set_unit_event_handler: crate::app::refreshunitsetmenu::RefreshUnitSetMenu_SetUnitEventHandler,
975 decide_event_handler: crate::app::refreshunitsetmenu::RefreshUnitSetMenu_DecideEventHandler,
976 ) -> Self {
977 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
978 panic!(
979 "{}
980::{}
981 failed to instantiate",
982 ::core::stringify!(RefreshUnitSetMenu),
983 ::core::stringify!(new),
984 )
985 });
986 <Self as IRefreshUnitSetMenuMethods>::ctor(
987 this,
988 menu_item_list,
989 menu_content,
990 initial_select_index,
991 unit_array_dic,
992 initial_facility_data,
993 select_facility_event_handler,
994 set_unit_event_handler,
995 decide_event_handler,
996 );
997 this
998 }
999}
1000
1001#[cfg(feature = "app-refreshunitsetmenu")]
1002#[doc(hidden)]
1003pub mod prelude {
1004 pub use super::{
1005 IRefreshUnitSetMenu, IRefreshUnitSetMenuMethods, IRefreshUnitSetMenu_DecideEventHandler, IRefreshUnitSetMenu_DecideEventHandlerMethods,
1006 IRefreshUnitSetMenu_SelectFacilityEventHandler, IRefreshUnitSetMenu_SelectFacilityEventHandlerMethods,
1007 IRefreshUnitSetMenu_SetUnitEventHandler, IRefreshUnitSetMenu_SetUnitEventHandlerMethods, RefreshUnitSetMenu,
1008 RefreshUnitSetMenu_DecideEventHandler, RefreshUnitSetMenu_Result2, RefreshUnitSetMenu_SelectFacilityEventHandler,
1009 RefreshUnitSetMenu_SetUnitEventHandler,
1010 };
1011 #[cfg(feature = "app-basicmenu")]
1012 pub use crate::app::basicmenu::IBasicMenuMethods;
1013 #[cfg(feature = "app-procinst")]
1014 pub use crate::app::procinst::IProcInstMethods;
1015 #[cfg(feature = "system-delegate")]
1016 pub use crate::system::delegate::IDelegateMethods;
1017 #[cfg(feature = "system-multicastdelegate")]
1018 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
1019 #[cfg(feature = "system-object")]
1020 pub use crate::system::object::IObjectMethods;
1021 #[cfg(feature = "system-enum")]
1022 pub use crate::system::r#enum::IEnumMethods;
1023 #[cfg(feature = "system-valuetype")]
1024 pub use crate::system::valuetype::IValueTypeMethods;
1025 pub use crate::{
1026 app::{basicmenu::IBasicMenu, procinst::IProcInst},
1027 system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject, r#enum::IEnum, valuetype::IValueType},
1028 };
1029}