Skip to main content

engage/generated/app/
fishingpicturebooksequence.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-fishingpicturebooksequence-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            procinst::{IProcInst, ProcInst},
11            procscenesequence_1::{IProcSceneSequence_1, ProcSceneSequence_1},
12            singletonprocinst_1::{ISingletonProcInst_1, SingletonProcInst_1},
13        },
14        system::{
15            object::{IObject, Object},
16            r#enum::{Enum, IEnum},
17            valuetype::{IValueType, ValueType},
18        },
19    };
20
21    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/fishingpicturebooksequence/FishingPictureBookSequence_Label.md"))]
22    #[repr(C)]
23    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
24    pub struct FishingPictureBookSequence_Label {
25        pub value: i32,
26    }
27    impl ::unity::ClassIdentity for FishingPictureBookSequence_Label {
28        const NAME: &'static str = "FishingPictureBookSequence.Label";
29        const NAMESPACE: &'static str = "App";
30
31        fn class() -> ::unity::Class {
32            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
33            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
34        }
35    }
36    impl ::unity::IlType for FishingPictureBookSequence_Label {
37        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
38            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
39        }
40    }
41    impl FishingPictureBookSequence_Label {
42        pub fn none() -> Self {
43            Self { value: 0 }
44        }
45
46        pub fn ready_menu() -> Self {
47            Self { value: 1 }
48        }
49
50        pub fn create_menu() -> Self {
51            Self { value: 2 }
52        }
53
54        pub fn exit() -> Self {
55            Self { value: 3 }
56        }
57    }
58
59    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/fishingpicturebooksequence/FishingPictureBookSequence.md"))]
60    #[::unity::class(namespace = "App", name = "FishingPictureBookSequence")]
61    #[parent(crate::app::procscenesequence_1::ProcSceneSequence_1<crate::app::hubsequence::HubSequence>)]
62    pub struct FishingPictureBookSequence {
63        #[static_field]
64        #[rename(name = "cTextureAtlasPath")]
65        pub c_texture_atlas_path: ::unity::Il2CppString,
66        #[static_field]
67        #[rename(name = "cResultTextureGold")]
68        pub c_result_texture_gold: ::unity::Il2CppString,
69        #[static_field]
70        #[rename(name = "cResultTextureSilver")]
71        pub c_result_texture_silver: ::unity::Il2CppString,
72        #[static_field]
73        #[rename(name = "cResultTextureBronze")]
74        pub c_result_texture_bronze: ::unity::Il2CppString,
75    }
76}
77
78#[cfg(feature = "app-fishingpicturebooksequence-types")]
79pub use __types::*;
80
81#[cfg(feature = "app-fishingpicturebooksequence")]
82impl FishingPictureBookSequence {
83    #[doc = "`CreateBind(crate::app::procinst::ProcInst)` overload"]
84    pub fn create_bind(super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> () {
85        unsafe {
86            ::unity::il2cpp_call!((::unity::module_base()+0x2604680usize)as*mut u8,();
87(crate::app::procinst::ProcInst)::core::convert::Into::into(super_))
88        }
89    }
90}
91
92#[cfg(feature = "app-fishingpicturebooksequence")]
93pub trait IFishingPictureBookSequenceMethods: IFishingPictureBookSequence {
94    #[doc = "`OnShutdown()` overload"]
95    fn on_shutdown(self) -> () {
96        unsafe {
97            let __receiver =
98                <FishingPictureBookSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99            {
100                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
101                let __vi = *__vt.get(15usize).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                        15usize,
109                        __vt.len(),
110                        <FishingPictureBookSequence as ::unity::ClassIdentity>::NAME,
111                        "OnShutdown",
112                    )
113                });
114                let __inner: extern "C" fn(FishingPictureBookSequence, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
115                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
116                __inner(__receiver, __mi)
117            }
118        }
119    }
120    #[doc = "`LoadResource()` overload"]
121    fn load_resource(self) -> () {
122        unsafe {
123            let __receiver =
124                <FishingPictureBookSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125            ::unity::il2cpp_call!((::unity::module_base()+0x2604140usize)as*mut u8,();
126(FishingPictureBookSequence)__receiver)
127        }
128    }
129    #[doc = "`IsLoadingResource()` overload"]
130    fn is_loading_resource(self) -> bool {
131        unsafe {
132            let __receiver =
133                <FishingPictureBookSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134            ::unity::il2cpp_call!((::unity::module_base()+0x2604250usize)as*mut u8,bool;
135(FishingPictureBookSequence)__receiver)
136        }
137    }
138    #[doc = "`Open()` overload"]
139    fn open(self) -> () {
140        unsafe {
141            let __receiver =
142                <FishingPictureBookSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143            ::unity::il2cpp_call!((::unity::module_base()+0x2604340usize)as*mut u8,();
144(FishingPictureBookSequence)__receiver)
145        }
146    }
147    #[doc = "`UnloadResource()` overload"]
148    fn unload_resource(self) -> () {
149        unsafe {
150            let __receiver =
151                <FishingPictureBookSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
152            ::unity::il2cpp_call!((::unity::module_base()+0x2604470usize)as*mut u8,();
153(FishingPictureBookSequence)__receiver)
154        }
155    }
156    #[doc = "`Exit()` overload"]
157    fn exit(self) -> () {
158        unsafe {
159            let __receiver =
160                <FishingPictureBookSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161            ::unity::il2cpp_call!((::unity::module_base()+0x2604550usize)as*mut u8,();
162(FishingPictureBookSequence)__receiver)
163        }
164    }
165    #[doc = "`CreatePictureBookMenu()` overload"]
166    fn create_picture_book_menu(self) -> () {
167        unsafe {
168            let __receiver =
169                <FishingPictureBookSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
170            ::unity::il2cpp_call!((::unity::module_base()+0x2604670usize)as*mut u8,();
171(FishingPictureBookSequence)__receiver)
172        }
173    }
174    #[doc = "`.ctor()` overload"]
175    fn ctor(self) -> () {
176        unsafe {
177            let __receiver =
178                <FishingPictureBookSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
179            ::unity::il2cpp_call!((::unity::module_base()+0x2604d30usize)as*mut u8,();
180(FishingPictureBookSequence)__receiver)
181        }
182    }
183}
184
185#[cfg(feature = "app-fishingpicturebooksequence")]
186impl<__T: IFishingPictureBookSequence> IFishingPictureBookSequenceMethods for __T {}
187
188#[cfg(feature = "app-fishingpicturebooksequence")]
189impl FishingPictureBookSequence {
190    pub fn on_shutdown_method_info() -> &'static ::unity::il2cpp::MethodInfo {
191        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
192    }
193
194    pub fn load_resource_method_info() -> &'static ::unity::il2cpp::MethodInfo {
195        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
196    }
197
198    pub fn is_loading_resource_method_info() -> &'static ::unity::il2cpp::MethodInfo {
199        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
200    }
201
202    pub fn open_method_info() -> &'static ::unity::il2cpp::MethodInfo {
203        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
204    }
205
206    pub fn unload_resource_method_info() -> &'static ::unity::il2cpp::MethodInfo {
207        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
208    }
209
210    pub fn exit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
211        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
212    }
213
214    pub fn create_picture_book_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
216    }
217
218    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
220    }
221
222    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
224    }
225}
226
227#[cfg(feature = "app-fishingpicturebooksequence")]
228impl FishingPictureBookSequence {
229    #[doc = "Direct (non-virtual) call to `FishingPictureBookSequence`'s own `OnShutdown`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
230    pub unsafe fn on_shutdown(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
231        let __mi = Self::on_shutdown_method_info();
232        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
233        __inner(this.into(), ::core::option::Option::None)
234    }
235}
236
237#[cfg(feature = "app-fishingpicturebooksequence")]
238impl FishingPictureBookSequence {
239    #[doc = "`.ctor()` — no args"]
240    pub fn new() -> Self {
241        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
242            panic!(
243                "{}
244::{}
245 failed to instantiate",
246                ::core::stringify!(FishingPictureBookSequence),
247                ::core::stringify!(new),
248            )
249        });
250        <Self as IFishingPictureBookSequenceMethods>::ctor(this);
251        this
252    }
253}
254
255#[cfg(feature = "app-fishingpicturebooksequence")]
256#[doc(hidden)]
257pub mod prelude {
258    pub use super::{FishingPictureBookSequence, FishingPictureBookSequence_Label, IFishingPictureBookSequence, IFishingPictureBookSequenceMethods};
259    #[cfg(feature = "app-procinst")]
260    pub use crate::app::procinst::IProcInstMethods;
261    #[cfg(feature = "app-procscenesequence_1")]
262    pub use crate::app::procscenesequence_1::IProcSceneSequence_1Methods;
263    #[cfg(feature = "app-singletonprocinst_1")]
264    pub use crate::app::singletonprocinst_1::ISingletonProcInst_1Methods;
265    #[cfg(feature = "system-object")]
266    pub use crate::system::object::IObjectMethods;
267    #[cfg(feature = "system-enum")]
268    pub use crate::system::r#enum::IEnumMethods;
269    #[cfg(feature = "system-valuetype")]
270    pub use crate::system::valuetype::IValueTypeMethods;
271    pub use crate::{
272        app::{procinst::IProcInst, procscenesequence_1::IProcSceneSequence_1, singletonprocinst_1::ISingletonProcInst_1},
273        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
274    };
275}