engage/generated/unity_engine/animations/
animatorcontrollerplayable.rs1#[cfg(feature = "unity_engine-animations-animatorcontrollerplayable-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/animatorcontrollerplayable/AnimatorControllerPlayable.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct AnimatorControllerPlayable {
17 pub m_handle: crate::unity_engine::playables::playablehandle::PlayableHandle,
18 }
19 impl ::unity::ClassIdentity for AnimatorControllerPlayable {
20 const NAME: &'static str = "AnimatorControllerPlayable";
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 AnimatorControllerPlayable {
29 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
30 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
31 }
32 }
33 impl AnimatorControllerPlayable {
34 #[inline]
35 pub fn m_null_playable() -> crate::unity_engine::animations::animatorcontrollerplayable::AnimatorControllerPlayable {
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::animatorcontrollerplayable::AnimatorControllerPlayable) {
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-animatorcontrollerplayable-types")]
51pub use __types::*;
52
53#[cfg(feature = "unity_engine-animations-animatorcontrollerplayable")]
54impl AnimatorControllerPlayable {
55 #[doc = "`SetFloatString(*mutcrate::unity_engine::playables::playablehandle::PlayableHandle, ::unity::Il2CppString, f32)` overload"]
56 pub fn set_float_string(
57 name: impl ::core::convert::Into<::unity::Il2CppString>,
58 value: impl ::core::convert::Into<f32>,
59 ) -> crate::unity_engine::playables::playablehandle::PlayableHandle {
60 unsafe {
61 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::playables::playablehandle::PlayableHandle>::uninit();
62 ::unity::il2cpp_call!((::unity::module_base()+0x3eb71f0usize)as*mut u8,();
63(*mut crate::unity_engine::playables::playablehandle::PlayableHandle)__out_0.as_mut_ptr(),(::unity::Il2CppString)::core::convert::Into::into(name),(f32)::core::convert::Into::into(value));
64 __out_0.assume_init()
65 }
66 }
67
68 #[doc = "`.cctor()` overload"]
69 pub fn cctor() -> () {
70 unsafe {
71 ::unity::il2cpp_call!((::unity::module_base()+0x3eb7250usize)as*mut u8,();
72 )
73 }
74 }
75}
76
77#[cfg(feature = "unity_engine-animations-animatorcontrollerplayable")]
78impl AnimatorControllerPlayable {
79 #[doc = "`.ctor(crate::unity_engine::playables::playablehandle::PlayableHandle)` overload"]
80 pub fn ctor(&mut self, handle: impl ::core::convert::Into<crate::unity_engine::playables::playablehandle::PlayableHandle>) -> () {
81 unsafe {
82 ::unity::il2cpp_call!((::unity::module_base()+0x3eb6f00usize)as*mut u8,();
83(*mut AnimatorControllerPlayable)self as*mut AnimatorControllerPlayable,(crate::unity_engine::playables::playablehandle::PlayableHandle)::core::convert::Into::into(handle))
84 }
85 }
86
87 #[doc = "`GetHandle()` overload"]
88 pub fn get_handle(&mut self) -> crate::unity_engine::playables::playablehandle::PlayableHandle {
89 unsafe {
90 ::unity::il2cpp_call!((::unity::module_base()+0x3eb70a0usize)as*mut u8,crate::unity_engine::playables::playablehandle::PlayableHandle;
91(*mut AnimatorControllerPlayable)self as*mut AnimatorControllerPlayable)
92 }
93 }
94
95 #[doc = "`SetHandle(crate::unity_engine::playables::playablehandle::PlayableHandle)` overload"]
96 pub fn set_handle(&mut self, handle: impl ::core::convert::Into<crate::unity_engine::playables::playablehandle::PlayableHandle>) -> () {
97 unsafe {
98 ::unity::il2cpp_call!((::unity::module_base()+0x3eb6f90usize)as*mut u8,();
99(*mut AnimatorControllerPlayable)self as*mut AnimatorControllerPlayable,(crate::unity_engine::playables::playablehandle::PlayableHandle)::core::convert::Into::into(handle))
100 }
101 }
102
103 #[doc = "`Equals(crate::unity_engine::animations::animatorcontrollerplayable::AnimatorControllerPlayable)` overload"]
104 pub fn equals(
105 &mut self,
106 other: impl ::core::convert::Into<crate::unity_engine::animations::animatorcontrollerplayable::AnimatorControllerPlayable>,
107 ) -> bool {
108 unsafe {
109 ::unity::il2cpp_call!((::unity::module_base()+0x3eb70b0usize)as*mut u8,bool;
110(*mut AnimatorControllerPlayable)self as*mut AnimatorControllerPlayable,(crate::unity_engine::animations::animatorcontrollerplayable::AnimatorControllerPlayable)::core::convert::Into::into(other))
111 }
112 }
113
114 #[doc = "`SetFloat(::unity::Il2CppString, f32)` overload"]
115 pub fn set_float(&mut self, name: impl ::core::convert::Into<::unity::Il2CppString>, value: impl ::core::convert::Into<f32>) -> () {
116 unsafe {
117 ::unity::il2cpp_call!((::unity::module_base()+0x3eb7140usize)as*mut u8,();
118(*mut AnimatorControllerPlayable)self as*mut AnimatorControllerPlayable,(::unity::Il2CppString)::core::convert::Into::into(name),(f32)::core::convert::Into::into(value))
119 }
120 }
121}
122
123#[cfg(feature = "unity_engine-animations-animatorcontrollerplayable")]
124impl AnimatorControllerPlayable {
125 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
126 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
127 }
128
129 pub fn get_handle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
130 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
131 }
132
133 pub fn set_handle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
134 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
135 }
136
137 pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
138 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
139 }
140
141 pub fn set_float_method_info() -> &'static ::unity::il2cpp::MethodInfo {
142 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
143 }
144
145 pub fn set_float_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
146 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
147 }
148
149 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
150 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
151 }
152}
153
154#[cfg(feature = "unity_engine-animations-animatorcontrollerplayable")]
155#[doc(hidden)]
156pub mod prelude {
157 pub use super::AnimatorControllerPlayable;
158 #[cfg(feature = "system-object")]
159 pub use crate::system::object::IObjectMethods;
160 #[cfg(feature = "system-valuetype")]
161 pub use crate::system::valuetype::IValueTypeMethods;
162 pub use crate::system::{object::IObject, valuetype::IValueType};
163}