Skip to main content

engage/generated/unity_engine/animations/
animationposeplayable.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-animations-animationposeplayable-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        valuetype::{IValueType, ValueType},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/animations/animationposeplayable/AnimationPosePlayable.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct AnimationPosePlayable {
17        pub m_handle: crate::unity_engine::playables::playablehandle::PlayableHandle,
18    }
19    impl ::unity::ClassIdentity for AnimationPosePlayable {
20        const NAME: &'static str = "AnimationPosePlayable";
21        const NAMESPACE: &'static str = "UnityEngine.Animations";
22
23        fn class() -> ::unity::Class {
24            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
25            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
26        }
27    }
28    impl ::unity::IlType for AnimationPosePlayable {
29        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
30            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
31        }
32    }
33    impl AnimationPosePlayable {
34        #[inline]
35        pub fn m_null_playable() -> crate::unity_engine::animations::animationposeplayable::AnimationPosePlayable {
36            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
37            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "m_NullPlayable");
38            ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
39        }
40
41        #[inline]
42        pub fn set_m_null_playable(value: crate::unity_engine::animations::animationposeplayable::AnimationPosePlayable) {
43            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
44            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "m_NullPlayable");
45            ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
46        }
47    }
48}
49
50#[cfg(feature = "unity_engine-animations-animationposeplayable-types")]
51pub use __types::*;
52
53#[cfg(feature = "unity_engine-animations-animationposeplayable")]
54impl AnimationPosePlayable {
55    #[doc = "`.cctor()` overload"]
56    pub fn cctor() -> () {
57        unsafe {
58            ::unity::il2cpp_call!((::unity::module_base()+0x3eafb50usize)as*mut u8,();
59            )
60        }
61    }
62}
63
64#[cfg(feature = "unity_engine-animations-animationposeplayable")]
65impl AnimationPosePlayable {
66    #[doc = "`.ctor(crate::unity_engine::playables::playablehandle::PlayableHandle)` overload"]
67    pub fn ctor(&mut self, handle: impl ::core::convert::Into<crate::unity_engine::playables::playablehandle::PlayableHandle>) -> () {
68        unsafe {
69            ::unity::il2cpp_call!((::unity::module_base()+0x3eaf9b0usize)as*mut u8,();
70(*mut AnimationPosePlayable)self as*mut AnimationPosePlayable,(crate::unity_engine::playables::playablehandle::PlayableHandle)::core::convert::Into::into(handle))
71        }
72    }
73
74    #[doc = "`GetHandle()` overload"]
75    pub fn get_handle(&mut self) -> crate::unity_engine::playables::playablehandle::PlayableHandle {
76        unsafe {
77            ::unity::il2cpp_call!((::unity::module_base()+0x3eafa70usize)as*mut u8,crate::unity_engine::playables::playablehandle::PlayableHandle;
78(*mut AnimationPosePlayable)self as*mut AnimationPosePlayable)
79        }
80    }
81
82    #[doc = "`Equals(crate::unity_engine::animations::animationposeplayable::AnimationPosePlayable)` overload"]
83    pub fn equals(
84        &mut self,
85        other: impl ::core::convert::Into<crate::unity_engine::animations::animationposeplayable::AnimationPosePlayable>,
86    ) -> bool {
87        unsafe {
88            ::unity::il2cpp_call!((::unity::module_base()+0x3eafa80usize)as*mut u8,bool;
89(*mut AnimationPosePlayable)self as*mut AnimationPosePlayable,(crate::unity_engine::animations::animationposeplayable::AnimationPosePlayable)::core::convert::Into::into(other))
90        }
91    }
92}
93
94#[cfg(feature = "unity_engine-animations-animationposeplayable")]
95impl AnimationPosePlayable {
96    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
97        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
98    }
99
100    pub fn get_handle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
101        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
102    }
103
104    pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
105        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
106    }
107
108    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
109        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
110    }
111}
112
113#[cfg(feature = "unity_engine-animations-animationposeplayable")]
114#[doc(hidden)]
115pub mod prelude {
116    pub use super::AnimationPosePlayable;
117    #[cfg(feature = "system-object")]
118    pub use crate::system::object::IObjectMethods;
119    #[cfg(feature = "system-valuetype")]
120    pub use crate::system::valuetype::IValueTypeMethods;
121    pub use crate::system::{object::IObject, valuetype::IValueType};
122}