Skip to main content

engage/generated/app/
configbgmselectsequence.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-configbgmselectsequence-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            procinst::{IProcInst, ProcInst},
11            singletonprocinst_1::{ISingletonProcInst_1, SingletonProcInst_1},
12        },
13        system::{
14            object::{IObject, Object},
15            r#enum::{Enum, IEnum},
16            valuetype::{IValueType, ValueType},
17        },
18    };
19
20    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/configbgmselectsequence/ConfigBgmSelectSequence_Label.md"))]
21    #[repr(C)]
22    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
23    pub struct ConfigBgmSelectSequence_Label {
24        pub value: i32,
25    }
26    impl ::unity::ClassIdentity for ConfigBgmSelectSequence_Label {
27        const NAME: &'static str = "ConfigBgmSelectSequence.Label";
28        const NAMESPACE: &'static str = "App";
29
30        fn class() -> ::unity::Class {
31            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
32            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
33        }
34    }
35    impl ::unity::IlType for ConfigBgmSelectSequence_Label {
36        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
37            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
38        }
39    }
40    impl ConfigBgmSelectSequence_Label {
41        pub fn entry() -> Self {
42            Self { value: 0 }
43        }
44
45        pub fn select() -> Self {
46            Self { value: 1 }
47        }
48
49        pub fn exit() -> Self {
50            Self { value: 2 }
51        }
52    }
53
54    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/configbgmselectsequence/ConfigBgmSelectSequence.md"))]
55    #[::unity::class(namespace = "App", name = "ConfigBgmSelectSequence")]
56    #[parent(crate::app::singletonprocinst_1::SingletonProcInst_1<crate::app::configbgmselectsequence::ConfigBgmSelectSequence>)]
57    pub struct ConfigBgmSelectSequence {
58        #[offset(120)]
59        #[rename(name = "m_selectBgm")]
60        pub m_select_bgm: ::unity::Il2CppString,
61        #[offset(128)]
62        #[rename(name = "m_callback")]
63        pub m_callback: crate::system::action_1::Action_1<::unity::Il2CppString>,
64    }
65}
66
67#[cfg(feature = "app-configbgmselectsequence-types")]
68pub use __types::*;
69
70#[cfg(feature = "app-configbgmselectsequence")]
71impl ConfigBgmSelectSequence {
72    #[doc = "`CreateBind(crate::app::procinst::ProcInst, ::unity::Il2CppString, crate::system::action_1::Action_1<::unity::Il2CppString>)` overload"]
73    pub fn create_bind(
74        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
75        select_bgm: impl ::core::convert::Into<::unity::Il2CppString>,
76        callback: impl ::core::convert::Into<crate::system::action_1::Action_1<::unity::Il2CppString>>,
77    ) -> () {
78        unsafe {
79            ::unity::il2cpp_call!((::unity::module_base()+0x2538250usize)as*mut u8,();
80(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(::unity::Il2CppString)::core::convert::Into::into(select_bgm),(crate::system::action_1::Action_1< ::unity::Il2CppString>)::core::convert::Into::into(callback))
81        }
82    }
83}
84
85#[cfg(feature = "app-configbgmselectsequence")]
86pub trait IConfigBgmSelectSequenceMethods: IConfigBgmSelectSequence {
87    #[doc = "`.ctor(::unity::Il2CppString, crate::system::action_1::Action_1<::unity::Il2CppString>)` overload"]
88    fn ctor(
89        self,
90        select_bgm: impl ::core::convert::Into<::unity::Il2CppString>,
91        callback: impl ::core::convert::Into<crate::system::action_1::Action_1<::unity::Il2CppString>>,
92    ) -> () {
93        unsafe {
94            let __receiver =
95                <ConfigBgmSelectSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96            ::unity::il2cpp_call!((::unity::module_base()+0x2537a60usize)as*mut u8,();
97(ConfigBgmSelectSequence)__receiver,(::unity::Il2CppString)::core::convert::Into::into(select_bgm),(crate::system::action_1::Action_1< ::unity::Il2CppString>)::core::convert::Into::into(callback))
98        }
99    }
100    #[doc = "`LoadResources()` overload"]
101    fn load_resources(self) -> () {
102        unsafe {
103            let __receiver =
104                <ConfigBgmSelectSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
105            ::unity::il2cpp_call!((::unity::module_base()+0x2537b10usize)as*mut u8,();
106(ConfigBgmSelectSequence)__receiver)
107        }
108    }
109    #[doc = "`UnloadResources()` overload"]
110    fn unload_resources(self) -> () {
111        unsafe {
112            let __receiver =
113                <ConfigBgmSelectSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114            ::unity::il2cpp_call!((::unity::module_base()+0x2537be0usize)as*mut u8,();
115(ConfigBgmSelectSequence)__receiver)
116        }
117    }
118    #[doc = "`IsLoadingResources()` overload"]
119    fn is_loading_resources(self) -> bool {
120        unsafe {
121            let __receiver =
122                <ConfigBgmSelectSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123            ::unity::il2cpp_call!((::unity::module_base()+0x2537bf0usize)as*mut u8,bool;
124(ConfigBgmSelectSequence)__receiver)
125        }
126    }
127    #[doc = "`CreateMenu()` overload"]
128    fn create_menu(self) -> () {
129        unsafe {
130            let __receiver =
131                <ConfigBgmSelectSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132            ::unity::il2cpp_call!((::unity::module_base()+0x2537c60usize)as*mut u8,();
133(ConfigBgmSelectSequence)__receiver)
134        }
135    }
136    #[doc = "`Exit()` overload"]
137    fn exit(self) -> () {
138        unsafe {
139            let __receiver =
140                <ConfigBgmSelectSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141            ::unity::il2cpp_call!((::unity::module_base()+0x2537d50usize)as*mut u8,();
142(ConfigBgmSelectSequence)__receiver)
143        }
144    }
145    #[doc = "`CreateDesc()` overload"]
146    fn create_desc(self) -> ::unity::Array<crate::app::procdesc::ProcDesc> {
147        unsafe {
148            let __receiver =
149                <ConfigBgmSelectSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150            ::unity::il2cpp_call!((::unity::module_base()+0x2537e80usize)as*mut u8, ::unity::Array<crate::app::procdesc::ProcDesc> ;
151(ConfigBgmSelectSequence)__receiver)
152        }
153    }
154}
155
156#[cfg(feature = "app-configbgmselectsequence")]
157impl<__T: IConfigBgmSelectSequence> IConfigBgmSelectSequenceMethods for __T {}
158
159#[cfg(feature = "app-configbgmselectsequence")]
160impl ConfigBgmSelectSequence {
161    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
163    }
164
165    pub fn load_resources_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
167    }
168
169    pub fn unload_resources_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
171    }
172
173    pub fn is_loading_resources_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
175    }
176
177    pub fn create_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
179    }
180
181    pub fn exit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
183    }
184
185    pub fn create_desc_method_info() -> &'static ::unity::il2cpp::MethodInfo {
186        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
187    }
188
189    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
191    }
192}
193
194#[cfg(feature = "app-configbgmselectsequence")]
195impl ConfigBgmSelectSequence {
196    #[doc = "`.ctor(::unity::Il2CppString, crate::system::action_1::Action_1<::unity::Il2CppString>)` — overload selector"]
197    pub fn new(select_bgm: ::unity::Il2CppString, callback: crate::system::action_1::Action_1<::unity::Il2CppString>) -> Self {
198        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
199            panic!(
200                "{}
201::{}
202 failed to instantiate",
203                ::core::stringify!(ConfigBgmSelectSequence),
204                ::core::stringify!(new),
205            )
206        });
207        <Self as IConfigBgmSelectSequenceMethods>::ctor(this, select_bgm, callback);
208        this
209    }
210}
211
212#[cfg(feature = "app-configbgmselectsequence")]
213#[doc(hidden)]
214pub mod prelude {
215    pub use super::{ConfigBgmSelectSequence, ConfigBgmSelectSequence_Label, IConfigBgmSelectSequence, IConfigBgmSelectSequenceMethods};
216    #[cfg(feature = "app-procinst")]
217    pub use crate::app::procinst::IProcInstMethods;
218    #[cfg(feature = "app-singletonprocinst_1")]
219    pub use crate::app::singletonprocinst_1::ISingletonProcInst_1Methods;
220    #[cfg(feature = "system-object")]
221    pub use crate::system::object::IObjectMethods;
222    #[cfg(feature = "system-enum")]
223    pub use crate::system::r#enum::IEnumMethods;
224    #[cfg(feature = "system-valuetype")]
225    pub use crate::system::valuetype::IValueTypeMethods;
226    pub use crate::{
227        app::{procinst::IProcInst, singletonprocinst_1::ISingletonProcInst_1},
228        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
229    };
230}