Skip to main content

engage/generated/unity_engine/playables/
framedata.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-playables-framedata-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        r#enum::{Enum, IEnum},
11        valuetype::{IValueType, ValueType},
12    };
13
14    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/playables/framedata/FrameData.md"))]
15    #[repr(C)]
16    #[derive(::core::clone::Clone, ::core::marker::Copy)]
17    pub struct FrameData {
18        pub m_frame_id: u64,
19        pub m_delta_time: f64,
20        pub m_weight: f32,
21        pub m_effective_weight: f32,
22        pub m_effective_parent_delay: f64,
23        pub m_effective_parent_speed: f32,
24        pub m_effective_speed: f32,
25        pub m_flags: crate::unity_engine::playables::framedata::FrameData_Flags,
26        pub m_output: crate::unity_engine::playables::playableoutput::PlayableOutput,
27    }
28    impl ::unity::ClassIdentity for FrameData {
29        const NAME: &'static str = "FrameData";
30        const NAMESPACE: &'static str = "UnityEngine.Playables";
31
32        fn class() -> ::unity::Class {
33            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
34            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
35        }
36    }
37    impl ::unity::IlType for FrameData {
38        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
39            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
40        }
41    }
42
43    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/playables/framedata/FrameData_EvaluationType.md"))]
44    #[repr(C)]
45    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
46    pub struct FrameData_EvaluationType {
47        pub value: i32,
48    }
49    impl ::unity::ClassIdentity for FrameData_EvaluationType {
50        const NAME: &'static str = "FrameData.EvaluationType";
51        const NAMESPACE: &'static str = "UnityEngine.Playables";
52
53        fn class() -> ::unity::Class {
54            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
55            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
56        }
57    }
58    impl ::unity::IlType for FrameData_EvaluationType {
59        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
60            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
61        }
62    }
63    impl FrameData_EvaluationType {
64        pub fn evaluate() -> Self {
65            Self { value: 0 }
66        }
67
68        pub fn playback() -> Self {
69            Self { value: 1 }
70        }
71    }
72
73    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/playables/framedata/FrameData_Flags.md"))]
74    #[repr(C)]
75    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
76    pub struct FrameData_Flags {
77        pub value: i32,
78    }
79    impl ::unity::ClassIdentity for FrameData_Flags {
80        const NAME: &'static str = "FrameData.Flags";
81        const NAMESPACE: &'static str = "UnityEngine.Playables";
82
83        fn class() -> ::unity::Class {
84            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
85            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
86        }
87    }
88    impl ::unity::IlType for FrameData_Flags {
89        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
90            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
91        }
92    }
93    impl FrameData_Flags {
94        pub fn evaluate() -> Self {
95            Self { value: 1 }
96        }
97
98        pub fn seek_occured() -> Self {
99            Self { value: 2 }
100        }
101
102        pub fn r#loop() -> Self {
103            Self { value: 4 }
104        }
105
106        pub fn hold() -> Self {
107            Self { value: 8 }
108        }
109
110        pub fn effective_play_state_delayed() -> Self {
111            Self { value: 16 }
112        }
113
114        pub fn effective_play_state_playing() -> Self {
115            Self { value: 32 }
116        }
117    }
118}
119
120#[cfg(feature = "unity_engine-playables-framedata-types")]
121pub use __types::*;
122
123#[cfg(feature = "unity_engine-playables-framedata")]
124impl FrameData {
125    #[doc = "`HasFlags(crate::unity_engine::playables::framedata::FrameData_Flags)` overload"]
126    pub fn has_flags(&mut self, flag: impl ::core::convert::Into<crate::unity_engine::playables::framedata::FrameData_Flags>) -> bool {
127        unsafe {
128            ::unity::il2cpp_call!((::unity::module_base()+0x2c4d9d0usize)as*mut u8,bool;
129(*mut FrameData)self as*mut FrameData,(crate::unity_engine::playables::framedata::FrameData_Flags)::core::convert::Into::into(flag))
130        }
131    }
132
133    #[doc = "`get_deltaTime()` overload"]
134    pub fn get_delta_time(&mut self) -> f32 {
135        unsafe {
136            ::unity::il2cpp_call!((::unity::module_base()+0x2c4d9e0usize)as*mut u8,f32;
137(*mut FrameData)self as*mut FrameData)
138        }
139    }
140
141    #[doc = "`get_effectiveParentSpeed()` overload"]
142    pub fn get_effective_parent_speed(&mut self) -> f32 {
143        unsafe {
144            ::unity::il2cpp_call!((::unity::module_base()+0x2c4d9f0usize)as*mut u8,f32;
145(*mut FrameData)self as*mut FrameData)
146        }
147    }
148
149    #[doc = "`get_effectiveSpeed()` overload"]
150    pub fn get_effective_speed(&mut self) -> f32 {
151        unsafe {
152            ::unity::il2cpp_call!((::unity::module_base()+0x2c4da00usize)as*mut u8,f32;
153(*mut FrameData)self as*mut FrameData)
154        }
155    }
156
157    #[doc = "`get_evaluationType()` overload"]
158    pub fn get_evaluation_type(&mut self) -> crate::unity_engine::playables::framedata::FrameData_EvaluationType {
159        unsafe {
160            ::unity::il2cpp_call!((::unity::module_base()+0x2c4da10usize)as*mut u8,crate::unity_engine::playables::framedata::FrameData_EvaluationType;
161(*mut FrameData)self as*mut FrameData)
162        }
163    }
164
165    #[doc = "`get_timeLooped()` overload"]
166    pub fn get_time_looped(&mut self) -> bool {
167        unsafe {
168            ::unity::il2cpp_call!((::unity::module_base()+0x2c4da20usize)as*mut u8,bool;
169(*mut FrameData)self as*mut FrameData)
170        }
171    }
172
173    #[doc = "`get_timeHeld()` overload"]
174    pub fn get_time_held(&mut self) -> bool {
175        unsafe {
176            ::unity::il2cpp_call!((::unity::module_base()+0x2c4da30usize)as*mut u8,bool;
177(*mut FrameData)self as*mut FrameData)
178        }
179    }
180
181    #[doc = "`get_output()` overload"]
182    pub fn get_output(&mut self) -> crate::unity_engine::playables::playableoutput::PlayableOutput {
183        unsafe {
184            ::unity::il2cpp_call!((::unity::module_base()+0x2c4da40usize)as*mut u8,crate::unity_engine::playables::playableoutput::PlayableOutput;
185(*mut FrameData)self as*mut FrameData)
186        }
187    }
188
189    #[doc = "`get_effectivePlayState()` overload"]
190    pub fn get_effective_play_state(&mut self) -> crate::unity_engine::playables::playstate::PlayState {
191        unsafe {
192            ::unity::il2cpp_call!((::unity::module_base()+0x2c4da50usize)as*mut u8,crate::unity_engine::playables::playstate::PlayState;
193(*mut FrameData)self as*mut FrameData)
194        }
195    }
196}
197
198#[cfg(feature = "unity_engine-playables-framedata")]
199impl FrameData {
200    pub fn has_flags_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
202    }
203
204    pub fn get_delta_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
206    }
207
208    pub fn get_effective_parent_speed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
210    }
211
212    pub fn get_effective_speed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
213        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
214    }
215
216    pub fn get_evaluation_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
217        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
218    }
219
220    pub fn get_time_looped_method_info() -> &'static ::unity::il2cpp::MethodInfo {
221        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
222    }
223
224    pub fn get_time_held_method_info() -> &'static ::unity::il2cpp::MethodInfo {
225        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
226    }
227
228    pub fn get_output_method_info() -> &'static ::unity::il2cpp::MethodInfo {
229        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
230    }
231
232    pub fn get_effective_play_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
233        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
234    }
235}
236
237#[cfg(feature = "unity_engine-playables-framedata")]
238#[doc(hidden)]
239pub mod prelude {
240    pub use super::{FrameData, FrameData_EvaluationType, FrameData_Flags};
241    #[cfg(feature = "system-object")]
242    pub use crate::system::object::IObjectMethods;
243    #[cfg(feature = "system-enum")]
244    pub use crate::system::r#enum::IEnumMethods;
245    #[cfg(feature = "system-valuetype")]
246    pub use crate::system::valuetype::IValueTypeMethods;
247    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
248}