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