engage/generated/unity_engine/timeline/
markerlist.rs1#[cfg(feature = "unity_engine-timeline-markerlist-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/timeline/markerlist/MarkerList.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct MarkerList {
17 pub m_objects: crate::system::collections::generic::list_1::List_1<crate::unity_engine::scriptableobject::ScriptableObject>,
18 pub m_cache: crate::system::collections::generic::list_1::List_1<crate::unity_engine::timeline::imarker_interface::IMarker_Interface>,
19 pub m_cache_dirty: bool,
20 pub m_has_notifications: bool,
21 }
22 impl ::unity::ClassIdentity for MarkerList {
23 const NAME: &'static str = "MarkerList";
24 const NAMESPACE: &'static str = "UnityEngine.Timeline";
25
26 fn class() -> ::unity::Class {
27 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
28 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
29 }
30 }
31 impl ::unity::IlType for MarkerList {
32 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
33 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
34 }
35 }
36}
37
38#[cfg(feature = "unity_engine-timeline-markerlist-types")]
39pub use __types::*;
40
41#[cfg(feature = "unity_engine-timeline-markerlist")]
42impl MarkerList {
43 #[doc = "`get_markers()` overload"]
44 pub fn get_markers(
45 &mut self,
46 ) -> crate::system::collections::generic::list_1::List_1<crate::unity_engine::timeline::imarker_interface::IMarker_Interface> {
47 unsafe {
48 ::unity::il2cpp_call!((::unity::module_base()+0x35d7370usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::unity_engine::timeline::imarker_interface::IMarker_Interface> ;
49(*mut MarkerList)self as*mut MarkerList)
50 }
51 }
52
53 #[doc = "`.ctor(i32)` overload"]
54 pub fn ctor(&mut self, capacity: impl ::core::convert::Into<i32>) -> () {
55 unsafe {
56 ::unity::il2cpp_call!((::unity::module_base()+0x35d7600usize)as*mut u8,();
57(*mut MarkerList)self as*mut MarkerList,(i32)::core::convert::Into::into(capacity))
58 }
59 }
60
61 #[doc = "`Add(crate::unity_engine::scriptableobject::ScriptableObject)` overload"]
62 pub fn add(&mut self, item: impl ::core::convert::Into<crate::unity_engine::scriptableobject::ScriptableObject>) -> () {
63 unsafe {
64 ::unity::il2cpp_call!((::unity::module_base()+0x35d7700usize)as*mut u8,();
65(*mut MarkerList)self as*mut MarkerList,(crate::unity_engine::scriptableobject::ScriptableObject)::core::convert::Into::into(item))
66 }
67 }
68
69 #[doc = "`Remove(crate::unity_engine::timeline::imarker_interface::IMarker_Interface)` overload"]
70 pub fn remove(&mut self, item: impl ::core::convert::Into<crate::unity_engine::timeline::imarker_interface::IMarker_Interface>) -> bool {
71 unsafe {
72 ::unity::il2cpp_call!((::unity::module_base()+0x35d77b0usize)as*mut u8,bool;
73(*mut MarkerList)self as*mut MarkerList,(crate::unity_engine::timeline::imarker_interface::IMarker_Interface)::core::convert::Into::into(item))
74 }
75 }
76
77 #[doc = "`Remove(crate::unity_engine::scriptableobject::ScriptableObject, crate::unity_engine::timeline::timelineasset::TimelineAsset, crate::unity_engine::playables::playableasset::PlayableAsset)` overload"]
78 pub fn remove_2(
79 &mut self,
80 item: impl ::core::convert::Into<crate::unity_engine::scriptableobject::ScriptableObject>,
81 timeline_asset: impl ::core::convert::Into<crate::unity_engine::timeline::timelineasset::TimelineAsset>,
82 thing_to_dirty: impl ::core::convert::Into<crate::unity_engine::playables::playableasset::PlayableAsset>,
83 ) -> bool {
84 unsafe {
85 ::unity::il2cpp_call!((::unity::module_base()+0x35d7b40usize)as*mut u8,bool;
86(*mut MarkerList)self as*mut MarkerList,(crate::unity_engine::scriptableobject::ScriptableObject)::core::convert::Into::into(item),(crate::unity_engine::timeline::timelineasset::TimelineAsset)::core::convert::Into::into(timeline_asset),(crate::unity_engine::playables::playableasset::PlayableAsset)::core::convert::Into::into(thing_to_dirty))
87 }
88 }
89
90 #[doc = "`Clear()` overload"]
91 pub fn clear(&mut self) -> () {
92 unsafe {
93 ::unity::il2cpp_call!((::unity::module_base()+0x35d7d10usize)as*mut u8,();
94(*mut MarkerList)self as*mut MarkerList)
95 }
96 }
97
98 #[doc = "`get_Count()` overload"]
99 pub fn get_count(&mut self) -> i32 {
100 unsafe {
101 ::unity::il2cpp_call!((::unity::module_base()+0x35d7da0usize)as*mut u8,i32;
102(*mut MarkerList)self as*mut MarkerList)
103 }
104 }
105
106 #[doc = "`get_Item(i32)` overload"]
107 pub fn get_item(&mut self, idx: impl ::core::convert::Into<i32>) -> crate::unity_engine::timeline::imarker_interface::IMarker_Interface {
108 unsafe {
109 ::unity::il2cpp_call!((::unity::module_base()+0x35d7df0usize)as*mut u8,crate::unity_engine::timeline::imarker_interface::IMarker_Interface;
110(*mut MarkerList)self as*mut MarkerList,(i32)::core::convert::Into::into(idx))
111 }
112 }
113
114 #[doc = "`GetRawMarkerList()` overload"]
115 pub fn get_raw_marker_list(
116 &mut self,
117 ) -> crate::system::collections::generic::list_1::List_1<crate::unity_engine::scriptableobject::ScriptableObject> {
118 unsafe {
119 ::unity::il2cpp_call!((::unity::module_base()+0x35d7e70usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::unity_engine::scriptableobject::ScriptableObject> ;
120(*mut MarkerList)self as*mut MarkerList)
121 }
122 }
123
124 #[doc = "`CreateMarker(::unity::SystemType, f64, crate::unity_engine::timeline::trackasset::TrackAsset)` overload"]
125 pub fn create_marker(
126 &mut self,
127 r#type: impl ::core::convert::Into<::unity::SystemType>,
128 time: impl ::core::convert::Into<f64>,
129 owner: impl ::core::convert::Into<crate::unity_engine::timeline::trackasset::TrackAsset>,
130 ) -> crate::unity_engine::timeline::imarker_interface::IMarker_Interface {
131 unsafe {
132 ::unity::il2cpp_call!((::unity::module_base()+0x35d7e80usize)as*mut u8,crate::unity_engine::timeline::imarker_interface::IMarker_Interface;
133(*mut MarkerList)self as*mut MarkerList,(::unity::SystemType)::core::convert::Into::into(r#type),(f64)::core::convert::Into::into(time),(crate::unity_engine::timeline::trackasset::TrackAsset)::core::convert::Into::into(owner))
134 }
135 }
136
137 #[doc = "`HasNotifications()` overload"]
138 pub fn has_notifications(&mut self) -> bool {
139 unsafe {
140 ::unity::il2cpp_call!((::unity::module_base()+0x35d83d0usize)as*mut u8,bool;
141(*mut MarkerList)self as*mut MarkerList)
142 }
143 }
144
145 #[doc = "`UnityEngine.ISerializationCallbackReceiver.OnBeforeSerialize()` overload"]
146 pub fn unity_engine_i_serialization_callback_receiver_on_before_serialize(&mut self) -> () {
147 unsafe {
148 ::unity::il2cpp_call!((::unity::module_base()+0x35d8400usize)as*mut u8,();
149(*mut MarkerList)self as*mut MarkerList)
150 }
151 }
152
153 #[doc = "`UnityEngine.ISerializationCallbackReceiver.OnAfterDeserialize()` overload"]
154 pub fn unity_engine_i_serialization_callback_receiver_on_after_deserialize(&mut self) -> () {
155 unsafe {
156 ::unity::il2cpp_call!((::unity::module_base()+0x35d8410usize)as*mut u8,();
157(*mut MarkerList)self as*mut MarkerList)
158 }
159 }
160
161 #[doc = "`BuildCache()` overload"]
162 pub fn build_cache(&mut self) -> () {
163 unsafe {
164 ::unity::il2cpp_call!((::unity::module_base()+0x35d73a0usize)as*mut u8,();
165(*mut MarkerList)self as*mut MarkerList)
166 }
167 }
168}
169
170#[cfg(feature = "unity_engine-timeline-markerlist")]
171impl MarkerList {
172 pub fn get_markers_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
174 }
175
176 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
178 }
179
180 pub fn add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
182 }
183
184 pub fn remove_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
186 }
187
188 pub fn remove_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
190 }
191
192 pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
194 }
195
196 pub fn get_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
198 }
199
200 pub fn get_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
202 }
203
204 pub fn get_raw_marker_list_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
206 }
207
208 pub fn create_marker_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
210 }
211
212 pub fn has_notifications_method_info() -> &'static ::unity::il2cpp::MethodInfo {
213 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
214 }
215
216 pub fn unity_engine_i_serialization_callback_receiver_on_before_serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
217 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
218 }
219
220 pub fn unity_engine_i_serialization_callback_receiver_on_after_deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
221 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
222 }
223
224 pub fn build_cache_method_info() -> &'static ::unity::il2cpp::MethodInfo {
225 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
226 }
227}
228
229#[cfg(feature = "unity_engine-timeline-markerlist")]
230#[doc(hidden)]
231pub mod prelude {
232 pub use super::MarkerList;
233 #[cfg(feature = "system-object")]
234 pub use crate::system::object::IObjectMethods;
235 #[cfg(feature = "system-valuetype")]
236 pub use crate::system::valuetype::IValueTypeMethods;
237 pub use crate::system::{object::IObject, valuetype::IValueType};
238}