1#[cfg(feature = "app-refineshopexchangetargetmenucontent-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/refineshopexchangetargetmenucontent/RefineShopExchangeTargetMenuContent.md"))]
20 #[::unity::class(namespace = "App", name = "RefineShopExchangeTargetMenuContent")]
21 #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22 pub struct RefineShopExchangeTargetMenuContent {
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_NoticeText")]
28 pub m_notice_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
29 }
30}
31
32#[cfg(feature = "app-refineshopexchangetargetmenucontent-types")]
33pub use __types::*;
34
35#[cfg(feature = "app-refineshopexchangetargetmenucontent")]
36pub trait IRefineShopExchangeTargetMenuContentMethods: IRefineShopExchangeTargetMenuContent {
37 #[doc = "`Start()` overload"]
38 fn start(self) -> () {
39 unsafe {
40 let __receiver = <RefineShopExchangeTargetMenuContent as ::unity::FromIlInstance>::from_il_instance(
41 <Self as ::unity::SystemObject>::as_instance(self),
42 );
43 {
44 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
45 let __vi = *__vt.get(31usize).unwrap_or_else(|| {
46 panic!(
47 "unity: virtual slot {}
48 out of range (vtable len {}
49) on the runtime class behind {}
50 (method `{}
51`)",
52 31usize,
53 __vt.len(),
54 <RefineShopExchangeTargetMenuContent as ::unity::ClassIdentity>::NAME,
55 "Start",
56 )
57 });
58 let __inner: extern "C" fn(RefineShopExchangeTargetMenuContent, ::unity::OptionalMethod) -> () =
59 ::core::mem::transmute(__vi.method_ptr);
60 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
61 __inner(__receiver, __mi)
62 }
63 }
64 }
65 #[doc = "`GetMenuItemContentMax()` overload"]
66 fn get_menu_item_content_max(self) -> i32 {
67 unsafe {
68 let __receiver = <RefineShopExchangeTargetMenuContent as ::unity::FromIlInstance>::from_il_instance(
69 <Self as ::unity::SystemObject>::as_instance(self),
70 );
71 {
72 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
73 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
74 panic!(
75 "unity: virtual slot {}
76 out of range (vtable len {}
77) on the runtime class behind {}
78 (method `{}
79`)",
80 4usize,
81 __vt.len(),
82 <RefineShopExchangeTargetMenuContent as ::unity::ClassIdentity>::NAME,
83 "GetMenuItemContentMax",
84 )
85 });
86 let __inner: extern "C" fn(RefineShopExchangeTargetMenuContent, ::unity::OptionalMethod) -> i32 =
87 ::core::mem::transmute(__vi.method_ptr);
88 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
89 __inner(__receiver, __mi)
90 }
91 }
92 }
93 #[doc = "`CalcCursorMovedPosY(i32)` overload"]
94 fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
95 unsafe {
96 let __receiver = <RefineShopExchangeTargetMenuContent as ::unity::FromIlInstance>::from_il_instance(
97 <Self as ::unity::SystemObject>::as_instance(self),
98 );
99 {
100 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
101 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
102 panic!(
103 "unity: virtual slot {}
104 out of range (vtable len {}
105) on the runtime class behind {}
106 (method `{}
107`)",
108 10usize,
109 __vt.len(),
110 <RefineShopExchangeTargetMenuContent as ::unity::ClassIdentity>::NAME,
111 "CalcCursorMovedPosY",
112 )
113 });
114 let __inner: extern "C" fn(RefineShopExchangeTargetMenuContent, i32, ::unity::OptionalMethod) -> f32 =
115 ::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 = "`CalcW()` overload"]
122 fn calc_w(self) -> f32 {
123 unsafe {
124 let __receiver = <RefineShopExchangeTargetMenuContent as ::unity::FromIlInstance>::from_il_instance(
125 <Self as ::unity::SystemObject>::as_instance(self),
126 );
127 {
128 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
129 let __vi = *__vt.get(21usize).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 21usize,
137 __vt.len(),
138 <RefineShopExchangeTargetMenuContent as ::unity::ClassIdentity>::NAME,
139 "CalcW",
140 )
141 });
142 let __inner: extern "C" fn(RefineShopExchangeTargetMenuContent, ::unity::OptionalMethod) -> f32 =
143 ::core::mem::transmute(__vi.method_ptr);
144 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
145 __inner(__receiver, __mi)
146 }
147 }
148 }
149 #[doc = "`CalcH()` overload"]
150 fn calc_h(self) -> f32 {
151 unsafe {
152 let __receiver = <RefineShopExchangeTargetMenuContent as ::unity::FromIlInstance>::from_il_instance(
153 <Self as ::unity::SystemObject>::as_instance(self),
154 );
155 {
156 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
157 let __vi = *__vt.get(22usize).unwrap_or_else(|| {
158 panic!(
159 "unity: virtual slot {}
160 out of range (vtable len {}
161) on the runtime class behind {}
162 (method `{}
163`)",
164 22usize,
165 __vt.len(),
166 <RefineShopExchangeTargetMenuContent as ::unity::ClassIdentity>::NAME,
167 "CalcH",
168 )
169 });
170 let __inner: extern "C" fn(RefineShopExchangeTargetMenuContent, ::unity::OptionalMethod) -> f32 =
171 ::core::mem::transmute(__vi.method_ptr);
172 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
173 __inner(__receiver, __mi)
174 }
175 }
176 }
177 #[doc = "`Open()` overload"]
178 fn open(self) -> () {
179 unsafe {
180 let __receiver = <RefineShopExchangeTargetMenuContent as ::unity::FromIlInstance>::from_il_instance(
181 <Self as ::unity::SystemObject>::as_instance(self),
182 );
183 ::unity::il2cpp_call!((::unity::module_base()+0x2965580usize)as*mut u8,();
184(RefineShopExchangeTargetMenuContent)__receiver)
185 }
186 }
187 #[doc = "`UpdateContent()` overload"]
188 fn update_content(self) -> () {
189 unsafe {
190 let __receiver = <RefineShopExchangeTargetMenuContent as ::unity::FromIlInstance>::from_il_instance(
191 <Self as ::unity::SystemObject>::as_instance(self),
192 );
193 ::unity::il2cpp_call!((::unity::module_base()+0x29657f0usize)as*mut u8,();
194(RefineShopExchangeTargetMenuContent)__receiver)
195 }
196 }
197 #[doc = "`.ctor()` overload"]
198 fn ctor(self) -> () {
199 unsafe {
200 let __receiver = <RefineShopExchangeTargetMenuContent as ::unity::FromIlInstance>::from_il_instance(
201 <Self as ::unity::SystemObject>::as_instance(self),
202 );
203 ::unity::il2cpp_call!((::unity::module_base()+0x2965e50usize)as*mut u8,();
204(RefineShopExchangeTargetMenuContent)__receiver)
205 }
206 }
207}
208
209#[cfg(feature = "app-refineshopexchangetargetmenucontent")]
210impl<__T: IRefineShopExchangeTargetMenuContent> IRefineShopExchangeTargetMenuContentMethods for __T {}
211
212#[cfg(feature = "app-refineshopexchangetargetmenucontent")]
213impl RefineShopExchangeTargetMenuContent {
214 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
216 }
217
218 pub fn get_menu_item_content_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
220 }
221
222 pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
224 }
225
226 pub fn calc_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
227 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
228 }
229
230 pub fn calc_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
232 }
233
234 pub fn open_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
236 }
237
238 pub fn update_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
240 }
241
242 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
244 }
245}
246
247#[cfg(feature = "app-refineshopexchangetargetmenucontent")]
248impl RefineShopExchangeTargetMenuContent {
249 #[doc = "Direct (non-virtual) call to `RefineShopExchangeTargetMenuContent`'s own `Start`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
250 pub unsafe fn start(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
251 let __mi = Self::start_method_info();
252 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
253 __inner(this.into(), ::core::option::Option::None)
254 }
255
256 #[doc = "Direct (non-virtual) call to `RefineShopExchangeTargetMenuContent`'s own `GetMenuItemContentMax`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
257 pub unsafe fn get_menu_item_content_max(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
258 let __mi = Self::get_menu_item_content_max_method_info();
259 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
260 __inner(this.into(), ::core::option::Option::None)
261 }
262
263 #[doc = "Direct (non-virtual) call to `RefineShopExchangeTargetMenuContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
264 pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
265 let __mi = Self::calc_cursor_moved_pos_y_method_info();
266 let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
267 __inner(this.into(), menu_item_index, ::core::option::Option::None)
268 }
269
270 #[doc = "Direct (non-virtual) call to `RefineShopExchangeTargetMenuContent`'s own `CalcW`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
271 pub unsafe fn calc_w(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
272 let __mi = Self::calc_w_method_info();
273 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
274 __inner(this.into(), ::core::option::Option::None)
275 }
276
277 #[doc = "Direct (non-virtual) call to `RefineShopExchangeTargetMenuContent`'s own `CalcH`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
278 pub unsafe fn calc_h(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
279 let __mi = Self::calc_h_method_info();
280 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
281 __inner(this.into(), ::core::option::Option::None)
282 }
283}
284
285#[cfg(feature = "app-refineshopexchangetargetmenucontent")]
286impl RefineShopExchangeTargetMenuContent {
287 #[doc = "`.ctor()` — no args"]
288 pub fn new() -> Self {
289 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
290 panic!(
291 "{}
292::{}
293 failed to instantiate",
294 ::core::stringify!(RefineShopExchangeTargetMenuContent),
295 ::core::stringify!(new),
296 )
297 });
298 <Self as IRefineShopExchangeTargetMenuContentMethods>::ctor(this);
299 this
300 }
301}
302
303#[cfg(feature = "app-refineshopexchangetargetmenucontent")]
304#[doc(hidden)]
305pub mod prelude {
306 pub use super::{IRefineShopExchangeTargetMenuContent, IRefineShopExchangeTargetMenuContentMethods, RefineShopExchangeTargetMenuContent};
307 #[cfg(feature = "app-basicmenucontent")]
308 pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
309 #[cfg(feature = "system-object")]
310 pub use crate::system::object::IObjectMethods;
311 #[cfg(feature = "unity_engine-behaviour")]
312 pub use crate::unity_engine::behaviour::IBehaviourMethods;
313 #[cfg(feature = "unity_engine-component")]
314 pub use crate::unity_engine::component::IComponentMethods;
315 #[cfg(feature = "unity_engine-monobehaviour")]
316 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
317 #[cfg(feature = "unity_engine-object_2")]
318 pub use crate::unity_engine::object_2::IObject_2Methods;
319 pub use crate::{
320 app::basicmenucontent::IBasicMenuContent,
321 system::object::IObject,
322 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
323 };
324}