engage/generated/app/
refineshopexchangetargetmenuitem.rs1#[cfg(feature = "app-refineshopexchangetargetmenuitem-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 basicmenuitem::{BasicMenuItem, IBasicMenuItem},
11 materialmenuitem::{IMaterialMenuItem, MaterialMenuItem},
12 },
13 system::object::{IObject, Object},
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refineshopexchangetargetmenuitem/RefineShopExchangeTargetMenuItem.md"))]
17 #[::unity::class(namespace = "App", name = "RefineShopExchangeTargetMenuItem")]
18 #[parent(crate::app::materialmenuitem::MaterialMenuItem)]
19 pub struct RefineShopExchangeTargetMenuItem {}
20}
21
22#[cfg(feature = "app-refineshopexchangetargetmenuitem-types")]
23pub use __types::*;
24
25#[cfg(feature = "app-refineshopexchangetargetmenuitem")]
26pub trait IRefineShopExchangeTargetMenuItemMethods: IRefineShopExchangeTargetMenuItem {
27 #[doc = "`get_m_EnoughMaterial()` overload"]
28 fn get_m_enough_material(self) -> bool {
29 unsafe {
30 let __receiver =
31 <RefineShopExchangeTargetMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32 ::unity::il2cpp_call!((::unity::module_base()+0x2965ec0usize)as*mut u8,bool;
33(RefineShopExchangeTargetMenuItem)__receiver)
34 }
35 }
36 #[doc = "`set_m_EnoughMaterial(bool)` overload"]
37 fn set_m_enough_material(self, value: impl ::core::convert::Into<bool>) -> () {
38 unsafe {
39 let __receiver =
40 <RefineShopExchangeTargetMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
41 ::unity::il2cpp_call!((::unity::module_base()+0x2965ed0usize)as*mut u8,();
42(RefineShopExchangeTargetMenuItem)__receiver,(bool)::core::convert::Into::into(value))
43 }
44 }
45 #[doc = "`get_m_MaxMaterial()` overload"]
46 fn get_m_max_material(self) -> bool {
47 unsafe {
48 let __receiver =
49 <RefineShopExchangeTargetMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
50 ::unity::il2cpp_call!((::unity::module_base()+0x2965ee0usize)as*mut u8,bool;
51(RefineShopExchangeTargetMenuItem)__receiver)
52 }
53 }
54 #[doc = "`set_m_MaxMaterial(bool)` overload"]
55 fn set_m_max_material(self, value: impl ::core::convert::Into<bool>) -> () {
56 unsafe {
57 let __receiver =
58 <RefineShopExchangeTargetMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59 ::unity::il2cpp_call!((::unity::module_base()+0x2965ef0usize)as*mut u8,();
60(RefineShopExchangeTargetMenuItem)__receiver,(bool)::core::convert::Into::into(value))
61 }
62 }
63 #[doc = "`.ctor(crate::app::itemrefineexchangedata::ItemRefineExchangeData, crate::app::materialmenuitem::MaterialMenuItem_SelectEventHandler, crate::app::materialmenuitem::MaterialMenuItem_DecideEventHandler)` overload"]
64 fn ctor(
65 self,
66 item_refine_exchange_data: impl ::core::convert::Into<crate::app::itemrefineexchangedata::ItemRefineExchangeData>,
67 select_event_handler: impl ::core::convert::Into<crate::app::materialmenuitem::MaterialMenuItem_SelectEventHandler>,
68 decide_event_handler: impl ::core::convert::Into<crate::app::materialmenuitem::MaterialMenuItem_DecideEventHandler>,
69 ) -> () {
70 unsafe {
71 let __receiver =
72 <RefineShopExchangeTargetMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73 ::unity::il2cpp_call!((::unity::module_base()+0x2965350usize)as*mut u8,();
74(RefineShopExchangeTargetMenuItem)__receiver,(crate::app::itemrefineexchangedata::ItemRefineExchangeData)::core::convert::Into::into(item_refine_exchange_data),(crate::app::materialmenuitem::MaterialMenuItem_SelectEventHandler)::core::convert::Into::into(select_event_handler),(crate::app::materialmenuitem::MaterialMenuItem_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
75 }
76 }
77 #[doc = "`BuildAttribute()` overload"]
78 fn build_attribute(self) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
79 unsafe {
80 let __receiver =
81 <RefineShopExchangeTargetMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
82 {
83 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
84 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
85 panic!(
86 "unity: virtual slot {}
87 out of range (vtable len {}
88) on the runtime class behind {}
89 (method `{}
90`)",
91 8usize,
92 __vt.len(),
93 <RefineShopExchangeTargetMenuItem as ::unity::ClassIdentity>::NAME,
94 "BuildAttribute",
95 )
96 });
97 let __inner: extern "C" fn(
98 RefineShopExchangeTargetMenuItem,
99 ::unity::OptionalMethod,
100 ) -> crate::app::basicmenuitem::BasicMenuItem_Attribute = ::core::mem::transmute(__vi.method_ptr);
101 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
102 __inner(__receiver, __mi)
103 }
104 }
105 }
106 #[doc = "`OnSelect()` overload"]
107 fn on_select(self) -> () {
108 unsafe {
109 let __receiver =
110 <RefineShopExchangeTargetMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111 {
112 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
113 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
114 panic!(
115 "unity: virtual slot {}
116 out of range (vtable len {}
117) on the runtime class behind {}
118 (method `{}
119`)",
120 12usize,
121 __vt.len(),
122 <RefineShopExchangeTargetMenuItem as ::unity::ClassIdentity>::NAME,
123 "OnSelect",
124 )
125 });
126 let __inner: extern "C" fn(RefineShopExchangeTargetMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
127 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
128 __inner(__receiver, __mi)
129 }
130 }
131 }
132}
133
134#[cfg(feature = "app-refineshopexchangetargetmenuitem")]
135impl<__T: IRefineShopExchangeTargetMenuItem> IRefineShopExchangeTargetMenuItemMethods for __T {}
136
137#[cfg(feature = "app-refineshopexchangetargetmenuitem")]
138impl RefineShopExchangeTargetMenuItem {
139 pub fn get_m_enough_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
141 }
142
143 pub fn set_m_enough_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
145 }
146
147 pub fn get_m_max_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
149 }
150
151 pub fn set_m_max_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
153 }
154
155 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
157 }
158
159 pub fn build_attribute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
161 }
162
163 pub fn on_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
165 }
166}
167
168#[cfg(feature = "app-refineshopexchangetargetmenuitem")]
169impl RefineShopExchangeTargetMenuItem {
170 #[doc = "Direct (non-virtual) call to `RefineShopExchangeTargetMenuItem`'s own `BuildAttribute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
171 pub unsafe fn build_attribute(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
172 let __mi = Self::build_attribute_method_info();
173 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
174 ::core::mem::transmute(__mi.method_ptr);
175 __inner(this.into(), ::core::option::Option::None)
176 }
177
178 #[doc = "Direct (non-virtual) call to `RefineShopExchangeTargetMenuItem`'s own `OnSelect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
179 pub unsafe fn on_select(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
180 let __mi = Self::on_select_method_info();
181 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
182 __inner(this.into(), ::core::option::Option::None)
183 }
184}
185
186#[cfg(feature = "app-refineshopexchangetargetmenuitem")]
187impl RefineShopExchangeTargetMenuItem {
188 #[doc = "`.ctor(crate::app::itemrefineexchangedata::ItemRefineExchangeData, crate::app::materialmenuitem::MaterialMenuItem_SelectEventHandler, crate::app::materialmenuitem::MaterialMenuItem_DecideEventHandler)` — overload selector"]
189 pub fn new(
190 item_refine_exchange_data: crate::app::itemrefineexchangedata::ItemRefineExchangeData,
191 select_event_handler: crate::app::materialmenuitem::MaterialMenuItem_SelectEventHandler,
192 decide_event_handler: crate::app::materialmenuitem::MaterialMenuItem_DecideEventHandler,
193 ) -> Self {
194 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
195 panic!(
196 "{}
197::{}
198 failed to instantiate",
199 ::core::stringify!(RefineShopExchangeTargetMenuItem),
200 ::core::stringify!(new),
201 )
202 });
203 <Self as IRefineShopExchangeTargetMenuItemMethods>::ctor(this, item_refine_exchange_data, select_event_handler, decide_event_handler);
204 this
205 }
206}
207
208#[cfg(feature = "app-refineshopexchangetargetmenuitem")]
209#[doc(hidden)]
210pub mod prelude {
211 pub use super::{IRefineShopExchangeTargetMenuItem, IRefineShopExchangeTargetMenuItemMethods, RefineShopExchangeTargetMenuItem};
212 #[cfg(feature = "app-basicmenuitem")]
213 pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
214 #[cfg(feature = "app-materialmenuitem")]
215 pub use crate::app::materialmenuitem::IMaterialMenuItemMethods;
216 #[cfg(feature = "system-object")]
217 pub use crate::system::object::IObjectMethods;
218 pub use crate::{
219 app::{basicmenuitem::IBasicMenuItem, materialmenuitem::IMaterialMenuItem},
220 system::object::IObject,
221 };
222}