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