1#[cfg(feature = "app-refineshoprefinebaseroot-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::{
10 delegate::{Delegate, IDelegate},
11 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
12 object::{IObject, Object},
13 },
14 unity_engine::{
15 behaviour::{Behaviour, IBehaviour},
16 component::{Component, IComponent},
17 monobehaviour::{IMonoBehaviour, MonoBehaviour},
18 object_2::{IObject_2, Object_2},
19 },
20 };
21
22 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refineshoprefinebaseroot/RefineShopRefineBaseRoot_ReturnEventHandler.md"))]
23 #[::unity::class(namespace = "App", name = "RefineShopRefineBaseRoot.ReturnEventHandler")]
24 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
25 pub struct RefineShopRefineBaseRoot_ReturnEventHandler {}
26
27 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refineshoprefinebaseroot/RefineShopRefineBaseRoot.md"))]
28 #[::unity::class(namespace = "App", name = "RefineShopRefineBaseRoot")]
29 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
30 pub struct RefineShopRefineBaseRoot {
31 #[static_field]
32 #[rename(name = "PrefabPath")]
33 pub prefab_path: ::unity::Il2CppString,
34 #[offset(24)]
35 #[rename(name = "m_RefineShopRefineBaseMenuObject")]
36 pub m_refine_shop_refine_base_menu_object: crate::unity_engine::gameobject::GameObject,
37 #[offset(32)]
38 #[rename(name = "m_WeaponModelObject")]
39 pub m_weapon_model_object: crate::unity_engine::gameobject::GameObject,
40 #[offset(40)]
41 #[rename(name = "m_ItemDetailInfoWindowObject")]
42 pub m_item_detail_info_window_object: crate::unity_engine::gameobject::GameObject,
43 #[offset(48)]
44 #[rename(name = "m_WeaponRotWaitTime")]
45 pub m_weapon_rot_wait_time: f32,
46 #[offset(52)]
47 #[rename(name = "m_WeaponRotSpeedAuto")]
48 pub m_weapon_rot_speed_auto: f32,
49 #[offset(56)]
50 #[rename(name = "m_WeaponRotSpeedMax")]
51 pub m_weapon_rot_speed_max: f32,
52 #[offset(60)]
53 #[rename(name = "m_WeaponRotStickSense")]
54 pub m_weapon_rot_stick_sense: f32,
55 #[offset(64)]
56 #[rename(name = "m_WeaponRotWaitTimeCount")]
57 pub m_weapon_rot_wait_time_count: f32,
58 #[offset(72)]
59 #[rename(name = "m_ReturnEventHandler")]
60 pub m_return_event_handler: crate::app::refineshoprefinebaseroot::RefineShopRefineBaseRoot_ReturnEventHandler,
61 #[offset(80)]
62 #[rename(name = "m_RefineShopRefineBaseMenu")]
63 pub m_refine_shop_refine_base_menu: crate::app::refineshoprefinebasemenu::RefineShopRefineBaseMenu,
64 #[offset(88)]
65 #[rename(name = "m_ItemMenuDetailSetter")]
66 pub m_item_menu_detail_setter: crate::app::itemmenudetailsetter::ItemMenuDetailSetter,
67 #[offset(96)]
68 #[rename(name = "m_ShopWeaponModelRenderer")]
69 pub m_shop_weapon_model_renderer: crate::app::shopweaponmodelrenderer::ShopWeaponModelRenderer,
70 #[offset(104)]
71 #[rename(name = "m_Unit")]
72 pub m_unit: crate::app::unit::Unit,
73 #[offset(112)]
74 #[rename(name = "m_OwnerItemIndex")]
75 pub m_owner_item_index: i32,
76 }
77}
78
79#[cfg(feature = "app-refineshoprefinebaseroot-types")]
80pub use __types::*;
81
82#[cfg(feature = "app-refineshoprefinebaseroot")]
83pub trait IRefineShopRefineBaseRoot_ReturnEventHandlerMethods: IRefineShopRefineBaseRoot_ReturnEventHandler {
84 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
85 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
86 unsafe {
87 let __receiver = <RefineShopRefineBaseRoot_ReturnEventHandler as ::unity::FromIlInstance>::from_il_instance(
88 <Self as ::unity::SystemObject>::as_instance(self),
89 );
90 ::unity::il2cpp_call!((::unity::module_base()+0x1afc720usize)as*mut u8,();
91(RefineShopRefineBaseRoot_ReturnEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
92 }
93 }
94 #[doc = "`Invoke(crate::app::basicmenu::BasicMenu_Result, crate::app::unit::Unit, i32, crate::app::itemdata::ItemData_Kinds)` overload"]
95 fn invoke(
96 self,
97 result: impl ::core::convert::Into<crate::app::basicmenu::BasicMenu_Result>,
98 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
99 owner_item_index: impl ::core::convert::Into<i32>,
100 kind: impl ::core::convert::Into<crate::app::itemdata::ItemData_Kinds>,
101 ) -> () {
102 unsafe {
103 let __receiver = <RefineShopRefineBaseRoot_ReturnEventHandler as ::unity::FromIlInstance>::from_il_instance(
104 <Self as ::unity::SystemObject>::as_instance(self),
105 );
106 {
107 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
108 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
109 panic!(
110 "unity: virtual slot {}
111 out of range (vtable len {}
112) on the runtime class behind {}
113 (method `{}
114`)",
115 13usize,
116 __vt.len(),
117 <RefineShopRefineBaseRoot_ReturnEventHandler as ::unity::ClassIdentity>::NAME,
118 "Invoke",
119 )
120 });
121 let __inner: extern "C" fn(
122 RefineShopRefineBaseRoot_ReturnEventHandler,
123 crate::app::basicmenu::BasicMenu_Result,
124 crate::app::unit::Unit,
125 i32,
126 crate::app::itemdata::ItemData_Kinds,
127 ::unity::OptionalMethod,
128 ) -> () = ::core::mem::transmute(__vi.method_ptr);
129 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
130 __inner(
131 __receiver,
132 ::core::convert::Into::into(result),
133 ::core::convert::Into::into(unit),
134 ::core::convert::Into::into(owner_item_index),
135 ::core::convert::Into::into(kind),
136 __mi,
137 )
138 }
139 }
140 }
141}
142
143#[cfg(feature = "app-refineshoprefinebaseroot")]
144impl<__T: IRefineShopRefineBaseRoot_ReturnEventHandler> IRefineShopRefineBaseRoot_ReturnEventHandlerMethods for __T {}
145
146#[cfg(feature = "app-refineshoprefinebaseroot")]
147impl RefineShopRefineBaseRoot_ReturnEventHandler {
148 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
150 }
151
152 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
154 }
155}
156
157#[cfg(feature = "app-refineshoprefinebaseroot")]
158impl RefineShopRefineBaseRoot_ReturnEventHandler {
159 #[doc = "Direct (non-virtual) call to `RefineShopRefineBaseRoot_ReturnEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
160 pub unsafe fn invoke(
161 this: impl ::core::convert::Into<::unity::IlInstance>,
162 result: crate::app::basicmenu::BasicMenu_Result,
163 unit: crate::app::unit::Unit,
164 owner_item_index: i32,
165 kind: crate::app::itemdata::ItemData_Kinds,
166 ) -> () {
167 let __mi = Self::invoke_method_info();
168 let __inner: extern "C" fn(
169 ::unity::IlInstance,
170 crate::app::basicmenu::BasicMenu_Result,
171 crate::app::unit::Unit,
172 i32,
173 crate::app::itemdata::ItemData_Kinds,
174 ::unity::OptionalMethod,
175 ) -> () = ::core::mem::transmute(__mi.method_ptr);
176 __inner(this.into(), result, unit, owner_item_index, kind, ::core::option::Option::None)
177 }
178}
179
180#[cfg(feature = "app-refineshoprefinebaseroot")]
181impl RefineShopRefineBaseRoot_ReturnEventHandler {
182 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
183 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
184 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
185 panic!(
186 "{}
187::{}
188 failed to instantiate",
189 ::core::stringify!(RefineShopRefineBaseRoot_ReturnEventHandler),
190 ::core::stringify!(new),
191 )
192 });
193 <Self as IRefineShopRefineBaseRoot_ReturnEventHandlerMethods>::ctor(this, object, method);
194 this
195 }
196}
197
198#[cfg(feature = "app-refineshoprefinebaseroot")]
199impl RefineShopRefineBaseRoot {
200 #[doc = "`LoadPrefabAsync()` overload"]
201 pub fn load_prefab_async() -> () {
202 unsafe {
203 ::unity::il2cpp_call!((::unity::module_base()+0x2968ea0usize)as*mut u8,();
204 )
205 }
206 }
207
208 #[doc = "`IsLoadingPrefab()` overload"]
209 pub fn is_loading_prefab() -> bool {
210 unsafe {
211 ::unity::il2cpp_call!((::unity::module_base()+0x2968f40usize)as*mut u8,bool;
212 )
213 }
214 }
215
216 #[doc = "`UnloadPrefab()` overload"]
217 pub fn unload_prefab() -> () {
218 unsafe {
219 ::unity::il2cpp_call!((::unity::module_base()+0x2968fc0usize)as*mut u8,();
220 )
221 }
222 }
223
224 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::shopweaponmodelrenderer::ShopWeaponModelRenderer, crate::app::unit::Unit, i32, crate::app::itemdata::ItemData_Kinds, crate::app::refineshoprefinebaseroot::RefineShopRefineBaseRoot_ReturnEventHandler)` overload"]
225 pub fn create_bind(
226 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
227 shop_weapon_model_renderer: impl ::core::convert::Into<crate::app::shopweaponmodelrenderer::ShopWeaponModelRenderer>,
228 default_unit: impl ::core::convert::Into<crate::app::unit::Unit>,
229 default_item_index: impl ::core::convert::Into<i32>,
230 default_item_kind: impl ::core::convert::Into<crate::app::itemdata::ItemData_Kinds>,
231 return_event_handler: impl ::core::convert::Into<crate::app::refineshoprefinebaseroot::RefineShopRefineBaseRoot_ReturnEventHandler>,
232 ) -> crate::app::refineshoprefinebaseroot::RefineShopRefineBaseRoot {
233 unsafe {
234 ::unity::il2cpp_call!((::unity::module_base()+0x2969040usize)as*mut u8,crate::app::refineshoprefinebaseroot::RefineShopRefineBaseRoot;
235(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::shopweaponmodelrenderer::ShopWeaponModelRenderer)::core::convert::Into::into(shop_weapon_model_renderer),(crate::app::unit::Unit)::core::convert::Into::into(default_unit),(i32)::core::convert::Into::into(default_item_index),(crate::app::itemdata::ItemData_Kinds)::core::convert::Into::into(default_item_kind),(crate::app::refineshoprefinebaseroot::RefineShopRefineBaseRoot_ReturnEventHandler)::core::convert::Into::into(return_event_handler))
236 }
237 }
238}
239
240#[cfg(feature = "app-refineshoprefinebaseroot")]
241pub trait IRefineShopRefineBaseRootMethods: IRefineShopRefineBaseRoot {
242 #[doc = "`Create(crate::app::procinst::ProcInst, crate::app::shopweaponmodelrenderer::ShopWeaponModelRenderer, crate::app::unit::Unit, i32, crate::app::itemdata::ItemData_Kinds, crate::app::refineshoprefinebaseroot::RefineShopRefineBaseRoot_ReturnEventHandler)` overload"]
243 fn create(
244 self,
245 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
246 shop_weapon_model_renderer: impl ::core::convert::Into<crate::app::shopweaponmodelrenderer::ShopWeaponModelRenderer>,
247 default_unit: impl ::core::convert::Into<crate::app::unit::Unit>,
248 default_item_index: impl ::core::convert::Into<i32>,
249 default_item_kind: impl ::core::convert::Into<crate::app::itemdata::ItemData_Kinds>,
250 return_event_handler: impl ::core::convert::Into<crate::app::refineshoprefinebaseroot::RefineShopRefineBaseRoot_ReturnEventHandler>,
251 ) -> () {
252 unsafe {
253 let __receiver =
254 <RefineShopRefineBaseRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
255 {
256 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
257 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
258 panic!(
259 "unity: virtual slot {}
260 out of range (vtable len {}
261) on the runtime class behind {}
262 (method `{}
263`)",
264 4usize,
265 __vt.len(),
266 <RefineShopRefineBaseRoot as ::unity::ClassIdentity>::NAME,
267 "Create",
268 )
269 });
270 let __inner: extern "C" fn(
271 RefineShopRefineBaseRoot,
272 crate::app::procinst::ProcInst,
273 crate::app::shopweaponmodelrenderer::ShopWeaponModelRenderer,
274 crate::app::unit::Unit,
275 i32,
276 crate::app::itemdata::ItemData_Kinds,
277 crate::app::refineshoprefinebaseroot::RefineShopRefineBaseRoot_ReturnEventHandler,
278 ::unity::OptionalMethod,
279 ) -> () = ::core::mem::transmute(__vi.method_ptr);
280 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
281 __inner(
282 __receiver,
283 ::core::convert::Into::into(super_),
284 ::core::convert::Into::into(shop_weapon_model_renderer),
285 ::core::convert::Into::into(default_unit),
286 ::core::convert::Into::into(default_item_index),
287 ::core::convert::Into::into(default_item_kind),
288 ::core::convert::Into::into(return_event_handler),
289 __mi,
290 )
291 }
292 }
293 }
294 #[doc = "`Destroy()` overload"]
295 fn destroy(self) -> () {
296 unsafe {
297 let __receiver =
298 <RefineShopRefineBaseRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
299 {
300 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
301 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
302 panic!(
303 "unity: virtual slot {}
304 out of range (vtable len {}
305) on the runtime class behind {}
306 (method `{}
307`)",
308 5usize,
309 __vt.len(),
310 <RefineShopRefineBaseRoot as ::unity::ClassIdentity>::NAME,
311 "Destroy",
312 )
313 });
314 let __inner: extern "C" fn(RefineShopRefineBaseRoot, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
315 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
316 __inner(__receiver, __mi)
317 }
318 }
319 }
320 #[doc = "`.ctor()` overload"]
321 fn ctor(self) -> () {
322 unsafe {
323 let __receiver =
324 <RefineShopRefineBaseRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
325 ::unity::il2cpp_call!((::unity::module_base()+0x295f3c0usize)as*mut u8,();
326(RefineShopRefineBaseRoot)__receiver)
327 }
328 }
329 #[doc = "`Update()` overload"]
330 fn update(self) -> () {
331 unsafe {
332 let __receiver =
333 <RefineShopRefineBaseRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
334 ::unity::il2cpp_call!((::unity::module_base()+0x2969800usize)as*mut u8,();
335(RefineShopRefineBaseRoot)__receiver)
336 }
337 }
338 #[doc = "`OnSelectMenuItem(crate::app::unit::Unit, crate::app::unititem::UnitItem)` overload"]
339 fn on_select_menu_item(
340 self,
341 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
342 unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>,
343 ) -> () {
344 unsafe {
345 let __receiver =
346 <RefineShopRefineBaseRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
347 ::unity::il2cpp_call!((::unity::module_base()+0x2969a90usize)as*mut u8,();
348(RefineShopRefineBaseRoot)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::unititem::UnitItem)::core::convert::Into::into(unit_item))
349 }
350 }
351 #[doc = "`OnDecideMenuItem(crate::app::unit::Unit, i32, crate::app::itemdata::ItemData_Kinds)` overload"]
352 fn on_decide_menu_item(
353 self,
354 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
355 owner_item_index: impl ::core::convert::Into<i32>,
356 kind: impl ::core::convert::Into<crate::app::itemdata::ItemData_Kinds>,
357 ) -> () {
358 unsafe {
359 let __receiver =
360 <RefineShopRefineBaseRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
361 ::unity::il2cpp_call!((::unity::module_base()+0x2969d90usize)as*mut u8,();
362(RefineShopRefineBaseRoot)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(owner_item_index),(crate::app::itemdata::ItemData_Kinds)::core::convert::Into::into(kind))
363 }
364 }
365 #[doc = "`OnRequestCloseMenu()` overload"]
366 fn on_request_close_menu(self) -> () {
367 unsafe {
368 let __receiver =
369 <RefineShopRefineBaseRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
370 ::unity::il2cpp_call!((::unity::module_base()+0x2969e10usize)as*mut u8,();
371(RefineShopRefineBaseRoot)__receiver)
372 }
373 }
374 #[doc = "`Close()` overload"]
375 fn close(self) -> () {
376 unsafe {
377 let __receiver =
378 <RefineShopRefineBaseRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
379 {
380 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
381 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
382 panic!(
383 "unity: virtual slot {}
384 out of range (vtable len {}
385) on the runtime class behind {}
386 (method `{}
387`)",
388 6usize,
389 __vt.len(),
390 <RefineShopRefineBaseRoot as ::unity::ClassIdentity>::NAME,
391 "Close",
392 )
393 });
394 let __inner: extern "C" fn(RefineShopRefineBaseRoot, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
395 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
396 __inner(__receiver, __mi)
397 }
398 }
399 }
400}
401
402#[cfg(feature = "app-refineshoprefinebaseroot")]
403impl<__T: IRefineShopRefineBaseRoot> IRefineShopRefineBaseRootMethods for __T {}
404
405#[cfg(feature = "app-refineshoprefinebaseroot")]
406impl RefineShopRefineBaseRoot {
407 pub fn load_prefab_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
408 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
409 }
410
411 pub fn is_loading_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
412 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
413 }
414
415 pub fn unload_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
416 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
417 }
418
419 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
420 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
421 }
422
423 pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
424 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
425 }
426
427 pub fn destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
428 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
429 }
430
431 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
432 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
433 }
434
435 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
436 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
437 }
438
439 pub fn on_select_menu_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
440 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
441 }
442
443 pub fn on_decide_menu_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
444 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
445 }
446
447 pub fn on_request_close_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
448 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
449 }
450
451 pub fn close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
452 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
453 }
454}
455
456#[cfg(feature = "app-refineshoprefinebaseroot")]
457impl RefineShopRefineBaseRoot {
458 #[doc = "Direct (non-virtual) call to `RefineShopRefineBaseRoot`'s own `Create`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
459 pub unsafe fn create(
460 this: impl ::core::convert::Into<::unity::IlInstance>,
461 super_: crate::app::procinst::ProcInst,
462 shop_weapon_model_renderer: crate::app::shopweaponmodelrenderer::ShopWeaponModelRenderer,
463 default_unit: crate::app::unit::Unit,
464 default_item_index: i32,
465 default_item_kind: crate::app::itemdata::ItemData_Kinds,
466 return_event_handler: crate::app::refineshoprefinebaseroot::RefineShopRefineBaseRoot_ReturnEventHandler,
467 ) -> () {
468 let __mi = Self::create_method_info();
469 let __inner: extern "C" fn(
470 ::unity::IlInstance,
471 crate::app::procinst::ProcInst,
472 crate::app::shopweaponmodelrenderer::ShopWeaponModelRenderer,
473 crate::app::unit::Unit,
474 i32,
475 crate::app::itemdata::ItemData_Kinds,
476 crate::app::refineshoprefinebaseroot::RefineShopRefineBaseRoot_ReturnEventHandler,
477 ::unity::OptionalMethod,
478 ) -> () = ::core::mem::transmute(__mi.method_ptr);
479 __inner(
480 this.into(),
481 super_,
482 shop_weapon_model_renderer,
483 default_unit,
484 default_item_index,
485 default_item_kind,
486 return_event_handler,
487 ::core::option::Option::None,
488 )
489 }
490
491 #[doc = "Direct (non-virtual) call to `RefineShopRefineBaseRoot`'s own `Destroy`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
492 pub unsafe fn destroy(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
493 let __mi = Self::destroy_method_info();
494 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
495 __inner(this.into(), ::core::option::Option::None)
496 }
497
498 #[doc = "Direct (non-virtual) call to `RefineShopRefineBaseRoot`'s own `Close`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
499 pub unsafe fn close(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
500 let __mi = Self::close_method_info();
501 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
502 __inner(this.into(), ::core::option::Option::None)
503 }
504}
505
506#[cfg(feature = "app-refineshoprefinebaseroot")]
507impl RefineShopRefineBaseRoot {
508 #[doc = "`.ctor()` — no args"]
509 pub fn new() -> Self {
510 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
511 panic!(
512 "{}
513::{}
514 failed to instantiate",
515 ::core::stringify!(RefineShopRefineBaseRoot),
516 ::core::stringify!(new),
517 )
518 });
519 <Self as IRefineShopRefineBaseRootMethods>::ctor(this);
520 this
521 }
522}
523
524#[cfg(feature = "app-refineshoprefinebaseroot")]
525#[doc(hidden)]
526pub mod prelude {
527 pub use super::{
528 IRefineShopRefineBaseRoot, IRefineShopRefineBaseRootMethods, IRefineShopRefineBaseRoot_ReturnEventHandler,
529 IRefineShopRefineBaseRoot_ReturnEventHandlerMethods, RefineShopRefineBaseRoot, RefineShopRefineBaseRoot_ReturnEventHandler,
530 };
531 #[cfg(feature = "system-delegate")]
532 pub use crate::system::delegate::IDelegateMethods;
533 #[cfg(feature = "system-multicastdelegate")]
534 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
535 #[cfg(feature = "system-object")]
536 pub use crate::system::object::IObjectMethods;
537 #[cfg(feature = "unity_engine-behaviour")]
538 pub use crate::unity_engine::behaviour::IBehaviourMethods;
539 #[cfg(feature = "unity_engine-component")]
540 pub use crate::unity_engine::component::IComponentMethods;
541 #[cfg(feature = "unity_engine-monobehaviour")]
542 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
543 #[cfg(feature = "unity_engine-object_2")]
544 pub use crate::unity_engine::object_2::IObject_2Methods;
545 pub use crate::{
546 system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
547 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
548 };
549}