Skip to main content

engage/generated/app/
fishingsequence.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-fishingsequence-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/fishingsequence/FishingSequence_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 FishingSequence_Label {
25        pub value: i32,
26    }
27    impl ::unity::ClassIdentity for FishingSequence_Label {
28        const NAME: &'static str = "FishingSequence.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 FishingSequence_Label {
37        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
38            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
39        }
40    }
41    impl FishingSequence_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 execute_game() -> Self {
51            Self { value: 2 }
52        }
53
54        pub fn check_continue() -> Self {
55            Self { value: 3 }
56        }
57
58        pub fn exit() -> Self {
59            Self { value: 4 }
60        }
61    }
62
63    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/fishingsequence/FishingSequence.md"))]
64    #[::unity::class(namespace = "App", name = "FishingSequence")]
65    #[parent(crate::app::procscenesequence_1::ProcSceneSequence_1<crate::app::hubsequence::HubSequence>)]
66    pub struct FishingSequence {}
67}
68
69#[cfg(feature = "app-fishingsequence-types")]
70pub use __types::*;
71
72#[cfg(feature = "app-fishingsequence")]
73impl FishingSequence {
74    #[doc = "`CreateBind(crate::app::procinst::ProcInst)` overload"]
75    pub fn create_bind(super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> () {
76        unsafe {
77            ::unity::il2cpp_call!((::unity::module_base()+0x260a4a0usize)as*mut u8,();
78(crate::app::procinst::ProcInst)::core::convert::Into::into(super_))
79        }
80    }
81
82    #[doc = "`GetFishingPlayCount()` overload"]
83    pub fn get_fishing_play_count() -> i32 {
84        unsafe {
85            ::unity::il2cpp_call!((::unity::module_base()+0x260b190usize)as*mut u8,i32;
86            )
87        }
88    }
89}
90
91#[cfg(feature = "app-fishingsequence")]
92pub trait IFishingSequenceMethods: IFishingSequence {
93    #[doc = "`get_FromDebugMenu()` overload"]
94    fn get_from_debug_menu(self) -> bool {
95        unsafe {
96            let __receiver = <FishingSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97            ::unity::il2cpp_call!((::unity::module_base()+0x260a060usize)as*mut u8,bool;
98(FishingSequence)__receiver)
99        }
100    }
101    #[doc = "`set_FromDebugMenu(bool)` overload"]
102    fn set_from_debug_menu(self, value: impl ::core::convert::Into<bool>) -> () {
103        unsafe {
104            let __receiver = <FishingSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
105            ::unity::il2cpp_call!((::unity::module_base()+0x260a070usize)as*mut u8,();
106(FishingSequence)__receiver,(bool)::core::convert::Into::into(value))
107        }
108    }
109    #[doc = "`OnShutdown()` overload"]
110    fn on_shutdown(self) -> () {
111        unsafe {
112            let __receiver = <FishingSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
113            {
114                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
115                let __vi = *__vt.get(15usize).unwrap_or_else(|| {
116                    panic!(
117                        "unity: virtual slot {}
118 out of range (vtable len {}
119) on the runtime class behind {}
120 (method `{}
121`)",
122                        15usize,
123                        __vt.len(),
124                        <FishingSequence as ::unity::ClassIdentity>::NAME,
125                        "OnShutdown",
126                    )
127                });
128                let __inner: extern "C" fn(FishingSequence, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
129                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
130                __inner(__receiver, __mi)
131            }
132        }
133    }
134    #[doc = "`ClearRecord()` overload"]
135    fn clear_record(self) -> () {
136        unsafe {
137            let __receiver = <FishingSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
138            ::unity::il2cpp_call!((::unity::module_base()+0x260a0f0usize)as*mut u8,();
139(FishingSequence)__receiver)
140        }
141    }
142    #[doc = "`LoadResource()` overload"]
143    fn load_resource(self) -> () {
144        unsafe {
145            let __receiver = <FishingSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
146            ::unity::il2cpp_call!((::unity::module_base()+0x260a210usize)as*mut u8,();
147(FishingSequence)__receiver)
148        }
149    }
150    #[doc = "`IsLoadingResource()` overload"]
151    fn is_loading_resource(self) -> bool {
152        unsafe {
153            let __receiver = <FishingSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
154            ::unity::il2cpp_call!((::unity::module_base()+0x260a2b0usize)as*mut u8,bool;
155(FishingSequence)__receiver)
156        }
157    }
158    #[doc = "`UnloadResource()` overload"]
159    fn unload_resource(self) -> () {
160        unsafe {
161            let __receiver = <FishingSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162            ::unity::il2cpp_call!((::unity::module_base()+0x260a330usize)as*mut u8,();
163(FishingSequence)__receiver)
164        }
165    }
166    #[doc = "`CreateGameSequence()` overload"]
167    fn create_game_sequence(self) -> () {
168        unsafe {
169            let __receiver = <FishingSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
170            ::unity::il2cpp_call!((::unity::module_base()+0x260a3b0usize)as*mut u8,();
171(FishingSequence)__receiver)
172        }
173    }
174    #[doc = "`Exit()` overload"]
175    fn exit(self) -> () {
176        unsafe {
177            let __receiver = <FishingSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
178            ::unity::il2cpp_call!((::unity::module_base()+0x260a420usize)as*mut u8,();
179(FishingSequence)__receiver)
180        }
181    }
182    #[doc = "`.ctor()` overload"]
183    fn ctor(self) -> () {
184        unsafe {
185            let __receiver = <FishingSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
186            ::unity::il2cpp_call!((::unity::module_base()+0x260b130usize)as*mut u8,();
187(FishingSequence)__receiver)
188        }
189    }
190}
191
192#[cfg(feature = "app-fishingsequence")]
193impl<__T: IFishingSequence> IFishingSequenceMethods for __T {}
194
195#[cfg(feature = "app-fishingsequence")]
196impl FishingSequence {
197    pub fn get_from_debug_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
199    }
200
201    pub fn set_from_debug_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
203    }
204
205    pub fn on_shutdown_method_info() -> &'static ::unity::il2cpp::MethodInfo {
206        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
207    }
208
209    pub fn clear_record_method_info() -> &'static ::unity::il2cpp::MethodInfo {
210        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
211    }
212
213    pub fn load_resource_method_info() -> &'static ::unity::il2cpp::MethodInfo {
214        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
215    }
216
217    pub fn is_loading_resource_method_info() -> &'static ::unity::il2cpp::MethodInfo {
218        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
219    }
220
221    pub fn unload_resource_method_info() -> &'static ::unity::il2cpp::MethodInfo {
222        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
223    }
224
225    pub fn create_game_sequence_method_info() -> &'static ::unity::il2cpp::MethodInfo {
226        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
227    }
228
229    pub fn exit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
230        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
231    }
232
233    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
234        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
235    }
236
237    pub fn get_fishing_play_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
238        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
239    }
240
241    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
242        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
243    }
244}
245
246#[cfg(feature = "app-fishingsequence")]
247impl FishingSequence {
248    #[doc = "Direct (non-virtual) call to `FishingSequence`'s own `OnShutdown`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
249    pub unsafe fn on_shutdown(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
250        let __mi = Self::on_shutdown_method_info();
251        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
252        __inner(this.into(), ::core::option::Option::None)
253    }
254}
255
256#[cfg(feature = "app-fishingsequence")]
257impl FishingSequence {
258    #[doc = "`.ctor()` — no args"]
259    pub fn new() -> Self {
260        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
261            panic!(
262                "{}
263::{}
264 failed to instantiate",
265                ::core::stringify!(FishingSequence),
266                ::core::stringify!(new),
267            )
268        });
269        <Self as IFishingSequenceMethods>::ctor(this);
270        this
271    }
272}
273
274#[cfg(feature = "app-fishingsequence")]
275#[doc(hidden)]
276pub mod prelude {
277    pub use super::{FishingSequence, FishingSequence_Label, IFishingSequence, IFishingSequenceMethods};
278    #[cfg(feature = "app-procinst")]
279    pub use crate::app::procinst::IProcInstMethods;
280    #[cfg(feature = "app-procscenesequence_1")]
281    pub use crate::app::procscenesequence_1::IProcSceneSequence_1Methods;
282    #[cfg(feature = "app-singletonprocinst_1")]
283    pub use crate::app::singletonprocinst_1::ISingletonProcInst_1Methods;
284    #[cfg(feature = "system-object")]
285    pub use crate::system::object::IObjectMethods;
286    #[cfg(feature = "system-enum")]
287    pub use crate::system::r#enum::IEnumMethods;
288    #[cfg(feature = "system-valuetype")]
289    pub use crate::system::valuetype::IValueTypeMethods;
290    pub use crate::{
291        app::{procinst::IProcInst, procscenesequence_1::IProcSceneSequence_1, singletonprocinst_1::ISingletonProcInst_1},
292        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
293    };
294}