Skip to main content

engage/generated/unity_engine/
animatorstateinfo.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-animatorstateinfo-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/animatorstateinfo/AnimatorStateInfo.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct AnimatorStateInfo {
17        pub m_name: i32,
18        pub m_path: i32,
19        pub m_full_path: i32,
20        pub m_normalized_time: f32,
21        pub m_length: f32,
22        pub m_speed: f32,
23        pub m_speed_multiplier: f32,
24        pub m_tag: i32,
25        pub m_loop: i32,
26    }
27    impl ::unity::ClassIdentity for AnimatorStateInfo {
28        const NAME: &'static str = "AnimatorStateInfo";
29        const NAMESPACE: &'static str = "UnityEngine";
30
31        fn class() -> ::unity::Class {
32            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
33            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
34        }
35    }
36    impl ::unity::IlType for AnimatorStateInfo {
37        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
38            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
39        }
40    }
41}
42
43#[cfg(feature = "unity_engine-animatorstateinfo-types")]
44pub use __types::*;
45
46#[cfg(feature = "unity_engine-animatorstateinfo")]
47impl AnimatorStateInfo {
48    #[doc = "`IsName(::unity::Il2CppString)` overload"]
49    pub fn is_name(&mut self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
50        unsafe {
51            ::unity::il2cpp_call!((::unity::module_base()+0x3eb8410usize)as*mut u8,bool;
52(*mut AnimatorStateInfo)self as*mut AnimatorStateInfo,(::unity::Il2CppString)::core::convert::Into::into(name))
53        }
54    }
55
56    #[doc = "`get_fullPathHash()` overload"]
57    pub fn get_full_path_hash(&mut self) -> i32 {
58        unsafe {
59            ::unity::il2cpp_call!((::unity::module_base()+0x3eb84a0usize)as*mut u8,i32;
60(*mut AnimatorStateInfo)self as*mut AnimatorStateInfo)
61        }
62    }
63
64    #[doc = "`get_shortNameHash()` overload"]
65    pub fn get_short_name_hash(&mut self) -> i32 {
66        unsafe {
67            ::unity::il2cpp_call!((::unity::module_base()+0x3eb84b0usize)as*mut u8,i32;
68(*mut AnimatorStateInfo)self as*mut AnimatorStateInfo)
69        }
70    }
71
72    #[doc = "`get_normalizedTime()` overload"]
73    pub fn get_normalized_time(&mut self) -> f32 {
74        unsafe {
75            ::unity::il2cpp_call!((::unity::module_base()+0x3eb84c0usize)as*mut u8,f32;
76(*mut AnimatorStateInfo)self as*mut AnimatorStateInfo)
77        }
78    }
79
80    #[doc = "`get_length()` overload"]
81    pub fn get_length(&mut self) -> f32 {
82        unsafe {
83            ::unity::il2cpp_call!((::unity::module_base()+0x3eb84d0usize)as*mut u8,f32;
84(*mut AnimatorStateInfo)self as*mut AnimatorStateInfo)
85        }
86    }
87
88    #[doc = "`get_speed()` overload"]
89    pub fn get_speed(&mut self) -> f32 {
90        unsafe {
91            ::unity::il2cpp_call!((::unity::module_base()+0x3eb84e0usize)as*mut u8,f32;
92(*mut AnimatorStateInfo)self as*mut AnimatorStateInfo)
93        }
94    }
95
96    #[doc = "`get_speedMultiplier()` overload"]
97    pub fn get_speed_multiplier(&mut self) -> f32 {
98        unsafe {
99            ::unity::il2cpp_call!((::unity::module_base()+0x3eb84f0usize)as*mut u8,f32;
100(*mut AnimatorStateInfo)self as*mut AnimatorStateInfo)
101        }
102    }
103
104    #[doc = "`get_loop()` overload"]
105    pub fn get_loop(&mut self) -> bool {
106        unsafe {
107            ::unity::il2cpp_call!((::unity::module_base()+0x3eb8500usize)as*mut u8,bool;
108(*mut AnimatorStateInfo)self as*mut AnimatorStateInfo)
109        }
110    }
111}
112
113#[cfg(feature = "unity_engine-animatorstateinfo")]
114impl AnimatorStateInfo {
115    pub fn is_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
116        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
117    }
118
119    pub fn get_full_path_hash_method_info() -> &'static ::unity::il2cpp::MethodInfo {
120        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
121    }
122
123    pub fn get_short_name_hash_method_info() -> &'static ::unity::il2cpp::MethodInfo {
124        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
125    }
126
127    pub fn get_normalized_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
129    }
130
131    pub fn get_length_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
133    }
134
135    pub fn get_speed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
137    }
138
139    pub fn get_speed_multiplier_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
141    }
142
143    pub fn get_loop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
145    }
146}
147
148#[cfg(feature = "unity_engine-animatorstateinfo")]
149#[doc(hidden)]
150pub mod prelude {
151    pub use super::AnimatorStateInfo;
152    #[cfg(feature = "system-object")]
153    pub use crate::system::object::IObjectMethods;
154    #[cfg(feature = "system-valuetype")]
155    pub use crate::system::valuetype::IValueTypeMethods;
156    pub use crate::system::{object::IObject, valuetype::IValueType};
157}