1#[cfg(feature = "app-refineshopexchangecountmenu-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/refineshopexchangecountmenu/RefineShopExchangeCountMenu_CloseEventHandler.md"))]
21 #[::unity::class(namespace = "App", name = "RefineShopExchangeCountMenu.CloseEventHandler")]
22 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
23 pub struct RefineShopExchangeCountMenu_CloseEventHandler {}
24
25 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refineshopexchangecountmenu/RefineShopExchangeCountMenu.md"))]
26 #[::unity::class(namespace = "App", name = "RefineShopExchangeCountMenu")]
27 #[parent(crate::app::basicmenu::BasicMenu)]
28 pub struct RefineShopExchangeCountMenu {
29 #[static_field]
30 #[rename(name = "ValueMin")]
31 pub value_min: i32,
32 #[static_field]
33 #[rename(name = "SourceValueMin")]
34 pub source_value_min: i32,
35 #[offset(236)]
36 #[rename(name = "m_Times")]
37 pub m_times: i32,
38 #[offset(240)]
39 #[rename(name = "m_Min")]
40 pub m_min: bool,
41 #[offset(241)]
42 #[rename(name = "m_Max")]
43 pub m_max: bool,
44 #[offset(248)]
45 #[rename(name = "m_CloseEventHandler")]
46 pub m_close_event_handler: crate::app::refineshopexchangecountmenu::RefineShopExchangeCountMenu_CloseEventHandler,
47 }
48}
49
50#[cfg(feature = "app-refineshopexchangecountmenu-types")]
51pub use __types::*;
52
53#[cfg(feature = "app-refineshopexchangecountmenu")]
54pub trait IRefineShopExchangeCountMenu_CloseEventHandlerMethods: IRefineShopExchangeCountMenu_CloseEventHandler {
55 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
56 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
57 unsafe {
58 let __receiver = <RefineShopExchangeCountMenu_CloseEventHandler as ::unity::FromIlInstance>::from_il_instance(
59 <Self as ::unity::SystemObject>::as_instance(self),
60 );
61 ::unity::il2cpp_call!((::unity::module_base()+0x1afa630usize)as*mut u8,();
62(RefineShopExchangeCountMenu_CloseEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
63 }
64 }
65 #[doc = "`Invoke()` overload"]
66 fn invoke(self) -> () {
67 unsafe {
68 let __receiver = <RefineShopExchangeCountMenu_CloseEventHandler as ::unity::FromIlInstance>::from_il_instance(
69 <Self as ::unity::SystemObject>::as_instance(self),
70 );
71 {
72 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
73 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
74 panic!(
75 "unity: virtual slot {}
76 out of range (vtable len {}
77) on the runtime class behind {}
78 (method `{}
79`)",
80 13usize,
81 __vt.len(),
82 <RefineShopExchangeCountMenu_CloseEventHandler as ::unity::ClassIdentity>::NAME,
83 "Invoke",
84 )
85 });
86 let __inner: extern "C" fn(RefineShopExchangeCountMenu_CloseEventHandler, ::unity::OptionalMethod) -> () =
87 ::core::mem::transmute(__vi.method_ptr);
88 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
89 __inner(__receiver, __mi)
90 }
91 }
92 }
93}
94
95#[cfg(feature = "app-refineshopexchangecountmenu")]
96impl<__T: IRefineShopExchangeCountMenu_CloseEventHandler> IRefineShopExchangeCountMenu_CloseEventHandlerMethods for __T {}
97
98#[cfg(feature = "app-refineshopexchangecountmenu")]
99impl RefineShopExchangeCountMenu_CloseEventHandler {
100 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
101 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
102 }
103
104 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
105 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
106 }
107}
108
109#[cfg(feature = "app-refineshopexchangecountmenu")]
110impl RefineShopExchangeCountMenu_CloseEventHandler {
111 #[doc = "Direct (non-virtual) call to `RefineShopExchangeCountMenu_CloseEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
112 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
113 let __mi = Self::invoke_method_info();
114 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
115 __inner(this.into(), ::core::option::Option::None)
116 }
117}
118
119#[cfg(feature = "app-refineshopexchangecountmenu")]
120impl RefineShopExchangeCountMenu_CloseEventHandler {
121 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
122 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
123 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
124 panic!(
125 "{}
126::{}
127 failed to instantiate",
128 ::core::stringify!(RefineShopExchangeCountMenu_CloseEventHandler),
129 ::core::stringify!(new),
130 )
131 });
132 <Self as IRefineShopExchangeCountMenu_CloseEventHandlerMethods>::ctor(this, object, method);
133 this
134 }
135}
136
137#[cfg(feature = "app-refineshopexchangecountmenu")]
138impl RefineShopExchangeCountMenu {
139 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::refineshopexchangecountmenucontent::RefineShopExchangeCountMenuContent, crate::app::itemrefineexchangedata::ItemRefineExchangeData, crate::app::itemrefineexchangedata::ItemRefineExchangeData, crate::app::refineshopexchangecountmenuitem::RefineShopExchangeCountMenuItem_SelectEventHandler, crate::app::refineshopexchangecountmenuitem::RefineShopExchangeCountMenuItem_DecideEventHandler, crate::app::refineshopexchangecountmenu::RefineShopExchangeCountMenu_CloseEventHandler)` overload"]
140 pub fn create_bind(
141 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
142 menu_content: impl ::core::convert::Into<crate::app::refineshopexchangecountmenucontent::RefineShopExchangeCountMenuContent>,
143 source_material_data: impl ::core::convert::Into<crate::app::itemrefineexchangedata::ItemRefineExchangeData>,
144 target_material_data: impl ::core::convert::Into<crate::app::itemrefineexchangedata::ItemRefineExchangeData>,
145 select_event_handler: impl ::core::convert::Into<crate::app::refineshopexchangecountmenuitem::RefineShopExchangeCountMenuItem_SelectEventHandler>,
146 decide_event_handler: impl ::core::convert::Into<crate::app::refineshopexchangecountmenuitem::RefineShopExchangeCountMenuItem_DecideEventHandler>,
147 close_event_handler: impl ::core::convert::Into<crate::app::refineshopexchangecountmenu::RefineShopExchangeCountMenu_CloseEventHandler>,
148 ) -> crate::app::refineshopexchangecountmenu::RefineShopExchangeCountMenu {
149 unsafe {
150 ::unity::il2cpp_call!((::unity::module_base()+0x295f4f0usize)as*mut u8,crate::app::refineshopexchangecountmenu::RefineShopExchangeCountMenu;
151(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::refineshopexchangecountmenucontent::RefineShopExchangeCountMenuContent)::core::convert::Into::into(menu_content),(crate::app::itemrefineexchangedata::ItemRefineExchangeData)::core::convert::Into::into(source_material_data),(crate::app::itemrefineexchangedata::ItemRefineExchangeData)::core::convert::Into::into(target_material_data),(crate::app::refineshopexchangecountmenuitem::RefineShopExchangeCountMenuItem_SelectEventHandler)::core::convert::Into::into(select_event_handler),(crate::app::refineshopexchangecountmenuitem::RefineShopExchangeCountMenuItem_DecideEventHandler)::core::convert::Into::into(decide_event_handler),(crate::app::refineshopexchangecountmenu::RefineShopExchangeCountMenu_CloseEventHandler)::core::convert::Into::into(close_event_handler))
152 }
153 }
154
155 #[doc = "`.cctor()` overload"]
156 pub fn cctor() -> () {
157 unsafe {
158 ::unity::il2cpp_call!((::unity::module_base()+0x2960b70usize)as*mut u8,();
159 )
160 }
161 }
162}
163
164#[cfg(feature = "app-refineshopexchangecountmenu")]
165pub trait IRefineShopExchangeCountMenuMethods: IRefineShopExchangeCountMenu {
166 #[doc = "`get_m_SourceMaterialData()` overload"]
167 fn get_m_source_material_data(self) -> crate::app::itemrefineexchangedata::ItemRefineExchangeData {
168 unsafe {
169 let __receiver =
170 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
171 ::unity::il2cpp_call!((::unity::module_base()+0x295f3d0usize)as*mut u8,crate::app::itemrefineexchangedata::ItemRefineExchangeData;
172(RefineShopExchangeCountMenu)__receiver)
173 }
174 }
175 #[doc = "`set_m_SourceMaterialData(crate::app::itemrefineexchangedata::ItemRefineExchangeData)` overload"]
176 fn set_m_source_material_data(self, value: impl ::core::convert::Into<crate::app::itemrefineexchangedata::ItemRefineExchangeData>) -> () {
177 unsafe {
178 let __receiver =
179 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
180 ::unity::il2cpp_call!((::unity::module_base()+0x295f3e0usize)as*mut u8,();
181(RefineShopExchangeCountMenu)__receiver,(crate::app::itemrefineexchangedata::ItemRefineExchangeData)::core::convert::Into::into(value))
182 }
183 }
184 #[doc = "`get_m_TargetMaterialData()` overload"]
185 fn get_m_target_material_data(self) -> crate::app::itemrefineexchangedata::ItemRefineExchangeData {
186 unsafe {
187 let __receiver =
188 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
189 ::unity::il2cpp_call!((::unity::module_base()+0x295f3f0usize)as*mut u8,crate::app::itemrefineexchangedata::ItemRefineExchangeData;
190(RefineShopExchangeCountMenu)__receiver)
191 }
192 }
193 #[doc = "`set_m_TargetMaterialData(crate::app::itemrefineexchangedata::ItemRefineExchangeData)` overload"]
194 fn set_m_target_material_data(self, value: impl ::core::convert::Into<crate::app::itemrefineexchangedata::ItemRefineExchangeData>) -> () {
195 unsafe {
196 let __receiver =
197 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
198 ::unity::il2cpp_call!((::unity::module_base()+0x295f400usize)as*mut u8,();
199(RefineShopExchangeCountMenu)__receiver,(crate::app::itemrefineexchangedata::ItemRefineExchangeData)::core::convert::Into::into(value))
200 }
201 }
202 #[doc = "`get_m_SourceMaterialValue()` overload"]
203 fn get_m_source_material_value(self) -> i32 {
204 unsafe {
205 let __receiver =
206 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207 ::unity::il2cpp_call!((::unity::module_base()+0x295f410usize)as*mut u8,i32;
208(RefineShopExchangeCountMenu)__receiver)
209 }
210 }
211 #[doc = "`set_m_SourceMaterialValue(i32)` overload"]
212 fn set_m_source_material_value(self, value: impl ::core::convert::Into<i32>) -> () {
213 unsafe {
214 let __receiver =
215 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
216 ::unity::il2cpp_call!((::unity::module_base()+0x295f420usize)as*mut u8,();
217(RefineShopExchangeCountMenu)__receiver,(i32)::core::convert::Into::into(value))
218 }
219 }
220 #[doc = "`get_m_TargetMaterialValue()` overload"]
221 fn get_m_target_material_value(self) -> i32 {
222 unsafe {
223 let __receiver =
224 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
225 ::unity::il2cpp_call!((::unity::module_base()+0x295f430usize)as*mut u8,i32;
226(RefineShopExchangeCountMenu)__receiver)
227 }
228 }
229 #[doc = "`set_m_TargetMaterialValue(i32)` overload"]
230 fn set_m_target_material_value(self, value: impl ::core::convert::Into<i32>) -> () {
231 unsafe {
232 let __receiver =
233 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
234 ::unity::il2cpp_call!((::unity::module_base()+0x295f440usize)as*mut u8,();
235(RefineShopExchangeCountMenu)__receiver,(i32)::core::convert::Into::into(value))
236 }
237 }
238 #[doc = "`get_m_TargetMaterialValueExpect()` overload"]
239 fn get_m_target_material_value_expect(self) -> i32 {
240 unsafe {
241 let __receiver =
242 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
243 ::unity::il2cpp_call!((::unity::module_base()+0x295f450usize)as*mut u8,i32;
244(RefineShopExchangeCountMenu)__receiver)
245 }
246 }
247 #[doc = "`set_m_TargetMaterialValueExpect(i32)` overload"]
248 fn set_m_target_material_value_expect(self, value: impl ::core::convert::Into<i32>) -> () {
249 unsafe {
250 let __receiver =
251 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
252 ::unity::il2cpp_call!((::unity::module_base()+0x295f460usize)as*mut u8,();
253(RefineShopExchangeCountMenu)__receiver,(i32)::core::convert::Into::into(value))
254 }
255 }
256 #[doc = "`get_m_TargetMaterialOverflow()` overload"]
257 fn get_m_target_material_overflow(self) -> i32 {
258 unsafe {
259 let __receiver =
260 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
261 ::unity::il2cpp_call!((::unity::module_base()+0x295f470usize)as*mut u8,i32;
262(RefineShopExchangeCountMenu)__receiver)
263 }
264 }
265 #[doc = "`set_m_TargetMaterialOverflow(i32)` overload"]
266 fn set_m_target_material_overflow(self, value: impl ::core::convert::Into<i32>) -> () {
267 unsafe {
268 let __receiver =
269 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
270 ::unity::il2cpp_call!((::unity::module_base()+0x295f480usize)as*mut u8,();
271(RefineShopExchangeCountMenu)__receiver,(i32)::core::convert::Into::into(value))
272 }
273 }
274 #[doc = "`get_m_SourceMaterialValueEnable()` overload"]
275 fn get_m_source_material_value_enable(self) -> bool {
276 unsafe {
277 let __receiver =
278 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
279 ::unity::il2cpp_call!((::unity::module_base()+0x295f490usize)as*mut u8,bool;
280(RefineShopExchangeCountMenu)__receiver)
281 }
282 }
283 #[doc = "`set_m_SourceMaterialValueEnable(bool)` overload"]
284 fn set_m_source_material_value_enable(self, value: impl ::core::convert::Into<bool>) -> () {
285 unsafe {
286 let __receiver =
287 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
288 ::unity::il2cpp_call!((::unity::module_base()+0x295f4a0usize)as*mut u8,();
289(RefineShopExchangeCountMenu)__receiver,(bool)::core::convert::Into::into(value))
290 }
291 }
292 #[doc = "`get_m_TargetMaterialValueEnable()` overload"]
293 fn get_m_target_material_value_enable(self) -> bool {
294 unsafe {
295 let __receiver =
296 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
297 ::unity::il2cpp_call!((::unity::module_base()+0x295f4b0usize)as*mut u8,bool;
298(RefineShopExchangeCountMenu)__receiver)
299 }
300 }
301 #[doc = "`set_m_TargetMaterialValueEnable(bool)` overload"]
302 fn set_m_target_material_value_enable(self, value: impl ::core::convert::Into<bool>) -> () {
303 unsafe {
304 let __receiver =
305 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
306 ::unity::il2cpp_call!((::unity::module_base()+0x295f4c0usize)as*mut u8,();
307(RefineShopExchangeCountMenu)__receiver,(bool)::core::convert::Into::into(value))
308 }
309 }
310 #[doc = "`get_m_ValuableSourceThanTarget()` overload"]
311 fn get_m_valuable_source_than_target(self) -> bool {
312 unsafe {
313 let __receiver =
314 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
315 ::unity::il2cpp_call!((::unity::module_base()+0x295f4d0usize)as*mut u8,bool;
316(RefineShopExchangeCountMenu)__receiver)
317 }
318 }
319 #[doc = "`set_m_ValuableSourceThanTarget(bool)` overload"]
320 fn set_m_valuable_source_than_target(self, value: impl ::core::convert::Into<bool>) -> () {
321 unsafe {
322 let __receiver =
323 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
324 ::unity::il2cpp_call!((::unity::module_base()+0x295f4e0usize)as*mut u8,();
325(RefineShopExchangeCountMenu)__receiver,(bool)::core::convert::Into::into(value))
326 }
327 }
328 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::refineshopexchangecountmenucontent::RefineShopExchangeCountMenuContent, crate::app::itemrefineexchangedata::ItemRefineExchangeData, crate::app::itemrefineexchangedata::ItemRefineExchangeData, crate::app::refineshopexchangecountmenu::RefineShopExchangeCountMenu_CloseEventHandler)` overload"]
329 fn ctor(
330 self,
331 menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
332 menu_content: impl ::core::convert::Into<crate::app::refineshopexchangecountmenucontent::RefineShopExchangeCountMenuContent>,
333 source_material_data: impl ::core::convert::Into<crate::app::itemrefineexchangedata::ItemRefineExchangeData>,
334 target_material_data: impl ::core::convert::Into<crate::app::itemrefineexchangedata::ItemRefineExchangeData>,
335 close_event_handler: impl ::core::convert::Into<crate::app::refineshopexchangecountmenu::RefineShopExchangeCountMenu_CloseEventHandler>,
336 ) -> () {
337 unsafe {
338 let __receiver =
339 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
340 ::unity::il2cpp_call!((::unity::module_base()+0x295f760usize)as*mut u8,();
341(RefineShopExchangeCountMenu)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(menu_item_list),(crate::app::refineshopexchangecountmenucontent::RefineShopExchangeCountMenuContent)::core::convert::Into::into(menu_content),(crate::app::itemrefineexchangedata::ItemRefineExchangeData)::core::convert::Into::into(source_material_data),(crate::app::itemrefineexchangedata::ItemRefineExchangeData)::core::convert::Into::into(target_material_data),(crate::app::refineshopexchangecountmenu::RefineShopExchangeCountMenu_CloseEventHandler)::core::convert::Into::into(close_event_handler))
342 }
343 }
344 #[doc = "`GetName()` overload"]
345 fn get_name(self) -> ::unity::Il2CppString {
346 unsafe {
347 let __receiver =
348 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
349 {
350 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
351 let __vi = *__vt.get(30usize).unwrap_or_else(|| {
352 panic!(
353 "unity: virtual slot {}
354 out of range (vtable len {}
355) on the runtime class behind {}
356 (method `{}
357`)",
358 30usize,
359 __vt.len(),
360 <RefineShopExchangeCountMenu as ::unity::ClassIdentity>::NAME,
361 "GetName",
362 )
363 });
364 let __inner: extern "C" fn(RefineShopExchangeCountMenu, ::unity::OptionalMethod) -> ::unity::Il2CppString =
365 ::core::mem::transmute(__vi.method_ptr);
366 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
367 __inner(__receiver, __mi)
368 }
369 }
370 }
371 #[doc = "`ResetValues()` overload"]
372 fn reset_values(self) -> () {
373 unsafe {
374 let __receiver =
375 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
376 ::unity::il2cpp_call!((::unity::module_base()+0x295fd70usize)as*mut u8,();
377(RefineShopExchangeCountMenu)__receiver)
378 }
379 }
380 #[doc = "`KeyUp(bool)` overload"]
381 fn key_up(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
382 unsafe {
383 let __receiver =
384 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
385 {
386 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
387 let __vi = *__vt.get(40usize).unwrap_or_else(|| {
388 panic!(
389 "unity: virtual slot {}
390 out of range (vtable len {}
391) on the runtime class behind {}
392 (method `{}
393`)",
394 40usize,
395 __vt.len(),
396 <RefineShopExchangeCountMenu as ::unity::ClassIdentity>::NAME,
397 "KeyUp",
398 )
399 });
400 let __inner: extern "C" fn(RefineShopExchangeCountMenu, bool, ::unity::OptionalMethod) -> () =
401 ::core::mem::transmute(__vi.method_ptr);
402 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
403 __inner(__receiver, ::core::convert::Into::into(is_trigger), __mi)
404 }
405 }
406 }
407 #[doc = "`KeyDown(bool)` overload"]
408 fn key_down(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
409 unsafe {
410 let __receiver =
411 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
412 {
413 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
414 let __vi = *__vt.get(41usize).unwrap_or_else(|| {
415 panic!(
416 "unity: virtual slot {}
417 out of range (vtable len {}
418) on the runtime class behind {}
419 (method `{}
420`)",
421 41usize,
422 __vt.len(),
423 <RefineShopExchangeCountMenu as ::unity::ClassIdentity>::NAME,
424 "KeyDown",
425 )
426 });
427 let __inner: extern "C" fn(RefineShopExchangeCountMenu, bool, ::unity::OptionalMethod) -> () =
428 ::core::mem::transmute(__vi.method_ptr);
429 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
430 __inner(__receiver, ::core::convert::Into::into(is_trigger), __mi)
431 }
432 }
433 }
434 #[doc = "`KeyLeft(bool)` overload"]
435 fn key_left(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
436 unsafe {
437 let __receiver =
438 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
439 {
440 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
441 let __vi = *__vt.get(42usize).unwrap_or_else(|| {
442 panic!(
443 "unity: virtual slot {}
444 out of range (vtable len {}
445) on the runtime class behind {}
446 (method `{}
447`)",
448 42usize,
449 __vt.len(),
450 <RefineShopExchangeCountMenu as ::unity::ClassIdentity>::NAME,
451 "KeyLeft",
452 )
453 });
454 let __inner: extern "C" fn(RefineShopExchangeCountMenu, bool, ::unity::OptionalMethod) -> () =
455 ::core::mem::transmute(__vi.method_ptr);
456 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
457 __inner(__receiver, ::core::convert::Into::into(is_trigger), __mi)
458 }
459 }
460 }
461 #[doc = "`KeyRight(bool)` overload"]
462 fn key_right(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
463 unsafe {
464 let __receiver =
465 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
466 {
467 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
468 let __vi = *__vt.get(43usize).unwrap_or_else(|| {
469 panic!(
470 "unity: virtual slot {}
471 out of range (vtable len {}
472) on the runtime class behind {}
473 (method `{}
474`)",
475 43usize,
476 __vt.len(),
477 <RefineShopExchangeCountMenu as ::unity::ClassIdentity>::NAME,
478 "KeyRight",
479 )
480 });
481 let __inner: extern "C" fn(RefineShopExchangeCountMenu, bool, ::unity::OptionalMethod) -> () =
482 ::core::mem::transmute(__vi.method_ptr);
483 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
484 __inner(__receiver, ::core::convert::Into::into(is_trigger), __mi)
485 }
486 }
487 }
488 #[doc = "`CustomCall()` overload"]
489 fn custom_call(self) -> crate::app::basicmenu::BasicMenu_Result {
490 unsafe {
491 let __receiver =
492 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
493 {
494 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
495 let __vi = *__vt.get(58usize).unwrap_or_else(|| {
496 panic!(
497 "unity: virtual slot {}
498 out of range (vtable len {}
499) on the runtime class behind {}
500 (method `{}
501`)",
502 58usize,
503 __vt.len(),
504 <RefineShopExchangeCountMenu as ::unity::ClassIdentity>::NAME,
505 "CustomCall",
506 )
507 });
508 let __inner: extern "C" fn(RefineShopExchangeCountMenu, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
509 ::core::mem::transmute(__vi.method_ptr);
510 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
511 __inner(__receiver, __mi)
512 }
513 }
514 }
515 #[doc = "`OnClose()` overload"]
516 fn on_close(self) -> () {
517 unsafe {
518 let __receiver =
519 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
520 {
521 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
522 let __vi = *__vt.get(26usize).unwrap_or_else(|| {
523 panic!(
524 "unity: virtual slot {}
525 out of range (vtable len {}
526) on the runtime class behind {}
527 (method `{}
528`)",
529 26usize,
530 __vt.len(),
531 <RefineShopExchangeCountMenu as ::unity::ClassIdentity>::NAME,
532 "OnClose",
533 )
534 });
535 let __inner: extern "C" fn(RefineShopExchangeCountMenu, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
536 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
537 __inner(__receiver, __mi)
538 }
539 }
540 }
541 #[doc = "`OnDispose()` overload"]
542 fn on_dispose(self) -> () {
543 unsafe {
544 let __receiver =
545 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
546 {
547 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
548 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
549 panic!(
550 "unity: virtual slot {}
551 out of range (vtable len {}
552) on the runtime class behind {}
553 (method `{}
554`)",
555 10usize,
556 __vt.len(),
557 <RefineShopExchangeCountMenu as ::unity::ClassIdentity>::NAME,
558 "OnDispose",
559 )
560 });
561 let __inner: extern "C" fn(RefineShopExchangeCountMenu, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
562 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
563 __inner(__receiver, __mi)
564 }
565 }
566 }
567 #[doc = "`CalcValue(i32)` overload"]
568 fn calc_value(self, value_diff: impl ::core::convert::Into<i32>) -> bool {
569 unsafe {
570 let __receiver =
571 <RefineShopExchangeCountMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
572 ::unity::il2cpp_call!((::unity::module_base()+0x295f980usize)as*mut u8,bool;
573(RefineShopExchangeCountMenu)__receiver,(i32)::core::convert::Into::into(value_diff))
574 }
575 }
576}
577
578#[cfg(feature = "app-refineshopexchangecountmenu")]
579impl<__T: IRefineShopExchangeCountMenu> IRefineShopExchangeCountMenuMethods for __T {}
580
581#[cfg(feature = "app-refineshopexchangecountmenu")]
582impl RefineShopExchangeCountMenu {
583 pub fn get_m_source_material_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
584 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
585 }
586
587 pub fn set_m_source_material_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
588 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
589 }
590
591 pub fn get_m_target_material_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
592 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
593 }
594
595 pub fn set_m_target_material_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
596 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
597 }
598
599 pub fn get_m_source_material_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
600 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
601 }
602
603 pub fn set_m_source_material_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
604 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
605 }
606
607 pub fn get_m_target_material_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
608 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
609 }
610
611 pub fn set_m_target_material_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
612 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
613 }
614
615 pub fn get_m_target_material_value_expect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
616 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
617 }
618
619 pub fn set_m_target_material_value_expect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
620 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
621 }
622
623 pub fn get_m_target_material_overflow_method_info() -> &'static ::unity::il2cpp::MethodInfo {
624 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
625 }
626
627 pub fn set_m_target_material_overflow_method_info() -> &'static ::unity::il2cpp::MethodInfo {
628 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
629 }
630
631 pub fn get_m_source_material_value_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
632 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
633 }
634
635 pub fn set_m_source_material_value_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
636 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
637 }
638
639 pub fn get_m_target_material_value_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
640 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
641 }
642
643 pub fn set_m_target_material_value_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
644 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
645 }
646
647 pub fn get_m_valuable_source_than_target_method_info() -> &'static ::unity::il2cpp::MethodInfo {
648 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
649 }
650
651 pub fn set_m_valuable_source_than_target_method_info() -> &'static ::unity::il2cpp::MethodInfo {
652 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
653 }
654
655 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
656 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
657 }
658
659 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
660 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
661 }
662
663 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
664 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
665 }
666
667 pub fn reset_values_method_info() -> &'static ::unity::il2cpp::MethodInfo {
668 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
669 }
670
671 pub fn key_up_method_info() -> &'static ::unity::il2cpp::MethodInfo {
672 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
673 }
674
675 pub fn key_down_method_info() -> &'static ::unity::il2cpp::MethodInfo {
676 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
677 }
678
679 pub fn key_left_method_info() -> &'static ::unity::il2cpp::MethodInfo {
680 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
681 }
682
683 pub fn key_right_method_info() -> &'static ::unity::il2cpp::MethodInfo {
684 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
685 }
686
687 pub fn custom_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
688 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
689 }
690
691 pub fn on_close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
692 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
693 }
694
695 pub fn on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
696 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
697 }
698
699 pub fn calc_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
700 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
701 }
702
703 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
704 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
705 }
706}
707
708#[cfg(feature = "app-refineshopexchangecountmenu")]
709impl RefineShopExchangeCountMenu {
710 #[doc = "Direct (non-virtual) call to `RefineShopExchangeCountMenu`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
711 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
712 let __mi = Self::get_name_method_info();
713 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
714 __inner(this.into(), ::core::option::Option::None)
715 }
716
717 #[doc = "Direct (non-virtual) call to `RefineShopExchangeCountMenu`'s own `KeyUp`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
718 pub unsafe fn key_up(this: impl ::core::convert::Into<::unity::IlInstance>, is_trigger: bool) -> () {
719 let __mi = Self::key_up_method_info();
720 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
721 __inner(this.into(), is_trigger, ::core::option::Option::None)
722 }
723
724 #[doc = "Direct (non-virtual) call to `RefineShopExchangeCountMenu`'s own `KeyDown`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
725 pub unsafe fn key_down(this: impl ::core::convert::Into<::unity::IlInstance>, is_trigger: bool) -> () {
726 let __mi = Self::key_down_method_info();
727 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
728 __inner(this.into(), is_trigger, ::core::option::Option::None)
729 }
730
731 #[doc = "Direct (non-virtual) call to `RefineShopExchangeCountMenu`'s own `KeyLeft`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
732 pub unsafe fn key_left(this: impl ::core::convert::Into<::unity::IlInstance>, is_trigger: bool) -> () {
733 let __mi = Self::key_left_method_info();
734 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
735 __inner(this.into(), is_trigger, ::core::option::Option::None)
736 }
737
738 #[doc = "Direct (non-virtual) call to `RefineShopExchangeCountMenu`'s own `KeyRight`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
739 pub unsafe fn key_right(this: impl ::core::convert::Into<::unity::IlInstance>, is_trigger: bool) -> () {
740 let __mi = Self::key_right_method_info();
741 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
742 __inner(this.into(), is_trigger, ::core::option::Option::None)
743 }
744
745 #[doc = "Direct (non-virtual) call to `RefineShopExchangeCountMenu`'s own `CustomCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
746 pub unsafe fn custom_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
747 let __mi = Self::custom_call_method_info();
748 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
749 ::core::mem::transmute(__mi.method_ptr);
750 __inner(this.into(), ::core::option::Option::None)
751 }
752
753 #[doc = "Direct (non-virtual) call to `RefineShopExchangeCountMenu`'s own `OnClose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
754 pub unsafe fn on_close(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
755 let __mi = Self::on_close_method_info();
756 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
757 __inner(this.into(), ::core::option::Option::None)
758 }
759
760 #[doc = "Direct (non-virtual) call to `RefineShopExchangeCountMenu`'s own `OnDispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
761 pub unsafe fn on_dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
762 let __mi = Self::on_dispose_method_info();
763 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
764 __inner(this.into(), ::core::option::Option::None)
765 }
766}
767
768#[cfg(feature = "app-refineshopexchangecountmenu")]
769impl RefineShopExchangeCountMenu {
770 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::refineshopexchangecountmenucontent::RefineShopExchangeCountMenuContent, crate::app::itemrefineexchangedata::ItemRefineExchangeData, crate::app::itemrefineexchangedata::ItemRefineExchangeData, crate::app::refineshopexchangecountmenu::RefineShopExchangeCountMenu_CloseEventHandler)` — overload selector"]
771 pub fn new(
772 menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
773 menu_content: crate::app::refineshopexchangecountmenucontent::RefineShopExchangeCountMenuContent,
774 source_material_data: crate::app::itemrefineexchangedata::ItemRefineExchangeData,
775 target_material_data: crate::app::itemrefineexchangedata::ItemRefineExchangeData,
776 close_event_handler: crate::app::refineshopexchangecountmenu::RefineShopExchangeCountMenu_CloseEventHandler,
777 ) -> Self {
778 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
779 panic!(
780 "{}
781::{}
782 failed to instantiate",
783 ::core::stringify!(RefineShopExchangeCountMenu),
784 ::core::stringify!(new),
785 )
786 });
787 <Self as IRefineShopExchangeCountMenuMethods>::ctor(
788 this,
789 menu_item_list,
790 menu_content,
791 source_material_data,
792 target_material_data,
793 close_event_handler,
794 );
795 this
796 }
797}
798
799#[cfg(feature = "app-refineshopexchangecountmenu")]
800#[doc(hidden)]
801pub mod prelude {
802 pub use super::{
803 IRefineShopExchangeCountMenu, IRefineShopExchangeCountMenuMethods, IRefineShopExchangeCountMenu_CloseEventHandler,
804 IRefineShopExchangeCountMenu_CloseEventHandlerMethods, RefineShopExchangeCountMenu, RefineShopExchangeCountMenu_CloseEventHandler,
805 };
806 #[cfg(feature = "app-basicmenu")]
807 pub use crate::app::basicmenu::IBasicMenuMethods;
808 #[cfg(feature = "app-procinst")]
809 pub use crate::app::procinst::IProcInstMethods;
810 #[cfg(feature = "system-delegate")]
811 pub use crate::system::delegate::IDelegateMethods;
812 #[cfg(feature = "system-multicastdelegate")]
813 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
814 #[cfg(feature = "system-object")]
815 pub use crate::system::object::IObjectMethods;
816 pub use crate::{
817 app::{basicmenu::IBasicMenu, procinst::IProcInst},
818 system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
819 };
820}