Skip to main content

engage/generated/app/
refreshunitselectmenucontent.rs

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