Skip to main content

engage/generated/app/
photoappearcontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-photoappearcontent-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::{
10            object::{IObject, Object},
11            r#enum::{Enum, IEnum},
12            valuetype::{IValueType, ValueType},
13        },
14        unity_engine::{
15            behaviour::{Behaviour, IBehaviour},
16            component::{Component, IComponent},
17            monobehaviour::{IMonoBehaviour, MonoBehaviour},
18            object_2::{IObject_2, Object_2},
19        },
20    };
21
22    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/photoappearcontent/PhotoAppearContent_State.md"))]
23    #[repr(C)]
24    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
25    pub struct PhotoAppearContent_State {
26        pub value: i32,
27    }
28    impl ::unity::ClassIdentity for PhotoAppearContent_State {
29        const NAME: &'static str = "PhotoAppearContent.State";
30        const NAMESPACE: &'static str = "App";
31
32        fn class() -> ::unity::Class {
33            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
34            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
35        }
36    }
37    impl ::unity::IlType for PhotoAppearContent_State {
38        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
39            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
40        }
41    }
42    impl PhotoAppearContent_State {
43        pub fn none() -> Self {
44            Self { value: 0 }
45        }
46
47        pub fn flash() -> Self {
48            Self { value: 1 }
49        }
50
51        pub fn appear() -> Self {
52            Self { value: 2 }
53        }
54
55        pub fn scaling() -> Self {
56            Self { value: 3 }
57        }
58
59        pub fn end() -> Self {
60            Self { value: 4 }
61        }
62    }
63
64    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/photoappearcontent/PhotoAppearContent.md"))]
65    #[::unity::class(namespace = "App", name = "PhotoAppearContent")]
66    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
67    pub struct PhotoAppearContent {
68        #[offset(24)]
69        #[rename(name = "m_Image")]
70        pub m_image: crate::unity_engine::ui::image::Image,
71        #[offset(32)]
72        #[rename(name = "m_Animator")]
73        pub m_animator: crate::unity_engine::animator::Animator,
74        #[offset(40)]
75        #[rename(name = "m_Progress")]
76        pub m_progress: f32,
77        #[offset(48)]
78        #[rename(name = "m_MaterialInst")]
79        pub m_material_inst: crate::unity_engine::material::Material,
80        #[offset(56)]
81        #[rename(name = "m_State")]
82        pub m_state: crate::app::photoappearcontent::PhotoAppearContent_State,
83        #[offset(60)]
84        #[rename(name = "m_NextState")]
85        pub m_next_state: crate::app::photoappearcontent::PhotoAppearContent_State,
86    }
87}
88
89#[cfg(feature = "app-photoappearcontent-types")]
90pub use __types::*;
91
92#[cfg(feature = "app-photoappearcontent")]
93impl PhotoAppearContent {
94    #[doc = "`TryPlayAnime(crate::unity_engine::animator::Animator, ::unity::Il2CppString)` overload"]
95    pub fn try_play_anime(
96        animator: impl ::core::convert::Into<crate::unity_engine::animator::Animator>,
97        state_name: impl ::core::convert::Into<::unity::Il2CppString>,
98    ) -> () {
99        unsafe {
100            ::unity::il2cpp_call!((::unity::module_base()+0x2687750usize)as*mut u8,();
101(crate::unity_engine::animator::Animator)::core::convert::Into::into(animator),(::unity::Il2CppString)::core::convert::Into::into(state_name))
102        }
103    }
104}
105
106#[cfg(feature = "app-photoappearcontent")]
107pub trait IPhotoAppearContentMethods: IPhotoAppearContent {
108    #[doc = "`OnDestroy()` overload"]
109    fn on_destroy(self) -> () {
110        unsafe {
111            let __receiver = <PhotoAppearContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
112            ::unity::il2cpp_call!((::unity::module_base()+0x26870d0usize)as*mut u8,();
113(PhotoAppearContent)__receiver)
114        }
115    }
116    #[doc = "`Start()` overload"]
117    fn start(self) -> () {
118        unsafe {
119            let __receiver = <PhotoAppearContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120            ::unity::il2cpp_call!((::unity::module_base()+0x2687150usize)as*mut u8,();
121(PhotoAppearContent)__receiver)
122        }
123    }
124    #[doc = "`Update()` overload"]
125    fn update(self) -> () {
126        unsafe {
127            let __receiver = <PhotoAppearContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128            ::unity::il2cpp_call!((::unity::module_base()+0x26872a0usize)as*mut u8,();
129(PhotoAppearContent)__receiver)
130        }
131    }
132    #[doc = "`TickFlash()` overload"]
133    fn tick_flash(self) -> () {
134        unsafe {
135            let __receiver = <PhotoAppearContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
136            ::unity::il2cpp_call!((::unity::module_base()+0x2687540usize)as*mut u8,();
137(PhotoAppearContent)__receiver)
138        }
139    }
140    #[doc = "`TickAppear()` overload"]
141    fn tick_appear(self) -> () {
142        unsafe {
143            let __receiver = <PhotoAppearContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
144            ::unity::il2cpp_call!((::unity::module_base()+0x2687600usize)as*mut u8,();
145(PhotoAppearContent)__receiver)
146        }
147    }
148    #[doc = "`TickScaling()` overload"]
149    fn tick_scaling(self) -> () {
150        unsafe {
151            let __receiver = <PhotoAppearContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
152            ::unity::il2cpp_call!((::unity::module_base()+0x26876c0usize)as*mut u8,();
153(PhotoAppearContent)__receiver)
154        }
155    }
156    #[doc = "`StartEffect(crate::unity_engine::sprite::Sprite)` overload"]
157    fn start_effect(self, sprite: impl ::core::convert::Into<crate::unity_engine::sprite::Sprite>) -> () {
158        unsafe {
159            let __receiver = <PhotoAppearContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
160            ::unity::il2cpp_call!((::unity::module_base()+0x2687880usize)as*mut u8,();
161(PhotoAppearContent)__receiver,(crate::unity_engine::sprite::Sprite)::core::convert::Into::into(sprite))
162        }
163    }
164    #[doc = "`ResetEffect()` overload"]
165    fn reset_effect(self) -> () {
166        unsafe {
167            let __receiver = <PhotoAppearContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
168            ::unity::il2cpp_call!((::unity::module_base()+0x2687930usize)as*mut u8,();
169(PhotoAppearContent)__receiver)
170        }
171    }
172    #[doc = "`Skip()` overload"]
173    fn skip(self) -> () {
174        unsafe {
175            let __receiver = <PhotoAppearContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
176            ::unity::il2cpp_call!((::unity::module_base()+0x2687990usize)as*mut u8,();
177(PhotoAppearContent)__receiver)
178        }
179    }
180    #[doc = "`get_IsAppear()` overload"]
181    fn get_is_appear(self) -> bool {
182        unsafe {
183            let __receiver = <PhotoAppearContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
184            ::unity::il2cpp_call!((::unity::module_base()+0x2687a40usize)as*mut u8,bool;
185(PhotoAppearContent)__receiver)
186        }
187    }
188    #[doc = "`get_IsEnd()` overload"]
189    fn get_is_end(self) -> bool {
190        unsafe {
191            let __receiver = <PhotoAppearContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
192            ::unity::il2cpp_call!((::unity::module_base()+0x2687a50usize)as*mut u8,bool;
193(PhotoAppearContent)__receiver)
194        }
195    }
196    #[doc = "`TrySkipAnime(crate::unity_engine::animator::Animator, ::unity::Il2CppString)` overload"]
197    fn try_skip_anime(
198        self,
199        animator: impl ::core::convert::Into<crate::unity_engine::animator::Animator>,
200        state_name: impl ::core::convert::Into<::unity::Il2CppString>,
201    ) -> () {
202        unsafe {
203            let __receiver = <PhotoAppearContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
204            ::unity::il2cpp_call!((::unity::module_base()+0x2687a20usize)as*mut u8,();
205(PhotoAppearContent)__receiver,(crate::unity_engine::animator::Animator)::core::convert::Into::into(animator),(::unity::Il2CppString)::core::convert::Into::into(state_name))
206        }
207    }
208    #[doc = "`IsEndAnime(crate::unity_engine::animator::Animator)` overload"]
209    fn is_end_anime(self, animator: impl ::core::convert::Into<crate::unity_engine::animator::Animator>) -> bool {
210        unsafe {
211            let __receiver = <PhotoAppearContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
212            ::unity::il2cpp_call!((::unity::module_base()+0x2687800usize)as*mut u8,bool;
213(PhotoAppearContent)__receiver,(crate::unity_engine::animator::Animator)::core::convert::Into::into(animator))
214        }
215    }
216    #[doc = "`.ctor()` overload"]
217    fn ctor(self) -> () {
218        unsafe {
219            let __receiver = <PhotoAppearContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
220            ::unity::il2cpp_call!((::unity::module_base()+0x2687a60usize)as*mut u8,();
221(PhotoAppearContent)__receiver)
222        }
223    }
224}
225
226#[cfg(feature = "app-photoappearcontent")]
227impl<__T: IPhotoAppearContent> IPhotoAppearContentMethods for __T {}
228
229#[cfg(feature = "app-photoappearcontent")]
230impl PhotoAppearContent {
231    pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
232        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
233    }
234
235    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
236        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
237    }
238
239    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
241    }
242
243    pub fn tick_flash_method_info() -> &'static ::unity::il2cpp::MethodInfo {
244        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
245    }
246
247    pub fn tick_appear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
249    }
250
251    pub fn tick_scaling_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
253    }
254
255    pub fn start_effect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
257    }
258
259    pub fn reset_effect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
261    }
262
263    pub fn skip_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
265    }
266
267    pub fn get_is_appear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
269    }
270
271    pub fn get_is_end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
272        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
273    }
274
275    pub fn try_play_anime_method_info() -> &'static ::unity::il2cpp::MethodInfo {
276        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
277    }
278
279    pub fn try_skip_anime_method_info() -> &'static ::unity::il2cpp::MethodInfo {
280        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
281    }
282
283    pub fn is_end_anime_method_info() -> &'static ::unity::il2cpp::MethodInfo {
284        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
285    }
286
287    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
288        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
289    }
290}
291
292#[cfg(feature = "app-photoappearcontent")]
293impl PhotoAppearContent {
294    #[doc = "`.ctor()` — no args"]
295    pub fn new() -> Self {
296        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
297            panic!(
298                "{}
299::{}
300 failed to instantiate",
301                ::core::stringify!(PhotoAppearContent),
302                ::core::stringify!(new),
303            )
304        });
305        <Self as IPhotoAppearContentMethods>::ctor(this);
306        this
307    }
308}
309
310#[cfg(feature = "app-photoappearcontent")]
311#[doc(hidden)]
312pub mod prelude {
313    pub use super::{IPhotoAppearContent, IPhotoAppearContentMethods, PhotoAppearContent, PhotoAppearContent_State};
314    #[cfg(feature = "system-object")]
315    pub use crate::system::object::IObjectMethods;
316    #[cfg(feature = "system-enum")]
317    pub use crate::system::r#enum::IEnumMethods;
318    #[cfg(feature = "system-valuetype")]
319    pub use crate::system::valuetype::IValueTypeMethods;
320    #[cfg(feature = "unity_engine-behaviour")]
321    pub use crate::unity_engine::behaviour::IBehaviourMethods;
322    #[cfg(feature = "unity_engine-component")]
323    pub use crate::unity_engine::component::IComponentMethods;
324    #[cfg(feature = "unity_engine-monobehaviour")]
325    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
326    #[cfg(feature = "unity_engine-object_2")]
327    pub use crate::unity_engine::object_2::IObject_2Methods;
328    pub use crate::{
329        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
330        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
331    };
332}