Skip to main content

engage/generated/app/
refineshoprefinetargetbasemenuitem.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-refineshoprefinetargetbasemenuitem-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/refineshoprefinetargetbasemenuitem/RefineShopRefineTargetBaseMenuItem.md"))]
14    #[::unity::class(namespace = "App", name = "RefineShopRefineTargetBaseMenuItem")]
15    #[parent(crate::app::basicmenuitem::BasicMenuItem)]
16    pub struct RefineShopRefineTargetBaseMenuItem {
17        #[offset(104)]
18        #[rename(name = "m_BaseUnitItem")]
19        pub m_base_unit_item: crate::app::unititem::UnitItem,
20    }
21}
22
23#[cfg(feature = "app-refineshoprefinetargetbasemenuitem-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-refineshoprefinetargetbasemenuitem")]
27pub trait IRefineShopRefineTargetBaseMenuItemMethods: IRefineShopRefineTargetBaseMenuItem {
28    #[doc = "`get_m_TargetUnitItem()` overload"]
29    fn get_m_target_unit_item(self) -> crate::app::unititem::UnitItem {
30        unsafe {
31            let __receiver =
32                <RefineShopRefineTargetBaseMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
33            {
34                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
35                let __vi = *__vt.get(27usize).unwrap_or_else(|| {
36                    panic!(
37                        "unity: virtual slot {}
38 out of range (vtable len {}
39) on the runtime class behind {}
40 (method `{}
41`)",
42                        27usize,
43                        __vt.len(),
44                        <RefineShopRefineTargetBaseMenuItem as ::unity::ClassIdentity>::NAME,
45                        "get_m_TargetUnitItem",
46                    )
47                });
48                let __inner: extern "C" fn(RefineShopRefineTargetBaseMenuItem, ::unity::OptionalMethod) -> crate::app::unititem::UnitItem =
49                    ::core::mem::transmute(__vi.method_ptr);
50                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
51                __inner(__receiver, __mi)
52            }
53        }
54    }
55    #[doc = "`set_m_TargetUnitItem(crate::app::unititem::UnitItem)` overload"]
56    fn set_m_target_unit_item(self, value: impl ::core::convert::Into<crate::app::unititem::UnitItem>) -> () {
57        unsafe {
58            let __receiver =
59                <RefineShopRefineTargetBaseMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
60            {
61                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
62                let __vi = *__vt.get(28usize).unwrap_or_else(|| {
63                    panic!(
64                        "unity: virtual slot {}
65 out of range (vtable len {}
66) on the runtime class behind {}
67 (method `{}
68`)",
69                        28usize,
70                        __vt.len(),
71                        <RefineShopRefineTargetBaseMenuItem as ::unity::ClassIdentity>::NAME,
72                        "set_m_TargetUnitItem",
73                    )
74                });
75                let __inner: extern "C" fn(RefineShopRefineTargetBaseMenuItem, crate::app::unititem::UnitItem, ::unity::OptionalMethod) -> () =
76                    ::core::mem::transmute(__vi.method_ptr);
77                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
78                __inner(__receiver, ::core::convert::Into::into(value), __mi)
79            }
80        }
81    }
82    #[doc = "`get_m_NeededIron()` overload"]
83    fn get_m_needed_iron(self) -> i32 {
84        unsafe {
85            let __receiver =
86                <RefineShopRefineTargetBaseMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87            ::unity::il2cpp_call!((::unity::module_base()+0x296a1d0usize)as*mut u8,i32;
88(RefineShopRefineTargetBaseMenuItem)__receiver)
89        }
90    }
91    #[doc = "`set_m_NeededIron(i32)` overload"]
92    fn set_m_needed_iron(self, value: impl ::core::convert::Into<i32>) -> () {
93        unsafe {
94            let __receiver =
95                <RefineShopRefineTargetBaseMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96            ::unity::il2cpp_call!((::unity::module_base()+0x296a1e0usize)as*mut u8,();
97(RefineShopRefineTargetBaseMenuItem)__receiver,(i32)::core::convert::Into::into(value))
98        }
99    }
100    #[doc = "`get_m_NeededSteel()` overload"]
101    fn get_m_needed_steel(self) -> i32 {
102        unsafe {
103            let __receiver =
104                <RefineShopRefineTargetBaseMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
105            ::unity::il2cpp_call!((::unity::module_base()+0x296a1f0usize)as*mut u8,i32;
106(RefineShopRefineTargetBaseMenuItem)__receiver)
107        }
108    }
109    #[doc = "`set_m_NeededSteel(i32)` overload"]
110    fn set_m_needed_steel(self, value: impl ::core::convert::Into<i32>) -> () {
111        unsafe {
112            let __receiver =
113                <RefineShopRefineTargetBaseMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114            ::unity::il2cpp_call!((::unity::module_base()+0x296a200usize)as*mut u8,();
115(RefineShopRefineTargetBaseMenuItem)__receiver,(i32)::core::convert::Into::into(value))
116        }
117    }
118    #[doc = "`get_m_NeededSilver()` overload"]
119    fn get_m_needed_silver(self) -> i32 {
120        unsafe {
121            let __receiver =
122                <RefineShopRefineTargetBaseMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123            ::unity::il2cpp_call!((::unity::module_base()+0x296a210usize)as*mut u8,i32;
124(RefineShopRefineTargetBaseMenuItem)__receiver)
125        }
126    }
127    #[doc = "`set_m_NeededSilver(i32)` overload"]
128    fn set_m_needed_silver(self, value: impl ::core::convert::Into<i32>) -> () {
129        unsafe {
130            let __receiver =
131                <RefineShopRefineTargetBaseMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132            ::unity::il2cpp_call!((::unity::module_base()+0x296a220usize)as*mut u8,();
133(RefineShopRefineTargetBaseMenuItem)__receiver,(i32)::core::convert::Into::into(value))
134        }
135    }
136    #[doc = "`get_m_NeededMoney()` overload"]
137    fn get_m_needed_money(self) -> i32 {
138        unsafe {
139            let __receiver =
140                <RefineShopRefineTargetBaseMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141            ::unity::il2cpp_call!((::unity::module_base()+0x296a230usize)as*mut u8,i32;
142(RefineShopRefineTargetBaseMenuItem)__receiver)
143        }
144    }
145    #[doc = "`set_m_NeededMoney(i32)` overload"]
146    fn set_m_needed_money(self, value: impl ::core::convert::Into<i32>) -> () {
147        unsafe {
148            let __receiver =
149                <RefineShopRefineTargetBaseMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150            ::unity::il2cpp_call!((::unity::module_base()+0x296a240usize)as*mut u8,();
151(RefineShopRefineTargetBaseMenuItem)__receiver,(i32)::core::convert::Into::into(value))
152        }
153    }
154    #[doc = "`get_m_IsEnoughIron()` overload"]
155    fn get_m_is_enough_iron(self) -> bool {
156        unsafe {
157            let __receiver =
158                <RefineShopRefineTargetBaseMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159            ::unity::il2cpp_call!((::unity::module_base()+0x296a250usize)as*mut u8,bool;
160(RefineShopRefineTargetBaseMenuItem)__receiver)
161        }
162    }
163    #[doc = "`set_m_IsEnoughIron(bool)` overload"]
164    fn set_m_is_enough_iron(self, value: impl ::core::convert::Into<bool>) -> () {
165        unsafe {
166            let __receiver =
167                <RefineShopRefineTargetBaseMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
168            ::unity::il2cpp_call!((::unity::module_base()+0x296a260usize)as*mut u8,();
169(RefineShopRefineTargetBaseMenuItem)__receiver,(bool)::core::convert::Into::into(value))
170        }
171    }
172    #[doc = "`get_m_IsEnoughSteel()` overload"]
173    fn get_m_is_enough_steel(self) -> bool {
174        unsafe {
175            let __receiver =
176                <RefineShopRefineTargetBaseMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
177            ::unity::il2cpp_call!((::unity::module_base()+0x296a270usize)as*mut u8,bool;
178(RefineShopRefineTargetBaseMenuItem)__receiver)
179        }
180    }
181    #[doc = "`set_m_IsEnoughSteel(bool)` overload"]
182    fn set_m_is_enough_steel(self, value: impl ::core::convert::Into<bool>) -> () {
183        unsafe {
184            let __receiver =
185                <RefineShopRefineTargetBaseMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
186            ::unity::il2cpp_call!((::unity::module_base()+0x296a280usize)as*mut u8,();
187(RefineShopRefineTargetBaseMenuItem)__receiver,(bool)::core::convert::Into::into(value))
188        }
189    }
190    #[doc = "`get_m_IsEnoughSilver()` overload"]
191    fn get_m_is_enough_silver(self) -> bool {
192        unsafe {
193            let __receiver =
194                <RefineShopRefineTargetBaseMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
195            ::unity::il2cpp_call!((::unity::module_base()+0x296a290usize)as*mut u8,bool;
196(RefineShopRefineTargetBaseMenuItem)__receiver)
197        }
198    }
199    #[doc = "`set_m_IsEnoughSilver(bool)` overload"]
200    fn set_m_is_enough_silver(self, value: impl ::core::convert::Into<bool>) -> () {
201        unsafe {
202            let __receiver =
203                <RefineShopRefineTargetBaseMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
204            ::unity::il2cpp_call!((::unity::module_base()+0x296a2a0usize)as*mut u8,();
205(RefineShopRefineTargetBaseMenuItem)__receiver,(bool)::core::convert::Into::into(value))
206        }
207    }
208    #[doc = "`get_m_IsEnoughMoney()` overload"]
209    fn get_m_is_enough_money(self) -> bool {
210        unsafe {
211            let __receiver =
212                <RefineShopRefineTargetBaseMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
213            ::unity::il2cpp_call!((::unity::module_base()+0x296a2b0usize)as*mut u8,bool;
214(RefineShopRefineTargetBaseMenuItem)__receiver)
215        }
216    }
217    #[doc = "`set_m_IsEnoughMoney(bool)` overload"]
218    fn set_m_is_enough_money(self, value: impl ::core::convert::Into<bool>) -> () {
219        unsafe {
220            let __receiver =
221                <RefineShopRefineTargetBaseMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
222            ::unity::il2cpp_call!((::unity::module_base()+0x296a2c0usize)as*mut u8,();
223(RefineShopRefineTargetBaseMenuItem)__receiver,(bool)::core::convert::Into::into(value))
224        }
225    }
226    #[doc = "`get_m_IsNameVisible()` overload"]
227    fn get_m_is_name_visible(self) -> bool {
228        unsafe {
229            let __receiver =
230                <RefineShopRefineTargetBaseMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
231            ::unity::il2cpp_call!((::unity::module_base()+0x296a2d0usize)as*mut u8,bool;
232(RefineShopRefineTargetBaseMenuItem)__receiver)
233        }
234    }
235    #[doc = "`set_m_IsNameVisible(bool)` overload"]
236    fn set_m_is_name_visible(self, value: impl ::core::convert::Into<bool>) -> () {
237        unsafe {
238            let __receiver =
239                <RefineShopRefineTargetBaseMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
240            ::unity::il2cpp_call!((::unity::module_base()+0x296a2e0usize)as*mut u8,();
241(RefineShopRefineTargetBaseMenuItem)__receiver,(bool)::core::convert::Into::into(value))
242        }
243    }
244    #[doc = "`.ctor()` overload"]
245    fn ctor(self) -> () {
246        unsafe {
247            let __receiver =
248                <RefineShopRefineTargetBaseMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
249            ::unity::il2cpp_call!((::unity::module_base()+0x296a2f0usize)as*mut u8,();
250(RefineShopRefineTargetBaseMenuItem)__receiver)
251        }
252    }
253    #[doc = "`GetName()` overload"]
254    fn get_name(self) -> ::unity::Il2CppString {
255        unsafe {
256            let __receiver =
257                <RefineShopRefineTargetBaseMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
258            {
259                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
260                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
261                    panic!(
262                        "unity: virtual slot {}
263 out of range (vtable len {}
264) on the runtime class behind {}
265 (method `{}
266`)",
267                        4usize,
268                        __vt.len(),
269                        <RefineShopRefineTargetBaseMenuItem as ::unity::ClassIdentity>::NAME,
270                        "GetName",
271                    )
272                });
273                let __inner: extern "C" fn(RefineShopRefineTargetBaseMenuItem, ::unity::OptionalMethod) -> ::unity::Il2CppString =
274                    ::core::mem::transmute(__vi.method_ptr);
275                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
276                __inner(__receiver, __mi)
277            }
278        }
279    }
280    #[doc = "`BuildAttribute()` overload"]
281    fn build_attribute(self) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
282        unsafe {
283            let __receiver =
284                <RefineShopRefineTargetBaseMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
285            {
286                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
287                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
288                    panic!(
289                        "unity: virtual slot {}
290 out of range (vtable len {}
291) on the runtime class behind {}
292 (method `{}
293`)",
294                        8usize,
295                        __vt.len(),
296                        <RefineShopRefineTargetBaseMenuItem as ::unity::ClassIdentity>::NAME,
297                        "BuildAttribute",
298                    )
299                });
300                let __inner: extern "C" fn(
301                    RefineShopRefineTargetBaseMenuItem,
302                    ::unity::OptionalMethod,
303                ) -> crate::app::basicmenuitem::BasicMenuItem_Attribute = ::core::mem::transmute(__vi.method_ptr);
304                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
305                __inner(__receiver, __mi)
306            }
307        }
308    }
309    #[doc = "`OnBuild()` overload"]
310    fn on_build(self) -> () {
311        unsafe {
312            let __receiver =
313                <RefineShopRefineTargetBaseMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
314            {
315                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
316                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
317                    panic!(
318                        "unity: virtual slot {}
319 out of range (vtable len {}
320) on the runtime class behind {}
321 (method `{}
322`)",
323                        10usize,
324                        __vt.len(),
325                        <RefineShopRefineTargetBaseMenuItem as ::unity::ClassIdentity>::NAME,
326                        "OnBuild",
327                    )
328                });
329                let __inner: extern "C" fn(RefineShopRefineTargetBaseMenuItem, ::unity::OptionalMethod) -> () =
330                    ::core::mem::transmute(__vi.method_ptr);
331                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
332                __inner(__receiver, __mi)
333            }
334        }
335    }
336    #[doc = "`OnBuildMenuItemContent()` overload"]
337    fn on_build_menu_item_content(self) -> () {
338        unsafe {
339            let __receiver =
340                <RefineShopRefineTargetBaseMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
341            {
342                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
343                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
344                    panic!(
345                        "unity: virtual slot {}
346 out of range (vtable len {}
347) on the runtime class behind {}
348 (method `{}
349`)",
350                        11usize,
351                        __vt.len(),
352                        <RefineShopRefineTargetBaseMenuItem as ::unity::ClassIdentity>::NAME,
353                        "OnBuildMenuItemContent",
354                    )
355                });
356                let __inner: extern "C" fn(RefineShopRefineTargetBaseMenuItem, ::unity::OptionalMethod) -> () =
357                    ::core::mem::transmute(__vi.method_ptr);
358                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
359                __inner(__receiver, __mi)
360            }
361        }
362    }
363    #[doc = "`SetInitialColor()` overload"]
364    fn set_initial_color(self) -> () {
365        unsafe {
366            let __receiver =
367                <RefineShopRefineTargetBaseMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
368            ::unity::il2cpp_call!((::unity::module_base()+0x296a7c0usize)as*mut u8,();
369(RefineShopRefineTargetBaseMenuItem)__receiver)
370        }
371    }
372}
373
374#[cfg(feature = "app-refineshoprefinetargetbasemenuitem")]
375impl<__T: IRefineShopRefineTargetBaseMenuItem> IRefineShopRefineTargetBaseMenuItemMethods for __T {}
376
377#[cfg(feature = "app-refineshoprefinetargetbasemenuitem")]
378impl RefineShopRefineTargetBaseMenuItem {
379    pub fn get_m_target_unit_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
380        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
381    }
382
383    pub fn set_m_target_unit_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
384        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
385    }
386
387    pub fn get_m_needed_iron_method_info() -> &'static ::unity::il2cpp::MethodInfo {
388        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
389    }
390
391    pub fn set_m_needed_iron_method_info() -> &'static ::unity::il2cpp::MethodInfo {
392        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
393    }
394
395    pub fn get_m_needed_steel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
396        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
397    }
398
399    pub fn set_m_needed_steel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
400        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
401    }
402
403    pub fn get_m_needed_silver_method_info() -> &'static ::unity::il2cpp::MethodInfo {
404        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
405    }
406
407    pub fn set_m_needed_silver_method_info() -> &'static ::unity::il2cpp::MethodInfo {
408        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
409    }
410
411    pub fn get_m_needed_money_method_info() -> &'static ::unity::il2cpp::MethodInfo {
412        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
413    }
414
415    pub fn set_m_needed_money_method_info() -> &'static ::unity::il2cpp::MethodInfo {
416        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
417    }
418
419    pub fn get_m_is_enough_iron_method_info() -> &'static ::unity::il2cpp::MethodInfo {
420        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
421    }
422
423    pub fn set_m_is_enough_iron_method_info() -> &'static ::unity::il2cpp::MethodInfo {
424        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
425    }
426
427    pub fn get_m_is_enough_steel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
428        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
429    }
430
431    pub fn set_m_is_enough_steel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
432        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
433    }
434
435    pub fn get_m_is_enough_silver_method_info() -> &'static ::unity::il2cpp::MethodInfo {
436        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
437    }
438
439    pub fn set_m_is_enough_silver_method_info() -> &'static ::unity::il2cpp::MethodInfo {
440        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
441    }
442
443    pub fn get_m_is_enough_money_method_info() -> &'static ::unity::il2cpp::MethodInfo {
444        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
445    }
446
447    pub fn set_m_is_enough_money_method_info() -> &'static ::unity::il2cpp::MethodInfo {
448        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
449    }
450
451    pub fn get_m_is_name_visible_method_info() -> &'static ::unity::il2cpp::MethodInfo {
452        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
453    }
454
455    pub fn set_m_is_name_visible_method_info() -> &'static ::unity::il2cpp::MethodInfo {
456        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
457    }
458
459    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
460        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
461    }
462
463    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
464        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
465    }
466
467    pub fn build_attribute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
468        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
469    }
470
471    pub fn on_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
472        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
473    }
474
475    pub fn on_build_menu_item_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
476        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
477    }
478
479    pub fn set_initial_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
480        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
481    }
482}
483
484#[cfg(feature = "app-refineshoprefinetargetbasemenuitem")]
485impl RefineShopRefineTargetBaseMenuItem {
486    #[doc = "Direct (non-virtual) call to `RefineShopRefineTargetBaseMenuItem`'s own `get_m_TargetUnitItem`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
487    pub unsafe fn get_m_target_unit_item(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::unititem::UnitItem {
488        let __mi = Self::get_m_target_unit_item_method_info();
489        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::unititem::UnitItem =
490            ::core::mem::transmute(__mi.method_ptr);
491        __inner(this.into(), ::core::option::Option::None)
492    }
493
494    #[doc = "Direct (non-virtual) call to `RefineShopRefineTargetBaseMenuItem`'s own `set_m_TargetUnitItem`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
495    pub unsafe fn set_m_target_unit_item(this: impl ::core::convert::Into<::unity::IlInstance>, value: crate::app::unititem::UnitItem) -> () {
496        let __mi = Self::set_m_target_unit_item_method_info();
497        let __inner: extern "C" fn(::unity::IlInstance, crate::app::unititem::UnitItem, ::unity::OptionalMethod) -> () =
498            ::core::mem::transmute(__mi.method_ptr);
499        __inner(this.into(), value, ::core::option::Option::None)
500    }
501
502    #[doc = "Direct (non-virtual) call to `RefineShopRefineTargetBaseMenuItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
503    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
504        let __mi = Self::get_name_method_info();
505        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
506        __inner(this.into(), ::core::option::Option::None)
507    }
508
509    #[doc = "Direct (non-virtual) call to `RefineShopRefineTargetBaseMenuItem`'s own `BuildAttribute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
510    pub unsafe fn build_attribute(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
511        let __mi = Self::build_attribute_method_info();
512        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
513            ::core::mem::transmute(__mi.method_ptr);
514        __inner(this.into(), ::core::option::Option::None)
515    }
516
517    #[doc = "Direct (non-virtual) call to `RefineShopRefineTargetBaseMenuItem`'s own `OnBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
518    pub unsafe fn on_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
519        let __mi = Self::on_build_method_info();
520        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
521        __inner(this.into(), ::core::option::Option::None)
522    }
523
524    #[doc = "Direct (non-virtual) call to `RefineShopRefineTargetBaseMenuItem`'s own `OnBuildMenuItemContent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
525    pub unsafe fn on_build_menu_item_content(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
526        let __mi = Self::on_build_menu_item_content_method_info();
527        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
528        __inner(this.into(), ::core::option::Option::None)
529    }
530}
531
532#[cfg(feature = "app-refineshoprefinetargetbasemenuitem")]
533impl RefineShopRefineTargetBaseMenuItem {
534    #[doc = "`.ctor()` — no args"]
535    pub fn new() -> Self {
536        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
537            panic!(
538                "{}
539::{}
540 failed to instantiate",
541                ::core::stringify!(RefineShopRefineTargetBaseMenuItem),
542                ::core::stringify!(new),
543            )
544        });
545        <Self as IRefineShopRefineTargetBaseMenuItemMethods>::ctor(this);
546        this
547    }
548}
549
550#[cfg(feature = "app-refineshoprefinetargetbasemenuitem")]
551#[doc(hidden)]
552pub mod prelude {
553    pub use super::{IRefineShopRefineTargetBaseMenuItem, IRefineShopRefineTargetBaseMenuItemMethods, RefineShopRefineTargetBaseMenuItem};
554    #[cfg(feature = "app-basicmenuitem")]
555    pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
556    #[cfg(feature = "system-object")]
557    pub use crate::system::object::IObjectMethods;
558    pub use crate::{app::basicmenuitem::IBasicMenuItem, system::object::IObject};
559}