Skip to main content

engage/generated/app/
fishingpictureitem.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-fishingpictureitem-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::basicmenuitem::{BasicMenuItem, IBasicMenuItem},
10        system::{
11            object::{IObject, Object},
12            r#enum::{Enum, IEnum},
13            valuetype::{IValueType, ValueType},
14        },
15    };
16
17    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/fishingpictureitem/FishingPictureItem_SpriteKind.md"))]
18    #[repr(C)]
19    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
20    pub struct FishingPictureItem_SpriteKind {
21        pub value: i32,
22    }
23    impl ::unity::ClassIdentity for FishingPictureItem_SpriteKind {
24        const NAME: &'static str = "FishingPictureItem.SpriteKind";
25        const NAMESPACE: &'static str = "App";
26
27        fn class() -> ::unity::Class {
28            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
29            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
30        }
31    }
32    impl ::unity::IlType for FishingPictureItem_SpriteKind {
33        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
34            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
35        }
36    }
37    impl FishingPictureItem_SpriteKind {
38        pub fn size() -> Self {
39            Self { value: 0 }
40        }
41
42        pub fn gyotaku() -> Self {
43            Self { value: 1 }
44        }
45
46        pub fn unknown() -> Self {
47            Self { value: 2 }
48        }
49    }
50
51    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/fishingpictureitem/FishingPictureItem.md"))]
52    #[::unity::class(namespace = "App", name = "FishingPictureItem")]
53    #[parent(crate::app::basicmenuitem::BasicMenuItem)]
54    pub struct FishingPictureItem {
55        #[static_field]
56        #[rename(name = "cTextureAtlasPath")]
57        pub c_texture_atlas_path: ::unity::Il2CppString,
58        #[static_field]
59        #[rename(name = "cTextureRankLarge")]
60        pub c_texture_rank_large: ::unity::Il2CppString,
61        #[static_field]
62        #[rename(name = "cTextureRankMiddle")]
63        pub c_texture_rank_middle: ::unity::Il2CppString,
64        #[static_field]
65        #[rename(name = "cTextureRankSmall")]
66        pub c_texture_rank_small: ::unity::Il2CppString,
67        #[static_field]
68        #[rename(name = "cTextureGyotakuLarge")]
69        pub c_texture_gyotaku_large: ::unity::Il2CppString,
70        #[static_field]
71        #[rename(name = "cTextureGyotakuMiddle")]
72        pub c_texture_gyotaku_middle: ::unity::Il2CppString,
73        #[static_field]
74        #[rename(name = "cTextureGyotakuSmall")]
75        pub c_texture_gyotaku_small: ::unity::Il2CppString,
76        #[offset(104)]
77        #[rename(name = "cTextureGyotakuList")]
78        pub c_texture_gyotaku_list: ::unity::Array<::unity::Il2CppString>,
79        #[offset(112)]
80        #[rename(name = "m_InfoWindow")]
81        pub m_info_window: crate::unity_engine::transform::Transform,
82        #[offset(120)]
83        #[rename(name = "m_Gyotaku")]
84        pub m_gyotaku: crate::unity_engine::transform::Transform,
85        #[offset(128)]
86        #[rename(name = "m_FishData")]
87        pub m_fish_data: crate::app::fishingfishdata::FishingFishData,
88        #[offset(136)]
89        #[rename(name = "m_Sprites")]
90        pub m_sprites: ::unity::Array<crate::unity_engine::sprite::Sprite>,
91    }
92}
93
94#[cfg(feature = "app-fishingpictureitem-types")]
95pub use __types::*;
96
97#[cfg(feature = "app-fishingpictureitem")]
98pub trait IFishingPictureItemMethods: IFishingPictureItem {
99    #[doc = "`get_FishSize()` overload"]
100    fn get_fish_size(self) -> i32 {
101        unsafe {
102            let __receiver = <FishingPictureItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103            ::unity::il2cpp_call!((::unity::module_base()+0x2604d90usize)as*mut u8,i32;
104(FishingPictureItem)__receiver)
105        }
106    }
107    #[doc = "`set_FishSize(i32)` overload"]
108    fn set_fish_size(self, value: impl ::core::convert::Into<i32>) -> () {
109        unsafe {
110            let __receiver = <FishingPictureItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111            ::unity::il2cpp_call!((::unity::module_base()+0x2604da0usize)as*mut u8,();
112(FishingPictureItem)__receiver,(i32)::core::convert::Into::into(value))
113        }
114    }
115    #[doc = "`get_IsCrown()` overload"]
116    fn get_is_crown(self) -> bool {
117        unsafe {
118            let __receiver = <FishingPictureItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
119            ::unity::il2cpp_call!((::unity::module_base()+0x2604db0usize)as*mut u8,bool;
120(FishingPictureItem)__receiver)
121        }
122    }
123    #[doc = "`set_IsCrown(bool)` overload"]
124    fn set_is_crown(self, value: impl ::core::convert::Into<bool>) -> () {
125        unsafe {
126            let __receiver = <FishingPictureItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127            ::unity::il2cpp_call!((::unity::module_base()+0x2604dc0usize)as*mut u8,();
128(FishingPictureItem)__receiver,(bool)::core::convert::Into::into(value))
129        }
130    }
131    #[doc = "`get_IsUnknown()` overload"]
132    fn get_is_unknown(self) -> bool {
133        unsafe {
134            let __receiver = <FishingPictureItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135            ::unity::il2cpp_call!((::unity::module_base()+0x2604dd0usize)as*mut u8,bool;
136(FishingPictureItem)__receiver)
137        }
138    }
139    #[doc = "`set_IsUnknown(bool)` overload"]
140    fn set_is_unknown(self, value: impl ::core::convert::Into<bool>) -> () {
141        unsafe {
142            let __receiver = <FishingPictureItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143            ::unity::il2cpp_call!((::unity::module_base()+0x2604de0usize)as*mut u8,();
144(FishingPictureItem)__receiver,(bool)::core::convert::Into::into(value))
145        }
146    }
147    #[doc = "`.ctor()` overload"]
148    fn ctor(self) -> () {
149        unsafe {
150            let __receiver = <FishingPictureItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151            ::unity::il2cpp_call!((::unity::module_base()+0x2604df0usize)as*mut u8,();
152(FishingPictureItem)__receiver)
153        }
154    }
155    #[doc = "`.ctor(crate::app::fishingfishdata::FishingFishData, crate::unity_engine::gameobject::GameObject)` overload"]
156    fn ctor_2(
157        self,
158        set_data: impl ::core::convert::Into<crate::app::fishingfishdata::FishingFishData>,
159        set_menu: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
160    ) -> () {
161        unsafe {
162            let __receiver = <FishingPictureItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163            ::unity::il2cpp_call!((::unity::module_base()+0x2602e80usize)as*mut u8,();
164(FishingPictureItem)__receiver,(crate::app::fishingfishdata::FishingFishData)::core::convert::Into::into(set_data),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(set_menu))
165        }
166    }
167    #[doc = "`GetName()` overload"]
168    fn get_name(self) -> ::unity::Il2CppString {
169        unsafe {
170            let __receiver = <FishingPictureItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
171            {
172                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
173                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
174                    panic!(
175                        "unity: virtual slot {}
176 out of range (vtable len {}
177) on the runtime class behind {}
178 (method `{}
179`)",
180                        4usize,
181                        __vt.len(),
182                        <FishingPictureItem as ::unity::ClassIdentity>::NAME,
183                        "GetName",
184                    )
185                });
186                let __inner: extern "C" fn(FishingPictureItem, ::unity::OptionalMethod) -> ::unity::Il2CppString =
187                    ::core::mem::transmute(__vi.method_ptr);
188                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
189                __inner(__receiver, __mi)
190            }
191        }
192    }
193    #[doc = "`BuildAttribute()` overload"]
194    fn build_attribute(self) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
195        unsafe {
196            let __receiver = <FishingPictureItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
197            {
198                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
199                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
200                    panic!(
201                        "unity: virtual slot {}
202 out of range (vtable len {}
203) on the runtime class behind {}
204 (method `{}
205`)",
206                        8usize,
207                        __vt.len(),
208                        <FishingPictureItem as ::unity::ClassIdentity>::NAME,
209                        "BuildAttribute",
210                    )
211                });
212                let __inner: extern "C" fn(FishingPictureItem, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
213                    ::core::mem::transmute(__vi.method_ptr);
214                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
215                __inner(__receiver, __mi)
216            }
217        }
218    }
219    #[doc = "`OnSelect()` overload"]
220    fn on_select(self) -> () {
221        unsafe {
222            let __receiver = <FishingPictureItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
223            {
224                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
225                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
226                    panic!(
227                        "unity: virtual slot {}
228 out of range (vtable len {}
229) on the runtime class behind {}
230 (method `{}
231`)",
232                        12usize,
233                        __vt.len(),
234                        <FishingPictureItem as ::unity::ClassIdentity>::NAME,
235                        "OnSelect",
236                    )
237                });
238                let __inner: extern "C" fn(FishingPictureItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
239                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
240                __inner(__receiver, __mi)
241            }
242        }
243    }
244    #[doc = "`OnDeselect()` overload"]
245    fn on_deselect(self) -> () {
246        unsafe {
247            let __receiver = <FishingPictureItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
248            {
249                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
250                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
251                    panic!(
252                        "unity: virtual slot {}
253 out of range (vtable len {}
254) on the runtime class behind {}
255 (method `{}
256`)",
257                        13usize,
258                        __vt.len(),
259                        <FishingPictureItem as ::unity::ClassIdentity>::NAME,
260                        "OnDeselect",
261                    )
262                });
263                let __inner: extern "C" fn(FishingPictureItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
264                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
265                __inner(__receiver, __mi)
266            }
267        }
268    }
269    #[doc = "`OnClose()` overload"]
270    fn on_close(self) -> () {
271        unsafe {
272            let __receiver = <FishingPictureItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
273            {
274                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
275                let __vi = *__vt.get(15usize).unwrap_or_else(|| {
276                    panic!(
277                        "unity: virtual slot {}
278 out of range (vtable len {}
279) on the runtime class behind {}
280 (method `{}
281`)",
282                        15usize,
283                        __vt.len(),
284                        <FishingPictureItem as ::unity::ClassIdentity>::NAME,
285                        "OnClose",
286                    )
287                });
288                let __inner: extern "C" fn(FishingPictureItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
289                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
290                __inner(__receiver, __mi)
291            }
292        }
293    }
294}
295
296#[cfg(feature = "app-fishingpictureitem")]
297impl<__T: IFishingPictureItem> IFishingPictureItemMethods for __T {}
298
299#[cfg(feature = "app-fishingpictureitem")]
300impl FishingPictureItem {
301    pub fn get_fish_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
303    }
304
305    pub fn set_fish_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
307    }
308
309    pub fn get_is_crown_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
311    }
312
313    pub fn set_is_crown_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
315    }
316
317    pub fn get_is_unknown_method_info() -> &'static ::unity::il2cpp::MethodInfo {
318        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
319    }
320
321    pub fn set_is_unknown_method_info() -> &'static ::unity::il2cpp::MethodInfo {
322        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
323    }
324
325    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
326        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
327    }
328
329    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
330        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
331    }
332
333    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
334        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
335    }
336
337    pub fn build_attribute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
338        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
339    }
340
341    pub fn on_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
342        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
343    }
344
345    pub fn on_deselect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
346        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
347    }
348
349    pub fn on_close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
350        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
351    }
352}
353
354#[cfg(feature = "app-fishingpictureitem")]
355impl FishingPictureItem {
356    #[doc = "Direct (non-virtual) call to `FishingPictureItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
357    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
358        let __mi = Self::get_name_method_info();
359        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
360        __inner(this.into(), ::core::option::Option::None)
361    }
362
363    #[doc = "Direct (non-virtual) call to `FishingPictureItem`'s own `BuildAttribute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
364    pub unsafe fn build_attribute(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
365        let __mi = Self::build_attribute_method_info();
366        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
367            ::core::mem::transmute(__mi.method_ptr);
368        __inner(this.into(), ::core::option::Option::None)
369    }
370
371    #[doc = "Direct (non-virtual) call to `FishingPictureItem`'s own `OnSelect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
372    pub unsafe fn on_select(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
373        let __mi = Self::on_select_method_info();
374        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
375        __inner(this.into(), ::core::option::Option::None)
376    }
377
378    #[doc = "Direct (non-virtual) call to `FishingPictureItem`'s own `OnDeselect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
379    pub unsafe fn on_deselect(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
380        let __mi = Self::on_deselect_method_info();
381        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
382        __inner(this.into(), ::core::option::Option::None)
383    }
384
385    #[doc = "Direct (non-virtual) call to `FishingPictureItem`'s own `OnClose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
386    pub unsafe fn on_close(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
387        let __mi = Self::on_close_method_info();
388        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
389        __inner(this.into(), ::core::option::Option::None)
390    }
391}
392
393#[cfg(feature = "app-fishingpictureitem")]
394impl FishingPictureItem {
395    #[doc = "`.ctor()` — no args"]
396    pub fn new() -> Self {
397        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
398            panic!(
399                "{}
400::{}
401 failed to instantiate",
402                ::core::stringify!(FishingPictureItem),
403                ::core::stringify!(new),
404            )
405        });
406        <Self as IFishingPictureItemMethods>::ctor(this);
407        this
408    }
409
410    #[doc = "`.ctor(crate::app::fishingfishdata::FishingFishData, crate::unity_engine::gameobject::GameObject)` — overload selector"]
411    pub fn new_2(set_data: crate::app::fishingfishdata::FishingFishData, set_menu: crate::unity_engine::gameobject::GameObject) -> Self {
412        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
413            panic!(
414                "{}
415::{}
416 failed to instantiate",
417                ::core::stringify!(FishingPictureItem),
418                ::core::stringify!(new_2),
419            )
420        });
421        <Self as IFishingPictureItemMethods>::ctor_2(this, set_data, set_menu);
422        this
423    }
424}
425
426#[cfg(feature = "app-fishingpictureitem")]
427#[doc(hidden)]
428pub mod prelude {
429    pub use super::{FishingPictureItem, FishingPictureItem_SpriteKind, IFishingPictureItem, IFishingPictureItemMethods};
430    #[cfg(feature = "app-basicmenuitem")]
431    pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
432    #[cfg(feature = "system-object")]
433    pub use crate::system::object::IObjectMethods;
434    #[cfg(feature = "system-enum")]
435    pub use crate::system::r#enum::IEnumMethods;
436    #[cfg(feature = "system-valuetype")]
437    pub use crate::system::valuetype::IValueTypeMethods;
438    pub use crate::{
439        app::basicmenuitem::IBasicMenuItem,
440        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
441    };
442}