Skip to main content

engage/generated/unity_engine/timeline/
marker.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-timeline-marker-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::{
11            object_2::{IObject_2, Object_2},
12            scriptableobject::{IScriptableObject, ScriptableObject},
13        },
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/timeline/marker/Marker.md"))]
17    #[::unity::class(namespace = "UnityEngine.Timeline", name = "Marker")]
18    #[parent(crate::unity_engine::scriptableobject::ScriptableObject)]
19    pub struct Marker {
20        #[offset(24)]
21        #[rename(name = "m_Time")]
22        pub m_time: f64,
23    }
24}
25
26#[cfg(feature = "unity_engine-timeline-marker-types")]
27pub use __types::*;
28
29#[cfg(feature = "unity_engine-timeline-marker")]
30pub trait IMarkerMethods: IMarker {
31    #[doc = "`get_parent()` overload"]
32    fn get_parent(self) -> crate::unity_engine::timeline::trackasset::TrackAsset {
33        unsafe {
34            let __receiver = <Marker as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
35            {
36                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
37                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
38                    panic!(
39                        "unity: virtual slot {}
40 out of range (vtable len {}
41) on the runtime class behind {}
42 (method `{}
43`)",
44                        6usize,
45                        __vt.len(),
46                        <Marker as ::unity::ClassIdentity>::NAME,
47                        "get_parent",
48                    )
49                });
50                let __inner: extern "C" fn(Marker, ::unity::OptionalMethod) -> crate::unity_engine::timeline::trackasset::TrackAsset =
51                    ::core::mem::transmute(__vi.method_ptr);
52                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
53                __inner(__receiver, __mi)
54            }
55        }
56    }
57    #[doc = "`set_parent(crate::unity_engine::timeline::trackasset::TrackAsset)` overload"]
58    fn set_parent(self, value: impl ::core::convert::Into<crate::unity_engine::timeline::trackasset::TrackAsset>) -> () {
59        unsafe {
60            let __receiver = <Marker as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
61            ::unity::il2cpp_call!((::unity::module_base()+0x35d7110usize)as*mut u8,();
62(Marker)__receiver,(crate::unity_engine::timeline::trackasset::TrackAsset)::core::convert::Into::into(value))
63        }
64    }
65    #[doc = "`get_time()` overload"]
66    fn get_time(self) -> f64 {
67        unsafe {
68            let __receiver = <Marker as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
69            {
70                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
71                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
72                    panic!(
73                        "unity: virtual slot {}
74 out of range (vtable len {}
75) on the runtime class behind {}
76 (method `{}
77`)",
78                        4usize,
79                        __vt.len(),
80                        <Marker as ::unity::ClassIdentity>::NAME,
81                        "get_time",
82                    )
83                });
84                let __inner: extern "C" fn(Marker, ::unity::OptionalMethod) -> f64 = ::core::mem::transmute(__vi.method_ptr);
85                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
86                __inner(__receiver, __mi)
87            }
88        }
89    }
90    #[doc = "`set_time(f64)` overload"]
91    fn set_time(self, value: impl ::core::convert::Into<f64>) -> () {
92        unsafe {
93            let __receiver = <Marker as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
94            {
95                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
96                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
97                    panic!(
98                        "unity: virtual slot {}
99 out of range (vtable len {}
100) on the runtime class behind {}
101 (method `{}
102`)",
103                        5usize,
104                        __vt.len(),
105                        <Marker as ::unity::ClassIdentity>::NAME,
106                        "set_time",
107                    )
108                });
109                let __inner: extern "C" fn(Marker, f64, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
110                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
111                __inner(__receiver, ::core::convert::Into::into(value), __mi)
112            }
113        }
114    }
115    #[doc = "`UnityEngine.Timeline.IMarker.Initialize(crate::unity_engine::timeline::trackasset::TrackAsset)` overload"]
116    fn unity_engine_timeline_i_marker_initialize(
117        self,
118        parent_track: impl ::core::convert::Into<crate::unity_engine::timeline::trackasset::TrackAsset>,
119    ) -> () {
120        unsafe {
121            let __receiver = <Marker as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
122            {
123                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
124                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
125                    panic!(
126                        "unity: virtual slot {}
127 out of range (vtable len {}
128) on the runtime class behind {}
129 (method `{}
130`)",
131                        7usize,
132                        __vt.len(),
133                        <Marker as ::unity::ClassIdentity>::NAME,
134                        "UnityEngine.Timeline.IMarker.Initialize",
135                    )
136                });
137                let __inner: extern "C" fn(Marker, crate::unity_engine::timeline::trackasset::TrackAsset, ::unity::OptionalMethod) -> () =
138                    ::core::mem::transmute(__vi.method_ptr);
139                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
140                __inner(__receiver, ::core::convert::Into::into(parent_track), __mi)
141            }
142        }
143    }
144    #[doc = "`OnInitialize(crate::unity_engine::timeline::trackasset::TrackAsset)` overload"]
145    fn on_initialize(self, a_pent: impl ::core::convert::Into<crate::unity_engine::timeline::trackasset::TrackAsset>) -> () {
146        unsafe {
147            let __receiver = <Marker as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
148            {
149                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
150                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
151                    panic!(
152                        "unity: virtual slot {}
153 out of range (vtable len {}
154) on the runtime class behind {}
155 (method `{}
156`)",
157                        8usize,
158                        __vt.len(),
159                        <Marker as ::unity::ClassIdentity>::NAME,
160                        "OnInitialize",
161                    )
162                });
163                let __inner: extern "C" fn(Marker, crate::unity_engine::timeline::trackasset::TrackAsset, ::unity::OptionalMethod) -> () =
164                    ::core::mem::transmute(__vi.method_ptr);
165                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
166                __inner(__receiver, ::core::convert::Into::into(a_pent), __mi)
167            }
168        }
169    }
170    #[doc = "`.ctor()` overload"]
171    fn ctor(self) -> () {
172        unsafe {
173            let __receiver = <Marker as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
174            ::unity::il2cpp_call!((::unity::module_base()+0x35d7360usize)as*mut u8,();
175(Marker)__receiver)
176        }
177    }
178}
179
180#[cfg(feature = "unity_engine-timeline-marker")]
181impl<__T: IMarker> IMarkerMethods for __T {}
182
183#[cfg(feature = "unity_engine-timeline-marker")]
184impl Marker {
185    pub fn get_parent_method_info() -> &'static ::unity::il2cpp::MethodInfo {
186        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
187    }
188
189    pub fn set_parent_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
191    }
192
193    pub fn get_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
195    }
196
197    pub fn set_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
199    }
200
201    pub fn unity_engine_timeline_i_marker_initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
203    }
204
205    pub fn on_initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
206        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
207    }
208
209    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
210        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
211    }
212}
213
214#[cfg(feature = "unity_engine-timeline-marker")]
215impl Marker {
216    #[doc = "Direct (non-virtual) call to `Marker`'s own `get_parent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
217    pub unsafe fn get_parent(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::timeline::trackasset::TrackAsset {
218        let __mi = Self::get_parent_method_info();
219        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::timeline::trackasset::TrackAsset =
220            ::core::mem::transmute(__mi.method_ptr);
221        __inner(this.into(), ::core::option::Option::None)
222    }
223
224    #[doc = "Direct (non-virtual) call to `Marker`'s own `get_time`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
225    pub unsafe fn get_time(this: impl ::core::convert::Into<::unity::IlInstance>) -> f64 {
226        let __mi = Self::get_time_method_info();
227        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f64 = ::core::mem::transmute(__mi.method_ptr);
228        __inner(this.into(), ::core::option::Option::None)
229    }
230
231    #[doc = "Direct (non-virtual) call to `Marker`'s own `set_time`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
232    pub unsafe fn set_time(this: impl ::core::convert::Into<::unity::IlInstance>, value: f64) -> () {
233        let __mi = Self::set_time_method_info();
234        let __inner: extern "C" fn(::unity::IlInstance, f64, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
235        __inner(this.into(), value, ::core::option::Option::None)
236    }
237
238    #[doc = "Direct (non-virtual) call to `Marker`'s own `UnityEngine.Timeline.IMarker.Initialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
239    pub unsafe fn unity_engine_timeline_i_marker_initialize(
240        this: impl ::core::convert::Into<::unity::IlInstance>,
241        parent_track: crate::unity_engine::timeline::trackasset::TrackAsset,
242    ) -> () {
243        let __mi = Self::unity_engine_timeline_i_marker_initialize_method_info();
244        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::timeline::trackasset::TrackAsset, ::unity::OptionalMethod) -> () =
245            ::core::mem::transmute(__mi.method_ptr);
246        __inner(this.into(), parent_track, ::core::option::Option::None)
247    }
248
249    #[doc = "Direct (non-virtual) call to `Marker`'s own `OnInitialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
250    pub unsafe fn on_initialize(
251        this: impl ::core::convert::Into<::unity::IlInstance>,
252        a_pent: crate::unity_engine::timeline::trackasset::TrackAsset,
253    ) -> () {
254        let __mi = Self::on_initialize_method_info();
255        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::timeline::trackasset::TrackAsset, ::unity::OptionalMethod) -> () =
256            ::core::mem::transmute(__mi.method_ptr);
257        __inner(this.into(), a_pent, ::core::option::Option::None)
258    }
259}
260
261#[cfg(feature = "unity_engine-timeline-marker")]
262impl Marker {
263    #[doc = "`.ctor()` — no args"]
264    pub fn new() -> Self {
265        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
266            panic!(
267                "{}
268::{}
269 failed to instantiate",
270                ::core::stringify!(Marker),
271                ::core::stringify!(new),
272            )
273        });
274        <Self as IMarkerMethods>::ctor(this);
275        this
276    }
277}
278
279#[cfg(feature = "unity_engine-timeline-marker")]
280#[doc(hidden)]
281pub mod prelude {
282    pub use super::{IMarker, IMarkerMethods, Marker};
283    #[cfg(feature = "system-object")]
284    pub use crate::system::object::IObjectMethods;
285    #[cfg(feature = "unity_engine-object_2")]
286    pub use crate::unity_engine::object_2::IObject_2Methods;
287    #[cfg(feature = "unity_engine-scriptableobject")]
288    pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
289    pub use crate::{
290        system::object::IObject,
291        unity_engine::{object_2::IObject_2, scriptableobject::IScriptableObject},
292    };
293}