Skip to main content

engage/generated/app/
mapsequenceskipreplay.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mapsequenceskipreplay-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/mapsequenceskipreplay/MapSequenceSkipReplay.md"))]
21    #[::unity::class(namespace = "App", name = "MapSequenceSkipReplay")]
22    #[parent(crate::app::singletonprocinst_1::SingletonProcInst_1<crate::app::mapsequenceskipreplay::MapSequenceSkipReplay>)]
23    pub struct MapSequenceSkipReplay {
24        #[offset(120)]
25        #[rename(name = "m_SetupFieldFunc")]
26        pub m_setup_field_func: crate::system::action::Action,
27    }
28
29    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapsequenceskipreplay/MapSequenceSkipReplay_Label.md"))]
30    #[repr(C)]
31    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
32    pub struct MapSequenceSkipReplay_Label {
33        pub value: i32,
34    }
35    impl ::unity::ClassIdentity for MapSequenceSkipReplay_Label {
36        const NAME: &'static str = "MapSequenceSkipReplay.Label";
37        const NAMESPACE: &'static str = "App";
38
39        fn class() -> ::unity::Class {
40            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
41            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
42        }
43    }
44    impl ::unity::IlType for MapSequenceSkipReplay_Label {
45        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
46            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
47        }
48    }
49    impl MapSequenceSkipReplay_Label {
50        pub fn skip_load() -> Self {
51            Self { value: 0 }
52        }
53
54        pub fn end() -> Self {
55            Self { value: 1 }
56        }
57    }
58}
59
60#[cfg(feature = "app-mapsequenceskipreplay-types")]
61pub use __types::*;
62
63#[cfg(feature = "app-mapsequenceskipreplay")]
64impl MapSequenceSkipReplay {
65    #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::system::action::Action)` overload"]
66    pub fn create_bind(
67        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
68        setup_field_func: impl ::core::convert::Into<crate::system::action::Action>,
69    ) -> () {
70        unsafe {
71            ::unity::il2cpp_call!((::unity::module_base()+0x1f35290usize)as*mut u8,();
72(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::system::action::Action)::core::convert::Into::into(setup_field_func))
73        }
74    }
75}
76
77#[cfg(feature = "app-mapsequenceskipreplay")]
78pub trait IMapSequenceSkipReplayMethods: IMapSequenceSkipReplay {
79    #[doc = "`.ctor(crate::system::action::Action)` overload"]
80    fn ctor(self, setup_field_func: impl ::core::convert::Into<crate::system::action::Action>) -> () {
81        unsafe {
82            let __receiver = <MapSequenceSkipReplay as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83            ::unity::il2cpp_call!((::unity::module_base()+0x1f34d90usize)as*mut u8,();
84(MapSequenceSkipReplay)__receiver,(crate::system::action::Action)::core::convert::Into::into(setup_field_func))
85        }
86    }
87    #[doc = "`SkipReplay()` overload"]
88    fn skip_replay(self) -> () {
89        unsafe {
90            let __receiver = <MapSequenceSkipReplay as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91            ::unity::il2cpp_call!((::unity::module_base()+0x1f34e30usize)as*mut u8,();
92(MapSequenceSkipReplay)__receiver)
93        }
94    }
95    #[doc = "`SetupField()` overload"]
96    fn setup_field(self) -> () {
97        unsafe {
98            let __receiver = <MapSequenceSkipReplay as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99            ::unity::il2cpp_call!((::unity::module_base()+0x1f34ea0usize)as*mut u8,();
100(MapSequenceSkipReplay)__receiver)
101        }
102    }
103    #[doc = "`LoadActor()` overload"]
104    fn load_actor(self) -> () {
105        unsafe {
106            let __receiver = <MapSequenceSkipReplay as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107            ::unity::il2cpp_call!((::unity::module_base()+0x1f34fb0usize)as*mut u8,();
108(MapSequenceSkipReplay)__receiver)
109        }
110    }
111    #[doc = "`Setup()` overload"]
112    fn setup(self) -> () {
113        unsafe {
114            let __receiver = <MapSequenceSkipReplay as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115            ::unity::il2cpp_call!((::unity::module_base()+0x1f350e0usize)as*mut u8,();
116(MapSequenceSkipReplay)__receiver)
117        }
118    }
119}
120
121#[cfg(feature = "app-mapsequenceskipreplay")]
122impl<__T: IMapSequenceSkipReplay> IMapSequenceSkipReplayMethods for __T {}
123
124#[cfg(feature = "app-mapsequenceskipreplay")]
125impl MapSequenceSkipReplay {
126    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
128    }
129
130    pub fn skip_replay_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
132    }
133
134    pub fn setup_field_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
136    }
137
138    pub fn load_actor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
140    }
141
142    pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
143        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
144    }
145
146    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
148    }
149}
150
151#[cfg(feature = "app-mapsequenceskipreplay")]
152impl MapSequenceSkipReplay {
153    #[doc = "`.ctor(crate::system::action::Action)` — overload selector"]
154    pub fn new(setup_field_func: crate::system::action::Action) -> Self {
155        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
156            panic!(
157                "{}
158::{}
159 failed to instantiate",
160                ::core::stringify!(MapSequenceSkipReplay),
161                ::core::stringify!(new),
162            )
163        });
164        <Self as IMapSequenceSkipReplayMethods>::ctor(this, setup_field_func);
165        this
166    }
167}
168
169#[cfg(feature = "app-mapsequenceskipreplay")]
170#[doc(hidden)]
171pub mod prelude {
172    pub use super::{IMapSequenceSkipReplay, IMapSequenceSkipReplayMethods, MapSequenceSkipReplay, MapSequenceSkipReplay_Label};
173    #[cfg(feature = "app-procinst")]
174    pub use crate::app::procinst::IProcInstMethods;
175    #[cfg(feature = "app-singletonprocinst_1")]
176    pub use crate::app::singletonprocinst_1::ISingletonProcInst_1Methods;
177    #[cfg(feature = "system-object")]
178    pub use crate::system::object::IObjectMethods;
179    #[cfg(feature = "system-enum")]
180    pub use crate::system::r#enum::IEnumMethods;
181    #[cfg(feature = "system-valuetype")]
182    pub use crate::system::valuetype::IValueTypeMethods;
183    pub use crate::{
184        app::{procinst::IProcInst, singletonprocinst_1::ISingletonProcInst_1},
185        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
186    };
187}