Skip to main content

engage/generated/app/
photographhaveanimatorcontroller.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-photographhaveanimatorcontroller-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::{
10            delegate::{Delegate, IDelegate},
11            multicastdelegate::{IMulticastDelegate, MulticastDelegate},
12            object::{IObject, Object},
13            r#enum::{Enum, IEnum},
14            valuetype::{IValueType, ValueType},
15        },
16        unity_engine::{
17            behaviour::{Behaviour, IBehaviour},
18            component::{Component, IComponent},
19            monobehaviour::{IMonoBehaviour, MonoBehaviour},
20            object_2::{IObject_2, Object_2},
21        },
22    };
23
24    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/photographhaveanimatorcontroller/PhotographHaveAnimatorController_UpdateAnime.md"))]
25    #[::unity::class(namespace = "App", name = "PhotographHaveAnimatorController.UpdateAnime")]
26    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
27    pub struct PhotographHaveAnimatorController_UpdateAnime {}
28
29    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/photographhaveanimatorcontroller/PhotographHaveAnimatorController.md"))]
30    #[::unity::class(namespace = "App", name = "PhotographHaveAnimatorController")]
31    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
32    pub struct PhotographHaveAnimatorController {
33        #[offset(24)]
34        #[rename(name = "m_AnimatorController")]
35        pub m_animator_controller:
36            crate::system::collections::generic::list_1::List_1<crate::unity_engine::runtimeanimatorcontroller::RuntimeAnimatorController>,
37        #[offset(32)]
38        #[rename(name = "m_AnimeTime")]
39        pub m_anime_time: f32,
40        #[offset(40)]
41        #[rename(name = "m_Update")]
42        pub m_update: crate::app::photographhaveanimatorcontroller::PhotographHaveAnimatorController_UpdateAnime,
43        #[offset(48)]
44        #[rename(name = "m_FaceUpdate")]
45        pub m_face_update: crate::app::photographhaveanimatorcontroller::PhotographHaveAnimatorController_UpdateFaceAnime,
46        #[offset(56)]
47        #[rename(name = "m_faceAnime")]
48        pub m_face_anime: crate::app::photographhaveanimatorcontroller::PhotographHaveAnimatorController_FaceAnime,
49        #[offset(60)]
50        #[rename(name = "m_BeforeFaceAnime")]
51        pub m_before_face_anime: crate::app::photographhaveanimatorcontroller::PhotographHaveAnimatorController_FaceAnime,
52        #[offset(64)]
53        #[rename(name = "m_Sprite")]
54        pub m_sprite: crate::unity_engine::sprite::Sprite,
55    }
56
57    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/photographhaveanimatorcontroller/PhotographHaveAnimatorController_FaceAnime.md"))]
58    #[repr(C)]
59    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
60    pub struct PhotographHaveAnimatorController_FaceAnime {
61        pub value: i32,
62    }
63    impl ::unity::ClassIdentity for PhotographHaveAnimatorController_FaceAnime {
64        const NAME: &'static str = "PhotographHaveAnimatorController.FaceAnime";
65        const NAMESPACE: &'static str = "App";
66
67        fn class() -> ::unity::Class {
68            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
69            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
70        }
71    }
72    impl ::unity::IlType for PhotographHaveAnimatorController_FaceAnime {
73        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
74            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
75        }
76    }
77    impl PhotographHaveAnimatorController_FaceAnime {
78        pub fn angry() -> Self {
79            Self { value: 0 }
80        }
81
82        pub fn die() -> Self {
83            Self { value: 1 }
84        }
85
86        pub fn normal() -> Self {
87            Self { value: 2 }
88        }
89
90        pub fn pain() -> Self {
91            Self { value: 3 }
92        }
93
94        pub fn relax() -> Self {
95            Self { value: 4 }
96        }
97
98        pub fn sad() -> Self {
99            Self { value: 5 }
100        }
101
102        pub fn serious() -> Self {
103            Self { value: 6 }
104        }
105
106        pub fn shy() -> Self {
107            Self { value: 7 }
108        }
109
110        pub fn smile() -> Self {
111            Self { value: 8 }
112        }
113
114        pub fn stand_by() -> Self {
115            Self { value: 9 }
116        }
117
118        pub fn status() -> Self {
119            Self { value: 10 }
120        }
121
122        pub fn strike() -> Self {
123            Self { value: 11 }
124        }
125
126        pub fn surprise() -> Self {
127            Self { value: 12 }
128        }
129    }
130
131    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/photographhaveanimatorcontroller/PhotographHaveAnimatorController_UpdateFaceAnime.md"))]
132    #[::unity::class(namespace = "App", name = "PhotographHaveAnimatorController.UpdateFaceAnime")]
133    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
134    pub struct PhotographHaveAnimatorController_UpdateFaceAnime {}
135}
136
137#[cfg(feature = "app-photographhaveanimatorcontroller-types")]
138pub use __types::*;
139
140#[cfg(feature = "app-photographhaveanimatorcontroller")]
141pub trait IPhotographHaveAnimatorController_UpdateAnimeMethods: IPhotographHaveAnimatorController_UpdateAnime {
142    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
143    fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
144        unsafe {
145            let __receiver = <PhotographHaveAnimatorController_UpdateAnime as ::unity::FromIlInstance>::from_il_instance(
146                <Self as ::unity::SystemObject>::as_instance(self),
147            );
148            ::unity::il2cpp_call!((::unity::module_base()+0x2262450usize)as*mut u8,();
149(PhotographHaveAnimatorController_UpdateAnime)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
150        }
151    }
152    #[doc = "`Invoke(f32)` overload"]
153    fn invoke(self, time: impl ::core::convert::Into<f32>) -> () {
154        unsafe {
155            let __receiver = <PhotographHaveAnimatorController_UpdateAnime as ::unity::FromIlInstance>::from_il_instance(
156                <Self as ::unity::SystemObject>::as_instance(self),
157            );
158            {
159                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
160                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
161                    panic!(
162                        "unity: virtual slot {}
163 out of range (vtable len {}
164) on the runtime class behind {}
165 (method `{}
166`)",
167                        13usize,
168                        __vt.len(),
169                        <PhotographHaveAnimatorController_UpdateAnime as ::unity::ClassIdentity>::NAME,
170                        "Invoke",
171                    )
172                });
173                let __inner: extern "C" fn(PhotographHaveAnimatorController_UpdateAnime, f32, ::unity::OptionalMethod) -> () =
174                    ::core::mem::transmute(__vi.method_ptr);
175                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
176                __inner(__receiver, ::core::convert::Into::into(time), __mi)
177            }
178        }
179    }
180}
181
182#[cfg(feature = "app-photographhaveanimatorcontroller")]
183impl<__T: IPhotographHaveAnimatorController_UpdateAnime> IPhotographHaveAnimatorController_UpdateAnimeMethods for __T {}
184
185#[cfg(feature = "app-photographhaveanimatorcontroller")]
186impl PhotographHaveAnimatorController_UpdateAnime {
187    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
189    }
190
191    pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
193    }
194}
195
196#[cfg(feature = "app-photographhaveanimatorcontroller")]
197impl PhotographHaveAnimatorController_UpdateAnime {
198    #[doc = "Direct (non-virtual) call to `PhotographHaveAnimatorController_UpdateAnime`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
199    pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, time: f32) -> () {
200        let __mi = Self::invoke_method_info();
201        let __inner: extern "C" fn(::unity::IlInstance, f32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
202        __inner(this.into(), time, ::core::option::Option::None)
203    }
204}
205
206#[cfg(feature = "app-photographhaveanimatorcontroller")]
207impl PhotographHaveAnimatorController_UpdateAnime {
208    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
209    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
210        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
211            panic!(
212                "{}
213::{}
214 failed to instantiate",
215                ::core::stringify!(PhotographHaveAnimatorController_UpdateAnime),
216                ::core::stringify!(new),
217            )
218        });
219        <Self as IPhotographHaveAnimatorController_UpdateAnimeMethods>::ctor(this, object, method);
220        this
221    }
222}
223
224#[cfg(feature = "app-photographhaveanimatorcontroller")]
225pub trait IPhotographHaveAnimatorControllerMethods: IPhotographHaveAnimatorController {
226    #[doc = "`get_AnimatorController()` overload"]
227    fn get_animator_controller(
228        self,
229    ) -> crate::system::collections::generic::list_1::List_1<crate::unity_engine::runtimeanimatorcontroller::RuntimeAnimatorController> {
230        unsafe {
231            let __receiver =
232                <PhotographHaveAnimatorController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
233            ::unity::il2cpp_call!((::unity::module_base()+0x2693b00usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::unity_engine::runtimeanimatorcontroller::RuntimeAnimatorController> ;
234(PhotographHaveAnimatorController)__receiver)
235        }
236    }
237    #[doc = "`get_AnimeTime()` overload"]
238    fn get_anime_time(self) -> f32 {
239        unsafe {
240            let __receiver =
241                <PhotographHaveAnimatorController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
242            ::unity::il2cpp_call!((::unity::module_base()+0x2693b10usize)as*mut u8,f32;
243(PhotographHaveAnimatorController)__receiver)
244        }
245    }
246    #[doc = "`SetUpdate(crate::app::photographhaveanimatorcontroller::PhotographHaveAnimatorController_UpdateAnime, crate::app::photographhaveanimatorcontroller::PhotographHaveAnimatorController_UpdateFaceAnime)` overload"]
247    fn set_update(
248        self,
249        update: impl ::core::convert::Into<crate::app::photographhaveanimatorcontroller::PhotographHaveAnimatorController_UpdateAnime>,
250        face_anime: impl ::core::convert::Into<crate::app::photographhaveanimatorcontroller::PhotographHaveAnimatorController_UpdateFaceAnime>,
251    ) -> () {
252        unsafe {
253            let __receiver =
254                <PhotographHaveAnimatorController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
255            ::unity::il2cpp_call!((::unity::module_base()+0x2693b20usize)as*mut u8,();
256(PhotographHaveAnimatorController)__receiver,(crate::app::photographhaveanimatorcontroller::PhotographHaveAnimatorController_UpdateAnime)::core::convert::Into::into(update),(crate::app::photographhaveanimatorcontroller::PhotographHaveAnimatorController_UpdateFaceAnime)::core::convert::Into::into(face_anime))
257        }
258    }
259    #[doc = "`Update()` overload"]
260    fn update(self) -> () {
261        unsafe {
262            let __receiver =
263                <PhotographHaveAnimatorController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
264            ::unity::il2cpp_call!((::unity::module_base()+0x2693b60usize)as*mut u8,();
265(PhotographHaveAnimatorController)__receiver)
266        }
267    }
268    #[doc = "`GetSprite()` overload"]
269    fn get_sprite(self) -> crate::unity_engine::sprite::Sprite {
270        unsafe {
271            let __receiver =
272                <PhotographHaveAnimatorController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
273            ::unity::il2cpp_call!((::unity::module_base()+0x2693c30usize)as*mut u8,crate::unity_engine::sprite::Sprite;
274(PhotographHaveAnimatorController)__receiver)
275        }
276    }
277    #[doc = "`.ctor()` overload"]
278    fn ctor(self) -> () {
279        unsafe {
280            let __receiver =
281                <PhotographHaveAnimatorController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
282            ::unity::il2cpp_call!((::unity::module_base()+0x2693c40usize)as*mut u8,();
283(PhotographHaveAnimatorController)__receiver)
284        }
285    }
286}
287
288#[cfg(feature = "app-photographhaveanimatorcontroller")]
289impl<__T: IPhotographHaveAnimatorController> IPhotographHaveAnimatorControllerMethods for __T {}
290
291#[cfg(feature = "app-photographhaveanimatorcontroller")]
292impl PhotographHaveAnimatorController {
293    pub fn get_animator_controller_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
295    }
296
297    pub fn get_anime_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
299    }
300
301    pub fn set_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
303    }
304
305    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
307    }
308
309    pub fn get_sprite_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
311    }
312
313    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
315    }
316}
317
318#[cfg(feature = "app-photographhaveanimatorcontroller")]
319impl PhotographHaveAnimatorController {
320    #[doc = "`.ctor()` — no args"]
321    pub fn new() -> Self {
322        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
323            panic!(
324                "{}
325::{}
326 failed to instantiate",
327                ::core::stringify!(PhotographHaveAnimatorController),
328                ::core::stringify!(new),
329            )
330        });
331        <Self as IPhotographHaveAnimatorControllerMethods>::ctor(this);
332        this
333    }
334}
335
336#[cfg(feature = "app-photographhaveanimatorcontroller")]
337pub trait IPhotographHaveAnimatorController_UpdateFaceAnimeMethods: IPhotographHaveAnimatorController_UpdateFaceAnime {
338    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
339    fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
340        unsafe {
341            let __receiver = <PhotographHaveAnimatorController_UpdateFaceAnime as ::unity::FromIlInstance>::from_il_instance(
342                <Self as ::unity::SystemObject>::as_instance(self),
343            );
344            ::unity::il2cpp_call!((::unity::module_base()+0x2262740usize)as*mut u8,();
345(PhotographHaveAnimatorController_UpdateFaceAnime)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
346        }
347    }
348    #[doc = "`Invoke(::unity::Il2CppString)` overload"]
349    fn invoke(self, face_anime: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
350        unsafe {
351            let __receiver = <PhotographHaveAnimatorController_UpdateFaceAnime as ::unity::FromIlInstance>::from_il_instance(
352                <Self as ::unity::SystemObject>::as_instance(self),
353            );
354            {
355                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
356                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
357                    panic!(
358                        "unity: virtual slot {}
359 out of range (vtable len {}
360) on the runtime class behind {}
361 (method `{}
362`)",
363                        13usize,
364                        __vt.len(),
365                        <PhotographHaveAnimatorController_UpdateFaceAnime as ::unity::ClassIdentity>::NAME,
366                        "Invoke",
367                    )
368                });
369                let __inner: extern "C" fn(PhotographHaveAnimatorController_UpdateFaceAnime, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
370                    ::core::mem::transmute(__vi.method_ptr);
371                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
372                __inner(__receiver, ::core::convert::Into::into(face_anime), __mi)
373            }
374        }
375    }
376}
377
378#[cfg(feature = "app-photographhaveanimatorcontroller")]
379impl<__T: IPhotographHaveAnimatorController_UpdateFaceAnime> IPhotographHaveAnimatorController_UpdateFaceAnimeMethods for __T {}
380
381#[cfg(feature = "app-photographhaveanimatorcontroller")]
382impl PhotographHaveAnimatorController_UpdateFaceAnime {
383    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
384        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
385    }
386
387    pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
388        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
389    }
390}
391
392#[cfg(feature = "app-photographhaveanimatorcontroller")]
393impl PhotographHaveAnimatorController_UpdateFaceAnime {
394    #[doc = "Direct (non-virtual) call to `PhotographHaveAnimatorController_UpdateFaceAnime`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
395    pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, face_anime: ::unity::Il2CppString) -> () {
396        let __mi = Self::invoke_method_info();
397        let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
398            ::core::mem::transmute(__mi.method_ptr);
399        __inner(this.into(), face_anime, ::core::option::Option::None)
400    }
401}
402
403#[cfg(feature = "app-photographhaveanimatorcontroller")]
404impl PhotographHaveAnimatorController_UpdateFaceAnime {
405    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
406    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
407        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
408            panic!(
409                "{}
410::{}
411 failed to instantiate",
412                ::core::stringify!(PhotographHaveAnimatorController_UpdateFaceAnime),
413                ::core::stringify!(new),
414            )
415        });
416        <Self as IPhotographHaveAnimatorController_UpdateFaceAnimeMethods>::ctor(this, object, method);
417        this
418    }
419}
420
421#[cfg(feature = "app-photographhaveanimatorcontroller")]
422#[doc(hidden)]
423pub mod prelude {
424    pub use super::{
425        IPhotographHaveAnimatorController, IPhotographHaveAnimatorControllerMethods, IPhotographHaveAnimatorController_UpdateAnime,
426        IPhotographHaveAnimatorController_UpdateAnimeMethods, IPhotographHaveAnimatorController_UpdateFaceAnime,
427        IPhotographHaveAnimatorController_UpdateFaceAnimeMethods, PhotographHaveAnimatorController, PhotographHaveAnimatorController_FaceAnime,
428        PhotographHaveAnimatorController_UpdateAnime, PhotographHaveAnimatorController_UpdateFaceAnime,
429    };
430    #[cfg(feature = "system-delegate")]
431    pub use crate::system::delegate::IDelegateMethods;
432    #[cfg(feature = "system-multicastdelegate")]
433    pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
434    #[cfg(feature = "system-object")]
435    pub use crate::system::object::IObjectMethods;
436    #[cfg(feature = "system-enum")]
437    pub use crate::system::r#enum::IEnumMethods;
438    #[cfg(feature = "system-valuetype")]
439    pub use crate::system::valuetype::IValueTypeMethods;
440    #[cfg(feature = "unity_engine-behaviour")]
441    pub use crate::unity_engine::behaviour::IBehaviourMethods;
442    #[cfg(feature = "unity_engine-component")]
443    pub use crate::unity_engine::component::IComponentMethods;
444    #[cfg(feature = "unity_engine-monobehaviour")]
445    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
446    #[cfg(feature = "unity_engine-object_2")]
447    pub use crate::unity_engine::object_2::IObject_2Methods;
448    pub use crate::{
449        system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject, r#enum::IEnum, valuetype::IValueType},
450        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
451    };
452}