1#[cfg(feature = "app-refineshoprefinetargetmenu-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/refineshoprefinetargetmenu/RefineShopRefineTargetMenu_DecideToEvolveEventHandler.md"))]
21 #[::unity::class(namespace = "App", name = "RefineShopRefineTargetMenu.DecideToEvolveEventHandler")]
22 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
23 pub struct RefineShopRefineTargetMenu_DecideToEvolveEventHandler {}
24
25 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refineshoprefinetargetmenu/RefineShopRefineTargetMenu_SelectEventHandler.md"))]
26 #[::unity::class(namespace = "App", name = "RefineShopRefineTargetMenu.SelectEventHandler")]
27 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
28 pub struct RefineShopRefineTargetMenu_SelectEventHandler {}
29
30 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refineshoprefinetargetmenu/RefineShopRefineTargetMenu_RequestCloseEventHandler.md"))]
31 #[::unity::class(namespace = "App", name = "RefineShopRefineTargetMenu.RequestCloseEventHandler")]
32 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
33 pub struct RefineShopRefineTargetMenu_RequestCloseEventHandler {}
34
35 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refineshoprefinetargetmenu/RefineShopRefineTargetMenu.md"))]
36 #[::unity::class(namespace = "App", name = "RefineShopRefineTargetMenu")]
37 #[parent(crate::app::basicmenu::BasicMenu)]
38 pub struct RefineShopRefineTargetMenu {
39 #[offset(216)]
40 #[rename(name = "m_RequestCloseEventHandler")]
41 pub m_request_close_event_handler: crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu_RequestCloseEventHandler,
42 }
43
44 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refineshoprefinetargetmenu/RefineShopRefineTargetMenu_DecideToRefineEventHandler.md"))]
45 #[::unity::class(namespace = "App", name = "RefineShopRefineTargetMenu.DecideToRefineEventHandler")]
46 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
47 pub struct RefineShopRefineTargetMenu_DecideToRefineEventHandler {}
48}
49
50#[cfg(feature = "app-refineshoprefinetargetmenu-types")]
51pub use __types::*;
52
53#[cfg(feature = "app-refineshoprefinetargetmenu")]
54pub trait IRefineShopRefineTargetMenu_DecideToEvolveEventHandlerMethods: IRefineShopRefineTargetMenu_DecideToEvolveEventHandler {
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 = <RefineShopRefineTargetMenu_DecideToEvolveEventHandler as ::unity::FromIlInstance>::from_il_instance(
59 <Self as ::unity::SystemObject>::as_instance(self),
60 );
61 ::unity::il2cpp_call!((::unity::module_base()+0x1afcaf0usize)as*mut u8,();
62(RefineShopRefineTargetMenu_DecideToEvolveEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
63 }
64 }
65 #[doc = "`Invoke(crate::app::unititem::UnitItem, i32)` overload"]
66 fn invoke(
67 self,
68 evolved_unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>,
69 evolve_index: impl ::core::convert::Into<i32>,
70 ) -> () {
71 unsafe {
72 let __receiver = <RefineShopRefineTargetMenu_DecideToEvolveEventHandler as ::unity::FromIlInstance>::from_il_instance(
73 <Self as ::unity::SystemObject>::as_instance(self),
74 );
75 {
76 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
77 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
78 panic!(
79 "unity: virtual slot {}
80 out of range (vtable len {}
81) on the runtime class behind {}
82 (method `{}
83`)",
84 13usize,
85 __vt.len(),
86 <RefineShopRefineTargetMenu_DecideToEvolveEventHandler as ::unity::ClassIdentity>::NAME,
87 "Invoke",
88 )
89 });
90 let __inner: extern "C" fn(
91 RefineShopRefineTargetMenu_DecideToEvolveEventHandler,
92 crate::app::unititem::UnitItem,
93 i32,
94 ::unity::OptionalMethod,
95 ) -> () = ::core::mem::transmute(__vi.method_ptr);
96 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
97 __inner(
98 __receiver,
99 ::core::convert::Into::into(evolved_unit_item),
100 ::core::convert::Into::into(evolve_index),
101 __mi,
102 )
103 }
104 }
105 }
106}
107
108#[cfg(feature = "app-refineshoprefinetargetmenu")]
109impl<__T: IRefineShopRefineTargetMenu_DecideToEvolveEventHandler> IRefineShopRefineTargetMenu_DecideToEvolveEventHandlerMethods for __T {}
110
111#[cfg(feature = "app-refineshoprefinetargetmenu")]
112impl RefineShopRefineTargetMenu_DecideToEvolveEventHandler {
113 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
114 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
115 }
116
117 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
118 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
119 }
120}
121
122#[cfg(feature = "app-refineshoprefinetargetmenu")]
123impl RefineShopRefineTargetMenu_DecideToEvolveEventHandler {
124 #[doc = "Direct (non-virtual) call to `RefineShopRefineTargetMenu_DecideToEvolveEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
125 pub unsafe fn invoke(
126 this: impl ::core::convert::Into<::unity::IlInstance>,
127 evolved_unit_item: crate::app::unititem::UnitItem,
128 evolve_index: i32,
129 ) -> () {
130 let __mi = Self::invoke_method_info();
131 let __inner: extern "C" fn(::unity::IlInstance, crate::app::unititem::UnitItem, i32, ::unity::OptionalMethod) -> () =
132 ::core::mem::transmute(__mi.method_ptr);
133 __inner(this.into(), evolved_unit_item, evolve_index, ::core::option::Option::None)
134 }
135}
136
137#[cfg(feature = "app-refineshoprefinetargetmenu")]
138impl RefineShopRefineTargetMenu_DecideToEvolveEventHandler {
139 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
140 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
141 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
142 panic!(
143 "{}
144::{}
145 failed to instantiate",
146 ::core::stringify!(RefineShopRefineTargetMenu_DecideToEvolveEventHandler),
147 ::core::stringify!(new),
148 )
149 });
150 <Self as IRefineShopRefineTargetMenu_DecideToEvolveEventHandlerMethods>::ctor(this, object, method);
151 this
152 }
153}
154
155#[cfg(feature = "app-refineshoprefinetargetmenu")]
156pub trait IRefineShopRefineTargetMenu_SelectEventHandlerMethods: IRefineShopRefineTargetMenu_SelectEventHandler {
157 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
158 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
159 unsafe {
160 let __receiver = <RefineShopRefineTargetMenu_SelectEventHandler as ::unity::FromIlInstance>::from_il_instance(
161 <Self as ::unity::SystemObject>::as_instance(self),
162 );
163 ::unity::il2cpp_call!((::unity::module_base()+0x1afd550usize)as*mut u8,();
164(RefineShopRefineTargetMenu_SelectEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
165 }
166 }
167 #[doc = "`Invoke(crate::app::unititem::UnitItem, bool)` overload"]
168 fn invoke(self, unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>, revealed: impl ::core::convert::Into<bool>) -> () {
169 unsafe {
170 let __receiver = <RefineShopRefineTargetMenu_SelectEventHandler as ::unity::FromIlInstance>::from_il_instance(
171 <Self as ::unity::SystemObject>::as_instance(self),
172 );
173 {
174 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
175 let __vi = *__vt.get(13usize).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 13usize,
183 __vt.len(),
184 <RefineShopRefineTargetMenu_SelectEventHandler as ::unity::ClassIdentity>::NAME,
185 "Invoke",
186 )
187 });
188 let __inner: extern "C" fn(
189 RefineShopRefineTargetMenu_SelectEventHandler,
190 crate::app::unititem::UnitItem,
191 bool,
192 ::unity::OptionalMethod,
193 ) -> () = ::core::mem::transmute(__vi.method_ptr);
194 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
195 __inner(
196 __receiver,
197 ::core::convert::Into::into(unit_item),
198 ::core::convert::Into::into(revealed),
199 __mi,
200 )
201 }
202 }
203 }
204}
205
206#[cfg(feature = "app-refineshoprefinetargetmenu")]
207impl<__T: IRefineShopRefineTargetMenu_SelectEventHandler> IRefineShopRefineTargetMenu_SelectEventHandlerMethods for __T {}
208
209#[cfg(feature = "app-refineshoprefinetargetmenu")]
210impl RefineShopRefineTargetMenu_SelectEventHandler {
211 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
212 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
213 }
214
215 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
217 }
218}
219
220#[cfg(feature = "app-refineshoprefinetargetmenu")]
221impl RefineShopRefineTargetMenu_SelectEventHandler {
222 #[doc = "Direct (non-virtual) call to `RefineShopRefineTargetMenu_SelectEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
223 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, unit_item: crate::app::unititem::UnitItem, revealed: bool) -> () {
224 let __mi = Self::invoke_method_info();
225 let __inner: extern "C" fn(::unity::IlInstance, crate::app::unititem::UnitItem, bool, ::unity::OptionalMethod) -> () =
226 ::core::mem::transmute(__mi.method_ptr);
227 __inner(this.into(), unit_item, revealed, ::core::option::Option::None)
228 }
229}
230
231#[cfg(feature = "app-refineshoprefinetargetmenu")]
232impl RefineShopRefineTargetMenu_SelectEventHandler {
233 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
234 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
235 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
236 panic!(
237 "{}
238::{}
239 failed to instantiate",
240 ::core::stringify!(RefineShopRefineTargetMenu_SelectEventHandler),
241 ::core::stringify!(new),
242 )
243 });
244 <Self as IRefineShopRefineTargetMenu_SelectEventHandlerMethods>::ctor(this, object, method);
245 this
246 }
247}
248
249#[cfg(feature = "app-refineshoprefinetargetmenu")]
250pub trait IRefineShopRefineTargetMenu_RequestCloseEventHandlerMethods: IRefineShopRefineTargetMenu_RequestCloseEventHandler {
251 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
252 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
253 unsafe {
254 let __receiver = <RefineShopRefineTargetMenu_RequestCloseEventHandler as ::unity::FromIlInstance>::from_il_instance(
255 <Self as ::unity::SystemObject>::as_instance(self),
256 );
257 ::unity::il2cpp_call!((::unity::module_base()+0x1afd2e0usize)as*mut u8,();
258(RefineShopRefineTargetMenu_RequestCloseEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
259 }
260 }
261 #[doc = "`Invoke()` overload"]
262 fn invoke(self) -> () {
263 unsafe {
264 let __receiver = <RefineShopRefineTargetMenu_RequestCloseEventHandler as ::unity::FromIlInstance>::from_il_instance(
265 <Self as ::unity::SystemObject>::as_instance(self),
266 );
267 {
268 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
269 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
270 panic!(
271 "unity: virtual slot {}
272 out of range (vtable len {}
273) on the runtime class behind {}
274 (method `{}
275`)",
276 13usize,
277 __vt.len(),
278 <RefineShopRefineTargetMenu_RequestCloseEventHandler as ::unity::ClassIdentity>::NAME,
279 "Invoke",
280 )
281 });
282 let __inner: extern "C" fn(RefineShopRefineTargetMenu_RequestCloseEventHandler, ::unity::OptionalMethod) -> () =
283 ::core::mem::transmute(__vi.method_ptr);
284 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
285 __inner(__receiver, __mi)
286 }
287 }
288 }
289}
290
291#[cfg(feature = "app-refineshoprefinetargetmenu")]
292impl<__T: IRefineShopRefineTargetMenu_RequestCloseEventHandler> IRefineShopRefineTargetMenu_RequestCloseEventHandlerMethods for __T {}
293
294#[cfg(feature = "app-refineshoprefinetargetmenu")]
295impl RefineShopRefineTargetMenu_RequestCloseEventHandler {
296 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
298 }
299
300 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
302 }
303}
304
305#[cfg(feature = "app-refineshoprefinetargetmenu")]
306impl RefineShopRefineTargetMenu_RequestCloseEventHandler {
307 #[doc = "Direct (non-virtual) call to `RefineShopRefineTargetMenu_RequestCloseEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
308 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
309 let __mi = Self::invoke_method_info();
310 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
311 __inner(this.into(), ::core::option::Option::None)
312 }
313}
314
315#[cfg(feature = "app-refineshoprefinetargetmenu")]
316impl RefineShopRefineTargetMenu_RequestCloseEventHandler {
317 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
318 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
319 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
320 panic!(
321 "{}
322::{}
323 failed to instantiate",
324 ::core::stringify!(RefineShopRefineTargetMenu_RequestCloseEventHandler),
325 ::core::stringify!(new),
326 )
327 });
328 <Self as IRefineShopRefineTargetMenu_RequestCloseEventHandlerMethods>::ctor(this, object, method);
329 this
330 }
331}
332
333#[cfg(feature = "app-refineshoprefinetargetmenu")]
334impl RefineShopRefineTargetMenu {
335 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::unity_engine::gameobject::GameObject, crate::app::unit::Unit, i32, crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu_SelectEventHandler, crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu_DecideToRefineEventHandler, crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu_DecideToEvolveEventHandler, crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu_RequestCloseEventHandler)` overload"]
336 pub fn create_bind(
337 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
338 menu_object: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
339 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
340 item_index: impl ::core::convert::Into<i32>,
341 select_event_handler: impl ::core::convert::Into<crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu_SelectEventHandler>,
342 decide_to_refine_event_handler: impl ::core::convert::Into<
343 crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu_DecideToRefineEventHandler,
344 >,
345 decide_to_evolve_event_handler: impl ::core::convert::Into<
346 crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu_DecideToEvolveEventHandler,
347 >,
348 request_close_event_handler: impl ::core::convert::Into<
349 crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu_RequestCloseEventHandler,
350 >,
351 ) -> crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu {
352 unsafe {
353 ::unity::il2cpp_call!((::unity::module_base()+0x296ace0usize)as*mut u8,crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu;
354(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(menu_object),(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(item_index),(crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu_SelectEventHandler)::core::convert::Into::into(select_event_handler),(crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu_DecideToRefineEventHandler)::core::convert::Into::into(decide_to_refine_event_handler),(crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu_DecideToEvolveEventHandler)::core::convert::Into::into(decide_to_evolve_event_handler),(crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu_RequestCloseEventHandler)::core::convert::Into::into(request_close_event_handler))
355 }
356 }
357
358 #[doc = "`CreateMenuItemList(i32, crate::app::unititem::UnitItem, crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu_SelectEventHandler, crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu_DecideToRefineEventHandler, crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu_DecideToEvolveEventHandler)` overload"]
359 pub fn create_menu_item_list(
360 show_row_num: impl ::core::convert::Into<i32>,
361 unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>,
362 select_event_handler: impl ::core::convert::Into<crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu_SelectEventHandler>,
363 decide_to_refine_event_handler: impl ::core::convert::Into<
364 crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu_DecideToRefineEventHandler,
365 >,
366 decide_to_evolve_event_handler: impl ::core::convert::Into<
367 crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu_DecideToEvolveEventHandler,
368 >,
369 ) -> crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem> {
370 unsafe {
371 ::unity::il2cpp_call!((::unity::module_base()+0x296b040usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem> ;
372(i32)::core::convert::Into::into(show_row_num),(crate::app::unititem::UnitItem)::core::convert::Into::into(unit_item),(crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu_SelectEventHandler)::core::convert::Into::into(select_event_handler),(crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu_DecideToRefineEventHandler)::core::convert::Into::into(decide_to_refine_event_handler),(crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu_DecideToEvolveEventHandler)::core::convert::Into::into(decide_to_evolve_event_handler))
373 }
374 }
375}
376
377#[cfg(feature = "app-refineshoprefinetargetmenu")]
378pub trait IRefineShopRefineTargetMenuMethods: IRefineShopRefineTargetMenu {
379 #[doc = "`get_m_Unit()` overload"]
380 fn get_m_unit(self) -> crate::app::unit::Unit {
381 unsafe {
382 let __receiver =
383 <RefineShopRefineTargetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
384 ::unity::il2cpp_call!((::unity::module_base()+0x296aca0usize)as*mut u8,crate::app::unit::Unit;
385(RefineShopRefineTargetMenu)__receiver)
386 }
387 }
388 #[doc = "`set_m_Unit(crate::app::unit::Unit)` overload"]
389 fn set_m_unit(self, value: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
390 unsafe {
391 let __receiver =
392 <RefineShopRefineTargetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
393 ::unity::il2cpp_call!((::unity::module_base()+0x296acb0usize)as*mut u8,();
394(RefineShopRefineTargetMenu)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(value))
395 }
396 }
397 #[doc = "`get_m_UnitItem()` overload"]
398 fn get_m_unit_item(self) -> crate::app::unititem::UnitItem {
399 unsafe {
400 let __receiver =
401 <RefineShopRefineTargetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
402 ::unity::il2cpp_call!((::unity::module_base()+0x296acc0usize)as*mut u8,crate::app::unititem::UnitItem;
403(RefineShopRefineTargetMenu)__receiver)
404 }
405 }
406 #[doc = "`set_m_UnitItem(crate::app::unititem::UnitItem)` overload"]
407 fn set_m_unit_item(self, value: impl ::core::convert::Into<crate::app::unititem::UnitItem>) -> () {
408 unsafe {
409 let __receiver =
410 <RefineShopRefineTargetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
411 ::unity::il2cpp_call!((::unity::module_base()+0x296acd0usize)as*mut u8,();
412(RefineShopRefineTargetMenu)__receiver,(crate::app::unititem::UnitItem)::core::convert::Into::into(value))
413 }
414 }
415 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::basicmenucontent::BasicMenuContent, crate::app::unit::Unit, crate::app::unititem::UnitItem, crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu_RequestCloseEventHandler)` overload"]
416 fn ctor(
417 self,
418 menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
419 menu_content: impl ::core::convert::Into<crate::app::basicmenucontent::BasicMenuContent>,
420 owner_unit: impl ::core::convert::Into<crate::app::unit::Unit>,
421 base_unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>,
422 request_close_event_handler: impl ::core::convert::Into<
423 crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu_RequestCloseEventHandler,
424 >,
425 ) -> () {
426 unsafe {
427 let __receiver =
428 <RefineShopRefineTargetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
429 ::unity::il2cpp_call!((::unity::module_base()+0x296b280usize)as*mut u8,();
430(RefineShopRefineTargetMenu)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(menu_item_list),(crate::app::basicmenucontent::BasicMenuContent)::core::convert::Into::into(menu_content),(crate::app::unit::Unit)::core::convert::Into::into(owner_unit),(crate::app::unititem::UnitItem)::core::convert::Into::into(base_unit_item),(crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu_RequestCloseEventHandler)::core::convert::Into::into(request_close_event_handler))
431 }
432 }
433 #[doc = "`GetName()` overload"]
434 fn get_name(self) -> ::unity::Il2CppString {
435 unsafe {
436 let __receiver =
437 <RefineShopRefineTargetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
438 {
439 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
440 let __vi = *__vt.get(30usize).unwrap_or_else(|| {
441 panic!(
442 "unity: virtual slot {}
443 out of range (vtable len {}
444) on the runtime class behind {}
445 (method `{}
446`)",
447 30usize,
448 __vt.len(),
449 <RefineShopRefineTargetMenu as ::unity::ClassIdentity>::NAME,
450 "GetName",
451 )
452 });
453 let __inner: extern "C" fn(RefineShopRefineTargetMenu, ::unity::OptionalMethod) -> ::unity::Il2CppString =
454 ::core::mem::transmute(__vi.method_ptr);
455 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
456 __inner(__receiver, __mi)
457 }
458 }
459 }
460 #[doc = "`BCall()` overload"]
461 fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
462 unsafe {
463 let __receiver =
464 <RefineShopRefineTargetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
465 {
466 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
467 let __vi = *__vt.get(51usize).unwrap_or_else(|| {
468 panic!(
469 "unity: virtual slot {}
470 out of range (vtable len {}
471) on the runtime class behind {}
472 (method `{}
473`)",
474 51usize,
475 __vt.len(),
476 <RefineShopRefineTargetMenu as ::unity::ClassIdentity>::NAME,
477 "BCall",
478 )
479 });
480 let __inner: extern "C" fn(RefineShopRefineTargetMenu, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
481 ::core::mem::transmute(__vi.method_ptr);
482 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
483 __inner(__receiver, __mi)
484 }
485 }
486 }
487}
488
489#[cfg(feature = "app-refineshoprefinetargetmenu")]
490impl<__T: IRefineShopRefineTargetMenu> IRefineShopRefineTargetMenuMethods for __T {}
491
492#[cfg(feature = "app-refineshoprefinetargetmenu")]
493impl RefineShopRefineTargetMenu {
494 pub fn get_m_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
495 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
496 }
497
498 pub fn set_m_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
499 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
500 }
501
502 pub fn get_m_unit_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
503 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
504 }
505
506 pub fn set_m_unit_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
507 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
508 }
509
510 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
511 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
512 }
513
514 pub fn create_menu_item_list_method_info() -> &'static ::unity::il2cpp::MethodInfo {
515 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
516 }
517
518 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
519 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
520 }
521
522 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
523 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
524 }
525
526 pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
527 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
528 }
529}
530
531#[cfg(feature = "app-refineshoprefinetargetmenu")]
532impl RefineShopRefineTargetMenu {
533 #[doc = "Direct (non-virtual) call to `RefineShopRefineTargetMenu`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
534 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
535 let __mi = Self::get_name_method_info();
536 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
537 __inner(this.into(), ::core::option::Option::None)
538 }
539
540 #[doc = "Direct (non-virtual) call to `RefineShopRefineTargetMenu`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
541 pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
542 let __mi = Self::b_call_method_info();
543 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
544 ::core::mem::transmute(__mi.method_ptr);
545 __inner(this.into(), ::core::option::Option::None)
546 }
547}
548
549#[cfg(feature = "app-refineshoprefinetargetmenu")]
550impl RefineShopRefineTargetMenu {
551 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::basicmenucontent::BasicMenuContent, crate::app::unit::Unit, crate::app::unititem::UnitItem, crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu_RequestCloseEventHandler)` — overload selector"]
552 pub fn new(
553 menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
554 menu_content: crate::app::basicmenucontent::BasicMenuContent,
555 owner_unit: crate::app::unit::Unit,
556 base_unit_item: crate::app::unititem::UnitItem,
557 request_close_event_handler: crate::app::refineshoprefinetargetmenu::RefineShopRefineTargetMenu_RequestCloseEventHandler,
558 ) -> Self {
559 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
560 panic!(
561 "{}
562::{}
563 failed to instantiate",
564 ::core::stringify!(RefineShopRefineTargetMenu),
565 ::core::stringify!(new),
566 )
567 });
568 <Self as IRefineShopRefineTargetMenuMethods>::ctor(
569 this,
570 menu_item_list,
571 menu_content,
572 owner_unit,
573 base_unit_item,
574 request_close_event_handler,
575 );
576 this
577 }
578}
579
580#[cfg(feature = "app-refineshoprefinetargetmenu")]
581pub trait IRefineShopRefineTargetMenu_DecideToRefineEventHandlerMethods: IRefineShopRefineTargetMenu_DecideToRefineEventHandler {
582 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
583 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
584 unsafe {
585 let __receiver = <RefineShopRefineTargetMenu_DecideToRefineEventHandler as ::unity::FromIlInstance>::from_il_instance(
586 <Self as ::unity::SystemObject>::as_instance(self),
587 );
588 ::unity::il2cpp_call!((::unity::module_base()+0x1afcf30usize)as*mut u8,();
589(RefineShopRefineTargetMenu_DecideToRefineEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
590 }
591 }
592 #[doc = "`Invoke(i32, crate::app::unititem::UnitItem, i32, i32, i32, i32)` overload"]
593 fn invoke(
594 self,
595 refine_level: impl ::core::convert::Into<i32>,
596 refined_unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>,
597 iron_num: impl ::core::convert::Into<i32>,
598 steel_num: impl ::core::convert::Into<i32>,
599 silver_num: impl ::core::convert::Into<i32>,
600 price: impl ::core::convert::Into<i32>,
601 ) -> () {
602 unsafe {
603 let __receiver = <RefineShopRefineTargetMenu_DecideToRefineEventHandler as ::unity::FromIlInstance>::from_il_instance(
604 <Self as ::unity::SystemObject>::as_instance(self),
605 );
606 {
607 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
608 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
609 panic!(
610 "unity: virtual slot {}
611 out of range (vtable len {}
612) on the runtime class behind {}
613 (method `{}
614`)",
615 13usize,
616 __vt.len(),
617 <RefineShopRefineTargetMenu_DecideToRefineEventHandler as ::unity::ClassIdentity>::NAME,
618 "Invoke",
619 )
620 });
621 let __inner: extern "C" fn(
622 RefineShopRefineTargetMenu_DecideToRefineEventHandler,
623 i32,
624 crate::app::unititem::UnitItem,
625 i32,
626 i32,
627 i32,
628 i32,
629 ::unity::OptionalMethod,
630 ) -> () = ::core::mem::transmute(__vi.method_ptr);
631 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
632 __inner(
633 __receiver,
634 ::core::convert::Into::into(refine_level),
635 ::core::convert::Into::into(refined_unit_item),
636 ::core::convert::Into::into(iron_num),
637 ::core::convert::Into::into(steel_num),
638 ::core::convert::Into::into(silver_num),
639 ::core::convert::Into::into(price),
640 __mi,
641 )
642 }
643 }
644 }
645}
646
647#[cfg(feature = "app-refineshoprefinetargetmenu")]
648impl<__T: IRefineShopRefineTargetMenu_DecideToRefineEventHandler> IRefineShopRefineTargetMenu_DecideToRefineEventHandlerMethods for __T {}
649
650#[cfg(feature = "app-refineshoprefinetargetmenu")]
651impl RefineShopRefineTargetMenu_DecideToRefineEventHandler {
652 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
653 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
654 }
655
656 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
657 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
658 }
659}
660
661#[cfg(feature = "app-refineshoprefinetargetmenu")]
662impl RefineShopRefineTargetMenu_DecideToRefineEventHandler {
663 #[doc = "Direct (non-virtual) call to `RefineShopRefineTargetMenu_DecideToRefineEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
664 pub unsafe fn invoke(
665 this: impl ::core::convert::Into<::unity::IlInstance>,
666 refine_level: i32,
667 refined_unit_item: crate::app::unititem::UnitItem,
668 iron_num: i32,
669 steel_num: i32,
670 silver_num: i32,
671 price: i32,
672 ) -> () {
673 let __mi = Self::invoke_method_info();
674 let __inner: extern "C" fn(::unity::IlInstance, i32, crate::app::unititem::UnitItem, i32, i32, i32, i32, ::unity::OptionalMethod) -> () =
675 ::core::mem::transmute(__mi.method_ptr);
676 __inner(
677 this.into(),
678 refine_level,
679 refined_unit_item,
680 iron_num,
681 steel_num,
682 silver_num,
683 price,
684 ::core::option::Option::None,
685 )
686 }
687}
688
689#[cfg(feature = "app-refineshoprefinetargetmenu")]
690impl RefineShopRefineTargetMenu_DecideToRefineEventHandler {
691 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
692 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
693 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
694 panic!(
695 "{}
696::{}
697 failed to instantiate",
698 ::core::stringify!(RefineShopRefineTargetMenu_DecideToRefineEventHandler),
699 ::core::stringify!(new),
700 )
701 });
702 <Self as IRefineShopRefineTargetMenu_DecideToRefineEventHandlerMethods>::ctor(this, object, method);
703 this
704 }
705}
706
707#[cfg(feature = "app-refineshoprefinetargetmenu")]
708#[doc(hidden)]
709pub mod prelude {
710 pub use super::{
711 IRefineShopRefineTargetMenu, IRefineShopRefineTargetMenuMethods, IRefineShopRefineTargetMenu_DecideToEvolveEventHandler,
712 IRefineShopRefineTargetMenu_DecideToEvolveEventHandlerMethods, IRefineShopRefineTargetMenu_DecideToRefineEventHandler,
713 IRefineShopRefineTargetMenu_DecideToRefineEventHandlerMethods, IRefineShopRefineTargetMenu_RequestCloseEventHandler,
714 IRefineShopRefineTargetMenu_RequestCloseEventHandlerMethods, IRefineShopRefineTargetMenu_SelectEventHandler,
715 IRefineShopRefineTargetMenu_SelectEventHandlerMethods, RefineShopRefineTargetMenu, RefineShopRefineTargetMenu_DecideToEvolveEventHandler,
716 RefineShopRefineTargetMenu_DecideToRefineEventHandler, RefineShopRefineTargetMenu_RequestCloseEventHandler,
717 RefineShopRefineTargetMenu_SelectEventHandler,
718 };
719 #[cfg(feature = "app-basicmenu")]
720 pub use crate::app::basicmenu::IBasicMenuMethods;
721 #[cfg(feature = "app-procinst")]
722 pub use crate::app::procinst::IProcInstMethods;
723 #[cfg(feature = "system-delegate")]
724 pub use crate::system::delegate::IDelegateMethods;
725 #[cfg(feature = "system-multicastdelegate")]
726 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
727 #[cfg(feature = "system-object")]
728 pub use crate::system::object::IObjectMethods;
729 pub use crate::{
730 app::{basicmenu::IBasicMenu, procinst::IProcInst},
731 system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
732 };
733}