1#[cfg(feature = "app-mascotaccchangecontent-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/mascotaccchangecontent/MascotAccChangeContent.md"))]
20 #[::unity::class(namespace = "App", name = "MascotAccChangeContent")]
21 #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22 pub struct MascotAccChangeContent {
23 #[static_field]
24 #[rename(name = "PrefabPath")]
25 pub prefab_path: ::unity::Il2CppString,
26 #[static_field]
27 #[rename(name = "UIName")]
28 pub ui_name: ::unity::Il2CppString,
29 #[offset(232)]
30 #[rename(name = "m_category1")]
31 pub m_category1: crate::unity_engine::gameobject::GameObject,
32 #[offset(240)]
33 #[rename(name = "m_category2")]
34 pub m_category2: crate::unity_engine::gameobject::GameObject,
35 #[offset(248)]
36 #[rename(name = "m_content1")]
37 pub m_content1: crate::unity_engine::gameobject::GameObject,
38 #[offset(256)]
39 #[rename(name = "m_content2")]
40 pub m_content2: crate::unity_engine::gameobject::GameObject,
41 #[offset(264)]
42 #[rename(name = "m_exchangeCursor")]
43 pub m_exchange_cursor: crate::unity_engine::gameobject::GameObject,
44 #[offset(272)]
45 #[rename(name = "m_ChoiceAcc")]
46 pub m_choice_acc: crate::unity_engine::gameobject::GameObject,
47 #[offset(280)]
48 #[rename(name = "m_AccName")]
49 pub m_acc_name: crate::unity_engine::gameobject::GameObject,
50 #[offset(288)]
51 #[rename(name = "m_AccIcon")]
52 pub m_acc_icon: crate::unity_engine::gameobject::GameObject,
53 #[offset(296)]
54 #[rename(name = "m_AccParts")]
55 pub m_acc_parts: crate::unity_engine::gameobject::GameObject,
56 #[offset(304)]
57 #[rename(name = "m_AccHelp")]
58 pub m_acc_help: crate::unity_engine::gameobject::GameObject,
59 }
60}
61
62#[cfg(feature = "app-mascotaccchangecontent-types")]
63pub use __types::*;
64
65#[cfg(feature = "app-mascotaccchangecontent")]
66impl MascotAccChangeContent {
67 #[doc = "`LoadPrefabAsync()` overload"]
68 pub fn load_prefab_async() -> () {
69 unsafe {
70 ::unity::il2cpp_call!((::unity::module_base()+0x202ec60usize)as*mut u8,();
71 )
72 }
73 }
74
75 #[doc = "`IsLoadingPrefab()` overload"]
76 pub fn is_loading_prefab() -> bool {
77 unsafe {
78 ::unity::il2cpp_call!((::unity::module_base()+0x202ed00usize)as*mut u8,bool;
79 )
80 }
81 }
82
83 #[doc = "`UnloadPrefab()` overload"]
84 pub fn unload_prefab() -> () {
85 unsafe {
86 ::unity::il2cpp_call!((::unity::module_base()+0x202ed80usize)as*mut u8,();
87 )
88 }
89 }
90
91 #[doc = "`Create()` overload"]
92 pub fn create() -> crate::app::mascotaccchangecontent::MascotAccChangeContent {
93 unsafe {
94 ::unity::il2cpp_call!((::unity::module_base()+0x202ee00usize)as*mut u8,crate::app::mascotaccchangecontent::MascotAccChangeContent;
95 )
96 }
97 }
98
99 #[doc = "`Destroy()` overload"]
100 pub fn destroy() -> () {
101 unsafe {
102 ::unity::il2cpp_call!((::unity::module_base()+0x202eed0usize)as*mut u8,();
103 )
104 }
105 }
106}
107
108#[cfg(feature = "app-mascotaccchangecontent")]
109pub trait IMascotAccChangeContentMethods: IMascotAccChangeContent {
110 #[doc = "`SetActiveParts(crate::app::mascotaccdata::MascotAccData_PartsType)` overload"]
111 fn set_active_parts(self, r#type: impl ::core::convert::Into<crate::app::mascotaccdata::MascotAccData_PartsType>) -> () {
112 unsafe {
113 let __receiver =
114 <MascotAccChangeContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115 ::unity::il2cpp_call!((::unity::module_base()+0x202ef60usize)as*mut u8,();
116(MascotAccChangeContent)__receiver,(crate::app::mascotaccdata::MascotAccData_PartsType)::core::convert::Into::into(r#type))
117 }
118 }
119 #[doc = "`SetHelpText(crate::app::mascotaccdata::MascotAccData, crate::app::accessorydata::AccessoryData)` overload"]
120 fn set_help_text(
121 self,
122 mascot_data: impl ::core::convert::Into<crate::app::mascotaccdata::MascotAccData>,
123 acc_data: impl ::core::convert::Into<crate::app::accessorydata::AccessoryData>,
124 ) -> () {
125 unsafe {
126 let __receiver =
127 <MascotAccChangeContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128 ::unity::il2cpp_call!((::unity::module_base()+0x202f1d0usize)as*mut u8,();
129(MascotAccChangeContent)__receiver,(crate::app::mascotaccdata::MascotAccData)::core::convert::Into::into(mascot_data),(crate::app::accessorydata::AccessoryData)::core::convert::Into::into(acc_data))
130 }
131 }
132 #[doc = "`UpdateEquipText(crate::tm_pro::textmeshprougui::TextMeshProUGUI, ::unity::Il2CppString)` overload"]
133 fn update_equip_text(
134 self,
135 text: impl ::core::convert::Into<crate::tm_pro::textmeshprougui::TextMeshProUGUI>,
136 aid: impl ::core::convert::Into<::unity::Il2CppString>,
137 ) -> () {
138 unsafe {
139 let __receiver =
140 <MascotAccChangeContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141 ::unity::il2cpp_call!((::unity::module_base()+0x202f420usize)as*mut u8,();
142(MascotAccChangeContent)__receiver,(crate::tm_pro::textmeshprougui::TextMeshProUGUI)::core::convert::Into::into(text),(::unity::Il2CppString)::core::convert::Into::into(aid))
143 }
144 }
145 #[doc = "`UpdateEquipAcc()` overload"]
146 fn update_equip_acc(self) -> () {
147 unsafe {
148 let __receiver =
149 <MascotAccChangeContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150 ::unity::il2cpp_call!((::unity::module_base()+0x202f660usize)as*mut u8,();
151(MascotAccChangeContent)__receiver)
152 }
153 }
154 #[doc = "`AfterBuild()` overload"]
155 fn after_build(self) -> () {
156 unsafe {
157 let __receiver =
158 <MascotAccChangeContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159 {
160 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
161 let __vi = *__vt.get(27usize).unwrap_or_else(|| {
162 panic!(
163 "unity: virtual slot {}
164 out of range (vtable len {}
165) on the runtime class behind {}
166 (method `{}
167`)",
168 27usize,
169 __vt.len(),
170 <MascotAccChangeContent as ::unity::ClassIdentity>::NAME,
171 "AfterBuild",
172 )
173 });
174 let __inner: extern "C" fn(MascotAccChangeContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
175 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
176 __inner(__receiver, __mi)
177 }
178 }
179 }
180 #[doc = "`GetMenuItemContentMax()` overload"]
181 fn get_menu_item_content_max(self) -> i32 {
182 unsafe {
183 let __receiver =
184 <MascotAccChangeContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
185 {
186 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
187 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
188 panic!(
189 "unity: virtual slot {}
190 out of range (vtable len {}
191) on the runtime class behind {}
192 (method `{}
193`)",
194 4usize,
195 __vt.len(),
196 <MascotAccChangeContent as ::unity::ClassIdentity>::NAME,
197 "GetMenuItemContentMax",
198 )
199 });
200 let __inner: extern "C" fn(MascotAccChangeContent, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
201 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
202 __inner(__receiver, __mi)
203 }
204 }
205 }
206 #[doc = "`CalcW()` overload"]
207 fn calc_w(self) -> f32 {
208 unsafe {
209 let __receiver =
210 <MascotAccChangeContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
211 {
212 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
213 let __vi = *__vt.get(21usize).unwrap_or_else(|| {
214 panic!(
215 "unity: virtual slot {}
216 out of range (vtable len {}
217) on the runtime class behind {}
218 (method `{}
219`)",
220 21usize,
221 __vt.len(),
222 <MascotAccChangeContent as ::unity::ClassIdentity>::NAME,
223 "CalcW",
224 )
225 });
226 let __inner: extern "C" fn(MascotAccChangeContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
227 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
228 __inner(__receiver, __mi)
229 }
230 }
231 }
232 #[doc = "`CalcH()` overload"]
233 fn calc_h(self) -> f32 {
234 unsafe {
235 let __receiver =
236 <MascotAccChangeContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
237 {
238 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
239 let __vi = *__vt.get(22usize).unwrap_or_else(|| {
240 panic!(
241 "unity: virtual slot {}
242 out of range (vtable len {}
243) on the runtime class behind {}
244 (method `{}
245`)",
246 22usize,
247 __vt.len(),
248 <MascotAccChangeContent as ::unity::ClassIdentity>::NAME,
249 "CalcH",
250 )
251 });
252 let __inner: extern "C" fn(MascotAccChangeContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
253 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
254 __inner(__receiver, __mi)
255 }
256 }
257 }
258 #[doc = "`CalcCursorMovedPosY(i32)` overload"]
259 fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
260 unsafe {
261 let __receiver =
262 <MascotAccChangeContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
263 {
264 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
265 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
266 panic!(
267 "unity: virtual slot {}
268 out of range (vtable len {}
269) on the runtime class behind {}
270 (method `{}
271`)",
272 10usize,
273 __vt.len(),
274 <MascotAccChangeContent as ::unity::ClassIdentity>::NAME,
275 "CalcCursorMovedPosY",
276 )
277 });
278 let __inner: extern "C" fn(MascotAccChangeContent, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
279 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
280 __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
281 }
282 }
283 }
284 #[doc = "`Awake()` overload"]
285 fn awake(self) -> () {
286 unsafe {
287 let __receiver =
288 <MascotAccChangeContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
289 {
290 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
291 let __vi = *__vt.get(30usize).unwrap_or_else(|| {
292 panic!(
293 "unity: virtual slot {}
294 out of range (vtable len {}
295) on the runtime class behind {}
296 (method `{}
297`)",
298 30usize,
299 __vt.len(),
300 <MascotAccChangeContent as ::unity::ClassIdentity>::NAME,
301 "Awake",
302 )
303 });
304 let __inner: extern "C" fn(MascotAccChangeContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
305 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
306 __inner(__receiver, __mi)
307 }
308 }
309 }
310 #[doc = "`.ctor()` overload"]
311 fn ctor(self) -> () {
312 unsafe {
313 let __receiver =
314 <MascotAccChangeContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
315 ::unity::il2cpp_call!((::unity::module_base()+0x202fdb0usize)as*mut u8,();
316(MascotAccChangeContent)__receiver)
317 }
318 }
319}
320
321#[cfg(feature = "app-mascotaccchangecontent")]
322impl<__T: IMascotAccChangeContent> IMascotAccChangeContentMethods for __T {}
323
324#[cfg(feature = "app-mascotaccchangecontent")]
325impl MascotAccChangeContent {
326 pub fn load_prefab_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
327 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
328 }
329
330 pub fn is_loading_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
331 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
332 }
333
334 pub fn unload_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
335 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
336 }
337
338 pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
339 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
340 }
341
342 pub fn destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
343 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
344 }
345
346 pub fn set_active_parts_method_info() -> &'static ::unity::il2cpp::MethodInfo {
347 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
348 }
349
350 pub fn set_help_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
351 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
352 }
353
354 pub fn update_equip_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
355 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
356 }
357
358 pub fn update_equip_acc_method_info() -> &'static ::unity::il2cpp::MethodInfo {
359 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
360 }
361
362 pub fn after_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
363 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
364 }
365
366 pub fn get_menu_item_content_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
367 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
368 }
369
370 pub fn calc_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
371 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
372 }
373
374 pub fn calc_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
375 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
376 }
377
378 pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
379 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
380 }
381
382 pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
383 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
384 }
385
386 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
387 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
388 }
389}
390
391#[cfg(feature = "app-mascotaccchangecontent")]
392impl MascotAccChangeContent {
393 #[doc = "Direct (non-virtual) call to `MascotAccChangeContent`'s own `AfterBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
394 pub unsafe fn after_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
395 let __mi = Self::after_build_method_info();
396 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
397 __inner(this.into(), ::core::option::Option::None)
398 }
399
400 #[doc = "Direct (non-virtual) call to `MascotAccChangeContent`'s own `GetMenuItemContentMax`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
401 pub unsafe fn get_menu_item_content_max(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
402 let __mi = Self::get_menu_item_content_max_method_info();
403 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
404 __inner(this.into(), ::core::option::Option::None)
405 }
406
407 #[doc = "Direct (non-virtual) call to `MascotAccChangeContent`'s own `CalcW`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
408 pub unsafe fn calc_w(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
409 let __mi = Self::calc_w_method_info();
410 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
411 __inner(this.into(), ::core::option::Option::None)
412 }
413
414 #[doc = "Direct (non-virtual) call to `MascotAccChangeContent`'s own `CalcH`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
415 pub unsafe fn calc_h(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
416 let __mi = Self::calc_h_method_info();
417 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
418 __inner(this.into(), ::core::option::Option::None)
419 }
420
421 #[doc = "Direct (non-virtual) call to `MascotAccChangeContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
422 pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
423 let __mi = Self::calc_cursor_moved_pos_y_method_info();
424 let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
425 __inner(this.into(), menu_item_index, ::core::option::Option::None)
426 }
427
428 #[doc = "Direct (non-virtual) call to `MascotAccChangeContent`'s own `Awake`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
429 pub unsafe fn awake(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
430 let __mi = Self::awake_method_info();
431 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
432 __inner(this.into(), ::core::option::Option::None)
433 }
434}
435
436#[cfg(feature = "app-mascotaccchangecontent")]
437impl MascotAccChangeContent {
438 #[doc = "`.ctor()` — no args"]
439 pub fn new() -> Self {
440 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
441 panic!(
442 "{}
443::{}
444 failed to instantiate",
445 ::core::stringify!(MascotAccChangeContent),
446 ::core::stringify!(new),
447 )
448 });
449 <Self as IMascotAccChangeContentMethods>::ctor(this);
450 this
451 }
452}
453
454#[cfg(feature = "app-mascotaccchangecontent")]
455#[doc(hidden)]
456pub mod prelude {
457 pub use super::{IMascotAccChangeContent, IMascotAccChangeContentMethods, MascotAccChangeContent};
458 #[cfg(feature = "app-basicmenucontent")]
459 pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
460 #[cfg(feature = "system-object")]
461 pub use crate::system::object::IObjectMethods;
462 #[cfg(feature = "unity_engine-behaviour")]
463 pub use crate::unity_engine::behaviour::IBehaviourMethods;
464 #[cfg(feature = "unity_engine-component")]
465 pub use crate::unity_engine::component::IComponentMethods;
466 #[cfg(feature = "unity_engine-monobehaviour")]
467 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
468 #[cfg(feature = "unity_engine-object_2")]
469 pub use crate::unity_engine::object_2::IObject_2Methods;
470 pub use crate::{
471 app::basicmenucontent::IBasicMenuContent,
472 system::object::IObject,
473 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
474 };
475}