Skip to main content

engage/generated/app/
refineringtimesselectmenucontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-refineringtimesselectmenucontent-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/refineringtimesselectmenucontent/RefineRingTimesSelectMenuContent.md"))]
20    #[::unity::class(namespace = "App", name = "RefineRingTimesSelectMenuContent")]
21    #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22    pub struct RefineRingTimesSelectMenuContent {}
23}
24
25#[cfg(feature = "app-refineringtimesselectmenucontent-types")]
26pub use __types::*;
27
28#[cfg(feature = "app-refineringtimesselectmenucontent")]
29pub trait IRefineRingTimesSelectMenuContentMethods: IRefineRingTimesSelectMenuContent {
30    #[doc = "`GetMenuItemContentMax()` overload"]
31    fn get_menu_item_content_max(self) -> i32 {
32        unsafe {
33            let __receiver =
34                <RefineRingTimesSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
35            {
36                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
37                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
38                    panic!(
39                        "unity: virtual slot {}
40 out of range (vtable len {}
41) on the runtime class behind {}
42 (method `{}
43`)",
44                        4usize,
45                        __vt.len(),
46                        <RefineRingTimesSelectMenuContent as ::unity::ClassIdentity>::NAME,
47                        "GetMenuItemContentMax",
48                    )
49                });
50                let __inner: extern "C" fn(RefineRingTimesSelectMenuContent, ::unity::OptionalMethod) -> i32 =
51                    ::core::mem::transmute(__vi.method_ptr);
52                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
53                __inner(__receiver, __mi)
54            }
55        }
56    }
57    #[doc = "`CalcCursorMovedPosY(i32)` overload"]
58    fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
59        unsafe {
60            let __receiver =
61                <RefineRingTimesSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62            {
63                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
64                let __vi = *__vt.get(10usize).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                        10usize,
72                        __vt.len(),
73                        <RefineRingTimesSelectMenuContent as ::unity::ClassIdentity>::NAME,
74                        "CalcCursorMovedPosY",
75                    )
76                });
77                let __inner: extern "C" fn(RefineRingTimesSelectMenuContent, i32, ::unity::OptionalMethod) -> f32 =
78                    ::core::mem::transmute(__vi.method_ptr);
79                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
80                __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
81            }
82        }
83    }
84    #[doc = "`.ctor()` overload"]
85    fn ctor(self) -> () {
86        unsafe {
87            let __receiver =
88                <RefineRingTimesSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89            ::unity::il2cpp_call!((::unity::module_base()+0x29576c0usize)as*mut u8,();
90(RefineRingTimesSelectMenuContent)__receiver)
91        }
92    }
93}
94
95#[cfg(feature = "app-refineringtimesselectmenucontent")]
96impl<__T: IRefineRingTimesSelectMenuContent> IRefineRingTimesSelectMenuContentMethods for __T {}
97
98#[cfg(feature = "app-refineringtimesselectmenucontent")]
99impl RefineRingTimesSelectMenuContent {
100    pub fn get_menu_item_content_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
101        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
102    }
103
104    pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
105        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
106    }
107
108    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
109        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
110    }
111}
112
113#[cfg(feature = "app-refineringtimesselectmenucontent")]
114impl RefineRingTimesSelectMenuContent {
115    #[doc = "Direct (non-virtual) call to `RefineRingTimesSelectMenuContent`'s own `GetMenuItemContentMax`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
116    pub unsafe fn get_menu_item_content_max(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
117        let __mi = Self::get_menu_item_content_max_method_info();
118        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
119        __inner(this.into(), ::core::option::Option::None)
120    }
121
122    #[doc = "Direct (non-virtual) call to `RefineRingTimesSelectMenuContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
123    pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
124        let __mi = Self::calc_cursor_moved_pos_y_method_info();
125        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
126        __inner(this.into(), menu_item_index, ::core::option::Option::None)
127    }
128}
129
130#[cfg(feature = "app-refineringtimesselectmenucontent")]
131impl RefineRingTimesSelectMenuContent {
132    #[doc = "`.ctor()` — no args"]
133    pub fn new() -> Self {
134        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
135            panic!(
136                "{}
137::{}
138 failed to instantiate",
139                ::core::stringify!(RefineRingTimesSelectMenuContent),
140                ::core::stringify!(new),
141            )
142        });
143        <Self as IRefineRingTimesSelectMenuContentMethods>::ctor(this);
144        this
145    }
146}
147
148#[cfg(feature = "app-refineringtimesselectmenucontent")]
149#[doc(hidden)]
150pub mod prelude {
151    pub use super::{IRefineRingTimesSelectMenuContent, IRefineRingTimesSelectMenuContentMethods, RefineRingTimesSelectMenuContent};
152    #[cfg(feature = "app-basicmenucontent")]
153    pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
154    #[cfg(feature = "system-object")]
155    pub use crate::system::object::IObjectMethods;
156    #[cfg(feature = "unity_engine-behaviour")]
157    pub use crate::unity_engine::behaviour::IBehaviourMethods;
158    #[cfg(feature = "unity_engine-component")]
159    pub use crate::unity_engine::component::IComponentMethods;
160    #[cfg(feature = "unity_engine-monobehaviour")]
161    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
162    #[cfg(feature = "unity_engine-object_2")]
163    pub use crate::unity_engine::object_2::IObject_2Methods;
164    pub use crate::{
165        app::basicmenucontent::IBasicMenuContent,
166        system::object::IObject,
167        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
168    };
169}