Skip to main content

engage/generated/app/cooking_menu/
unitselectmenucontent_2.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-cooking_menu-unitselectmenucontent_2-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/cooking_menu/unitselectmenucontent_2/UnitSelectMenuContent_2.md"))]
20    #[::unity::class(namespace = "App.CookingMenu", name = "UnitSelectMenuContent")]
21    #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22    pub struct UnitSelectMenuContent_2 {
23        #[offset(232)]
24        #[rename(name = "m_RelianceContent")]
25        pub m_reliance_content: crate::app::eatunitsselectmenureliancecontent::EatUnitsSelectMenuRelianceContent,
26        #[offset(240)]
27        #[rename(name = "m_winSubAnimatorList")]
28        pub m_win_sub_animator_list: crate::system::collections::generic::list_1::List_1<crate::unity_engine::animator::Animator>,
29        #[offset(248)]
30        #[rename(name = "m_FriendText")]
31        pub m_friend_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
32        #[offset(256)]
33        #[rename(name = "m_RelianceText")]
34        pub m_reliance_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
35    }
36}
37
38#[cfg(feature = "app-cooking_menu-unitselectmenucontent_2-types")]
39pub use __types::*;
40
41#[cfg(feature = "app-cooking_menu-unitselectmenucontent_2")]
42pub trait IUnitSelectMenuContent_2Methods: IUnitSelectMenuContent_2 {
43    #[doc = "`CalcW()` overload"]
44    fn calc_w(self) -> f32 {
45        unsafe {
46            let __receiver =
47                <UnitSelectMenuContent_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48            {
49                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
50                let __vi = *__vt.get(21usize).unwrap_or_else(|| {
51                    panic!(
52                        "unity: virtual slot {}
53 out of range (vtable len {}
54) on the runtime class behind {}
55 (method `{}
56`)",
57                        21usize,
58                        __vt.len(),
59                        <UnitSelectMenuContent_2 as ::unity::ClassIdentity>::NAME,
60                        "CalcW",
61                    )
62                });
63                let __inner: extern "C" fn(UnitSelectMenuContent_2, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
64                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
65                __inner(__receiver, __mi)
66            }
67        }
68    }
69    #[doc = "`AfterBuild()` overload"]
70    fn after_build(self) -> () {
71        unsafe {
72            let __receiver =
73                <UnitSelectMenuContent_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74            {
75                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
76                let __vi = *__vt.get(27usize).unwrap_or_else(|| {
77                    panic!(
78                        "unity: virtual slot {}
79 out of range (vtable len {}
80) on the runtime class behind {}
81 (method `{}
82`)",
83                        27usize,
84                        __vt.len(),
85                        <UnitSelectMenuContent_2 as ::unity::ClassIdentity>::NAME,
86                        "AfterBuild",
87                    )
88                });
89                let __inner: extern "C" fn(UnitSelectMenuContent_2, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
90                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
91                __inner(__receiver, __mi)
92            }
93        }
94    }
95    #[doc = "`CalcCursorMovedPosY(i32)` overload"]
96    fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
97        unsafe {
98            let __receiver =
99                <UnitSelectMenuContent_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100            {
101                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
102                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
103                    panic!(
104                        "unity: virtual slot {}
105 out of range (vtable len {}
106) on the runtime class behind {}
107 (method `{}
108`)",
109                        10usize,
110                        __vt.len(),
111                        <UnitSelectMenuContent_2 as ::unity::ClassIdentity>::NAME,
112                        "CalcCursorMovedPosY",
113                    )
114                });
115                let __inner: extern "C" fn(UnitSelectMenuContent_2, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
116                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
117                __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
118            }
119        }
120    }
121    #[doc = "`Awake()` overload"]
122    fn awake(self) -> () {
123        unsafe {
124            let __receiver =
125                <UnitSelectMenuContent_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126            {
127                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
128                let __vi = *__vt.get(30usize).unwrap_or_else(|| {
129                    panic!(
130                        "unity: virtual slot {}
131 out of range (vtable len {}
132) on the runtime class behind {}
133 (method `{}
134`)",
135                        30usize,
136                        __vt.len(),
137                        <UnitSelectMenuContent_2 as ::unity::ClassIdentity>::NAME,
138                        "Awake",
139                    )
140                });
141                let __inner: extern "C" fn(UnitSelectMenuContent_2, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
142                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
143                __inner(__receiver, __mi)
144            }
145        }
146    }
147    #[doc = "`SetReliance(crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>, crate::app::unit::Unit)` overload"]
148    fn set_reliance(
149        self,
150        select_unit_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>>,
151        now_cursor_unit: impl ::core::convert::Into<crate::app::unit::Unit>,
152    ) -> () {
153        unsafe {
154            let __receiver =
155                <UnitSelectMenuContent_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
156            ::unity::il2cpp_call!((::unity::module_base()+0x1c5eb50usize)as*mut u8,();
157(UnitSelectMenuContent_2)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>)::core::convert::Into::into(select_unit_list),(crate::app::unit::Unit)::core::convert::Into::into(now_cursor_unit))
158        }
159    }
160    #[doc = "`OnClose()` overload"]
161    fn on_close(self) -> () {
162        unsafe {
163            let __receiver =
164                <UnitSelectMenuContent_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
165            ::unity::il2cpp_call!((::unity::module_base()+0x1c5f470usize)as*mut u8,();
166(UnitSelectMenuContent_2)__receiver)
167        }
168    }
169    #[doc = "`.ctor()` overload"]
170    fn ctor(self) -> () {
171        unsafe {
172            let __receiver =
173                <UnitSelectMenuContent_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
174            ::unity::il2cpp_call!((::unity::module_base()+0x1c5fd00usize)as*mut u8,();
175(UnitSelectMenuContent_2)__receiver)
176        }
177    }
178}
179
180#[cfg(feature = "app-cooking_menu-unitselectmenucontent_2")]
181impl<__T: IUnitSelectMenuContent_2> IUnitSelectMenuContent_2Methods for __T {}
182
183#[cfg(feature = "app-cooking_menu-unitselectmenucontent_2")]
184impl UnitSelectMenuContent_2 {
185    pub fn calc_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
186        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
187    }
188
189    pub fn after_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
191    }
192
193    pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
195    }
196
197    pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
199    }
200
201    pub fn set_reliance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
203    }
204
205    pub fn on_close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
206        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
207    }
208
209    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
210        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
211    }
212}
213
214#[cfg(feature = "app-cooking_menu-unitselectmenucontent_2")]
215impl UnitSelectMenuContent_2 {
216    #[doc = "Direct (non-virtual) call to `UnitSelectMenuContent_2`'s own `CalcW`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
217    pub unsafe fn calc_w(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
218        let __mi = Self::calc_w_method_info();
219        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
220        __inner(this.into(), ::core::option::Option::None)
221    }
222
223    #[doc = "Direct (non-virtual) call to `UnitSelectMenuContent_2`'s own `AfterBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
224    pub unsafe fn after_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
225        let __mi = Self::after_build_method_info();
226        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
227        __inner(this.into(), ::core::option::Option::None)
228    }
229
230    #[doc = "Direct (non-virtual) call to `UnitSelectMenuContent_2`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
231    pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
232        let __mi = Self::calc_cursor_moved_pos_y_method_info();
233        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
234        __inner(this.into(), menu_item_index, ::core::option::Option::None)
235    }
236
237    #[doc = "Direct (non-virtual) call to `UnitSelectMenuContent_2`'s own `Awake`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
238    pub unsafe fn awake(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
239        let __mi = Self::awake_method_info();
240        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
241        __inner(this.into(), ::core::option::Option::None)
242    }
243}
244
245#[cfg(feature = "app-cooking_menu-unitselectmenucontent_2")]
246impl UnitSelectMenuContent_2 {
247    #[doc = "`.ctor()` — no args"]
248    pub fn new() -> Self {
249        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
250            panic!(
251                "{}
252::{}
253 failed to instantiate",
254                ::core::stringify!(UnitSelectMenuContent_2),
255                ::core::stringify!(new),
256            )
257        });
258        <Self as IUnitSelectMenuContent_2Methods>::ctor(this);
259        this
260    }
261}
262
263#[cfg(feature = "app-cooking_menu-unitselectmenucontent_2")]
264#[doc(hidden)]
265pub mod prelude {
266    pub use super::{IUnitSelectMenuContent_2, IUnitSelectMenuContent_2Methods, UnitSelectMenuContent_2};
267    #[cfg(feature = "app-basicmenucontent")]
268    pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
269    #[cfg(feature = "system-object")]
270    pub use crate::system::object::IObjectMethods;
271    #[cfg(feature = "unity_engine-behaviour")]
272    pub use crate::unity_engine::behaviour::IBehaviourMethods;
273    #[cfg(feature = "unity_engine-component")]
274    pub use crate::unity_engine::component::IComponentMethods;
275    #[cfg(feature = "unity_engine-monobehaviour")]
276    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
277    #[cfg(feature = "unity_engine-object_2")]
278    pub use crate::unity_engine::object_2::IObject_2Methods;
279    pub use crate::{
280        app::basicmenucontent::IBasicMenuContent,
281        system::object::IObject,
282        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
283    };
284}