Skip to main content

engage/generated/combat/
classchangesequence.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-classchangesequence-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/combat/classchangesequence/ClassChangeSequence.md"))]
21    #[::unity::class(namespace = "Combat", name = "ClassChangeSequence")]
22    #[parent(crate::app::singletonprocinst_1::SingletonProcInst_1<crate::combat::classchangesequence::ClassChangeSequence>)]
23    pub struct ClassChangeSequence {
24        #[static_field]
25        #[rename(name = "SceneName")]
26        pub scene_name: ::unity::Il2CppString,
27        #[offset(120)]
28        #[rename(name = "m_Before")]
29        pub m_before: crate::app::unit::Unit,
30        #[offset(128)]
31        #[rename(name = "m_After")]
32        pub m_after: crate::app::unit::Unit,
33        #[offset(144)]
34        #[rename(name = "m_Status")]
35        pub m_status: ::unity::Array<crate::combat::charactergamestatus::CharacterGameStatus>,
36        #[offset(152)]
37        #[rename(name = "m_Characters")]
38        pub m_characters: ::unity::Array<crate::combat::character::Character>,
39        #[offset(160)]
40        #[rename(name = "m_ZoneHandle")]
41        pub m_zone_handle: crate::app::resourcehandle_2::ResourceHandle_2,
42        #[offset(168)]
43        #[rename(name = "m_ChangeEffect")]
44        pub m_change_effect: crate::unity_engine::gameobject::GameObject,
45        #[offset(176)]
46        #[rename(name = "m_GameObjects")]
47        pub m_game_objects: crate::system::collections::generic::list_1::List_1<crate::unity_engine::gameobject::GameObject>,
48    }
49
50    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/classchangesequence/ClassChangeSequence_Label.md"))]
51    #[repr(C)]
52    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
53    pub struct ClassChangeSequence_Label {
54        pub value: i32,
55    }
56    impl ::unity::ClassIdentity for ClassChangeSequence_Label {
57        const NAME: &'static str = "ClassChangeSequence.Label";
58        const NAMESPACE: &'static str = "Combat";
59
60        fn class() -> ::unity::Class {
61            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
62            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
63        }
64    }
65    impl ::unity::IlType for ClassChangeSequence_Label {
66        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
67            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
68        }
69    }
70    impl ClassChangeSequence_Label {
71        pub fn skip_fade_in() -> Self {
72            Self { value: 0 }
73        }
74
75        pub fn skip_fade_out() -> Self {
76            Self { value: 1 }
77        }
78    }
79}
80
81#[cfg(feature = "combat-classchangesequence-types")]
82pub use __types::*;
83
84#[cfg(feature = "combat-classchangesequence")]
85impl ClassChangeSequence {
86    #[doc = "`IsExist()` overload"]
87    pub fn is_exist() -> bool {
88        unsafe {
89            ::unity::il2cpp_call!((::unity::module_base()+0x1ea68c0usize)as*mut u8,bool;
90            )
91        }
92    }
93
94    #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::unit::Unit, crate::app::unit::Unit, bool, crate::app::viewmode::ViewMode_Mode)` overload"]
95    pub fn create_bind(
96        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
97        before: impl ::core::convert::Into<crate::app::unit::Unit>,
98        after: impl ::core::convert::Into<crate::app::unit::Unit>,
99        do_fade: impl ::core::convert::Into<bool>,
100        camera_mode: impl ::core::convert::Into<crate::app::viewmode::ViewMode_Mode>,
101    ) -> () {
102        unsafe {
103            ::unity::il2cpp_call!((::unity::module_base()+0x1ea6940usize)as*mut u8,();
104(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::unit::Unit)::core::convert::Into::into(before),(crate::app::unit::Unit)::core::convert::Into::into(after),(bool)::core::convert::Into::into(do_fade),(crate::app::viewmode::ViewMode_Mode)::core::convert::Into::into(camera_mode))
105        }
106    }
107}
108
109#[cfg(feature = "combat-classchangesequence")]
110pub trait IClassChangeSequenceMethods: IClassChangeSequence {
111    #[doc = "`get_GlobalAssetPath()` overload"]
112    fn get_global_asset_path(self) -> ::unity::Il2CppString {
113        unsafe {
114            let __receiver = <ClassChangeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115            {
116                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
117                let __vi = *__vt.get(19usize).unwrap_or_else(|| {
118                    panic!(
119                        "unity: virtual slot {}
120 out of range (vtable len {}
121) on the runtime class behind {}
122 (method `{}
123`)",
124                        19usize,
125                        __vt.len(),
126                        <ClassChangeSequence as ::unity::ClassIdentity>::NAME,
127                        "get_GlobalAssetPath",
128                    )
129                });
130                let __inner: extern "C" fn(ClassChangeSequence, ::unity::OptionalMethod) -> ::unity::Il2CppString =
131                    ::core::mem::transmute(__vi.method_ptr);
132                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
133                __inner(__receiver, __mi)
134            }
135        }
136    }
137    #[doc = "`get_ReturnMode()` overload"]
138    fn get_return_mode(self) -> crate::app::viewmode::ViewMode_Mode {
139        unsafe {
140            let __receiver = <ClassChangeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141            ::unity::il2cpp_call!((::unity::module_base()+0x1ea7950usize)as*mut u8,crate::app::viewmode::ViewMode_Mode;
142(ClassChangeSequence)__receiver)
143        }
144    }
145    #[doc = "`.ctor(crate::app::unit::Unit, crate::app::unit::Unit, crate::app::viewmode::ViewMode_Mode)` overload"]
146    fn ctor(
147        self,
148        before: impl ::core::convert::Into<crate::app::unit::Unit>,
149        after: impl ::core::convert::Into<crate::app::unit::Unit>,
150        camera_mode: impl ::core::convert::Into<crate::app::viewmode::ViewMode_Mode>,
151    ) -> () {
152        unsafe {
153            let __receiver = <ClassChangeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
154            ::unity::il2cpp_call!((::unity::module_base()+0x1ea7680usize)as*mut u8,();
155(ClassChangeSequence)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(before),(crate::app::unit::Unit)::core::convert::Into::into(after),(crate::app::viewmode::ViewMode_Mode)::core::convert::Into::into(camera_mode))
156        }
157    }
158    #[doc = "`Load()` overload"]
159    fn load(self) -> crate::system::collections::ienumerator::IEnumerator {
160        unsafe {
161            let __receiver = <ClassChangeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162            ::unity::il2cpp_call!((::unity::module_base()+0x1ea7960usize)as*mut u8,crate::system::collections::ienumerator::IEnumerator;
163(ClassChangeSequence)__receiver)
164        }
165    }
166    #[doc = "`ChangeAnimation()` overload"]
167    fn change_animation(self) -> crate::system::collections::ienumerator::IEnumerator {
168        unsafe {
169            let __receiver = <ClassChangeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
170            ::unity::il2cpp_call!((::unity::module_base()+0x1ea79e0usize)as*mut u8,crate::system::collections::ienumerator::IEnumerator;
171(ClassChangeSequence)__receiver)
172        }
173    }
174    #[doc = "`Change()` overload"]
175    fn change(self) -> () {
176        unsafe {
177            let __receiver = <ClassChangeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
178            ::unity::il2cpp_call!((::unity::module_base()+0x1ea7a60usize)as*mut u8,();
179(ClassChangeSequence)__receiver)
180        }
181    }
182    #[doc = "`PoseAnimation()` overload"]
183    fn pose_animation(self) -> crate::system::collections::ienumerator::IEnumerator {
184        unsafe {
185            let __receiver = <ClassChangeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
186            ::unity::il2cpp_call!((::unity::module_base()+0x1ea7d30usize)as*mut u8,crate::system::collections::ienumerator::IEnumerator;
187(ClassChangeSequence)__receiver)
188        }
189    }
190    #[doc = "`Telop()` overload"]
191    fn telop(self) -> () {
192        unsafe {
193            let __receiver = <ClassChangeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
194            ::unity::il2cpp_call!((::unity::module_base()+0x1ea7db0usize)as*mut u8,();
195(ClassChangeSequence)__receiver)
196        }
197    }
198    #[doc = "`DisplayParams()` overload"]
199    fn display_params(self) -> () {
200        unsafe {
201            let __receiver = <ClassChangeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
202            ::unity::il2cpp_call!((::unity::module_base()+0x1ea7e30usize)as*mut u8,();
203(ClassChangeSequence)__receiver)
204        }
205    }
206    #[doc = "`Exit()` overload"]
207    fn exit(self) -> () {
208        unsafe {
209            let __receiver = <ClassChangeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
210            ::unity::il2cpp_call!((::unity::module_base()+0x1ea7ed0usize)as*mut u8,();
211(ClassChangeSequence)__receiver)
212        }
213    }
214    #[doc = "`IsCharacterLoading()` overload"]
215    fn is_character_loading(self) -> bool {
216        unsafe {
217            let __receiver = <ClassChangeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
218            ::unity::il2cpp_call!((::unity::module_base()+0x1ea8430usize)as*mut u8,bool;
219(ClassChangeSequence)__receiver)
220        }
221    }
222    #[doc = "`ExitAfter()` overload"]
223    fn exit_after(self) -> () {
224        unsafe {
225            let __receiver = <ClassChangeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
226            ::unity::il2cpp_call!((::unity::module_base()+0x1ea8580usize)as*mut u8,();
227(ClassChangeSequence)__receiver)
228        }
229    }
230    #[doc = "`StartBeforeBGM()` overload"]
231    fn start_before_bgm(self) -> () {
232        unsafe {
233            let __receiver = <ClassChangeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
234            ::unity::il2cpp_call!((::unity::module_base()+0x1ea86b0usize)as*mut u8,();
235(ClassChangeSequence)__receiver)
236        }
237    }
238    #[doc = "`StartSkipBGM()` overload"]
239    fn start_skip_bgm(self) -> () {
240        unsafe {
241            let __receiver = <ClassChangeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
242            ::unity::il2cpp_call!((::unity::module_base()+0x1ea8760usize)as*mut u8,();
243(ClassChangeSequence)__receiver)
244        }
245    }
246    #[doc = "`StartAfterBGM()` overload"]
247    fn start_after_bgm(self) -> () {
248        unsafe {
249            let __receiver = <ClassChangeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
250            ::unity::il2cpp_call!((::unity::module_base()+0x1ea8810usize)as*mut u8,();
251(ClassChangeSequence)__receiver)
252        }
253    }
254    #[doc = "`ResumeBGM()` overload"]
255    fn resume_bgm(self) -> () {
256        unsafe {
257            let __receiver = <ClassChangeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
258            ::unity::il2cpp_call!((::unity::module_base()+0x1ea88c0usize)as*mut u8,();
259(ClassChangeSequence)__receiver)
260        }
261    }
262    #[doc = "`StartSE()` overload"]
263    fn start_se(self) -> () {
264        unsafe {
265            let __receiver = <ClassChangeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
266            ::unity::il2cpp_call!((::unity::module_base()+0x1ea8970usize)as*mut u8,();
267(ClassChangeSequence)__receiver)
268        }
269    }
270    #[doc = "`StopSE()` overload"]
271    fn stop_se(self) -> () {
272        unsafe {
273            let __receiver = <ClassChangeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
274            ::unity::il2cpp_call!((::unity::module_base()+0x1ea89f0usize)as*mut u8,();
275(ClassChangeSequence)__receiver)
276        }
277    }
278    #[doc = "`SetupGameStatus()` overload"]
279    fn setup_game_status(self) -> () {
280        unsafe {
281            let __receiver = <ClassChangeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
282            ::unity::il2cpp_call!((::unity::module_base()+0x1ea8a70usize)as*mut u8,();
283(ClassChangeSequence)__receiver)
284        }
285    }
286    #[doc = "`CreateCharacter(i32, crate::combat::preloadanims::PreloadAnims, crate::combat::basecombatlocation::BaseCombatLocation, bool)` overload"]
287    fn create_character(
288        self,
289        side: impl ::core::convert::Into<i32>,
290        preload_anim: impl ::core::convert::Into<crate::combat::preloadanims::PreloadAnims>,
291        locator: impl ::core::convert::Into<crate::combat::basecombatlocation::BaseCombatLocation>,
292        visible: impl ::core::convert::Into<bool>,
293    ) -> crate::system::collections::ienumerator::IEnumerator {
294        unsafe {
295            let __receiver = <ClassChangeSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
296            ::unity::il2cpp_call!((::unity::module_base()+0x1ea8c60usize)as*mut u8,crate::system::collections::ienumerator::IEnumerator;
297(ClassChangeSequence)__receiver,(i32)::core::convert::Into::into(side),(crate::combat::preloadanims::PreloadAnims)::core::convert::Into::into(preload_anim),(crate::combat::basecombatlocation::BaseCombatLocation)::core::convert::Into::into(locator),(bool)::core::convert::Into::into(visible))
298        }
299    }
300}
301
302#[cfg(feature = "combat-classchangesequence")]
303impl<__T: IClassChangeSequence> IClassChangeSequenceMethods for __T {}
304
305#[cfg(feature = "combat-classchangesequence")]
306impl ClassChangeSequence {
307    pub fn get_global_asset_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
308        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
309    }
310
311    pub fn is_exist_method_info() -> &'static ::unity::il2cpp::MethodInfo {
312        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
313    }
314
315    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
316        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
317    }
318
319    pub fn get_return_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
320        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
321    }
322
323    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
324        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
325    }
326
327    pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
328        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
329    }
330
331    pub fn change_animation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
332        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
333    }
334
335    pub fn change_method_info() -> &'static ::unity::il2cpp::MethodInfo {
336        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
337    }
338
339    pub fn pose_animation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
340        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
341    }
342
343    pub fn telop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
344        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
345    }
346
347    pub fn display_params_method_info() -> &'static ::unity::il2cpp::MethodInfo {
348        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
349    }
350
351    pub fn exit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
352        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
353    }
354
355    pub fn is_character_loading_method_info() -> &'static ::unity::il2cpp::MethodInfo {
356        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
357    }
358
359    pub fn exit_after_method_info() -> &'static ::unity::il2cpp::MethodInfo {
360        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
361    }
362
363    pub fn start_before_bgm_method_info() -> &'static ::unity::il2cpp::MethodInfo {
364        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
365    }
366
367    pub fn start_skip_bgm_method_info() -> &'static ::unity::il2cpp::MethodInfo {
368        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
369    }
370
371    pub fn start_after_bgm_method_info() -> &'static ::unity::il2cpp::MethodInfo {
372        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
373    }
374
375    pub fn resume_bgm_method_info() -> &'static ::unity::il2cpp::MethodInfo {
376        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
377    }
378
379    pub fn start_se_method_info() -> &'static ::unity::il2cpp::MethodInfo {
380        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
381    }
382
383    pub fn stop_se_method_info() -> &'static ::unity::il2cpp::MethodInfo {
384        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
385    }
386
387    pub fn setup_game_status_method_info() -> &'static ::unity::il2cpp::MethodInfo {
388        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
389    }
390
391    pub fn create_character_method_info() -> &'static ::unity::il2cpp::MethodInfo {
392        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
393    }
394}
395
396#[cfg(feature = "combat-classchangesequence")]
397impl ClassChangeSequence {
398    #[doc = "Direct (non-virtual) call to `ClassChangeSequence`'s own `get_GlobalAssetPath`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
399    pub unsafe fn get_global_asset_path(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
400        let __mi = Self::get_global_asset_path_method_info();
401        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
402        __inner(this.into(), ::core::option::Option::None)
403    }
404}
405
406#[cfg(feature = "combat-classchangesequence")]
407impl ClassChangeSequence {
408    #[doc = "`.ctor(crate::app::unit::Unit, crate::app::unit::Unit, crate::app::viewmode::ViewMode_Mode)` — overload selector"]
409    pub fn new(before: crate::app::unit::Unit, after: crate::app::unit::Unit, camera_mode: crate::app::viewmode::ViewMode_Mode) -> Self {
410        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
411            panic!(
412                "{}
413::{}
414 failed to instantiate",
415                ::core::stringify!(ClassChangeSequence),
416                ::core::stringify!(new),
417            )
418        });
419        <Self as IClassChangeSequenceMethods>::ctor(this, before, after, camera_mode);
420        this
421    }
422}
423
424#[cfg(feature = "combat-classchangesequence")]
425#[doc(hidden)]
426pub mod prelude {
427    pub use super::{ClassChangeSequence, ClassChangeSequence_Label, IClassChangeSequence, IClassChangeSequenceMethods};
428    #[cfg(feature = "app-procinst")]
429    pub use crate::app::procinst::IProcInstMethods;
430    #[cfg(feature = "app-singletonprocinst_1")]
431    pub use crate::app::singletonprocinst_1::ISingletonProcInst_1Methods;
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::{procinst::IProcInst, singletonprocinst_1::ISingletonProcInst_1},
440        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
441    };
442}