Skip to main content

engage/generated/app/
fortunetellingunitselectmenucontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-fortunetellingunitselectmenucontent-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/fortunetellingunitselectmenucontent/FortuneTellingUnitSelectMenuContent.md"))]
20    #[::unity::class(namespace = "App", name = "FortuneTellingUnitSelectMenuContent")]
21    #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22    pub struct FortuneTellingUnitSelectMenuContent {
23        #[static_field]
24        #[rename(name = "PrefabPath")]
25        pub prefab_path: ::unity::Il2CppString,
26    }
27}
28
29#[cfg(feature = "app-fortunetellingunitselectmenucontent-types")]
30pub use __types::*;
31
32#[cfg(feature = "app-fortunetellingunitselectmenucontent")]
33impl FortuneTellingUnitSelectMenuContent {
34    #[doc = "`LoadPrefabAsync()` overload"]
35    pub fn load_prefab_async() -> () {
36        unsafe {
37            ::unity::il2cpp_call!((::unity::module_base()+0x261a170usize)as*mut u8,();
38            )
39        }
40    }
41
42    #[doc = "`IsLoadingPrefab()` overload"]
43    pub fn is_loading_prefab() -> bool {
44        unsafe {
45            ::unity::il2cpp_call!((::unity::module_base()+0x261abc0usize)as*mut u8,bool;
46            )
47        }
48    }
49
50    #[doc = "`UnloadPrefab()` overload"]
51    pub fn unload_prefab() -> () {
52        unsafe {
53            ::unity::il2cpp_call!((::unity::module_base()+0x261a820usize)as*mut u8,();
54            )
55        }
56    }
57
58    #[doc = "`Create()` overload"]
59    pub fn create() -> crate::app::fortunetellingunitselectmenucontent::FortuneTellingUnitSelectMenuContent {
60        unsafe {
61            ::unity::il2cpp_call!((::unity::module_base()+0x261a900usize)as*mut u8,crate::app::fortunetellingunitselectmenucontent::FortuneTellingUnitSelectMenuContent;
62            )
63        }
64    }
65
66    #[doc = "`Destroy(crate::app::fortunetellingunitselectmenucontent::FortuneTellingUnitSelectMenuContent)` overload"]
67    pub fn destroy(content: impl ::core::convert::Into<crate::app::fortunetellingunitselectmenucontent::FortuneTellingUnitSelectMenuContent>) -> () {
68        unsafe {
69            ::unity::il2cpp_call!((::unity::module_base()+0x261ac40usize)as*mut u8,();
70(crate::app::fortunetellingunitselectmenucontent::FortuneTellingUnitSelectMenuContent)::core::convert::Into::into(content))
71        }
72    }
73}
74
75#[cfg(feature = "app-fortunetellingunitselectmenucontent")]
76pub trait IFortuneTellingUnitSelectMenuContentMethods: IFortuneTellingUnitSelectMenuContent {
77    #[doc = "`CalcCursorMovedPosY(i32)` overload"]
78    fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
79        unsafe {
80            let __receiver = <FortuneTellingUnitSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(
81                <Self as ::unity::SystemObject>::as_instance(self),
82            );
83            {
84                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
85                let __vi = *__vt.get(10usize).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                        10usize,
93                        __vt.len(),
94                        <FortuneTellingUnitSelectMenuContent as ::unity::ClassIdentity>::NAME,
95                        "CalcCursorMovedPosY",
96                    )
97                });
98                let __inner: extern "C" fn(FortuneTellingUnitSelectMenuContent, i32, ::unity::OptionalMethod) -> f32 =
99                    ::core::mem::transmute(__vi.method_ptr);
100                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
101                __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
102            }
103        }
104    }
105    #[doc = "`CalcW()` overload"]
106    fn calc_w(self) -> f32 {
107        unsafe {
108            let __receiver = <FortuneTellingUnitSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(
109                <Self as ::unity::SystemObject>::as_instance(self),
110            );
111            {
112                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
113                let __vi = *__vt.get(21usize).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                        21usize,
121                        __vt.len(),
122                        <FortuneTellingUnitSelectMenuContent as ::unity::ClassIdentity>::NAME,
123                        "CalcW",
124                    )
125                });
126                let __inner: extern "C" fn(FortuneTellingUnitSelectMenuContent, ::unity::OptionalMethod) -> f32 =
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 = "`CalcH()` overload"]
134    fn calc_h(self) -> f32 {
135        unsafe {
136            let __receiver = <FortuneTellingUnitSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(
137                <Self as ::unity::SystemObject>::as_instance(self),
138            );
139            {
140                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
141                let __vi = *__vt.get(22usize).unwrap_or_else(|| {
142                    panic!(
143                        "unity: virtual slot {}
144 out of range (vtable len {}
145) on the runtime class behind {}
146 (method `{}
147`)",
148                        22usize,
149                        __vt.len(),
150                        <FortuneTellingUnitSelectMenuContent as ::unity::ClassIdentity>::NAME,
151                        "CalcH",
152                    )
153                });
154                let __inner: extern "C" fn(FortuneTellingUnitSelectMenuContent, ::unity::OptionalMethod) -> f32 =
155                    ::core::mem::transmute(__vi.method_ptr);
156                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
157                __inner(__receiver, __mi)
158            }
159        }
160    }
161    #[doc = "`.ctor()` overload"]
162    fn ctor(self) -> () {
163        unsafe {
164            let __receiver = <FortuneTellingUnitSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(
165                <Self as ::unity::SystemObject>::as_instance(self),
166            );
167            ::unity::il2cpp_call!((::unity::module_base()+0x261ada0usize)as*mut u8,();
168(FortuneTellingUnitSelectMenuContent)__receiver)
169        }
170    }
171}
172
173#[cfg(feature = "app-fortunetellingunitselectmenucontent")]
174impl<__T: IFortuneTellingUnitSelectMenuContent> IFortuneTellingUnitSelectMenuContentMethods for __T {}
175
176#[cfg(feature = "app-fortunetellingunitselectmenucontent")]
177impl FortuneTellingUnitSelectMenuContent {
178    pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
179        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
180    }
181
182    pub fn load_prefab_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
183        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
184    }
185
186    pub fn is_loading_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
187        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
188    }
189
190    pub fn unload_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
191        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
192    }
193
194    pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
195        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
196    }
197
198    pub fn destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
199        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
200    }
201
202    pub fn calc_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
203        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
204    }
205
206    pub fn calc_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
207        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
208    }
209
210    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
211        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
212    }
213}
214
215#[cfg(feature = "app-fortunetellingunitselectmenucontent")]
216impl FortuneTellingUnitSelectMenuContent {
217    #[doc = "Direct (non-virtual) call to `FortuneTellingUnitSelectMenuContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
218    pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
219        let __mi = Self::calc_cursor_moved_pos_y_method_info();
220        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
221        __inner(this.into(), menu_item_index, ::core::option::Option::None)
222    }
223
224    #[doc = "Direct (non-virtual) call to `FortuneTellingUnitSelectMenuContent`'s own `CalcW`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
225    pub unsafe fn calc_w(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
226        let __mi = Self::calc_w_method_info();
227        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
228        __inner(this.into(), ::core::option::Option::None)
229    }
230
231    #[doc = "Direct (non-virtual) call to `FortuneTellingUnitSelectMenuContent`'s own `CalcH`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
232    pub unsafe fn calc_h(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
233        let __mi = Self::calc_h_method_info();
234        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
235        __inner(this.into(), ::core::option::Option::None)
236    }
237}
238
239#[cfg(feature = "app-fortunetellingunitselectmenucontent")]
240impl FortuneTellingUnitSelectMenuContent {
241    #[doc = "`.ctor()` — no args"]
242    pub fn new() -> Self {
243        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
244            panic!(
245                "{}
246::{}
247 failed to instantiate",
248                ::core::stringify!(FortuneTellingUnitSelectMenuContent),
249                ::core::stringify!(new),
250            )
251        });
252        <Self as IFortuneTellingUnitSelectMenuContentMethods>::ctor(this);
253        this
254    }
255}
256
257#[cfg(feature = "app-fortunetellingunitselectmenucontent")]
258#[doc(hidden)]
259pub mod prelude {
260    pub use super::{FortuneTellingUnitSelectMenuContent, IFortuneTellingUnitSelectMenuContent, IFortuneTellingUnitSelectMenuContentMethods};
261    #[cfg(feature = "app-basicmenucontent")]
262    pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
263    #[cfg(feature = "system-object")]
264    pub use crate::system::object::IObjectMethods;
265    #[cfg(feature = "unity_engine-behaviour")]
266    pub use crate::unity_engine::behaviour::IBehaviourMethods;
267    #[cfg(feature = "unity_engine-component")]
268    pub use crate::unity_engine::component::IComponentMethods;
269    #[cfg(feature = "unity_engine-monobehaviour")]
270    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
271    #[cfg(feature = "unity_engine-object_2")]
272    pub use crate::unity_engine::object_2::IObject_2Methods;
273    pub use crate::{
274        app::basicmenucontent::IBasicMenuContent,
275        system::object::IObject,
276        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
277    };
278}