Skip to main content

engage/generated/unity_engine/animations/
animationscriptplayable.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-animations-animationscriptplayable-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/animationscriptplayable/AnimationScriptPlayable.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct AnimationScriptPlayable {
17        pub m_handle: crate::unity_engine::playables::playablehandle::PlayableHandle,
18    }
19    impl ::unity::ClassIdentity for AnimationScriptPlayable {
20        const NAME: &'static str = "AnimationScriptPlayable";
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 AnimationScriptPlayable {
29        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
30            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
31        }
32    }
33    impl AnimationScriptPlayable {
34        #[inline]
35        pub fn m_null_playable() -> crate::unity_engine::animations::animationscriptplayable::AnimationScriptPlayable {
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::animationscriptplayable::AnimationScriptPlayable) {
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-animationscriptplayable-types")]
51pub use __types::*;
52
53#[cfg(feature = "unity_engine-animations-animationscriptplayable")]
54impl AnimationScriptPlayable {
55    #[doc = "`.cctor()` overload"]
56    pub fn cctor() -> () {
57        unsafe {
58            ::unity::il2cpp_call!((::unity::module_base()+0x3eb0330usize)as*mut u8,();
59            )
60        }
61    }
62}
63
64#[cfg(feature = "unity_engine-animations-animationscriptplayable")]
65impl AnimationScriptPlayable {
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()+0x3eb01d0usize)as*mut u8,();
70(*mut AnimationScriptPlayable)self as*mut AnimationScriptPlayable,(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()+0x3eb0290usize)as*mut u8,crate::unity_engine::playables::playablehandle::PlayableHandle;
78(*mut AnimationScriptPlayable)self as*mut AnimationScriptPlayable)
79        }
80    }
81
82    #[doc = "`Equals(crate::unity_engine::animations::animationscriptplayable::AnimationScriptPlayable)` overload"]
83    pub fn equals(
84        &mut self,
85        other: impl ::core::convert::Into<crate::unity_engine::animations::animationscriptplayable::AnimationScriptPlayable>,
86    ) -> bool {
87        unsafe {
88            ::unity::il2cpp_call!((::unity::module_base()+0x3eb02a0usize)as*mut u8,bool;
89(*mut AnimationScriptPlayable)self as*mut AnimationScriptPlayable,(crate::unity_engine::animations::animationscriptplayable::AnimationScriptPlayable)::core::convert::Into::into(other))
90        }
91    }
92}
93
94#[cfg(feature = "unity_engine-animations-animationscriptplayable")]
95impl AnimationScriptPlayable {
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-animationscriptplayable")]
114#[doc(hidden)]
115pub mod prelude {
116    pub use super::AnimationScriptPlayable;
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}