Skip to main content

engage/generated/app/
weaponshopbuymenucontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-weaponshopbuymenucontent-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/weaponshopbuymenucontent/WeaponShopBuyMenuContent.md"))]
20    #[::unity::class(namespace = "App", name = "WeaponShopBuyMenuContent")]
21    #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22    pub struct WeaponShopBuyMenuContent {
23        #[offset(232)]
24        #[rename(name = "m_KindIcon")]
25        pub m_kind_icon: ::unity::Array<crate::app::weaponshopbuymenucontent::WeaponShopBuyMenuContent_KindIcon>,
26        #[offset(240)]
27        #[rename(name = "m_ColumnTitleItemText")]
28        pub m_column_title_item_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
29        #[offset(248)]
30        #[rename(name = "m_ColumnTitleStockCountText")]
31        pub m_column_title_stock_count_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
32        #[offset(256)]
33        #[rename(name = "m_ColumnTitlePriceText")]
34        pub m_column_title_price_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
35        #[offset(264)]
36        #[rename(name = "m_ContentObject")]
37        pub m_content_object: crate::unity_engine::gameobject::GameObject,
38        #[offset(272)]
39        #[rename(name = "m_EnabledItemKindCount")]
40        pub m_enabled_item_kind_count: i32,
41    }
42
43    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/weaponshopbuymenucontent/WeaponShopBuyMenuContent_KindIcon.md"))]
44    #[::unity::class(namespace = "App", name = "WeaponShopBuyMenuContent.KindIcon")]
45    #[parent(crate::system::object::Object)]
46    pub struct WeaponShopBuyMenuContent_KindIcon {
47        #[offset(16)]
48        #[rename(name = "m_Image")]
49        pub m_image: crate::unity_engine::ui::image::Image,
50        #[offset(24)]
51        #[rename(name = "m_Kind")]
52        pub m_kind: crate::app::itemdata::ItemData_Kinds,
53    }
54}
55
56#[cfg(feature = "app-weaponshopbuymenucontent-types")]
57pub use __types::*;
58
59#[cfg(feature = "app-weaponshopbuymenucontent")]
60pub trait IWeaponShopBuyMenuContentMethods: IWeaponShopBuyMenuContent {
61    #[doc = "`Start()` overload"]
62    fn start(self) -> () {
63        unsafe {
64            let __receiver =
65                <WeaponShopBuyMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66            {
67                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
68                let __vi = *__vt.get(31usize).unwrap_or_else(|| {
69                    panic!(
70                        "unity: virtual slot {}
71 out of range (vtable len {}
72) on the runtime class behind {}
73 (method `{}
74`)",
75                        31usize,
76                        __vt.len(),
77                        <WeaponShopBuyMenuContent as ::unity::ClassIdentity>::NAME,
78                        "Start",
79                    )
80                });
81                let __inner: extern "C" fn(WeaponShopBuyMenuContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
82                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
83                __inner(__receiver, __mi)
84            }
85        }
86    }
87    #[doc = "`AfterBuild()` overload"]
88    fn after_build(self) -> () {
89        unsafe {
90            let __receiver =
91                <WeaponShopBuyMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92            {
93                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
94                let __vi = *__vt.get(27usize).unwrap_or_else(|| {
95                    panic!(
96                        "unity: virtual slot {}
97 out of range (vtable len {}
98) on the runtime class behind {}
99 (method `{}
100`)",
101                        27usize,
102                        __vt.len(),
103                        <WeaponShopBuyMenuContent as ::unity::ClassIdentity>::NAME,
104                        "AfterBuild",
105                    )
106                });
107                let __inner: extern "C" fn(WeaponShopBuyMenuContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
108                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
109                __inner(__receiver, __mi)
110            }
111        }
112    }
113    #[doc = "`GetMenuItemContentMax()` overload"]
114    fn get_menu_item_content_max(self) -> i32 {
115        unsafe {
116            let __receiver =
117                <WeaponShopBuyMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
118            {
119                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
120                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
121                    panic!(
122                        "unity: virtual slot {}
123 out of range (vtable len {}
124) on the runtime class behind {}
125 (method `{}
126`)",
127                        4usize,
128                        __vt.len(),
129                        <WeaponShopBuyMenuContent as ::unity::ClassIdentity>::NAME,
130                        "GetMenuItemContentMax",
131                    )
132                });
133                let __inner: extern "C" fn(WeaponShopBuyMenuContent, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
134                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
135                __inner(__receiver, __mi)
136            }
137        }
138    }
139    #[doc = "`CalcCursorMovedPosY(i32)` overload"]
140    fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
141        unsafe {
142            let __receiver =
143                <WeaponShopBuyMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
144            {
145                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
146                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
147                    panic!(
148                        "unity: virtual slot {}
149 out of range (vtable len {}
150) on the runtime class behind {}
151 (method `{}
152`)",
153                        10usize,
154                        __vt.len(),
155                        <WeaponShopBuyMenuContent as ::unity::ClassIdentity>::NAME,
156                        "CalcCursorMovedPosY",
157                    )
158                });
159                let __inner: extern "C" fn(WeaponShopBuyMenuContent, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
160                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
161                __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
162            }
163        }
164    }
165    #[doc = "`SetKind(crate::app::itemdata::ItemData_Kinds)` overload"]
166    fn set_kind(self, kind: impl ::core::convert::Into<crate::app::itemdata::ItemData_Kinds>) -> () {
167        unsafe {
168            let __receiver =
169                <WeaponShopBuyMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
170            ::unity::il2cpp_call!((::unity::module_base()+0x21cbc90usize)as*mut u8,();
171(WeaponShopBuyMenuContent)__receiver,(crate::app::itemdata::ItemData_Kinds)::core::convert::Into::into(kind))
172        }
173    }
174    #[doc = "`SetToPrevKind(crate::app::itemdata::ItemData_Kinds)` overload"]
175    fn set_to_prev_kind(self, kind: impl ::core::convert::Into<crate::app::itemdata::ItemData_Kinds>) -> crate::app::itemdata::ItemData_Kinds {
176        unsafe {
177            let __receiver =
178                <WeaponShopBuyMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
179            ::unity::il2cpp_call!((::unity::module_base()+0x21cc9a0usize)as*mut u8,crate::app::itemdata::ItemData_Kinds;
180(WeaponShopBuyMenuContent)__receiver,(crate::app::itemdata::ItemData_Kinds)::core::convert::Into::into(kind))
181        }
182    }
183    #[doc = "`SetToNextKind(crate::app::itemdata::ItemData_Kinds)` overload"]
184    fn set_to_next_kind(self, kind: impl ::core::convert::Into<crate::app::itemdata::ItemData_Kinds>) -> crate::app::itemdata::ItemData_Kinds {
185        unsafe {
186            let __receiver =
187                <WeaponShopBuyMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
188            ::unity::il2cpp_call!((::unity::module_base()+0x21ccd80usize)as*mut u8,crate::app::itemdata::ItemData_Kinds;
189(WeaponShopBuyMenuContent)__receiver,(crate::app::itemdata::ItemData_Kinds)::core::convert::Into::into(kind))
190        }
191    }
192    #[doc = "`IsFirstKind(crate::app::itemdata::ItemData_Kinds)` overload"]
193    fn is_first_kind(self, kind: impl ::core::convert::Into<crate::app::itemdata::ItemData_Kinds>) -> bool {
194        unsafe {
195            let __receiver =
196                <WeaponShopBuyMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
197            ::unity::il2cpp_call!((::unity::module_base()+0x21cc960usize)as*mut u8,bool;
198(WeaponShopBuyMenuContent)__receiver,(crate::app::itemdata::ItemData_Kinds)::core::convert::Into::into(kind))
199        }
200    }
201    #[doc = "`IsLastKind(crate::app::itemdata::ItemData_Kinds)` overload"]
202    fn is_last_kind(self, kind: impl ::core::convert::Into<crate::app::itemdata::ItemData_Kinds>) -> bool {
203        unsafe {
204            let __receiver =
205                <WeaponShopBuyMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
206            ::unity::il2cpp_call!((::unity::module_base()+0x21ccd30usize)as*mut u8,bool;
207(WeaponShopBuyMenuContent)__receiver,(crate::app::itemdata::ItemData_Kinds)::core::convert::Into::into(kind))
208        }
209    }
210    #[doc = "`EnableItemKind(crate::app::itemdata::ItemData_Kinds, bool)` overload"]
211    fn enable_item_kind(
212        self,
213        kind: impl ::core::convert::Into<crate::app::itemdata::ItemData_Kinds>,
214        enabled: impl ::core::convert::Into<bool>,
215    ) -> () {
216        unsafe {
217            let __receiver =
218                <WeaponShopBuyMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
219            ::unity::il2cpp_call!((::unity::module_base()+0x21cbe10usize)as*mut u8,();
220(WeaponShopBuyMenuContent)__receiver,(crate::app::itemdata::ItemData_Kinds)::core::convert::Into::into(kind),(bool)::core::convert::Into::into(enabled))
221        }
222    }
223    #[doc = "`UpdateGetKindCount()` overload"]
224    fn update_get_kind_count(self) -> () {
225        unsafe {
226            let __receiver =
227                <WeaponShopBuyMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
228            ::unity::il2cpp_call!((::unity::module_base()+0x21cd3b0usize)as*mut u8,();
229(WeaponShopBuyMenuContent)__receiver)
230        }
231    }
232    #[doc = "`GetKindCount()` overload"]
233    fn get_kind_count(self) -> i32 {
234        unsafe {
235            let __receiver =
236                <WeaponShopBuyMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
237            ::unity::il2cpp_call!((::unity::module_base()+0x21cd5f0usize)as*mut u8,i32;
238(WeaponShopBuyMenuContent)__receiver)
239        }
240    }
241    #[doc = "`.ctor()` overload"]
242    fn ctor(self) -> () {
243        unsafe {
244            let __receiver =
245                <WeaponShopBuyMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
246            ::unity::il2cpp_call!((::unity::module_base()+0x21cd600usize)as*mut u8,();
247(WeaponShopBuyMenuContent)__receiver)
248        }
249    }
250}
251
252#[cfg(feature = "app-weaponshopbuymenucontent")]
253impl<__T: IWeaponShopBuyMenuContent> IWeaponShopBuyMenuContentMethods for __T {}
254
255#[cfg(feature = "app-weaponshopbuymenucontent")]
256impl WeaponShopBuyMenuContent {
257    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
258        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
259    }
260
261    pub fn after_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
262        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
263    }
264
265    pub fn get_menu_item_content_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
266        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
267    }
268
269    pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
270        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
271    }
272
273    pub fn set_kind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
274        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
275    }
276
277    pub fn set_to_prev_kind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
278        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
279    }
280
281    pub fn set_to_next_kind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
283    }
284
285    pub fn is_first_kind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
287    }
288
289    pub fn is_last_kind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
291    }
292
293    pub fn enable_item_kind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
295    }
296
297    pub fn update_get_kind_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
299    }
300
301    pub fn get_kind_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
303    }
304
305    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
307    }
308}
309
310#[cfg(feature = "app-weaponshopbuymenucontent")]
311impl WeaponShopBuyMenuContent {
312    #[doc = "Direct (non-virtual) call to `WeaponShopBuyMenuContent`'s own `Start`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
313    pub unsafe fn start(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
314        let __mi = Self::start_method_info();
315        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
316        __inner(this.into(), ::core::option::Option::None)
317    }
318
319    #[doc = "Direct (non-virtual) call to `WeaponShopBuyMenuContent`'s own `AfterBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
320    pub unsafe fn after_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
321        let __mi = Self::after_build_method_info();
322        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
323        __inner(this.into(), ::core::option::Option::None)
324    }
325
326    #[doc = "Direct (non-virtual) call to `WeaponShopBuyMenuContent`'s own `GetMenuItemContentMax`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
327    pub unsafe fn get_menu_item_content_max(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
328        let __mi = Self::get_menu_item_content_max_method_info();
329        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
330        __inner(this.into(), ::core::option::Option::None)
331    }
332
333    #[doc = "Direct (non-virtual) call to `WeaponShopBuyMenuContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
334    pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
335        let __mi = Self::calc_cursor_moved_pos_y_method_info();
336        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
337        __inner(this.into(), menu_item_index, ::core::option::Option::None)
338    }
339}
340
341#[cfg(feature = "app-weaponshopbuymenucontent")]
342impl WeaponShopBuyMenuContent {
343    #[doc = "`.ctor()` — no args"]
344    pub fn new() -> Self {
345        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
346            panic!(
347                "{}
348::{}
349 failed to instantiate",
350                ::core::stringify!(WeaponShopBuyMenuContent),
351                ::core::stringify!(new),
352            )
353        });
354        <Self as IWeaponShopBuyMenuContentMethods>::ctor(this);
355        this
356    }
357}
358
359#[cfg(feature = "app-weaponshopbuymenucontent")]
360pub trait IWeaponShopBuyMenuContent_KindIconMethods: IWeaponShopBuyMenuContent_KindIcon {
361    #[doc = "`.ctor()` overload"]
362    fn ctor(self) -> () {
363        unsafe {
364            let __receiver =
365                <WeaponShopBuyMenuContent_KindIcon as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
366            ::unity::il2cpp_call!((::unity::module_base()+0x1b2bc60usize)as*mut u8,();
367(WeaponShopBuyMenuContent_KindIcon)__receiver)
368        }
369    }
370}
371
372#[cfg(feature = "app-weaponshopbuymenucontent")]
373impl<__T: IWeaponShopBuyMenuContent_KindIcon> IWeaponShopBuyMenuContent_KindIconMethods for __T {}
374
375#[cfg(feature = "app-weaponshopbuymenucontent")]
376impl WeaponShopBuyMenuContent_KindIcon {
377    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
378        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
379    }
380}
381
382#[cfg(feature = "app-weaponshopbuymenucontent")]
383impl WeaponShopBuyMenuContent_KindIcon {
384    #[doc = "`.ctor()` — no args"]
385    pub fn new() -> Self {
386        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
387            panic!(
388                "{}
389::{}
390 failed to instantiate",
391                ::core::stringify!(WeaponShopBuyMenuContent_KindIcon),
392                ::core::stringify!(new),
393            )
394        });
395        <Self as IWeaponShopBuyMenuContent_KindIconMethods>::ctor(this);
396        this
397    }
398}
399
400#[cfg(feature = "app-weaponshopbuymenucontent")]
401#[doc(hidden)]
402pub mod prelude {
403    pub use super::{
404        IWeaponShopBuyMenuContent, IWeaponShopBuyMenuContentMethods, IWeaponShopBuyMenuContent_KindIcon, IWeaponShopBuyMenuContent_KindIconMethods,
405        WeaponShopBuyMenuContent, WeaponShopBuyMenuContent_KindIcon,
406    };
407    #[cfg(feature = "app-basicmenucontent")]
408    pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
409    #[cfg(feature = "system-object")]
410    pub use crate::system::object::IObjectMethods;
411    #[cfg(feature = "unity_engine-behaviour")]
412    pub use crate::unity_engine::behaviour::IBehaviourMethods;
413    #[cfg(feature = "unity_engine-component")]
414    pub use crate::unity_engine::component::IComponentMethods;
415    #[cfg(feature = "unity_engine-monobehaviour")]
416    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
417    #[cfg(feature = "unity_engine-object_2")]
418    pub use crate::unity_engine::object_2::IObject_2Methods;
419    pub use crate::{
420        app::basicmenucontent::IBasicMenuContent,
421        system::object::IObject,
422        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
423    };
424}