Skip to main content

engage/generated/app/
giftmenuitemsub.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-giftmenuitemsub-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::basicmenuitem::{BasicMenuItem, IBasicMenuItem},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/giftmenuitemsub/GiftMenuItemSub.md"))]
14    #[::unity::class(namespace = "App", name = "GiftMenuItemSub")]
15    #[parent(crate::app::basicmenuitem::BasicMenuItem)]
16    pub struct GiftMenuItemSub {
17        #[offset(104)]
18        #[rename(name = "m_Item")]
19        pub m_item: crate::app::itemdata::ItemData,
20        #[offset(112)]
21        #[rename(name = "m_Unit")]
22        pub m_unit: crate::app::unit::Unit,
23        #[offset(120)]
24        #[rename(name = "m_Value")]
25        pub m_value: i32,
26    }
27}
28
29#[cfg(feature = "app-giftmenuitemsub-types")]
30pub use __types::*;
31
32#[cfg(feature = "app-giftmenuitemsub")]
33pub trait IGiftMenuItemSubMethods: IGiftMenuItemSub {
34    #[doc = "`get_IsActive()` overload"]
35    fn get_is_active(self) -> bool {
36        unsafe {
37            let __receiver = <GiftMenuItemSub as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38            ::unity::il2cpp_call!((::unity::module_base()+0x2525570usize)as*mut u8,bool;
39(GiftMenuItemSub)__receiver)
40        }
41    }
42    #[doc = "`set_IsActive(bool)` overload"]
43    fn set_is_active(self, value: impl ::core::convert::Into<bool>) -> () {
44        unsafe {
45            let __receiver = <GiftMenuItemSub as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46            ::unity::il2cpp_call!((::unity::module_base()+0x2525580usize)as*mut u8,();
47(GiftMenuItemSub)__receiver,(bool)::core::convert::Into::into(value))
48        }
49    }
50    #[doc = "`get_IsActiveSelect()` overload"]
51    fn get_is_active_select(self) -> bool {
52        unsafe {
53            let __receiver = <GiftMenuItemSub as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54            ::unity::il2cpp_call!((::unity::module_base()+0x2525590usize)as*mut u8,bool;
55(GiftMenuItemSub)__receiver)
56        }
57    }
58    #[doc = "`set_IsActiveSelect(bool)` overload"]
59    fn set_is_active_select(self, value: impl ::core::convert::Into<bool>) -> () {
60        unsafe {
61            let __receiver = <GiftMenuItemSub as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62            ::unity::il2cpp_call!((::unity::module_base()+0x25255a0usize)as*mut u8,();
63(GiftMenuItemSub)__receiver,(bool)::core::convert::Into::into(value))
64        }
65    }
66    #[doc = "`.ctor(crate::app::itemdata::ItemData, crate::app::unit::Unit)` overload"]
67    fn ctor(self, item: impl ::core::convert::Into<crate::app::itemdata::ItemData>, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
68        unsafe {
69            let __receiver = <GiftMenuItemSub as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
70            ::unity::il2cpp_call!((::unity::module_base()+0x2525210usize)as*mut u8,();
71(GiftMenuItemSub)__receiver,(crate::app::itemdata::ItemData)::core::convert::Into::into(item),(crate::app::unit::Unit)::core::convert::Into::into(unit))
72        }
73    }
74    #[doc = "`GetName()` overload"]
75    fn get_name(self) -> ::unity::Il2CppString {
76        unsafe {
77            let __receiver = <GiftMenuItemSub as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78            {
79                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
80                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
81                    panic!(
82                        "unity: virtual slot {}
83 out of range (vtable len {}
84) on the runtime class behind {}
85 (method `{}
86`)",
87                        4usize,
88                        __vt.len(),
89                        <GiftMenuItemSub as ::unity::ClassIdentity>::NAME,
90                        "GetName",
91                    )
92                });
93                let __inner: extern "C" fn(GiftMenuItemSub, ::unity::OptionalMethod) -> ::unity::Il2CppString =
94                    ::core::mem::transmute(__vi.method_ptr);
95                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
96                __inner(__receiver, __mi)
97            }
98        }
99    }
100    #[doc = "`GetCountText()` overload"]
101    fn get_count_text(self) -> ::unity::Il2CppString {
102        unsafe {
103            let __receiver = <GiftMenuItemSub as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
104            ::unity::il2cpp_call!((::unity::module_base()+0x2524930usize)as*mut u8, ::unity::Il2CppString;
105(GiftMenuItemSub)__receiver)
106        }
107    }
108    #[doc = "`BuildAttribute()` overload"]
109    fn build_attribute(self) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
110        unsafe {
111            let __receiver = <GiftMenuItemSub as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
112            {
113                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
114                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
115                    panic!(
116                        "unity: virtual slot {}
117 out of range (vtable len {}
118) on the runtime class behind {}
119 (method `{}
120`)",
121                        8usize,
122                        __vt.len(),
123                        <GiftMenuItemSub as ::unity::ClassIdentity>::NAME,
124                        "BuildAttribute",
125                    )
126                });
127                let __inner: extern "C" fn(GiftMenuItemSub, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
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(__receiver, __mi)
131            }
132        }
133    }
134    #[doc = "`OnSelect()` overload"]
135    fn on_select(self) -> () {
136        unsafe {
137            let __receiver = <GiftMenuItemSub as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
138            {
139                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
140                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
141                    panic!(
142                        "unity: virtual slot {}
143 out of range (vtable len {}
144) on the runtime class behind {}
145 (method `{}
146`)",
147                        12usize,
148                        __vt.len(),
149                        <GiftMenuItemSub as ::unity::ClassIdentity>::NAME,
150                        "OnSelect",
151                    )
152                });
153                let __inner: extern "C" fn(GiftMenuItemSub, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
154                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
155                __inner(__receiver, __mi)
156            }
157        }
158    }
159    #[doc = "`ACall()` overload"]
160    fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
161        unsafe {
162            let __receiver = <GiftMenuItemSub 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(18usize).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                        18usize,
173                        __vt.len(),
174                        <GiftMenuItemSub as ::unity::ClassIdentity>::NAME,
175                        "ACall",
176                    )
177                });
178                let __inner: extern "C" fn(GiftMenuItemSub, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
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 = "`BCall()` overload"]
186    fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
187        unsafe {
188            let __receiver = <GiftMenuItemSub as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
189            {
190                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
191                let __vi = *__vt.get(19usize).unwrap_or_else(|| {
192                    panic!(
193                        "unity: virtual slot {}
194 out of range (vtable len {}
195) on the runtime class behind {}
196 (method `{}
197`)",
198                        19usize,
199                        __vt.len(),
200                        <GiftMenuItemSub as ::unity::ClassIdentity>::NAME,
201                        "BCall",
202                    )
203                });
204                let __inner: extern "C" fn(GiftMenuItemSub, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
205                    ::core::mem::transmute(__vi.method_ptr);
206                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
207                __inner(__receiver, __mi)
208            }
209        }
210    }
211}
212
213#[cfg(feature = "app-giftmenuitemsub")]
214impl<__T: IGiftMenuItemSub> IGiftMenuItemSubMethods for __T {}
215
216#[cfg(feature = "app-giftmenuitemsub")]
217impl GiftMenuItemSub {
218    pub fn get_is_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
220    }
221
222    pub fn set_is_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
224    }
225
226    pub fn get_is_active_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
227        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
228    }
229
230    pub fn set_is_active_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
232    }
233
234    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
236    }
237
238    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
240    }
241
242    pub fn get_count_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
244    }
245
246    pub fn build_attribute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
247        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
248    }
249
250    pub fn on_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
251        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
252    }
253
254    pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
255        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
256    }
257
258    pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
259        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
260    }
261}
262
263#[cfg(feature = "app-giftmenuitemsub")]
264impl GiftMenuItemSub {
265    #[doc = "Direct (non-virtual) call to `GiftMenuItemSub`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
266    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
267        let __mi = Self::get_name_method_info();
268        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
269        __inner(this.into(), ::core::option::Option::None)
270    }
271
272    #[doc = "Direct (non-virtual) call to `GiftMenuItemSub`'s own `BuildAttribute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
273    pub unsafe fn build_attribute(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
274        let __mi = Self::build_attribute_method_info();
275        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
276            ::core::mem::transmute(__mi.method_ptr);
277        __inner(this.into(), ::core::option::Option::None)
278    }
279
280    #[doc = "Direct (non-virtual) call to `GiftMenuItemSub`'s own `OnSelect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
281    pub unsafe fn on_select(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
282        let __mi = Self::on_select_method_info();
283        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
284        __inner(this.into(), ::core::option::Option::None)
285    }
286
287    #[doc = "Direct (non-virtual) call to `GiftMenuItemSub`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
288    pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
289        let __mi = Self::a_call_method_info();
290        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
291            ::core::mem::transmute(__mi.method_ptr);
292        __inner(this.into(), ::core::option::Option::None)
293    }
294
295    #[doc = "Direct (non-virtual) call to `GiftMenuItemSub`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
296    pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
297        let __mi = Self::b_call_method_info();
298        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
299            ::core::mem::transmute(__mi.method_ptr);
300        __inner(this.into(), ::core::option::Option::None)
301    }
302}
303
304#[cfg(feature = "app-giftmenuitemsub")]
305impl GiftMenuItemSub {
306    #[doc = "`.ctor(crate::app::itemdata::ItemData, crate::app::unit::Unit)` — overload selector"]
307    pub fn new(item: crate::app::itemdata::ItemData, unit: crate::app::unit::Unit) -> Self {
308        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
309            panic!(
310                "{}
311::{}
312 failed to instantiate",
313                ::core::stringify!(GiftMenuItemSub),
314                ::core::stringify!(new),
315            )
316        });
317        <Self as IGiftMenuItemSubMethods>::ctor(this, item, unit);
318        this
319    }
320}
321
322#[cfg(feature = "app-giftmenuitemsub")]
323#[doc(hidden)]
324pub mod prelude {
325    pub use super::{GiftMenuItemSub, IGiftMenuItemSub, IGiftMenuItemSubMethods};
326    #[cfg(feature = "app-basicmenuitem")]
327    pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
328    #[cfg(feature = "system-object")]
329    pub use crate::system::object::IObjectMethods;
330    pub use crate::{app::basicmenuitem::IBasicMenuItem, system::object::IObject};
331}