Skip to main content

engage/generated/app/
refineshopexchangecountmenucontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-refineshopexchangecountmenucontent-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/refineshopexchangecountmenucontent/RefineShopExchangeCountMenuContent.md"))]
20    #[::unity::class(namespace = "App", name = "RefineShopExchangeCountMenuContent")]
21    #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22    pub struct RefineShopExchangeCountMenuContent {
23        #[offset(232)]
24        #[rename(name = "m_HelpText")]
25        pub m_help_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
26        #[offset(240)]
27        #[rename(name = "m_SourceCaptionText")]
28        pub m_source_caption_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
29        #[offset(248)]
30        #[rename(name = "m_SourceIconImage")]
31        pub m_source_icon_image: crate::unity_engine::ui::image::Image,
32        #[offset(256)]
33        #[rename(name = "m_SourceNameText")]
34        pub m_source_name_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
35        #[offset(264)]
36        #[rename(name = "m_SourceValueText")]
37        pub m_source_value_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
38        #[offset(272)]
39        #[rename(name = "m_TargetCaptionText")]
40        pub m_target_caption_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
41        #[offset(280)]
42        #[rename(name = "m_TargetIconImage")]
43        pub m_target_icon_image: crate::unity_engine::ui::image::Image,
44        #[offset(288)]
45        #[rename(name = "m_TargetNameText")]
46        pub m_target_name_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
47        #[offset(296)]
48        #[rename(name = "m_TargetValueText")]
49        pub m_target_value_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
50        #[offset(304)]
51        #[rename(name = "m_ArrowLeft")]
52        pub m_arrow_left: crate::unity_engine::gameobject::GameObject,
53        #[offset(312)]
54        #[rename(name = "m_ArrowRignt")]
55        pub m_arrow_rignt: crate::unity_engine::gameobject::GameObject,
56        #[offset(320)]
57        #[rename(name = "m_CountUpDownText")]
58        pub m_count_up_down_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
59        #[offset(328)]
60        #[rename(name = "m_DecideText")]
61        pub m_decide_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
62        #[offset(336)]
63        #[rename(name = "m_MenuItemContent")]
64        pub m_menu_item_content: crate::app::basicmenuitemcontent::BasicMenuItemContent,
65        #[offset(344)]
66        #[rename(name = "m_textBaseColor")]
67        pub m_text_base_color: crate::unity_engine::color::Color,
68        #[offset(360)]
69        #[rename(name = "m_NotEnnoughColor")]
70        pub m_not_ennough_color: crate::unity_engine::color::Color,
71    }
72}
73
74#[cfg(feature = "app-refineshopexchangecountmenucontent-types")]
75pub use __types::*;
76
77#[cfg(feature = "app-refineshopexchangecountmenucontent")]
78pub trait IRefineShopExchangeCountMenuContentMethods: IRefineShopExchangeCountMenuContent {
79    #[doc = "`Awake()` overload"]
80    fn awake(self) -> () {
81        unsafe {
82            let __receiver =
83                <RefineShopExchangeCountMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84            {
85                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
86                let __vi = *__vt.get(30usize).unwrap_or_else(|| {
87                    panic!(
88                        "unity: virtual slot {}
89 out of range (vtable len {}
90) on the runtime class behind {}
91 (method `{}
92`)",
93                        30usize,
94                        __vt.len(),
95                        <RefineShopExchangeCountMenuContent as ::unity::ClassIdentity>::NAME,
96                        "Awake",
97                    )
98                });
99                let __inner: extern "C" fn(RefineShopExchangeCountMenuContent, ::unity::OptionalMethod) -> () =
100                    ::core::mem::transmute(__vi.method_ptr);
101                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
102                __inner(__receiver, __mi)
103            }
104        }
105    }
106    #[doc = "`Start()` overload"]
107    fn start(self) -> () {
108        unsafe {
109            let __receiver =
110                <RefineShopExchangeCountMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111            {
112                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
113                let __vi = *__vt.get(31usize).unwrap_or_else(|| {
114                    panic!(
115                        "unity: virtual slot {}
116 out of range (vtable len {}
117) on the runtime class behind {}
118 (method `{}
119`)",
120                        31usize,
121                        __vt.len(),
122                        <RefineShopExchangeCountMenuContent as ::unity::ClassIdentity>::NAME,
123                        "Start",
124                    )
125                });
126                let __inner: extern "C" fn(RefineShopExchangeCountMenuContent, ::unity::OptionalMethod) -> () =
127                    ::core::mem::transmute(__vi.method_ptr);
128                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
129                __inner(__receiver, __mi)
130            }
131        }
132    }
133    #[doc = "`Build()` overload"]
134    fn build(self) -> () {
135        unsafe {
136            let __receiver =
137                <RefineShopExchangeCountMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
138            ::unity::il2cpp_call!((::unity::module_base()+0x2960f50usize)as*mut u8,();
139(RefineShopExchangeCountMenuContent)__receiver)
140        }
141    }
142    #[doc = "`BuildMenuItemContent()` overload"]
143    fn build_menu_item_content(self) -> () {
144        unsafe {
145            let __receiver =
146                <RefineShopExchangeCountMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147            {
148                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
149                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
150                    panic!(
151                        "unity: virtual slot {}
152 out of range (vtable len {}
153) on the runtime class behind {}
154 (method `{}
155`)",
156                        18usize,
157                        __vt.len(),
158                        <RefineShopExchangeCountMenuContent as ::unity::ClassIdentity>::NAME,
159                        "BuildMenuItemContent",
160                    )
161                });
162                let __inner: extern "C" fn(RefineShopExchangeCountMenuContent, ::unity::OptionalMethod) -> () =
163                    ::core::mem::transmute(__vi.method_ptr);
164                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
165                __inner(__receiver, __mi)
166            }
167        }
168    }
169    #[doc = "`GetMenuItemContentMax()` overload"]
170    fn get_menu_item_content_max(self) -> i32 {
171        unsafe {
172            let __receiver =
173                <RefineShopExchangeCountMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
174            {
175                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
176                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
177                    panic!(
178                        "unity: virtual slot {}
179 out of range (vtable len {}
180) on the runtime class behind {}
181 (method `{}
182`)",
183                        4usize,
184                        __vt.len(),
185                        <RefineShopExchangeCountMenuContent as ::unity::ClassIdentity>::NAME,
186                        "GetMenuItemContentMax",
187                    )
188                });
189                let __inner: extern "C" fn(RefineShopExchangeCountMenuContent, ::unity::OptionalMethod) -> i32 =
190                    ::core::mem::transmute(__vi.method_ptr);
191                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
192                __inner(__receiver, __mi)
193            }
194        }
195    }
196    #[doc = "`CalcCursorMovedPosY(i32)` overload"]
197    fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
198        unsafe {
199            let __receiver =
200                <RefineShopExchangeCountMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
201            {
202                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
203                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
204                    panic!(
205                        "unity: virtual slot {}
206 out of range (vtable len {}
207) on the runtime class behind {}
208 (method `{}
209`)",
210                        10usize,
211                        __vt.len(),
212                        <RefineShopExchangeCountMenuContent as ::unity::ClassIdentity>::NAME,
213                        "CalcCursorMovedPosY",
214                    )
215                });
216                let __inner: extern "C" fn(RefineShopExchangeCountMenuContent, i32, ::unity::OptionalMethod) -> f32 =
217                    ::core::mem::transmute(__vi.method_ptr);
218                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
219                __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
220            }
221        }
222    }
223    #[doc = "`CalcW()` overload"]
224    fn calc_w(self) -> f32 {
225        unsafe {
226            let __receiver =
227                <RefineShopExchangeCountMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
228            {
229                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
230                let __vi = *__vt.get(21usize).unwrap_or_else(|| {
231                    panic!(
232                        "unity: virtual slot {}
233 out of range (vtable len {}
234) on the runtime class behind {}
235 (method `{}
236`)",
237                        21usize,
238                        __vt.len(),
239                        <RefineShopExchangeCountMenuContent as ::unity::ClassIdentity>::NAME,
240                        "CalcW",
241                    )
242                });
243                let __inner: extern "C" fn(RefineShopExchangeCountMenuContent, ::unity::OptionalMethod) -> f32 =
244                    ::core::mem::transmute(__vi.method_ptr);
245                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
246                __inner(__receiver, __mi)
247            }
248        }
249    }
250    #[doc = "`CalcH()` overload"]
251    fn calc_h(self) -> f32 {
252        unsafe {
253            let __receiver =
254                <RefineShopExchangeCountMenuContent 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(22usize).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                        22usize,
265                        __vt.len(),
266                        <RefineShopExchangeCountMenuContent as ::unity::ClassIdentity>::NAME,
267                        "CalcH",
268                    )
269                });
270                let __inner: extern "C" fn(RefineShopExchangeCountMenuContent, ::unity::OptionalMethod) -> f32 =
271                    ::core::mem::transmute(__vi.method_ptr);
272                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
273                __inner(__receiver, __mi)
274            }
275        }
276    }
277    #[doc = "`Open()` overload"]
278    fn open(self) -> () {
279        unsafe {
280            let __receiver =
281                <RefineShopExchangeCountMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
282            ::unity::il2cpp_call!((::unity::module_base()+0x295fc00usize)as*mut u8,();
283(RefineShopExchangeCountMenuContent)__receiver)
284        }
285    }
286    #[doc = "`UpdateValues()` overload"]
287    fn update_values(self) -> () {
288        unsafe {
289            let __receiver =
290                <RefineShopExchangeCountMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
291            ::unity::il2cpp_call!((::unity::module_base()+0x295ff30usize)as*mut u8,();
292(RefineShopExchangeCountMenuContent)__receiver)
293        }
294    }
295    #[doc = "`.ctor()` overload"]
296    fn ctor(self) -> () {
297        unsafe {
298            let __receiver =
299                <RefineShopExchangeCountMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
300            ::unity::il2cpp_call!((::unity::module_base()+0x2961530usize)as*mut u8,();
301(RefineShopExchangeCountMenuContent)__receiver)
302        }
303    }
304}
305
306#[cfg(feature = "app-refineshopexchangecountmenucontent")]
307impl<__T: IRefineShopExchangeCountMenuContent> IRefineShopExchangeCountMenuContentMethods for __T {}
308
309#[cfg(feature = "app-refineshopexchangecountmenucontent")]
310impl RefineShopExchangeCountMenuContent {
311    pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
312        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
313    }
314
315    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
316        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
317    }
318
319    pub fn build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
320        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
321    }
322
323    pub fn build_menu_item_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
324        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
325    }
326
327    pub fn get_menu_item_content_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
328        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
329    }
330
331    pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
332        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
333    }
334
335    pub fn calc_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
336        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
337    }
338
339    pub fn calc_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
340        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
341    }
342
343    pub fn open_method_info() -> &'static ::unity::il2cpp::MethodInfo {
344        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
345    }
346
347    pub fn update_values_method_info() -> &'static ::unity::il2cpp::MethodInfo {
348        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
349    }
350
351    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
352        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
353    }
354}
355
356#[cfg(feature = "app-refineshopexchangecountmenucontent")]
357impl RefineShopExchangeCountMenuContent {
358    #[doc = "Direct (non-virtual) call to `RefineShopExchangeCountMenuContent`'s own `Awake`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
359    pub unsafe fn awake(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
360        let __mi = Self::awake_method_info();
361        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
362        __inner(this.into(), ::core::option::Option::None)
363    }
364
365    #[doc = "Direct (non-virtual) call to `RefineShopExchangeCountMenuContent`'s own `Start`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
366    pub unsafe fn start(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
367        let __mi = Self::start_method_info();
368        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
369        __inner(this.into(), ::core::option::Option::None)
370    }
371
372    #[doc = "Direct (non-virtual) call to `RefineShopExchangeCountMenuContent`'s own `BuildMenuItemContent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
373    pub unsafe fn build_menu_item_content(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
374        let __mi = Self::build_menu_item_content_method_info();
375        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
376        __inner(this.into(), ::core::option::Option::None)
377    }
378
379    #[doc = "Direct (non-virtual) call to `RefineShopExchangeCountMenuContent`'s own `GetMenuItemContentMax`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
380    pub unsafe fn get_menu_item_content_max(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
381        let __mi = Self::get_menu_item_content_max_method_info();
382        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
383        __inner(this.into(), ::core::option::Option::None)
384    }
385
386    #[doc = "Direct (non-virtual) call to `RefineShopExchangeCountMenuContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
387    pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
388        let __mi = Self::calc_cursor_moved_pos_y_method_info();
389        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
390        __inner(this.into(), menu_item_index, ::core::option::Option::None)
391    }
392
393    #[doc = "Direct (non-virtual) call to `RefineShopExchangeCountMenuContent`'s own `CalcW`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
394    pub unsafe fn calc_w(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
395        let __mi = Self::calc_w_method_info();
396        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
397        __inner(this.into(), ::core::option::Option::None)
398    }
399
400    #[doc = "Direct (non-virtual) call to `RefineShopExchangeCountMenuContent`'s own `CalcH`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
401    pub unsafe fn calc_h(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
402        let __mi = Self::calc_h_method_info();
403        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
404        __inner(this.into(), ::core::option::Option::None)
405    }
406}
407
408#[cfg(feature = "app-refineshopexchangecountmenucontent")]
409impl RefineShopExchangeCountMenuContent {
410    #[doc = "`.ctor()` — no args"]
411    pub fn new() -> Self {
412        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
413            panic!(
414                "{}
415::{}
416 failed to instantiate",
417                ::core::stringify!(RefineShopExchangeCountMenuContent),
418                ::core::stringify!(new),
419            )
420        });
421        <Self as IRefineShopExchangeCountMenuContentMethods>::ctor(this);
422        this
423    }
424}
425
426#[cfg(feature = "app-refineshopexchangecountmenucontent")]
427#[doc(hidden)]
428pub mod prelude {
429    pub use super::{IRefineShopExchangeCountMenuContent, IRefineShopExchangeCountMenuContentMethods, RefineShopExchangeCountMenuContent};
430    #[cfg(feature = "app-basicmenucontent")]
431    pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
432    #[cfg(feature = "system-object")]
433    pub use crate::system::object::IObjectMethods;
434    #[cfg(feature = "unity_engine-behaviour")]
435    pub use crate::unity_engine::behaviour::IBehaviourMethods;
436    #[cfg(feature = "unity_engine-component")]
437    pub use crate::unity_engine::component::IComponentMethods;
438    #[cfg(feature = "unity_engine-monobehaviour")]
439    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
440    #[cfg(feature = "unity_engine-object_2")]
441    pub use crate::unity_engine::object_2::IObject_2Methods;
442    pub use crate::{
443        app::basicmenucontent::IBasicMenuContent,
444        system::object::IObject,
445        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
446    };
447}