1#[cfg(feature = "app-refinegodweaponselectmenu-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/refinegodweaponselectmenu/RefineGodWeaponSelectMenu.md"))]
21 #[::unity::class(namespace = "App", name = "RefineGodWeaponSelectMenu")]
22 #[parent(crate::app::basicmenu::BasicMenu)]
23 pub struct RefineGodWeaponSelectMenu {
24 #[offset(224)]
25 #[rename(name = "m_Selects")]
26 pub m_selects: ::unity::Array<crate::app::basicmenuselect::BasicMenuSelect>,
27 #[offset(232)]
28 #[rename(name = "m_SelectEventHandler")]
29 pub m_select_event_handler: crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_SelectEventHandler,
30 #[offset(240)]
31 #[rename(name = "m_DecideEventHandler")]
32 pub m_decide_event_handler: crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_DecideEventHandler,
33 #[offset(248)]
34 #[rename(name = "m_RequestCloseEventHandler")]
35 pub m_request_close_event_handler: crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_RequestCloseEventHandler,
36 }
37
38 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refinegodweaponselectmenu/RefineGodWeaponSelectMenu_DecideEventHandler.md"))]
39 #[::unity::class(namespace = "App", name = "RefineGodWeaponSelectMenu.DecideEventHandler")]
40 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
41 pub struct RefineGodWeaponSelectMenu_DecideEventHandler {}
42
43 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refinegodweaponselectmenu/RefineGodWeaponSelectMenu_RequestCloseEventHandler.md"))]
44 #[::unity::class(namespace = "App", name = "RefineGodWeaponSelectMenu.RequestCloseEventHandler")]
45 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
46 pub struct RefineGodWeaponSelectMenu_RequestCloseEventHandler {}
47
48 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refinegodweaponselectmenu/RefineGodWeaponSelectMenu_SelectEventHandler.md"))]
49 #[::unity::class(namespace = "App", name = "RefineGodWeaponSelectMenu.SelectEventHandler")]
50 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
51 pub struct RefineGodWeaponSelectMenu_SelectEventHandler {}
52}
53
54#[cfg(feature = "app-refinegodweaponselectmenu-types")]
55pub use __types::*;
56
57#[cfg(feature = "app-refinegodweaponselectmenu")]
58impl RefineGodWeaponSelectMenu {
59 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::refinegodweaponselectmenucontent::RefineGodWeaponSelectMenuContent, crate::app::godunit::GodUnit, crate::app::itemdata::ItemData, i32, crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_SelectEventHandler, crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_DecideEventHandler, crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_RequestCloseEventHandler)` overload"]
60 pub fn create_bind(
61 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
62 menu_content: impl ::core::convert::Into<crate::app::refinegodweaponselectmenucontent::RefineGodWeaponSelectMenuContent>,
63 initial_god_unit: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
64 initial_god_weapon: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
65 initial_scroll_index: impl ::core::convert::Into<i32>,
66 select_event_handler: impl ::core::convert::Into<crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_SelectEventHandler>,
67 decide_event_handler: impl ::core::convert::Into<crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_DecideEventHandler>,
68 request_close_event_handler: impl ::core::convert::Into<crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_RequestCloseEventHandler>,
69 ) -> crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu {
70 unsafe {
71 ::unity::il2cpp_call!((::unity::module_base()+0x2387140usize)as*mut u8,crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu;
72(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::refinegodweaponselectmenucontent::RefineGodWeaponSelectMenuContent)::core::convert::Into::into(menu_content),(crate::app::godunit::GodUnit)::core::convert::Into::into(initial_god_unit),(crate::app::itemdata::ItemData)::core::convert::Into::into(initial_god_weapon),(i32)::core::convert::Into::into(initial_scroll_index),(crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_SelectEventHandler)::core::convert::Into::into(select_event_handler),(crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler),(crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_RequestCloseEventHandler)::core::convert::Into::into(request_close_event_handler))
73 }
74 }
75
76 #[doc = "`CreateMenuItem(crate::app::godunit::GodUnit, crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_SelectEventHandler, crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_DecideEventHandler, crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_RequestCloseEventHandler)` overload"]
77 pub fn create_menu_item(
78 god_unit: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
79 select_event_handler: impl ::core::convert::Into<crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_SelectEventHandler>,
80 decide_event_handler: impl ::core::convert::Into<crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_DecideEventHandler>,
81 request_close_event_handler: impl ::core::convert::Into<crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_RequestCloseEventHandler>,
82 ) -> crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem> {
83 unsafe {
84 ::unity::il2cpp_call!((::unity::module_base()+0x23878c0usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem> ;
85(crate::app::godunit::GodUnit)::core::convert::Into::into(god_unit),(crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_SelectEventHandler)::core::convert::Into::into(select_event_handler),(crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler),(crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_RequestCloseEventHandler)::core::convert::Into::into(request_close_event_handler))
86 }
87 }
88}
89
90#[cfg(feature = "app-refinegodweaponselectmenu")]
91pub trait IRefineGodWeaponSelectMenuMethods: IRefineGodWeaponSelectMenu {
92 #[doc = "`get_m_GodUnitList()` overload"]
93 fn get_m_god_unit_list(self) -> crate::system::collections::generic::list_1::List_1<crate::app::godunit::GodUnit> {
94 unsafe {
95 let __receiver =
96 <RefineGodWeaponSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97 ::unity::il2cpp_call!((::unity::module_base()+0x2387860usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::app::godunit::GodUnit> ;
98(RefineGodWeaponSelectMenu)__receiver)
99 }
100 }
101 #[doc = "`set_m_GodUnitList(crate::system::collections::generic::list_1::List_1<crate::app::godunit::GodUnit>)` overload"]
102 fn set_m_god_unit_list(
103 self,
104 value: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::godunit::GodUnit>>,
105 ) -> () {
106 unsafe {
107 let __receiver =
108 <RefineGodWeaponSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109 ::unity::il2cpp_call!((::unity::module_base()+0x2387870usize)as*mut u8,();
110(RefineGodWeaponSelectMenu)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::godunit::GodUnit>)::core::convert::Into::into(value))
111 }
112 }
113 #[doc = "`get_m_GodUnitIndex()` overload"]
114 fn get_m_god_unit_index(self) -> i32 {
115 unsafe {
116 let __receiver =
117 <RefineGodWeaponSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
118 ::unity::il2cpp_call!((::unity::module_base()+0x2387880usize)as*mut u8,i32;
119(RefineGodWeaponSelectMenu)__receiver)
120 }
121 }
122 #[doc = "`set_m_GodUnitIndex(i32)` overload"]
123 fn set_m_god_unit_index(self, value: impl ::core::convert::Into<i32>) -> () {
124 unsafe {
125 let __receiver =
126 <RefineGodWeaponSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127 ::unity::il2cpp_call!((::unity::module_base()+0x2387890usize)as*mut u8,();
128(RefineGodWeaponSelectMenu)__receiver,(i32)::core::convert::Into::into(value))
129 }
130 }
131 #[doc = "`get_m_GodUnit()` overload"]
132 fn get_m_god_unit(self) -> crate::app::godunit::GodUnit {
133 unsafe {
134 let __receiver =
135 <RefineGodWeaponSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
136 ::unity::il2cpp_call!((::unity::module_base()+0x23878a0usize)as*mut u8,crate::app::godunit::GodUnit;
137(RefineGodWeaponSelectMenu)__receiver)
138 }
139 }
140 #[doc = "`set_m_GodUnit(crate::app::godunit::GodUnit)` overload"]
141 fn set_m_god_unit(self, value: impl ::core::convert::Into<crate::app::godunit::GodUnit>) -> () {
142 unsafe {
143 let __receiver =
144 <RefineGodWeaponSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
145 ::unity::il2cpp_call!((::unity::module_base()+0x23878b0usize)as*mut u8,();
146(RefineGodWeaponSelectMenu)__receiver,(crate::app::godunit::GodUnit)::core::convert::Into::into(value))
147 }
148 }
149 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::basicmenucontent::BasicMenuContent, crate::system::collections::generic::list_1::List_1<crate::app::godunit::GodUnit>, crate::app::godunit::GodUnit, crate::app::itemdata::ItemData, i32, crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_SelectEventHandler, crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_DecideEventHandler, crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_RequestCloseEventHandler)` overload"]
150 fn ctor(
151 self,
152 menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
153 menu_content: impl ::core::convert::Into<crate::app::basicmenucontent::BasicMenuContent>,
154 god_unit_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::godunit::GodUnit>>,
155 initial_god_unit: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
156 initial_god_weapon: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
157 initial_scroll_index: impl ::core::convert::Into<i32>,
158 select_event_handler: impl ::core::convert::Into<crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_SelectEventHandler>,
159 decide_event_handler: impl ::core::convert::Into<crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_DecideEventHandler>,
160 request_close_event_handler: impl ::core::convert::Into<crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_RequestCloseEventHandler>,
161 ) -> () {
162 unsafe {
163 let __receiver =
164 <RefineGodWeaponSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
165 ::unity::il2cpp_call!((::unity::module_base()+0x2387c10usize)as*mut u8,();
166(RefineGodWeaponSelectMenu)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(menu_item_list),(crate::app::basicmenucontent::BasicMenuContent)::core::convert::Into::into(menu_content),(crate::system::collections::generic::list_1::List_1<crate::app::godunit::GodUnit>)::core::convert::Into::into(god_unit_list),(crate::app::godunit::GodUnit)::core::convert::Into::into(initial_god_unit),(crate::app::itemdata::ItemData)::core::convert::Into::into(initial_god_weapon),(i32)::core::convert::Into::into(initial_scroll_index),(crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_SelectEventHandler)::core::convert::Into::into(select_event_handler),(crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler),(crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_RequestCloseEventHandler)::core::convert::Into::into(request_close_event_handler))
167 }
168 }
169 #[doc = "`OnBuild(bool)` overload"]
170 fn on_build(self, is_first_build: impl ::core::convert::Into<bool>) -> () {
171 unsafe {
172 let __receiver =
173 <RefineGodWeaponSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
174 {
175 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
176 let __vi = *__vt.get(24usize).unwrap_or_else(|| {
177 panic!(
178 "unity: virtual slot {}
179 out of range (vtable len {}
180) on the runtime class behind {}
181 (method `{}
182`)",
183 24usize,
184 __vt.len(),
185 <RefineGodWeaponSelectMenu as ::unity::ClassIdentity>::NAME,
186 "OnBuild",
187 )
188 });
189 let __inner: extern "C" fn(RefineGodWeaponSelectMenu, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
190 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
191 __inner(__receiver, ::core::convert::Into::into(is_first_build), __mi)
192 }
193 }
194 }
195 #[doc = "`RebuildMenu()` overload"]
196 fn rebuild_menu(self) -> () {
197 unsafe {
198 let __receiver =
199 <RefineGodWeaponSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
200 ::unity::il2cpp_call!((::unity::module_base()+0x2388010usize)as*mut u8,();
201(RefineGodWeaponSelectMenu)__receiver)
202 }
203 }
204 #[doc = "`RebuildMenuItem()` overload"]
205 fn rebuild_menu_item(self) -> () {
206 unsafe {
207 let __receiver =
208 <RefineGodWeaponSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
209 ::unity::il2cpp_call!((::unity::module_base()+0x2388100usize)as*mut u8,();
210(RefineGodWeaponSelectMenu)__receiver)
211 }
212 }
213 #[doc = "`GetName()` overload"]
214 fn get_name(self) -> ::unity::Il2CppString {
215 unsafe {
216 let __receiver =
217 <RefineGodWeaponSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
218 {
219 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
220 let __vi = *__vt.get(30usize).unwrap_or_else(|| {
221 panic!(
222 "unity: virtual slot {}
223 out of range (vtable len {}
224) on the runtime class behind {}
225 (method `{}
226`)",
227 30usize,
228 __vt.len(),
229 <RefineGodWeaponSelectMenu as ::unity::ClassIdentity>::NAME,
230 "GetName",
231 )
232 });
233 let __inner: extern "C" fn(RefineGodWeaponSelectMenu, ::unity::OptionalMethod) -> ::unity::Il2CppString =
234 ::core::mem::transmute(__vi.method_ptr);
235 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
236 __inner(__receiver, __mi)
237 }
238 }
239 }
240 #[doc = "`GetSelect()` overload"]
241 fn get_select(self) -> crate::app::basicmenuselect::BasicMenuSelect {
242 unsafe {
243 let __receiver =
244 <RefineGodWeaponSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
245 ::unity::il2cpp_call!((::unity::module_base()+0x2388190usize)as*mut u8,crate::app::basicmenuselect::BasicMenuSelect;
246(RefineGodWeaponSelectMenu)__receiver)
247 }
248 }
249 #[doc = "`KeyLeft(bool)` overload"]
250 fn key_left(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
251 unsafe {
252 let __receiver =
253 <RefineGodWeaponSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
254 {
255 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
256 let __vi = *__vt.get(42usize).unwrap_or_else(|| {
257 panic!(
258 "unity: virtual slot {}
259 out of range (vtable len {}
260) on the runtime class behind {}
261 (method `{}
262`)",
263 42usize,
264 __vt.len(),
265 <RefineGodWeaponSelectMenu as ::unity::ClassIdentity>::NAME,
266 "KeyLeft",
267 )
268 });
269 let __inner: extern "C" fn(RefineGodWeaponSelectMenu, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
270 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
271 __inner(__receiver, ::core::convert::Into::into(is_trigger), __mi)
272 }
273 }
274 }
275 #[doc = "`KeyRight(bool)` overload"]
276 fn key_right(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
277 unsafe {
278 let __receiver =
279 <RefineGodWeaponSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
280 {
281 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
282 let __vi = *__vt.get(43usize).unwrap_or_else(|| {
283 panic!(
284 "unity: virtual slot {}
285 out of range (vtable len {}
286) on the runtime class behind {}
287 (method `{}
288`)",
289 43usize,
290 __vt.len(),
291 <RefineGodWeaponSelectMenu as ::unity::ClassIdentity>::NAME,
292 "KeyRight",
293 )
294 });
295 let __inner: extern "C" fn(RefineGodWeaponSelectMenu, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
296 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
297 __inner(__receiver, ::core::convert::Into::into(is_trigger), __mi)
298 }
299 }
300 }
301 #[doc = "`OnDispose()` overload"]
302 fn on_dispose(self) -> () {
303 unsafe {
304 let __receiver =
305 <RefineGodWeaponSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
306 {
307 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
308 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
309 panic!(
310 "unity: virtual slot {}
311 out of range (vtable len {}
312) on the runtime class behind {}
313 (method `{}
314`)",
315 10usize,
316 __vt.len(),
317 <RefineGodWeaponSelectMenu as ::unity::ClassIdentity>::NAME,
318 "OnDispose",
319 )
320 });
321 let __inner: extern "C" fn(RefineGodWeaponSelectMenu, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
322 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
323 __inner(__receiver, __mi)
324 }
325 }
326 }
327}
328
329#[cfg(feature = "app-refinegodweaponselectmenu")]
330impl<__T: IRefineGodWeaponSelectMenu> IRefineGodWeaponSelectMenuMethods for __T {}
331
332#[cfg(feature = "app-refinegodweaponselectmenu")]
333impl RefineGodWeaponSelectMenu {
334 pub fn get_m_god_unit_list_method_info() -> &'static ::unity::il2cpp::MethodInfo {
335 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
336 }
337
338 pub fn set_m_god_unit_list_method_info() -> &'static ::unity::il2cpp::MethodInfo {
339 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
340 }
341
342 pub fn get_m_god_unit_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
343 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
344 }
345
346 pub fn set_m_god_unit_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
347 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
348 }
349
350 pub fn get_m_god_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
351 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
352 }
353
354 pub fn set_m_god_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
355 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
356 }
357
358 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
359 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
360 }
361
362 pub fn create_menu_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
363 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
364 }
365
366 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
367 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
368 }
369
370 pub fn on_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
371 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
372 }
373
374 pub fn rebuild_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
375 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
376 }
377
378 pub fn rebuild_menu_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
379 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
380 }
381
382 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
383 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
384 }
385
386 pub fn get_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
387 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
388 }
389
390 pub fn key_left_method_info() -> &'static ::unity::il2cpp::MethodInfo {
391 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
392 }
393
394 pub fn key_right_method_info() -> &'static ::unity::il2cpp::MethodInfo {
395 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
396 }
397
398 pub fn on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
399 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
400 }
401}
402
403#[cfg(feature = "app-refinegodweaponselectmenu")]
404impl RefineGodWeaponSelectMenu {
405 #[doc = "Direct (non-virtual) call to `RefineGodWeaponSelectMenu`'s own `OnBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
406 pub unsafe fn on_build(this: impl ::core::convert::Into<::unity::IlInstance>, is_first_build: bool) -> () {
407 let __mi = Self::on_build_method_info();
408 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
409 __inner(this.into(), is_first_build, ::core::option::Option::None)
410 }
411
412 #[doc = "Direct (non-virtual) call to `RefineGodWeaponSelectMenu`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
413 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
414 let __mi = Self::get_name_method_info();
415 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
416 __inner(this.into(), ::core::option::Option::None)
417 }
418
419 #[doc = "Direct (non-virtual) call to `RefineGodWeaponSelectMenu`'s own `KeyLeft`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
420 pub unsafe fn key_left(this: impl ::core::convert::Into<::unity::IlInstance>, is_trigger: bool) -> () {
421 let __mi = Self::key_left_method_info();
422 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
423 __inner(this.into(), is_trigger, ::core::option::Option::None)
424 }
425
426 #[doc = "Direct (non-virtual) call to `RefineGodWeaponSelectMenu`'s own `KeyRight`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
427 pub unsafe fn key_right(this: impl ::core::convert::Into<::unity::IlInstance>, is_trigger: bool) -> () {
428 let __mi = Self::key_right_method_info();
429 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
430 __inner(this.into(), is_trigger, ::core::option::Option::None)
431 }
432
433 #[doc = "Direct (non-virtual) call to `RefineGodWeaponSelectMenu`'s own `OnDispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
434 pub unsafe fn on_dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
435 let __mi = Self::on_dispose_method_info();
436 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
437 __inner(this.into(), ::core::option::Option::None)
438 }
439}
440
441#[cfg(feature = "app-refinegodweaponselectmenu")]
442impl RefineGodWeaponSelectMenu {
443 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::basicmenucontent::BasicMenuContent, crate::system::collections::generic::list_1::List_1<crate::app::godunit::GodUnit>, crate::app::godunit::GodUnit, crate::app::itemdata::ItemData, i32, crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_SelectEventHandler, crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_DecideEventHandler, crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_RequestCloseEventHandler)` — overload selector"]
444 pub fn new(
445 menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
446 menu_content: crate::app::basicmenucontent::BasicMenuContent,
447 god_unit_list: crate::system::collections::generic::list_1::List_1<crate::app::godunit::GodUnit>,
448 initial_god_unit: crate::app::godunit::GodUnit,
449 initial_god_weapon: crate::app::itemdata::ItemData,
450 initial_scroll_index: i32,
451 select_event_handler: crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_SelectEventHandler,
452 decide_event_handler: crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_DecideEventHandler,
453 request_close_event_handler: crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_RequestCloseEventHandler,
454 ) -> Self {
455 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
456 panic!(
457 "{}
458::{}
459 failed to instantiate",
460 ::core::stringify!(RefineGodWeaponSelectMenu),
461 ::core::stringify!(new),
462 )
463 });
464 <Self as IRefineGodWeaponSelectMenuMethods>::ctor(
465 this,
466 menu_item_list,
467 menu_content,
468 god_unit_list,
469 initial_god_unit,
470 initial_god_weapon,
471 initial_scroll_index,
472 select_event_handler,
473 decide_event_handler,
474 request_close_event_handler,
475 );
476 this
477 }
478}
479
480#[cfg(feature = "app-refinegodweaponselectmenu")]
481pub trait IRefineGodWeaponSelectMenu_DecideEventHandlerMethods: IRefineGodWeaponSelectMenu_DecideEventHandler {
482 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
483 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
484 unsafe {
485 let __receiver = <RefineGodWeaponSelectMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
486 <Self as ::unity::SystemObject>::as_instance(self),
487 );
488 ::unity::il2cpp_call!((::unity::module_base()+0x1af7690usize)as*mut u8,();
489(RefineGodWeaponSelectMenu_DecideEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
490 }
491 }
492 #[doc = "`Invoke(crate::app::godunit::GodUnit, crate::app::unititem::UnitItem)` overload"]
493 fn invoke(
494 self,
495 god_unit: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
496 unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>,
497 ) -> () {
498 unsafe {
499 let __receiver = <RefineGodWeaponSelectMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
500 <Self as ::unity::SystemObject>::as_instance(self),
501 );
502 {
503 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
504 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
505 panic!(
506 "unity: virtual slot {}
507 out of range (vtable len {}
508) on the runtime class behind {}
509 (method `{}
510`)",
511 13usize,
512 __vt.len(),
513 <RefineGodWeaponSelectMenu_DecideEventHandler as ::unity::ClassIdentity>::NAME,
514 "Invoke",
515 )
516 });
517 let __inner: extern "C" fn(
518 RefineGodWeaponSelectMenu_DecideEventHandler,
519 crate::app::godunit::GodUnit,
520 crate::app::unititem::UnitItem,
521 ::unity::OptionalMethod,
522 ) -> () = ::core::mem::transmute(__vi.method_ptr);
523 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
524 __inner(
525 __receiver,
526 ::core::convert::Into::into(god_unit),
527 ::core::convert::Into::into(unit_item),
528 __mi,
529 )
530 }
531 }
532 }
533}
534
535#[cfg(feature = "app-refinegodweaponselectmenu")]
536impl<__T: IRefineGodWeaponSelectMenu_DecideEventHandler> IRefineGodWeaponSelectMenu_DecideEventHandlerMethods for __T {}
537
538#[cfg(feature = "app-refinegodweaponselectmenu")]
539impl RefineGodWeaponSelectMenu_DecideEventHandler {
540 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
541 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
542 }
543
544 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
545 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
546 }
547}
548
549#[cfg(feature = "app-refinegodweaponselectmenu")]
550impl RefineGodWeaponSelectMenu_DecideEventHandler {
551 #[doc = "Direct (non-virtual) call to `RefineGodWeaponSelectMenu_DecideEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
552 pub unsafe fn invoke(
553 this: impl ::core::convert::Into<::unity::IlInstance>,
554 god_unit: crate::app::godunit::GodUnit,
555 unit_item: crate::app::unititem::UnitItem,
556 ) -> () {
557 let __mi = Self::invoke_method_info();
558 let __inner: extern "C" fn(::unity::IlInstance, crate::app::godunit::GodUnit, crate::app::unititem::UnitItem, ::unity::OptionalMethod) -> () =
559 ::core::mem::transmute(__mi.method_ptr);
560 __inner(this.into(), god_unit, unit_item, ::core::option::Option::None)
561 }
562}
563
564#[cfg(feature = "app-refinegodweaponselectmenu")]
565impl RefineGodWeaponSelectMenu_DecideEventHandler {
566 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
567 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
568 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
569 panic!(
570 "{}
571::{}
572 failed to instantiate",
573 ::core::stringify!(RefineGodWeaponSelectMenu_DecideEventHandler),
574 ::core::stringify!(new),
575 )
576 });
577 <Self as IRefineGodWeaponSelectMenu_DecideEventHandlerMethods>::ctor(this, object, method);
578 this
579 }
580}
581
582#[cfg(feature = "app-refinegodweaponselectmenu")]
583pub trait IRefineGodWeaponSelectMenu_RequestCloseEventHandlerMethods: IRefineGodWeaponSelectMenu_RequestCloseEventHandler {
584 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
585 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
586 unsafe {
587 let __receiver = <RefineGodWeaponSelectMenu_RequestCloseEventHandler as ::unity::FromIlInstance>::from_il_instance(
588 <Self as ::unity::SystemObject>::as_instance(self),
589 );
590 ::unity::il2cpp_call!((::unity::module_base()+0x1af7a60usize)as*mut u8,();
591(RefineGodWeaponSelectMenu_RequestCloseEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
592 }
593 }
594 #[doc = "`Invoke()` overload"]
595 fn invoke(self) -> () {
596 unsafe {
597 let __receiver = <RefineGodWeaponSelectMenu_RequestCloseEventHandler as ::unity::FromIlInstance>::from_il_instance(
598 <Self as ::unity::SystemObject>::as_instance(self),
599 );
600 {
601 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
602 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
603 panic!(
604 "unity: virtual slot {}
605 out of range (vtable len {}
606) on the runtime class behind {}
607 (method `{}
608`)",
609 13usize,
610 __vt.len(),
611 <RefineGodWeaponSelectMenu_RequestCloseEventHandler as ::unity::ClassIdentity>::NAME,
612 "Invoke",
613 )
614 });
615 let __inner: extern "C" fn(RefineGodWeaponSelectMenu_RequestCloseEventHandler, ::unity::OptionalMethod) -> () =
616 ::core::mem::transmute(__vi.method_ptr);
617 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
618 __inner(__receiver, __mi)
619 }
620 }
621 }
622}
623
624#[cfg(feature = "app-refinegodweaponselectmenu")]
625impl<__T: IRefineGodWeaponSelectMenu_RequestCloseEventHandler> IRefineGodWeaponSelectMenu_RequestCloseEventHandlerMethods for __T {}
626
627#[cfg(feature = "app-refinegodweaponselectmenu")]
628impl RefineGodWeaponSelectMenu_RequestCloseEventHandler {
629 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
630 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
631 }
632
633 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
634 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
635 }
636}
637
638#[cfg(feature = "app-refinegodweaponselectmenu")]
639impl RefineGodWeaponSelectMenu_RequestCloseEventHandler {
640 #[doc = "Direct (non-virtual) call to `RefineGodWeaponSelectMenu_RequestCloseEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
641 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
642 let __mi = Self::invoke_method_info();
643 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
644 __inner(this.into(), ::core::option::Option::None)
645 }
646}
647
648#[cfg(feature = "app-refinegodweaponselectmenu")]
649impl RefineGodWeaponSelectMenu_RequestCloseEventHandler {
650 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
651 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
652 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
653 panic!(
654 "{}
655::{}
656 failed to instantiate",
657 ::core::stringify!(RefineGodWeaponSelectMenu_RequestCloseEventHandler),
658 ::core::stringify!(new),
659 )
660 });
661 <Self as IRefineGodWeaponSelectMenu_RequestCloseEventHandlerMethods>::ctor(this, object, method);
662 this
663 }
664}
665
666#[cfg(feature = "app-refinegodweaponselectmenu")]
667pub trait IRefineGodWeaponSelectMenu_SelectEventHandlerMethods: IRefineGodWeaponSelectMenu_SelectEventHandler {
668 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
669 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
670 unsafe {
671 let __receiver = <RefineGodWeaponSelectMenu_SelectEventHandler as ::unity::FromIlInstance>::from_il_instance(
672 <Self as ::unity::SystemObject>::as_instance(self),
673 );
674 ::unity::il2cpp_call!((::unity::module_base()+0x1af7cd0usize)as*mut u8,();
675(RefineGodWeaponSelectMenu_SelectEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
676 }
677 }
678 #[doc = "`Invoke(crate::app::godunit::GodUnit, crate::app::unititem::UnitItem)` overload"]
679 fn invoke(
680 self,
681 god_unit: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
682 unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>,
683 ) -> () {
684 unsafe {
685 let __receiver = <RefineGodWeaponSelectMenu_SelectEventHandler as ::unity::FromIlInstance>::from_il_instance(
686 <Self as ::unity::SystemObject>::as_instance(self),
687 );
688 {
689 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
690 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
691 panic!(
692 "unity: virtual slot {}
693 out of range (vtable len {}
694) on the runtime class behind {}
695 (method `{}
696`)",
697 13usize,
698 __vt.len(),
699 <RefineGodWeaponSelectMenu_SelectEventHandler as ::unity::ClassIdentity>::NAME,
700 "Invoke",
701 )
702 });
703 let __inner: extern "C" fn(
704 RefineGodWeaponSelectMenu_SelectEventHandler,
705 crate::app::godunit::GodUnit,
706 crate::app::unititem::UnitItem,
707 ::unity::OptionalMethod,
708 ) -> () = ::core::mem::transmute(__vi.method_ptr);
709 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
710 __inner(
711 __receiver,
712 ::core::convert::Into::into(god_unit),
713 ::core::convert::Into::into(unit_item),
714 __mi,
715 )
716 }
717 }
718 }
719}
720
721#[cfg(feature = "app-refinegodweaponselectmenu")]
722impl<__T: IRefineGodWeaponSelectMenu_SelectEventHandler> IRefineGodWeaponSelectMenu_SelectEventHandlerMethods for __T {}
723
724#[cfg(feature = "app-refinegodweaponselectmenu")]
725impl RefineGodWeaponSelectMenu_SelectEventHandler {
726 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
727 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
728 }
729
730 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
731 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
732 }
733}
734
735#[cfg(feature = "app-refinegodweaponselectmenu")]
736impl RefineGodWeaponSelectMenu_SelectEventHandler {
737 #[doc = "Direct (non-virtual) call to `RefineGodWeaponSelectMenu_SelectEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
738 pub unsafe fn invoke(
739 this: impl ::core::convert::Into<::unity::IlInstance>,
740 god_unit: crate::app::godunit::GodUnit,
741 unit_item: crate::app::unititem::UnitItem,
742 ) -> () {
743 let __mi = Self::invoke_method_info();
744 let __inner: extern "C" fn(::unity::IlInstance, crate::app::godunit::GodUnit, crate::app::unititem::UnitItem, ::unity::OptionalMethod) -> () =
745 ::core::mem::transmute(__mi.method_ptr);
746 __inner(this.into(), god_unit, unit_item, ::core::option::Option::None)
747 }
748}
749
750#[cfg(feature = "app-refinegodweaponselectmenu")]
751impl RefineGodWeaponSelectMenu_SelectEventHandler {
752 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
753 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
754 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
755 panic!(
756 "{}
757::{}
758 failed to instantiate",
759 ::core::stringify!(RefineGodWeaponSelectMenu_SelectEventHandler),
760 ::core::stringify!(new),
761 )
762 });
763 <Self as IRefineGodWeaponSelectMenu_SelectEventHandlerMethods>::ctor(this, object, method);
764 this
765 }
766}
767
768#[cfg(feature = "app-refinegodweaponselectmenu")]
769#[doc(hidden)]
770pub mod prelude {
771 pub use super::{
772 IRefineGodWeaponSelectMenu, IRefineGodWeaponSelectMenuMethods, IRefineGodWeaponSelectMenu_DecideEventHandler,
773 IRefineGodWeaponSelectMenu_DecideEventHandlerMethods, IRefineGodWeaponSelectMenu_RequestCloseEventHandler,
774 IRefineGodWeaponSelectMenu_RequestCloseEventHandlerMethods, IRefineGodWeaponSelectMenu_SelectEventHandler,
775 IRefineGodWeaponSelectMenu_SelectEventHandlerMethods, RefineGodWeaponSelectMenu, RefineGodWeaponSelectMenu_DecideEventHandler,
776 RefineGodWeaponSelectMenu_RequestCloseEventHandler, RefineGodWeaponSelectMenu_SelectEventHandler,
777 };
778 #[cfg(feature = "app-basicmenu")]
779 pub use crate::app::basicmenu::IBasicMenuMethods;
780 #[cfg(feature = "app-procinst")]
781 pub use crate::app::procinst::IProcInstMethods;
782 #[cfg(feature = "system-delegate")]
783 pub use crate::system::delegate::IDelegateMethods;
784 #[cfg(feature = "system-multicastdelegate")]
785 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
786 #[cfg(feature = "system-object")]
787 pub use crate::system::object::IObjectMethods;
788 pub use crate::{
789 app::{basicmenu::IBasicMenu, procinst::IProcInst},
790 system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
791 };
792}