Skip to main content

engage/generated/app/
refinegodweaponselectmanager.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-refinegodweaponselectmanager-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        delegate::{Delegate, IDelegate},
10        multicastdelegate::{IMulticastDelegate, MulticastDelegate},
11        object::{IObject, Object},
12    };
13
14    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refinegodweaponselectmanager/RefineGodWeaponSelectManager_ReturnEventHandler.md"))]
15    #[::unity::class(namespace = "App", name = "RefineGodWeaponSelectManager.ReturnEventHandler")]
16    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
17    pub struct RefineGodWeaponSelectManager_ReturnEventHandler {}
18
19    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refinegodweaponselectmanager/RefineGodWeaponSelectManager.md"))]
20    #[::unity::class(namespace = "App", name = "RefineGodWeaponSelectManager")]
21    #[parent(crate::system::object::Object)]
22    pub struct RefineGodWeaponSelectManager {
23        #[offset(16)]
24        #[rename(name = "m_ReturnEventHandler")]
25        pub m_return_event_handler: crate::app::refinegodweaponselectmanager::RefineGodWeaponSelectManager_ReturnEventHandler,
26        #[offset(24)]
27        #[rename(name = "m_Menu")]
28        pub m_menu: crate::app::refinegodweaponselectmenu::RefineGodWeaponSelectMenu,
29        #[offset(32)]
30        #[rename(name = "m_Root")]
31        pub m_root: crate::app::refinegodweaponroot::RefineGodWeaponRoot,
32    }
33}
34
35#[cfg(feature = "app-refinegodweaponselectmanager-types")]
36pub use __types::*;
37
38#[cfg(feature = "app-refinegodweaponselectmanager")]
39pub trait IRefineGodWeaponSelectManager_ReturnEventHandlerMethods: IRefineGodWeaponSelectManager_ReturnEventHandler {
40    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
41    fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
42        unsafe {
43            let __receiver = <RefineGodWeaponSelectManager_ReturnEventHandler as ::unity::FromIlInstance>::from_il_instance(
44                <Self as ::unity::SystemObject>::as_instance(self),
45            );
46            ::unity::il2cpp_call!((::unity::module_base()+0x1af72e0usize)as*mut u8,();
47(RefineGodWeaponSelectManager_ReturnEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
48        }
49    }
50    #[doc = "`Invoke(crate::app::basicmenu::BasicMenu_Result, crate::app::godunit::GodUnit, crate::app::unititem::UnitItem, i32)` overload"]
51    fn invoke(
52        self,
53        result: impl ::core::convert::Into<crate::app::basicmenu::BasicMenu_Result>,
54        god_unit: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
55        god_weapon: impl ::core::convert::Into<crate::app::unititem::UnitItem>,
56        scroll_index: impl ::core::convert::Into<i32>,
57    ) -> () {
58        unsafe {
59            let __receiver = <RefineGodWeaponSelectManager_ReturnEventHandler as ::unity::FromIlInstance>::from_il_instance(
60                <Self as ::unity::SystemObject>::as_instance(self),
61            );
62            {
63                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
64                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
65                    panic!(
66                        "unity: virtual slot {}
67 out of range (vtable len {}
68) on the runtime class behind {}
69 (method `{}
70`)",
71                        13usize,
72                        __vt.len(),
73                        <RefineGodWeaponSelectManager_ReturnEventHandler as ::unity::ClassIdentity>::NAME,
74                        "Invoke",
75                    )
76                });
77                let __inner: extern "C" fn(
78                    RefineGodWeaponSelectManager_ReturnEventHandler,
79                    crate::app::basicmenu::BasicMenu_Result,
80                    crate::app::godunit::GodUnit,
81                    crate::app::unititem::UnitItem,
82                    i32,
83                    ::unity::OptionalMethod,
84                ) -> () = ::core::mem::transmute(__vi.method_ptr);
85                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
86                __inner(
87                    __receiver,
88                    ::core::convert::Into::into(result),
89                    ::core::convert::Into::into(god_unit),
90                    ::core::convert::Into::into(god_weapon),
91                    ::core::convert::Into::into(scroll_index),
92                    __mi,
93                )
94            }
95        }
96    }
97}
98
99#[cfg(feature = "app-refinegodweaponselectmanager")]
100impl<__T: IRefineGodWeaponSelectManager_ReturnEventHandler> IRefineGodWeaponSelectManager_ReturnEventHandlerMethods for __T {}
101
102#[cfg(feature = "app-refinegodweaponselectmanager")]
103impl RefineGodWeaponSelectManager_ReturnEventHandler {
104    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
105        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
106    }
107
108    pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
109        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
110    }
111}
112
113#[cfg(feature = "app-refinegodweaponselectmanager")]
114impl RefineGodWeaponSelectManager_ReturnEventHandler {
115    #[doc = "Direct (non-virtual) call to `RefineGodWeaponSelectManager_ReturnEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
116    pub unsafe fn invoke(
117        this: impl ::core::convert::Into<::unity::IlInstance>,
118        result: crate::app::basicmenu::BasicMenu_Result,
119        god_unit: crate::app::godunit::GodUnit,
120        god_weapon: crate::app::unititem::UnitItem,
121        scroll_index: i32,
122    ) -> () {
123        let __mi = Self::invoke_method_info();
124        let __inner: extern "C" fn(
125            ::unity::IlInstance,
126            crate::app::basicmenu::BasicMenu_Result,
127            crate::app::godunit::GodUnit,
128            crate::app::unititem::UnitItem,
129            i32,
130            ::unity::OptionalMethod,
131        ) -> () = ::core::mem::transmute(__mi.method_ptr);
132        __inner(this.into(), result, god_unit, god_weapon, scroll_index, ::core::option::Option::None)
133    }
134}
135
136#[cfg(feature = "app-refinegodweaponselectmanager")]
137impl RefineGodWeaponSelectManager_ReturnEventHandler {
138    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
139    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
140        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
141            panic!(
142                "{}
143::{}
144 failed to instantiate",
145                ::core::stringify!(RefineGodWeaponSelectManager_ReturnEventHandler),
146                ::core::stringify!(new),
147            )
148        });
149        <Self as IRefineGodWeaponSelectManager_ReturnEventHandlerMethods>::ctor(this, object, method);
150        this
151    }
152}
153
154#[cfg(feature = "app-refinegodweaponselectmanager")]
155impl RefineGodWeaponSelectManager {
156    #[doc = "`Create(crate::app::procinst::ProcInst, crate::app::refinegodweaponroot::RefineGodWeaponRoot, crate::app::godunit::GodUnit, crate::app::itemdata::ItemData, i32, crate::app::refinegodweaponselectmanager::RefineGodWeaponSelectManager_ReturnEventHandler)` overload"]
157    pub fn create(
158        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
159        root: impl ::core::convert::Into<crate::app::refinegodweaponroot::RefineGodWeaponRoot>,
160        initial_god_unit: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
161        initial_god_weapon: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
162        initial_scroll_index: impl ::core::convert::Into<i32>,
163        return_event_handler: impl ::core::convert::Into<crate::app::refinegodweaponselectmanager::RefineGodWeaponSelectManager_ReturnEventHandler>,
164    ) -> crate::app::refinegodweaponselectmanager::RefineGodWeaponSelectManager {
165        unsafe {
166            ::unity::il2cpp_call!((::unity::module_base()+0x2386dc0usize)as*mut u8,crate::app::refinegodweaponselectmanager::RefineGodWeaponSelectManager;
167(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::refinegodweaponroot::RefineGodWeaponRoot)::core::convert::Into::into(root),(crate::app::godunit::GodUnit)::core::convert::Into::into(initial_god_unit),(crate::app::itemdata::ItemData)::core::convert::Into::into(initial_god_weapon),(i32)::core::convert::Into::into(initial_scroll_index),(crate::app::refinegodweaponselectmanager::RefineGodWeaponSelectManager_ReturnEventHandler)::core::convert::Into::into(return_event_handler))
168        }
169    }
170
171    #[doc = "`CreateForReset(crate::app::procinst::ProcInst, crate::app::refinegodweaponroot::RefineGodWeaponRoot, crate::app::godunit::GodUnit, crate::app::itemdata::ItemData, i32, crate::app::refinegodweaponselectmanager::RefineGodWeaponSelectManager_ReturnEventHandler)` overload"]
172    pub fn create_for_reset(
173        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
174        root: impl ::core::convert::Into<crate::app::refinegodweaponroot::RefineGodWeaponRoot>,
175        initial_god_unit: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
176        initial_god_weapon: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
177        initial_scroll_index: impl ::core::convert::Into<i32>,
178        return_event_handler: impl ::core::convert::Into<crate::app::refinegodweaponselectmanager::RefineGodWeaponSelectManager_ReturnEventHandler>,
179    ) -> crate::app::refinegodweaponselectmanager::RefineGodWeaponSelectManager {
180        unsafe {
181            ::unity::il2cpp_call!((::unity::module_base()+0x2387050usize)as*mut u8,crate::app::refinegodweaponselectmanager::RefineGodWeaponSelectManager;
182(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::refinegodweaponroot::RefineGodWeaponRoot)::core::convert::Into::into(root),(crate::app::godunit::GodUnit)::core::convert::Into::into(initial_god_unit),(crate::app::itemdata::ItemData)::core::convert::Into::into(initial_god_weapon),(i32)::core::convert::Into::into(initial_scroll_index),(crate::app::refinegodweaponselectmanager::RefineGodWeaponSelectManager_ReturnEventHandler)::core::convert::Into::into(return_event_handler))
183        }
184    }
185}
186
187#[cfg(feature = "app-refinegodweaponselectmanager")]
188pub trait IRefineGodWeaponSelectManagerMethods: IRefineGodWeaponSelectManager {
189    #[doc = "`.ctor(crate::app::procinst::ProcInst, crate::app::refinegodweaponroot::RefineGodWeaponRoot, crate::app::godunit::GodUnit, crate::app::itemdata::ItemData, i32, crate::app::refinegodweaponselectmanager::RefineGodWeaponSelectManager_ReturnEventHandler)` overload"]
190    fn ctor(
191        self,
192        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
193        root: impl ::core::convert::Into<crate::app::refinegodweaponroot::RefineGodWeaponRoot>,
194        initial_god_unit: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
195        initial_god_weapon: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
196        initial_scroll_index: impl ::core::convert::Into<i32>,
197        return_event_handler: impl ::core::convert::Into<crate::app::refinegodweaponselectmanager::RefineGodWeaponSelectManager_ReturnEventHandler>,
198    ) -> () {
199        unsafe {
200            let __receiver =
201                <RefineGodWeaponSelectManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
202            ::unity::il2cpp_call!((::unity::module_base()+0x2386eb0usize)as*mut u8,();
203(RefineGodWeaponSelectManager)__receiver,(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::refinegodweaponroot::RefineGodWeaponRoot)::core::convert::Into::into(root),(crate::app::godunit::GodUnit)::core::convert::Into::into(initial_god_unit),(crate::app::itemdata::ItemData)::core::convert::Into::into(initial_god_weapon),(i32)::core::convert::Into::into(initial_scroll_index),(crate::app::refinegodweaponselectmanager::RefineGodWeaponSelectManager_ReturnEventHandler)::core::convert::Into::into(return_event_handler))
204        }
205    }
206    #[doc = "`OnSelect(crate::app::godunit::GodUnit, crate::app::unititem::UnitItem)` overload"]
207    fn on_select(
208        self,
209        god_unit: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
210        unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>,
211    ) -> () {
212        unsafe {
213            let __receiver =
214                <RefineGodWeaponSelectManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
215            ::unity::il2cpp_call!((::unity::module_base()+0x23875a0usize)as*mut u8,();
216(RefineGodWeaponSelectManager)__receiver,(crate::app::godunit::GodUnit)::core::convert::Into::into(god_unit),(crate::app::unititem::UnitItem)::core::convert::Into::into(unit_item))
217        }
218    }
219    #[doc = "`OnDecide(crate::app::godunit::GodUnit, crate::app::unititem::UnitItem)` overload"]
220    fn on_decide(
221        self,
222        god_unit: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
223        god_weapon: impl ::core::convert::Into<crate::app::unititem::UnitItem>,
224    ) -> () {
225        unsafe {
226            let __receiver =
227                <RefineGodWeaponSelectManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
228            ::unity::il2cpp_call!((::unity::module_base()+0x23876e0usize)as*mut u8,();
229(RefineGodWeaponSelectManager)__receiver,(crate::app::godunit::GodUnit)::core::convert::Into::into(god_unit),(crate::app::unititem::UnitItem)::core::convert::Into::into(god_weapon))
230        }
231    }
232    #[doc = "`OnRequestClose()` overload"]
233    fn on_request_close(self) -> () {
234        unsafe {
235            let __receiver =
236                <RefineGodWeaponSelectManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
237            ::unity::il2cpp_call!((::unity::module_base()+0x2387740usize)as*mut u8,();
238(RefineGodWeaponSelectManager)__receiver)
239        }
240    }
241}
242
243#[cfg(feature = "app-refinegodweaponselectmanager")]
244impl<__T: IRefineGodWeaponSelectManager> IRefineGodWeaponSelectManagerMethods for __T {}
245
246#[cfg(feature = "app-refinegodweaponselectmanager")]
247impl RefineGodWeaponSelectManager {
248    pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
249        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
250    }
251
252    pub fn create_for_reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
253        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
254    }
255
256    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
257        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
258    }
259
260    pub fn on_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
261        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
262    }
263
264    pub fn on_decide_method_info() -> &'static ::unity::il2cpp::MethodInfo {
265        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
266    }
267
268    pub fn on_request_close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
269        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
270    }
271}
272
273#[cfg(feature = "app-refinegodweaponselectmanager")]
274impl RefineGodWeaponSelectManager {
275    #[doc = "`.ctor(crate::app::procinst::ProcInst, crate::app::refinegodweaponroot::RefineGodWeaponRoot, crate::app::godunit::GodUnit, crate::app::itemdata::ItemData, i32, crate::app::refinegodweaponselectmanager::RefineGodWeaponSelectManager_ReturnEventHandler)` — overload selector"]
276    pub fn new(
277        super_: crate::app::procinst::ProcInst,
278        root: crate::app::refinegodweaponroot::RefineGodWeaponRoot,
279        initial_god_unit: crate::app::godunit::GodUnit,
280        initial_god_weapon: crate::app::itemdata::ItemData,
281        initial_scroll_index: i32,
282        return_event_handler: crate::app::refinegodweaponselectmanager::RefineGodWeaponSelectManager_ReturnEventHandler,
283    ) -> Self {
284        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
285            panic!(
286                "{}
287::{}
288 failed to instantiate",
289                ::core::stringify!(RefineGodWeaponSelectManager),
290                ::core::stringify!(new),
291            )
292        });
293        <Self as IRefineGodWeaponSelectManagerMethods>::ctor(
294            this,
295            super_,
296            root,
297            initial_god_unit,
298            initial_god_weapon,
299            initial_scroll_index,
300            return_event_handler,
301        );
302        this
303    }
304}
305
306#[cfg(feature = "app-refinegodweaponselectmanager")]
307#[doc(hidden)]
308pub mod prelude {
309    pub use super::{
310        IRefineGodWeaponSelectManager, IRefineGodWeaponSelectManagerMethods, IRefineGodWeaponSelectManager_ReturnEventHandler,
311        IRefineGodWeaponSelectManager_ReturnEventHandlerMethods, RefineGodWeaponSelectManager, RefineGodWeaponSelectManager_ReturnEventHandler,
312    };
313    #[cfg(feature = "system-delegate")]
314    pub use crate::system::delegate::IDelegateMethods;
315    #[cfg(feature = "system-multicastdelegate")]
316    pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
317    #[cfg(feature = "system-object")]
318    pub use crate::system::object::IObjectMethods;
319    pub use crate::system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject};
320}