Skip to main content

engage/generated/unity_engine/
keyframe.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-keyframe-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/keyframe/Keyframe.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct Keyframe {
17        pub m_time: f32,
18        pub m_value: f32,
19        pub m_in_tangent: f32,
20        pub m_out_tangent: f32,
21        pub m_weighted_mode: i32,
22        pub m_in_weight: f32,
23        pub m_out_weight: f32,
24    }
25    impl ::unity::ClassIdentity for Keyframe {
26        const NAME: &'static str = "Keyframe";
27        const NAMESPACE: &'static str = "UnityEngine";
28
29        fn class() -> ::unity::Class {
30            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
31            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
32        }
33    }
34    impl ::unity::IlType for Keyframe {
35        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
36            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
37        }
38    }
39}
40
41#[cfg(feature = "unity_engine-keyframe-types")]
42pub use __types::*;
43
44#[cfg(feature = "unity_engine-keyframe")]
45impl Keyframe {
46    #[doc = "`.ctor(f32, f32)` overload"]
47    pub fn ctor(&mut self, time: impl ::core::convert::Into<f32>, value: impl ::core::convert::Into<f32>) -> () {
48        unsafe {
49            ::unity::il2cpp_call!((::unity::module_base()+0x2c35240usize)as*mut u8,();
50(*mut Keyframe)self as*mut Keyframe,(f32)::core::convert::Into::into(time),(f32)::core::convert::Into::into(value))
51        }
52    }
53
54    #[doc = "`.ctor(f32, f32, f32, f32)` overload"]
55    pub fn ctor_2(
56        &mut self,
57        time: impl ::core::convert::Into<f32>,
58        value: impl ::core::convert::Into<f32>,
59        in_tangent: impl ::core::convert::Into<f32>,
60        out_tangent: impl ::core::convert::Into<f32>,
61    ) -> () {
62        unsafe {
63            ::unity::il2cpp_call!((::unity::module_base()+0x2c352c0usize)as*mut u8,();
64(*mut Keyframe)self as*mut Keyframe,(f32)::core::convert::Into::into(time),(f32)::core::convert::Into::into(value),(f32)::core::convert::Into::into(in_tangent),(f32)::core::convert::Into::into(out_tangent))
65        }
66    }
67
68    #[doc = "`get_time()` overload"]
69    pub fn get_time(&mut self) -> f32 {
70        unsafe {
71            ::unity::il2cpp_call!((::unity::module_base()+0x2c527d0usize)as*mut u8,f32;
72(*mut Keyframe)self as*mut Keyframe)
73        }
74    }
75
76    #[doc = "`set_time(f32)` overload"]
77    pub fn set_time(&mut self, value: impl ::core::convert::Into<f32>) -> () {
78        unsafe {
79            ::unity::il2cpp_call!((::unity::module_base()+0x2c527e0usize)as*mut u8,();
80(*mut Keyframe)self as*mut Keyframe,(f32)::core::convert::Into::into(value))
81        }
82    }
83
84    #[doc = "`get_value()` overload"]
85    pub fn get_value(&mut self) -> f32 {
86        unsafe {
87            ::unity::il2cpp_call!((::unity::module_base()+0x2c527f0usize)as*mut u8,f32;
88(*mut Keyframe)self as*mut Keyframe)
89        }
90    }
91
92    #[doc = "`set_value(f32)` overload"]
93    pub fn set_value(&mut self, value: impl ::core::convert::Into<f32>) -> () {
94        unsafe {
95            ::unity::il2cpp_call!((::unity::module_base()+0x2c52800usize)as*mut u8,();
96(*mut Keyframe)self as*mut Keyframe,(f32)::core::convert::Into::into(value))
97        }
98    }
99
100    #[doc = "`get_inTangent()` overload"]
101    pub fn get_in_tangent(&mut self) -> f32 {
102        unsafe {
103            ::unity::il2cpp_call!((::unity::module_base()+0x2c52810usize)as*mut u8,f32;
104(*mut Keyframe)self as*mut Keyframe)
105        }
106    }
107
108    #[doc = "`set_inTangent(f32)` overload"]
109    pub fn set_in_tangent(&mut self, value: impl ::core::convert::Into<f32>) -> () {
110        unsafe {
111            ::unity::il2cpp_call!((::unity::module_base()+0x2c52820usize)as*mut u8,();
112(*mut Keyframe)self as*mut Keyframe,(f32)::core::convert::Into::into(value))
113        }
114    }
115
116    #[doc = "`get_outTangent()` overload"]
117    pub fn get_out_tangent(&mut self) -> f32 {
118        unsafe {
119            ::unity::il2cpp_call!((::unity::module_base()+0x2c52830usize)as*mut u8,f32;
120(*mut Keyframe)self as*mut Keyframe)
121        }
122    }
123
124    #[doc = "`set_outTangent(f32)` overload"]
125    pub fn set_out_tangent(&mut self, value: impl ::core::convert::Into<f32>) -> () {
126        unsafe {
127            ::unity::il2cpp_call!((::unity::module_base()+0x2c52840usize)as*mut u8,();
128(*mut Keyframe)self as*mut Keyframe,(f32)::core::convert::Into::into(value))
129        }
130    }
131}
132
133#[cfg(feature = "unity_engine-keyframe")]
134impl Keyframe {
135    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
137    }
138
139    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
141    }
142
143    pub fn get_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
145    }
146
147    pub fn set_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
149    }
150
151    pub fn get_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
153    }
154
155    pub fn set_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
157    }
158
159    pub fn get_in_tangent_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
161    }
162
163    pub fn set_in_tangent_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
165    }
166
167    pub fn get_out_tangent_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
169    }
170
171    pub fn set_out_tangent_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
173    }
174}
175
176#[cfg(feature = "unity_engine-keyframe")]
177#[doc(hidden)]
178pub mod prelude {
179    pub use super::Keyframe;
180    #[cfg(feature = "system-object")]
181    pub use crate::system::object::IObjectMethods;
182    #[cfg(feature = "system-valuetype")]
183    pub use crate::system::valuetype::IValueTypeMethods;
184    pub use crate::system::{object::IObject, valuetype::IValueType};
185}