Skip to main content

engage/generated/app/
refinegodweaponselectmenucontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-refinegodweaponselectmenucontent-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::basicmenucontent::{BasicMenuContent, IBasicMenuContent},
10        system::object::{IObject, Object},
11        unity_engine::{
12            behaviour::{Behaviour, IBehaviour},
13            component::{Component, IComponent},
14            monobehaviour::{IMonoBehaviour, MonoBehaviour},
15            object_2::{IObject_2, Object_2},
16        },
17    };
18
19    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refinegodweaponselectmenucontent/RefineGodWeaponSelectMenuContent.md"))]
20    #[::unity::class(namespace = "App", name = "RefineGodWeaponSelectMenuContent")]
21    #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22    pub struct RefineGodWeaponSelectMenuContent {
23        #[offset(232)]
24        #[rename(name = "m_CaptionText")]
25        pub m_caption_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
26        #[offset(240)]
27        #[rename(name = "m_GodsNameText")]
28        pub m_gods_name_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
29        #[offset(248)]
30        #[rename(name = "m_GodIcon")]
31        pub m_god_icon: crate::app::uniticon::UnitIcon,
32        #[offset(256)]
33        #[rename(name = "m_PageIconImage")]
34        pub m_page_icon_image: ::unity::Array<crate::unity_engine::ui::image::Image>,
35    }
36}
37
38#[cfg(feature = "app-refinegodweaponselectmenucontent-types")]
39pub use __types::*;
40
41#[cfg(feature = "app-refinegodweaponselectmenucontent")]
42pub trait IRefineGodWeaponSelectMenuContentMethods: IRefineGodWeaponSelectMenuContent {
43    #[doc = "`Start()` overload"]
44    fn start(self) -> () {
45        unsafe {
46            let __receiver =
47                <RefineGodWeaponSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48            {
49                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
50                let __vi = *__vt.get(31usize).unwrap_or_else(|| {
51                    panic!(
52                        "unity: virtual slot {}
53 out of range (vtable len {}
54) on the runtime class behind {}
55 (method `{}
56`)",
57                        31usize,
58                        __vt.len(),
59                        <RefineGodWeaponSelectMenuContent as ::unity::ClassIdentity>::NAME,
60                        "Start",
61                    )
62                });
63                let __inner: extern "C" fn(RefineGodWeaponSelectMenuContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
64                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
65                __inner(__receiver, __mi)
66            }
67        }
68    }
69    #[doc = "`Build()` overload"]
70    fn build(self) -> () {
71        unsafe {
72            let __receiver =
73                <RefineGodWeaponSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74            ::unity::il2cpp_call!((::unity::module_base()+0x23887a0usize)as*mut u8,();
75(RefineGodWeaponSelectMenuContent)__receiver)
76        }
77    }
78    #[doc = "`BuildMenuItemContent()` overload"]
79    fn build_menu_item_content(self) -> () {
80        unsafe {
81            let __receiver =
82                <RefineGodWeaponSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83            {
84                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
85                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
86                    panic!(
87                        "unity: virtual slot {}
88 out of range (vtable len {}
89) on the runtime class behind {}
90 (method `{}
91`)",
92                        18usize,
93                        __vt.len(),
94                        <RefineGodWeaponSelectMenuContent as ::unity::ClassIdentity>::NAME,
95                        "BuildMenuItemContent",
96                    )
97                });
98                let __inner: extern "C" fn(RefineGodWeaponSelectMenuContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
99                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
100                __inner(__receiver, __mi)
101            }
102        }
103    }
104    #[doc = "`GetMenuItemContentMax()` overload"]
105    fn get_menu_item_content_max(self) -> i32 {
106        unsafe {
107            let __receiver =
108                <RefineGodWeaponSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109            {
110                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
111                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
112                    panic!(
113                        "unity: virtual slot {}
114 out of range (vtable len {}
115) on the runtime class behind {}
116 (method `{}
117`)",
118                        4usize,
119                        __vt.len(),
120                        <RefineGodWeaponSelectMenuContent as ::unity::ClassIdentity>::NAME,
121                        "GetMenuItemContentMax",
122                    )
123                });
124                let __inner: extern "C" fn(RefineGodWeaponSelectMenuContent, ::unity::OptionalMethod) -> i32 =
125                    ::core::mem::transmute(__vi.method_ptr);
126                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
127                __inner(__receiver, __mi)
128            }
129        }
130    }
131    #[doc = "`CalcW()` overload"]
132    fn calc_w(self) -> f32 {
133        unsafe {
134            let __receiver =
135                <RefineGodWeaponSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
136            {
137                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
138                let __vi = *__vt.get(21usize).unwrap_or_else(|| {
139                    panic!(
140                        "unity: virtual slot {}
141 out of range (vtable len {}
142) on the runtime class behind {}
143 (method `{}
144`)",
145                        21usize,
146                        __vt.len(),
147                        <RefineGodWeaponSelectMenuContent as ::unity::ClassIdentity>::NAME,
148                        "CalcW",
149                    )
150                });
151                let __inner: extern "C" fn(RefineGodWeaponSelectMenuContent, ::unity::OptionalMethod) -> f32 =
152                    ::core::mem::transmute(__vi.method_ptr);
153                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
154                __inner(__receiver, __mi)
155            }
156        }
157    }
158    #[doc = "`CalcH()` overload"]
159    fn calc_h(self) -> f32 {
160        unsafe {
161            let __receiver =
162                <RefineGodWeaponSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163            {
164                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
165                let __vi = *__vt.get(22usize).unwrap_or_else(|| {
166                    panic!(
167                        "unity: virtual slot {}
168 out of range (vtable len {}
169) on the runtime class behind {}
170 (method `{}
171`)",
172                        22usize,
173                        __vt.len(),
174                        <RefineGodWeaponSelectMenuContent as ::unity::ClassIdentity>::NAME,
175                        "CalcH",
176                    )
177                });
178                let __inner: extern "C" fn(RefineGodWeaponSelectMenuContent, ::unity::OptionalMethod) -> f32 =
179                    ::core::mem::transmute(__vi.method_ptr);
180                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
181                __inner(__receiver, __mi)
182            }
183        }
184    }
185    #[doc = "`CalcCursorMovedPosY(i32)` overload"]
186    fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
187        unsafe {
188            let __receiver =
189                <RefineGodWeaponSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
190            {
191                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
192                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
193                    panic!(
194                        "unity: virtual slot {}
195 out of range (vtable len {}
196) on the runtime class behind {}
197 (method `{}
198`)",
199                        10usize,
200                        __vt.len(),
201                        <RefineGodWeaponSelectMenuContent as ::unity::ClassIdentity>::NAME,
202                        "CalcCursorMovedPosY",
203                    )
204                });
205                let __inner: extern "C" fn(RefineGodWeaponSelectMenuContent, i32, ::unity::OptionalMethod) -> f32 =
206                    ::core::mem::transmute(__vi.method_ptr);
207                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
208                __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
209            }
210        }
211    }
212    #[doc = "`.ctor()` overload"]
213    fn ctor(self) -> () {
214        unsafe {
215            let __receiver =
216                <RefineGodWeaponSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
217            ::unity::il2cpp_call!((::unity::module_base()+0x2388bf0usize)as*mut u8,();
218(RefineGodWeaponSelectMenuContent)__receiver)
219        }
220    }
221}
222
223#[cfg(feature = "app-refinegodweaponselectmenucontent")]
224impl<__T: IRefineGodWeaponSelectMenuContent> IRefineGodWeaponSelectMenuContentMethods for __T {}
225
226#[cfg(feature = "app-refinegodweaponselectmenucontent")]
227impl RefineGodWeaponSelectMenuContent {
228    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
229        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
230    }
231
232    pub fn build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
233        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
234    }
235
236    pub fn build_menu_item_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
237        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
238    }
239
240    pub fn get_menu_item_content_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
241        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
242    }
243
244    pub fn calc_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
245        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
246    }
247
248    pub fn calc_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
249        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
250    }
251
252    pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
253        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
254    }
255
256    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
257        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
258    }
259}
260
261#[cfg(feature = "app-refinegodweaponselectmenucontent")]
262impl RefineGodWeaponSelectMenuContent {
263    #[doc = "Direct (non-virtual) call to `RefineGodWeaponSelectMenuContent`'s own `Start`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
264    pub unsafe fn start(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
265        let __mi = Self::start_method_info();
266        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
267        __inner(this.into(), ::core::option::Option::None)
268    }
269
270    #[doc = "Direct (non-virtual) call to `RefineGodWeaponSelectMenuContent`'s own `BuildMenuItemContent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
271    pub unsafe fn build_menu_item_content(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
272        let __mi = Self::build_menu_item_content_method_info();
273        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
274        __inner(this.into(), ::core::option::Option::None)
275    }
276
277    #[doc = "Direct (non-virtual) call to `RefineGodWeaponSelectMenuContent`'s own `GetMenuItemContentMax`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
278    pub unsafe fn get_menu_item_content_max(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
279        let __mi = Self::get_menu_item_content_max_method_info();
280        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
281        __inner(this.into(), ::core::option::Option::None)
282    }
283
284    #[doc = "Direct (non-virtual) call to `RefineGodWeaponSelectMenuContent`'s own `CalcW`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
285    pub unsafe fn calc_w(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
286        let __mi = Self::calc_w_method_info();
287        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
288        __inner(this.into(), ::core::option::Option::None)
289    }
290
291    #[doc = "Direct (non-virtual) call to `RefineGodWeaponSelectMenuContent`'s own `CalcH`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
292    pub unsafe fn calc_h(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
293        let __mi = Self::calc_h_method_info();
294        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
295        __inner(this.into(), ::core::option::Option::None)
296    }
297
298    #[doc = "Direct (non-virtual) call to `RefineGodWeaponSelectMenuContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
299    pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
300        let __mi = Self::calc_cursor_moved_pos_y_method_info();
301        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
302        __inner(this.into(), menu_item_index, ::core::option::Option::None)
303    }
304}
305
306#[cfg(feature = "app-refinegodweaponselectmenucontent")]
307impl RefineGodWeaponSelectMenuContent {
308    #[doc = "`.ctor()` — no args"]
309    pub fn new() -> Self {
310        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
311            panic!(
312                "{}
313::{}
314 failed to instantiate",
315                ::core::stringify!(RefineGodWeaponSelectMenuContent),
316                ::core::stringify!(new),
317            )
318        });
319        <Self as IRefineGodWeaponSelectMenuContentMethods>::ctor(this);
320        this
321    }
322}
323
324#[cfg(feature = "app-refinegodweaponselectmenucontent")]
325#[doc(hidden)]
326pub mod prelude {
327    pub use super::{IRefineGodWeaponSelectMenuContent, IRefineGodWeaponSelectMenuContentMethods, RefineGodWeaponSelectMenuContent};
328    #[cfg(feature = "app-basicmenucontent")]
329    pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
330    #[cfg(feature = "system-object")]
331    pub use crate::system::object::IObjectMethods;
332    #[cfg(feature = "unity_engine-behaviour")]
333    pub use crate::unity_engine::behaviour::IBehaviourMethods;
334    #[cfg(feature = "unity_engine-component")]
335    pub use crate::unity_engine::component::IComponentMethods;
336    #[cfg(feature = "unity_engine-monobehaviour")]
337    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
338    #[cfg(feature = "unity_engine-object_2")]
339    pub use crate::unity_engine::object_2::IObject_2Methods;
340    pub use crate::{
341        app::basicmenucontent::IBasicMenuContent,
342        system::object::IObject,
343        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
344    };
345}