Skip to main content

engage/generated/app/
endingsequence.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-endingsequence-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::procinst::{IProcInst, ProcInst},
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/endingsequence/EndingSequence_Label.md"))]
18    #[repr(C)]
19    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
20    pub struct EndingSequence_Label {
21        pub value: i32,
22    }
23    impl ::unity::ClassIdentity for EndingSequence_Label {
24        const NAME: &'static str = "EndingSequence.Label";
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 EndingSequence_Label {
33        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
34            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
35        }
36    }
37    impl EndingSequence_Label {
38        pub fn battle_record() -> Self {
39            Self { value: 0 }
40        }
41
42        pub fn later_talk() -> Self {
43            Self { value: 1 }
44        }
45
46        pub fn end_roll() -> Self {
47            Self { value: 2 }
48        }
49    }
50
51    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/endingsequence/EndingSequence.md"))]
52    #[::unity::class(namespace = "App", name = "EndingSequence")]
53    #[parent(crate::app::procinst::ProcInst)]
54    pub struct EndingSequence {}
55}
56
57#[cfg(feature = "app-endingsequence-types")]
58pub use __types::*;
59
60#[cfg(feature = "app-endingsequence")]
61impl EndingSequence {
62    #[doc = "`CreateBind(crate::app::procinst::ProcInst)` overload"]
63    pub fn create_bind(super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> () {
64        unsafe {
65            ::unity::il2cpp_call!((::unity::module_base()+0x22e8b00usize)as*mut u8,();
66(crate::app::procinst::ProcInst)::core::convert::Into::into(super_))
67        }
68    }
69}
70
71#[cfg(feature = "app-endingsequence")]
72pub trait IEndingSequenceMethods: IEndingSequence {
73    #[doc = "`get_BGMHeader1()` overload"]
74    fn get_bgm_header1(self) -> ::unity::Il2CppString {
75        unsafe {
76            let __receiver = <EndingSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
77            ::unity::il2cpp_call!((::unity::module_base()+0x22e8a60usize)as*mut u8, ::unity::Il2CppString;
78(EndingSequence)__receiver)
79        }
80    }
81    #[doc = "`get_BGMHeader2()` overload"]
82    fn get_bgm_header2(self) -> ::unity::Il2CppString {
83        unsafe {
84            let __receiver = <EndingSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
85            ::unity::il2cpp_call!((::unity::module_base()+0x22e8ab0usize)as*mut u8, ::unity::Il2CppString;
86(EndingSequence)__receiver)
87        }
88    }
89    #[doc = "`PlayMovie()` overload"]
90    fn play_movie(self) -> () {
91        unsafe {
92            let __receiver = <EndingSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
93            ::unity::il2cpp_call!((::unity::module_base()+0x22e9160usize)as*mut u8,();
94(EndingSequence)__receiver)
95        }
96    }
97    #[doc = "`OnPersistent()` overload"]
98    fn on_persistent(self) -> () {
99        unsafe {
100            let __receiver = <EndingSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
101            {
102                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
103                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
104                    panic!(
105                        "unity: virtual slot {}
106 out of range (vtable len {}
107) on the runtime class behind {}
108 (method `{}
109`)",
110                        8usize,
111                        __vt.len(),
112                        <EndingSequence as ::unity::ClassIdentity>::NAME,
113                        "OnPersistent",
114                    )
115                });
116                let __inner: extern "C" fn(EndingSequence, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
117                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
118                __inner(__receiver, __mi)
119            }
120        }
121    }
122    #[doc = "`Setup()` overload"]
123    fn setup(self) -> crate::system::collections::ienumerator::IEnumerator {
124        unsafe {
125            let __receiver = <EndingSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126            ::unity::il2cpp_call!((::unity::module_base()+0x22e9200usize)as*mut u8,crate::system::collections::ienumerator::IEnumerator;
127(EndingSequence)__receiver)
128        }
129    }
130    #[doc = "`TearDown()` overload"]
131    fn tear_down(self) -> () {
132        unsafe {
133            let __receiver = <EndingSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134            ::unity::il2cpp_call!((::unity::module_base()+0x22e9280usize)as*mut u8,();
135(EndingSequence)__receiver)
136        }
137    }
138    #[doc = "`StartBattleRecord()` overload"]
139    fn start_battle_record(self) -> () {
140        unsafe {
141            let __receiver = <EndingSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142            ::unity::il2cpp_call!((::unity::module_base()+0x22e92f0usize)as*mut u8,();
143(EndingSequence)__receiver)
144        }
145    }
146    #[doc = "`StartLaterTalk()` overload"]
147    fn start_later_talk(self) -> () {
148        unsafe {
149            let __receiver = <EndingSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150            ::unity::il2cpp_call!((::unity::module_base()+0x22e9350usize)as*mut u8,();
151(EndingSequence)__receiver)
152        }
153    }
154    #[doc = "`StartEndRoll()` overload"]
155    fn start_end_roll(self) -> () {
156        unsafe {
157            let __receiver = <EndingSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
158            ::unity::il2cpp_call!((::unity::module_base()+0x22e93b0usize)as*mut u8,();
159(EndingSequence)__receiver)
160        }
161    }
162    #[doc = "`SaveMenu()` overload"]
163    fn save_menu(self) -> () {
164        unsafe {
165            let __receiver = <EndingSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
166            ::unity::il2cpp_call!((::unity::module_base()+0x22e9410usize)as*mut u8,();
167(EndingSequence)__receiver)
168        }
169    }
170    #[doc = "`EnableControllerSupport()` overload"]
171    fn enable_controller_support(self) -> () {
172        unsafe {
173            let __receiver = <EndingSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
174            ::unity::il2cpp_call!((::unity::module_base()+0x22e9510usize)as*mut u8,();
175(EndingSequence)__receiver)
176        }
177    }
178    #[doc = "`DisableControllerSupport()` overload"]
179    fn disable_controller_support(self) -> () {
180        unsafe {
181            let __receiver = <EndingSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
182            ::unity::il2cpp_call!((::unity::module_base()+0x22e9570usize)as*mut u8,();
183(EndingSequence)__receiver)
184        }
185    }
186    #[doc = "`.ctor()` overload"]
187    fn ctor(self) -> () {
188        unsafe {
189            let __receiver = <EndingSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
190            ::unity::il2cpp_call!((::unity::module_base()+0x22e9150usize)as*mut u8,();
191(EndingSequence)__receiver)
192        }
193    }
194}
195
196#[cfg(feature = "app-endingsequence")]
197impl<__T: IEndingSequence> IEndingSequenceMethods for __T {}
198
199#[cfg(feature = "app-endingsequence")]
200impl EndingSequence {
201    pub fn get_bgm_header1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
203    }
204
205    pub fn get_bgm_header2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
206        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
207    }
208
209    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
210        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
211    }
212
213    pub fn play_movie_method_info() -> &'static ::unity::il2cpp::MethodInfo {
214        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
215    }
216
217    pub fn on_persistent_method_info() -> &'static ::unity::il2cpp::MethodInfo {
218        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
219    }
220
221    pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
222        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
223    }
224
225    pub fn tear_down_method_info() -> &'static ::unity::il2cpp::MethodInfo {
226        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
227    }
228
229    pub fn start_battle_record_method_info() -> &'static ::unity::il2cpp::MethodInfo {
230        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
231    }
232
233    pub fn start_later_talk_method_info() -> &'static ::unity::il2cpp::MethodInfo {
234        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
235    }
236
237    pub fn start_end_roll_method_info() -> &'static ::unity::il2cpp::MethodInfo {
238        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
239    }
240
241    pub fn save_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
242        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
243    }
244
245    pub fn enable_controller_support_method_info() -> &'static ::unity::il2cpp::MethodInfo {
246        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
247    }
248
249    pub fn disable_controller_support_method_info() -> &'static ::unity::il2cpp::MethodInfo {
250        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
251    }
252
253    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
254        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
255    }
256}
257
258#[cfg(feature = "app-endingsequence")]
259impl EndingSequence {
260    #[doc = "Direct (non-virtual) call to `EndingSequence`'s own `OnPersistent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
261    pub unsafe fn on_persistent(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
262        let __mi = Self::on_persistent_method_info();
263        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
264        __inner(this.into(), ::core::option::Option::None)
265    }
266}
267
268#[cfg(feature = "app-endingsequence")]
269impl EndingSequence {
270    #[doc = "`.ctor()` — no args"]
271    pub fn new() -> Self {
272        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
273            panic!(
274                "{}
275::{}
276 failed to instantiate",
277                ::core::stringify!(EndingSequence),
278                ::core::stringify!(new),
279            )
280        });
281        <Self as IEndingSequenceMethods>::ctor(this);
282        this
283    }
284}
285
286#[cfg(feature = "app-endingsequence")]
287#[doc(hidden)]
288pub mod prelude {
289    pub use super::{EndingSequence, EndingSequence_Label, IEndingSequence, IEndingSequenceMethods};
290    #[cfg(feature = "app-procinst")]
291    pub use crate::app::procinst::IProcInstMethods;
292    #[cfg(feature = "system-object")]
293    pub use crate::system::object::IObjectMethods;
294    #[cfg(feature = "system-enum")]
295    pub use crate::system::r#enum::IEnumMethods;
296    #[cfg(feature = "system-valuetype")]
297    pub use crate::system::valuetype::IValueTypeMethods;
298    pub use crate::{
299        app::procinst::IProcInst,
300        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
301    };
302}