1#[cfg(feature = "app-refinegodweaponselectmenuitem-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::basicmenuitem::{BasicMenuItem, IBasicMenuItem},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refinegodweaponselectmenuitem/RefineGodWeaponSelectMenuItem.md"))]
14 #[::unity::class(namespace = "App", name = "RefineGodWeaponSelectMenuItem")]
15 #[parent(crate::app::basicmenuitem::BasicMenuItem)]
16 pub struct RefineGodWeaponSelectMenuItem {
17 #[offset(104)]
18 #[rename(name = "m_SelectEventHandler")]
19 pub m_select_event_handler: crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_SelectEventHandler,
20 #[offset(112)]
21 #[rename(name = "m_DecideEventHandler")]
22 pub m_decide_event_handler: crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_DecideEventHandler,
23 #[offset(120)]
24 #[rename(name = "m_RequestCloseEventHandler")]
25 pub m_request_close_event_handler: crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_RequestCloseEventHandler,
26 }
27}
28
29#[cfg(feature = "app-refinegodweaponselectmenuitem-types")]
30pub use __types::*;
31
32#[cfg(feature = "app-refinegodweaponselectmenuitem")]
33pub trait IRefineGodWeaponSelectMenuItemMethods: IRefineGodWeaponSelectMenuItem {
34 #[doc = "`get_m_ItemData()` overload"]
35 fn get_m_item_data(self) -> crate::app::itemdata::ItemData {
36 unsafe {
37 let __receiver =
38 <RefineGodWeaponSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
39 ::unity::il2cpp_call!((::unity::module_base()+0x2388c60usize)as*mut u8,crate::app::itemdata::ItemData;
40(RefineGodWeaponSelectMenuItem)__receiver)
41 }
42 }
43 #[doc = "`set_m_ItemData(crate::app::itemdata::ItemData)` overload"]
44 fn set_m_item_data(self, value: impl ::core::convert::Into<crate::app::itemdata::ItemData>) -> () {
45 unsafe {
46 let __receiver =
47 <RefineGodWeaponSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48 ::unity::il2cpp_call!((::unity::module_base()+0x2388c70usize)as*mut u8,();
49(RefineGodWeaponSelectMenuItem)__receiver,(crate::app::itemdata::ItemData)::core::convert::Into::into(value))
50 }
51 }
52 #[doc = "`get_m_UnitItem()` overload"]
53 fn get_m_unit_item(self) -> crate::app::unititem::UnitItem {
54 unsafe {
55 let __receiver =
56 <RefineGodWeaponSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57 ::unity::il2cpp_call!((::unity::module_base()+0x2388c80usize)as*mut u8,crate::app::unititem::UnitItem;
58(RefineGodWeaponSelectMenuItem)__receiver)
59 }
60 }
61 #[doc = "`set_m_UnitItem(crate::app::unititem::UnitItem)` overload"]
62 fn set_m_unit_item(self, value: impl ::core::convert::Into<crate::app::unititem::UnitItem>) -> () {
63 unsafe {
64 let __receiver =
65 <RefineGodWeaponSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66 ::unity::il2cpp_call!((::unity::module_base()+0x2388c90usize)as*mut u8,();
67(RefineGodWeaponSelectMenuItem)__receiver,(crate::app::unititem::UnitItem)::core::convert::Into::into(value))
68 }
69 }
70 #[doc = "`get_m_Capacity()` overload"]
71 fn get_m_capacity(self) -> i32 {
72 unsafe {
73 let __receiver =
74 <RefineGodWeaponSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75 ::unity::il2cpp_call!((::unity::module_base()+0x2388ca0usize)as*mut u8,i32;
76(RefineGodWeaponSelectMenuItem)__receiver)
77 }
78 }
79 #[doc = "`set_m_Capacity(i32)` overload"]
80 fn set_m_capacity(self, value: impl ::core::convert::Into<i32>) -> () {
81 unsafe {
82 let __receiver =
83 <RefineGodWeaponSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84 ::unity::il2cpp_call!((::unity::module_base()+0x2388cb0usize)as*mut u8,();
85(RefineGodWeaponSelectMenuItem)__receiver,(i32)::core::convert::Into::into(value))
86 }
87 }
88 #[doc = "`get_m_CapacityMax()` overload"]
89 fn get_m_capacity_max(self) -> i32 {
90 unsafe {
91 let __receiver =
92 <RefineGodWeaponSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
93 ::unity::il2cpp_call!((::unity::module_base()+0x2388cc0usize)as*mut u8,i32;
94(RefineGodWeaponSelectMenuItem)__receiver)
95 }
96 }
97 #[doc = "`set_m_CapacityMax(i32)` overload"]
98 fn set_m_capacity_max(self, value: impl ::core::convert::Into<i32>) -> () {
99 unsafe {
100 let __receiver =
101 <RefineGodWeaponSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102 ::unity::il2cpp_call!((::unity::module_base()+0x2388cd0usize)as*mut u8,();
103(RefineGodWeaponSelectMenuItem)__receiver,(i32)::core::convert::Into::into(value))
104 }
105 }
106 #[doc = "`get_m_Empty()` overload"]
107 fn get_m_empty(self) -> bool {
108 unsafe {
109 let __receiver =
110 <RefineGodWeaponSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111 ::unity::il2cpp_call!((::unity::module_base()+0x2388ce0usize)as*mut u8,bool;
112(RefineGodWeaponSelectMenuItem)__receiver)
113 }
114 }
115 #[doc = "`set_m_Empty(bool)` overload"]
116 fn set_m_empty(self, value: impl ::core::convert::Into<bool>) -> () {
117 unsafe {
118 let __receiver =
119 <RefineGodWeaponSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120 ::unity::il2cpp_call!((::unity::module_base()+0x2388cf0usize)as*mut u8,();
121(RefineGodWeaponSelectMenuItem)__receiver,(bool)::core::convert::Into::into(value))
122 }
123 }
124 #[doc = "`.ctor(crate::app::itemdata::ItemData, i32, i32, crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_SelectEventHandler, crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_DecideEventHandler, crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_RequestCloseEventHandler)` overload"]
125 fn ctor(
126 self,
127 god_weapon_data: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
128 using_capacity: impl ::core::convert::Into<i32>,
129 capacity: impl ::core::convert::Into<i32>,
130 select_event_handler: impl ::core::convert::Into<crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_SelectEventHandler>,
131 decide_event_handler: impl ::core::convert::Into<crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_DecideEventHandler>,
132 request_close_event_handler: impl ::core::convert::Into<crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_RequestCloseEventHandler>,
133 ) -> () {
134 unsafe {
135 let __receiver =
136 <RefineGodWeaponSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
137 ::unity::il2cpp_call!((::unity::module_base()+0x2386b20usize)as*mut u8,();
138(RefineGodWeaponSelectMenuItem)__receiver,(crate::app::itemdata::ItemData)::core::convert::Into::into(god_weapon_data),(i32)::core::convert::Into::into(using_capacity),(i32)::core::convert::Into::into(capacity),(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))
139 }
140 }
141 #[doc = "`GetName()` overload"]
142 fn get_name(self) -> ::unity::Il2CppString {
143 unsafe {
144 let __receiver =
145 <RefineGodWeaponSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
146 {
147 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
148 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
149 panic!(
150 "unity: virtual slot {}
151 out of range (vtable len {}
152) on the runtime class behind {}
153 (method `{}
154`)",
155 4usize,
156 __vt.len(),
157 <RefineGodWeaponSelectMenuItem as ::unity::ClassIdentity>::NAME,
158 "GetName",
159 )
160 });
161 let __inner: extern "C" fn(RefineGodWeaponSelectMenuItem, ::unity::OptionalMethod) -> ::unity::Il2CppString =
162 ::core::mem::transmute(__vi.method_ptr);
163 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
164 __inner(__receiver, __mi)
165 }
166 }
167 }
168 #[doc = "`BuildAttribute()` overload"]
169 fn build_attribute(self) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
170 unsafe {
171 let __receiver =
172 <RefineGodWeaponSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
173 {
174 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
175 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
176 panic!(
177 "unity: virtual slot {}
178 out of range (vtable len {}
179) on the runtime class behind {}
180 (method `{}
181`)",
182 8usize,
183 __vt.len(),
184 <RefineGodWeaponSelectMenuItem as ::unity::ClassIdentity>::NAME,
185 "BuildAttribute",
186 )
187 });
188 let __inner: extern "C" fn(
189 RefineGodWeaponSelectMenuItem,
190 ::unity::OptionalMethod,
191 ) -> crate::app::basicmenuitem::BasicMenuItem_Attribute = ::core::mem::transmute(__vi.method_ptr);
192 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
193 __inner(__receiver, __mi)
194 }
195 }
196 }
197 #[doc = "`OnBuild()` overload"]
198 fn on_build(self) -> () {
199 unsafe {
200 let __receiver =
201 <RefineGodWeaponSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
202 {
203 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
204 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
205 panic!(
206 "unity: virtual slot {}
207 out of range (vtable len {}
208) on the runtime class behind {}
209 (method `{}
210`)",
211 10usize,
212 __vt.len(),
213 <RefineGodWeaponSelectMenuItem as ::unity::ClassIdentity>::NAME,
214 "OnBuild",
215 )
216 });
217 let __inner: extern "C" fn(RefineGodWeaponSelectMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
218 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
219 __inner(__receiver, __mi)
220 }
221 }
222 }
223 #[doc = "`OnBuildMenuItemContent()` overload"]
224 fn on_build_menu_item_content(self) -> () {
225 unsafe {
226 let __receiver =
227 <RefineGodWeaponSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
228 {
229 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
230 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
231 panic!(
232 "unity: virtual slot {}
233 out of range (vtable len {}
234) on the runtime class behind {}
235 (method `{}
236`)",
237 11usize,
238 __vt.len(),
239 <RefineGodWeaponSelectMenuItem as ::unity::ClassIdentity>::NAME,
240 "OnBuildMenuItemContent",
241 )
242 });
243 let __inner: extern "C" fn(RefineGodWeaponSelectMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
244 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
245 __inner(__receiver, __mi)
246 }
247 }
248 }
249 #[doc = "`SetInitialColor()` overload"]
250 fn set_initial_color(self) -> () {
251 unsafe {
252 let __receiver =
253 <RefineGodWeaponSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
254 ::unity::il2cpp_call!((::unity::module_base()+0x2388db0usize)as*mut u8,();
255(RefineGodWeaponSelectMenuItem)__receiver)
256 }
257 }
258 #[doc = "`OnSelect()` overload"]
259 fn on_select(self) -> () {
260 unsafe {
261 let __receiver =
262 <RefineGodWeaponSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
263 {
264 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
265 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
266 panic!(
267 "unity: virtual slot {}
268 out of range (vtable len {}
269) on the runtime class behind {}
270 (method `{}
271`)",
272 12usize,
273 __vt.len(),
274 <RefineGodWeaponSelectMenuItem as ::unity::ClassIdentity>::NAME,
275 "OnSelect",
276 )
277 });
278 let __inner: extern "C" fn(RefineGodWeaponSelectMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
279 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
280 __inner(__receiver, __mi)
281 }
282 }
283 }
284 #[doc = "`ACall()` overload"]
285 fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
286 unsafe {
287 let __receiver =
288 <RefineGodWeaponSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
289 {
290 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
291 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
292 panic!(
293 "unity: virtual slot {}
294 out of range (vtable len {}
295) on the runtime class behind {}
296 (method `{}
297`)",
298 18usize,
299 __vt.len(),
300 <RefineGodWeaponSelectMenuItem as ::unity::ClassIdentity>::NAME,
301 "ACall",
302 )
303 });
304 let __inner: extern "C" fn(RefineGodWeaponSelectMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
305 ::core::mem::transmute(__vi.method_ptr);
306 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
307 __inner(__receiver, __mi)
308 }
309 }
310 }
311 #[doc = "`BCall()` overload"]
312 fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
313 unsafe {
314 let __receiver =
315 <RefineGodWeaponSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
316 {
317 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
318 let __vi = *__vt.get(19usize).unwrap_or_else(|| {
319 panic!(
320 "unity: virtual slot {}
321 out of range (vtable len {}
322) on the runtime class behind {}
323 (method `{}
324`)",
325 19usize,
326 __vt.len(),
327 <RefineGodWeaponSelectMenuItem as ::unity::ClassIdentity>::NAME,
328 "BCall",
329 )
330 });
331 let __inner: extern "C" fn(RefineGodWeaponSelectMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
332 ::core::mem::transmute(__vi.method_ptr);
333 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
334 __inner(__receiver, __mi)
335 }
336 }
337 }
338}
339
340#[cfg(feature = "app-refinegodweaponselectmenuitem")]
341impl<__T: IRefineGodWeaponSelectMenuItem> IRefineGodWeaponSelectMenuItemMethods for __T {}
342
343#[cfg(feature = "app-refinegodweaponselectmenuitem")]
344impl RefineGodWeaponSelectMenuItem {
345 pub fn get_m_item_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
346 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
347 }
348
349 pub fn set_m_item_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
350 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
351 }
352
353 pub fn get_m_unit_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
354 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
355 }
356
357 pub fn set_m_unit_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
358 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
359 }
360
361 pub fn get_m_capacity_method_info() -> &'static ::unity::il2cpp::MethodInfo {
362 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
363 }
364
365 pub fn set_m_capacity_method_info() -> &'static ::unity::il2cpp::MethodInfo {
366 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
367 }
368
369 pub fn get_m_capacity_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
370 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
371 }
372
373 pub fn set_m_capacity_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
374 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
375 }
376
377 pub fn get_m_empty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
378 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
379 }
380
381 pub fn set_m_empty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
382 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
383 }
384
385 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
386 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
387 }
388
389 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
390 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
391 }
392
393 pub fn build_attribute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
394 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
395 }
396
397 pub fn on_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
398 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
399 }
400
401 pub fn on_build_menu_item_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
402 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
403 }
404
405 pub fn set_initial_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
406 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
407 }
408
409 pub fn on_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
410 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
411 }
412
413 pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
414 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
415 }
416
417 pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
418 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
419 }
420}
421
422#[cfg(feature = "app-refinegodweaponselectmenuitem")]
423impl RefineGodWeaponSelectMenuItem {
424 #[doc = "Direct (non-virtual) call to `RefineGodWeaponSelectMenuItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
425 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
426 let __mi = Self::get_name_method_info();
427 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
428 __inner(this.into(), ::core::option::Option::None)
429 }
430
431 #[doc = "Direct (non-virtual) call to `RefineGodWeaponSelectMenuItem`'s own `BuildAttribute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
432 pub unsafe fn build_attribute(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
433 let __mi = Self::build_attribute_method_info();
434 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
435 ::core::mem::transmute(__mi.method_ptr);
436 __inner(this.into(), ::core::option::Option::None)
437 }
438
439 #[doc = "Direct (non-virtual) call to `RefineGodWeaponSelectMenuItem`'s own `OnBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
440 pub unsafe fn on_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
441 let __mi = Self::on_build_method_info();
442 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
443 __inner(this.into(), ::core::option::Option::None)
444 }
445
446 #[doc = "Direct (non-virtual) call to `RefineGodWeaponSelectMenuItem`'s own `OnBuildMenuItemContent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
447 pub unsafe fn on_build_menu_item_content(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
448 let __mi = Self::on_build_menu_item_content_method_info();
449 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
450 __inner(this.into(), ::core::option::Option::None)
451 }
452
453 #[doc = "Direct (non-virtual) call to `RefineGodWeaponSelectMenuItem`'s own `OnSelect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
454 pub unsafe fn on_select(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
455 let __mi = Self::on_select_method_info();
456 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
457 __inner(this.into(), ::core::option::Option::None)
458 }
459
460 #[doc = "Direct (non-virtual) call to `RefineGodWeaponSelectMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
461 pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
462 let __mi = Self::a_call_method_info();
463 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
464 ::core::mem::transmute(__mi.method_ptr);
465 __inner(this.into(), ::core::option::Option::None)
466 }
467
468 #[doc = "Direct (non-virtual) call to `RefineGodWeaponSelectMenuItem`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
469 pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
470 let __mi = Self::b_call_method_info();
471 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
472 ::core::mem::transmute(__mi.method_ptr);
473 __inner(this.into(), ::core::option::Option::None)
474 }
475}
476
477#[cfg(feature = "app-refinegodweaponselectmenuitem")]
478impl RefineGodWeaponSelectMenuItem {
479 #[doc = "`.ctor(crate::app::itemdata::ItemData, i32, i32, crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_SelectEventHandler, crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_DecideEventHandler, crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_RequestCloseEventHandler)` — overload selector"]
480 pub fn new(
481 god_weapon_data: crate::app::itemdata::ItemData,
482 using_capacity: i32,
483 capacity: i32,
484 select_event_handler: crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_SelectEventHandler,
485 decide_event_handler: crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_DecideEventHandler,
486 request_close_event_handler: crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu_RequestCloseEventHandler,
487 ) -> Self {
488 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
489 panic!(
490 "{}
491::{}
492 failed to instantiate",
493 ::core::stringify!(RefineGodWeaponSelectMenuItem),
494 ::core::stringify!(new),
495 )
496 });
497 <Self as IRefineGodWeaponSelectMenuItemMethods>::ctor(
498 this,
499 god_weapon_data,
500 using_capacity,
501 capacity,
502 select_event_handler,
503 decide_event_handler,
504 request_close_event_handler,
505 );
506 this
507 }
508}
509
510#[cfg(feature = "app-refinegodweaponselectmenuitem")]
511#[doc(hidden)]
512pub mod prelude {
513 pub use super::{IRefineGodWeaponSelectMenuItem, IRefineGodWeaponSelectMenuItemMethods, RefineGodWeaponSelectMenuItem};
514 #[cfg(feature = "app-basicmenuitem")]
515 pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
516 #[cfg(feature = "system-object")]
517 pub use crate::system::object::IObjectMethods;
518 pub use crate::{app::basicmenuitem::IBasicMenuItem, system::object::IObject};
519}