Skip to main content

engage/generated/unity_engine/animations/
animationmixerplayable.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-animations-animationmixerplayable-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/animationmixerplayable/AnimationMixerPlayable.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct AnimationMixerPlayable {
17        pub m_handle: crate::unity_engine::playables::playablehandle::PlayableHandle,
18    }
19    impl ::unity::ClassIdentity for AnimationMixerPlayable {
20        const NAME: &'static str = "AnimationMixerPlayable";
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 AnimationMixerPlayable {
29        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
30            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
31        }
32    }
33    impl AnimationMixerPlayable {
34        #[inline]
35        pub fn m_null_playable() -> crate::unity_engine::animations::animationmixerplayable::AnimationMixerPlayable {
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::animationmixerplayable::AnimationMixerPlayable) {
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-animationmixerplayable-types")]
51pub use __types::*;
52
53#[cfg(feature = "unity_engine-animations-animationmixerplayable")]
54impl AnimationMixerPlayable {
55    #[doc = "`Create(crate::unity_engine::playables::playablegraph::PlayableGraph, i32, bool)` overload"]
56    pub fn create(
57        graph: impl ::core::convert::Into<crate::unity_engine::playables::playablegraph::PlayableGraph>,
58        input_count: impl ::core::convert::Into<i32>,
59        normalize_weights: impl ::core::convert::Into<bool>,
60    ) -> crate::unity_engine::animations::animationmixerplayable::AnimationMixerPlayable {
61        unsafe {
62            ::unity::il2cpp_call!((::unity::module_base()+0x3eadfa0usize)as*mut u8,crate::unity_engine::animations::animationmixerplayable::AnimationMixerPlayable;
63(crate::unity_engine::playables::playablegraph::PlayableGraph)::core::convert::Into::into(graph),(i32)::core::convert::Into::into(input_count),(bool)::core::convert::Into::into(normalize_weights))
64        }
65    }
66
67    #[doc = "`CreateHandle(crate::unity_engine::playables::playablegraph::PlayableGraph, i32, bool)` overload"]
68    pub fn create_handle(
69        graph: impl ::core::convert::Into<crate::unity_engine::playables::playablegraph::PlayableGraph>,
70        input_count: impl ::core::convert::Into<i32>,
71        normalize_weights: impl ::core::convert::Into<bool>,
72    ) -> crate::unity_engine::playables::playablehandle::PlayableHandle {
73        unsafe {
74            ::unity::il2cpp_call!((::unity::module_base()+0x3eae060usize)as*mut u8,crate::unity_engine::playables::playablehandle::PlayableHandle;
75(crate::unity_engine::playables::playablegraph::PlayableGraph)::core::convert::Into::into(graph),(i32)::core::convert::Into::into(input_count),(bool)::core::convert::Into::into(normalize_weights))
76        }
77    }
78
79    #[doc = "`op_Implicit(crate::unity_engine::animations::animationmixerplayable::AnimationMixerPlayable)` overload"]
80    pub fn op_implicit(
81        playable: impl ::core::convert::Into<crate::unity_engine::animations::animationmixerplayable::AnimationMixerPlayable>,
82    ) -> crate::unity_engine::playables::playable::Playable {
83        unsafe {
84            ::unity::il2cpp_call!((::unity::module_base()+0x3eae380usize)as*mut u8,crate::unity_engine::playables::playable::Playable;
85(crate::unity_engine::animations::animationmixerplayable::AnimationMixerPlayable)::core::convert::Into::into(playable))
86        }
87    }
88
89    #[doc = "`CreateHandleInternal(crate::unity_engine::playables::playablegraph::PlayableGraph, bool, *mutcrate::unity_engine::playables::playablehandle::PlayableHandle)` overload"]
90    pub fn create_handle_internal(
91        graph: impl ::core::convert::Into<crate::unity_engine::playables::playablegraph::PlayableGraph>,
92        normalize_weights: impl ::core::convert::Into<bool>,
93    ) -> (bool, crate::unity_engine::playables::playablehandle::PlayableHandle) {
94        unsafe {
95            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::playables::playablehandle::PlayableHandle>::uninit();
96            let __ret = {
97                ::unity::il2cpp_call!((::unity::module_base()+0x3eae2b0usize)as*mut u8,bool;
98(crate::unity_engine::playables::playablegraph::PlayableGraph)::core::convert::Into::into(graph),(bool)::core::convert::Into::into(normalize_weights),(*mut crate::unity_engine::playables::playablehandle::PlayableHandle)__out_0.as_mut_ptr())
99            };
100            (__ret, __out_0.assume_init())
101        }
102    }
103
104    #[doc = "`.cctor()` overload"]
105    pub fn cctor() -> () {
106        unsafe {
107            ::unity::il2cpp_call!((::unity::module_base()+0x3eae4b0usize)as*mut u8,();
108            )
109        }
110    }
111
112    #[doc = "`CreateHandleInternal_Injected(*mutcrate::unity_engine::playables::playablegraph::PlayableGraph, bool, *mutcrate::unity_engine::playables::playablehandle::PlayableHandle)` overload"]
113    pub fn create_handle_internal_injected(
114        normalize_weights: impl ::core::convert::Into<bool>,
115    ) -> (
116        bool,
117        crate::unity_engine::playables::playablegraph::PlayableGraph,
118        crate::unity_engine::playables::playablehandle::PlayableHandle,
119    ) {
120        unsafe {
121            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::playables::playablegraph::PlayableGraph>::uninit();
122            let mut __out_1 = ::core::mem::MaybeUninit::<crate::unity_engine::playables::playablehandle::PlayableHandle>::uninit();
123            let __ret = {
124                ::unity::il2cpp_call!((::unity::module_base()+0x3eae450usize)as*mut u8,bool;
125(*mut crate::unity_engine::playables::playablegraph::PlayableGraph)__out_0.as_mut_ptr(),(bool)::core::convert::Into::into(normalize_weights),(*mut crate::unity_engine::playables::playablehandle::PlayableHandle)__out_1.as_mut_ptr())
126            };
127            (__ret, __out_0.assume_init(), __out_1.assume_init())
128        }
129    }
130}
131
132#[cfg(feature = "unity_engine-animations-animationmixerplayable")]
133impl AnimationMixerPlayable {
134    #[doc = "`.ctor(crate::unity_engine::playables::playablehandle::PlayableHandle)` overload"]
135    pub fn ctor(&mut self, handle: impl ::core::convert::Into<crate::unity_engine::playables::playablehandle::PlayableHandle>) -> () {
136        unsafe {
137            ::unity::il2cpp_call!((::unity::module_base()+0x3eae1f0usize)as*mut u8,();
138(*mut AnimationMixerPlayable)self as*mut AnimationMixerPlayable,(crate::unity_engine::playables::playablehandle::PlayableHandle)::core::convert::Into::into(handle))
139        }
140    }
141
142    #[doc = "`GetHandle()` overload"]
143    pub fn get_handle(&mut self) -> crate::unity_engine::playables::playablehandle::PlayableHandle {
144        unsafe {
145            ::unity::il2cpp_call!((::unity::module_base()+0x3eae370usize)as*mut u8,crate::unity_engine::playables::playablehandle::PlayableHandle;
146(*mut AnimationMixerPlayable)self as*mut AnimationMixerPlayable)
147        }
148    }
149
150    #[doc = "`Equals(crate::unity_engine::animations::animationmixerplayable::AnimationMixerPlayable)` overload"]
151    pub fn equals(
152        &mut self,
153        other: impl ::core::convert::Into<crate::unity_engine::animations::animationmixerplayable::AnimationMixerPlayable>,
154    ) -> bool {
155        unsafe {
156            ::unity::il2cpp_call!((::unity::module_base()+0x3eae3c0usize)as*mut u8,bool;
157(*mut AnimationMixerPlayable)self as*mut AnimationMixerPlayable,(crate::unity_engine::animations::animationmixerplayable::AnimationMixerPlayable)::core::convert::Into::into(other))
158        }
159    }
160}
161
162#[cfg(feature = "unity_engine-animations-animationmixerplayable")]
163impl AnimationMixerPlayable {
164    pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
166    }
167
168    pub fn create_handle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
170    }
171
172    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
174    }
175
176    pub fn get_handle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
178    }
179
180    pub fn op_implicit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
182    }
183
184    pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
186    }
187
188    pub fn create_handle_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
190    }
191
192    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
194    }
195
196    pub fn create_handle_internal_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
198    }
199}
200
201#[cfg(feature = "unity_engine-animations-animationmixerplayable")]
202#[doc(hidden)]
203pub mod prelude {
204    pub use super::AnimationMixerPlayable;
205    #[cfg(feature = "system-object")]
206    pub use crate::system::object::IObjectMethods;
207    #[cfg(feature = "system-valuetype")]
208    pub use crate::system::valuetype::IValueTypeMethods;
209    pub use crate::system::{object::IObject, valuetype::IValueType};
210}