Skip to main content

engage/generated/unity_engine/timeline/
runtimeclip.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-timeline-runtimeclip-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::timeline::{
11            runtimeclipbase::{IRuntimeClipBase, RuntimeClipBase},
12            runtimeelement::{IRuntimeElement, RuntimeElement},
13        },
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/timeline/runtimeclip/RuntimeClip.md"))]
17    #[::unity::class(namespace = "UnityEngine.Timeline", name = "RuntimeClip")]
18    #[parent(crate::unity_engine::timeline::runtimeclipbase::RuntimeClipBase)]
19    pub struct RuntimeClip {
20        #[offset(24)]
21        #[rename(name = "m_Clip")]
22        pub m_clip: crate::unity_engine::timeline::timelineclip::TimelineClip,
23        #[offset(32)]
24        #[rename(name = "m_Playable")]
25        pub m_playable: crate::unity_engine::playables::playable::Playable,
26        #[offset(48)]
27        #[rename(name = "m_ParentMixer")]
28        pub m_parent_mixer: crate::unity_engine::playables::playable::Playable,
29    }
30}
31
32#[cfg(feature = "unity_engine-timeline-runtimeclip-types")]
33pub use __types::*;
34
35#[cfg(feature = "unity_engine-timeline-runtimeclip")]
36pub trait IRuntimeClipMethods: IRuntimeClip {
37    #[doc = "`get_start()` overload"]
38    fn get_start(self) -> f64 {
39        unsafe {
40            let __receiver = <RuntimeClip as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
41            {
42                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
43                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
44                    panic!(
45                        "unity: virtual slot {}
46 out of range (vtable len {}
47) on the runtime class behind {}
48 (method `{}
49`)",
50                        11usize,
51                        __vt.len(),
52                        <RuntimeClip as ::unity::ClassIdentity>::NAME,
53                        "get_start",
54                    )
55                });
56                let __inner: extern "C" fn(RuntimeClip, ::unity::OptionalMethod) -> f64 = ::core::mem::transmute(__vi.method_ptr);
57                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
58                __inner(__receiver, __mi)
59            }
60        }
61    }
62    #[doc = "`get_duration()` overload"]
63    fn get_duration(self) -> f64 {
64        unsafe {
65            let __receiver = <RuntimeClip as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66            {
67                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
68                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
69                    panic!(
70                        "unity: virtual slot {}
71 out of range (vtable len {}
72) on the runtime class behind {}
73 (method `{}
74`)",
75                        12usize,
76                        __vt.len(),
77                        <RuntimeClip as ::unity::ClassIdentity>::NAME,
78                        "get_duration",
79                    )
80                });
81                let __inner: extern "C" fn(RuntimeClip, ::unity::OptionalMethod) -> f64 = ::core::mem::transmute(__vi.method_ptr);
82                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
83                __inner(__receiver, __mi)
84            }
85        }
86    }
87    #[doc = "`.ctor(crate::unity_engine::timeline::timelineclip::TimelineClip, crate::unity_engine::playables::playable::Playable, crate::unity_engine::playables::playable::Playable)` overload"]
88    fn ctor(
89        self,
90        clip: impl ::core::convert::Into<crate::unity_engine::timeline::timelineclip::TimelineClip>,
91        clip_playable: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>,
92        parent_mixer: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>,
93    ) -> () {
94        unsafe {
95            let __receiver = <RuntimeClip as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96            ::unity::il2cpp_call!((::unity::module_base()+0x35d2800usize)as*mut u8,();
97(RuntimeClip)__receiver,(crate::unity_engine::timeline::timelineclip::TimelineClip)::core::convert::Into::into(clip),(crate::unity_engine::playables::playable::Playable)::core::convert::Into::into(clip_playable),(crate::unity_engine::playables::playable::Playable)::core::convert::Into::into(parent_mixer))
98        }
99    }
100    #[doc = "`Create(crate::unity_engine::timeline::timelineclip::TimelineClip, crate::unity_engine::playables::playable::Playable, crate::unity_engine::playables::playable::Playable)` overload"]
101    fn create(
102        self,
103        clip: impl ::core::convert::Into<crate::unity_engine::timeline::timelineclip::TimelineClip>,
104        clip_playable: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>,
105        parent_mixer: impl ::core::convert::Into<crate::unity_engine::playables::playable::Playable>,
106    ) -> () {
107        unsafe {
108            let __receiver = <RuntimeClip as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109            ::unity::il2cpp_call!((::unity::module_base()+0x35d9610usize)as*mut u8,();
110(RuntimeClip)__receiver,(crate::unity_engine::timeline::timelineclip::TimelineClip)::core::convert::Into::into(clip),(crate::unity_engine::playables::playable::Playable)::core::convert::Into::into(clip_playable),(crate::unity_engine::playables::playable::Playable)::core::convert::Into::into(parent_mixer))
111        }
112    }
113    #[doc = "`get_clip()` overload"]
114    fn get_clip(self) -> crate::unity_engine::timeline::timelineclip::TimelineClip {
115        unsafe {
116            let __receiver = <RuntimeClip as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
117            ::unity::il2cpp_call!((::unity::module_base()+0x35d96b0usize)as*mut u8,crate::unity_engine::timeline::timelineclip::TimelineClip;
118(RuntimeClip)__receiver)
119        }
120    }
121    #[doc = "`get_mixer()` overload"]
122    fn get_mixer(self) -> crate::unity_engine::playables::playable::Playable {
123        unsafe {
124            let __receiver = <RuntimeClip as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125            ::unity::il2cpp_call!((::unity::module_base()+0x35d96c0usize)as*mut u8,crate::unity_engine::playables::playable::Playable;
126(RuntimeClip)__receiver)
127        }
128    }
129    #[doc = "`get_playable()` overload"]
130    fn get_playable(self) -> crate::unity_engine::playables::playable::Playable {
131        unsafe {
132            let __receiver = <RuntimeClip as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133            ::unity::il2cpp_call!((::unity::module_base()+0x35d96d0usize)as*mut u8,crate::unity_engine::playables::playable::Playable;
134(RuntimeClip)__receiver)
135        }
136    }
137    #[doc = "`set_enable(bool)` overload"]
138    fn set_enable(self, value: impl ::core::convert::Into<bool>) -> () {
139        unsafe {
140            let __receiver = <RuntimeClip as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141            {
142                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
143                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
144                    panic!(
145                        "unity: virtual slot {}
146 out of range (vtable len {}
147) on the runtime class behind {}
148 (method `{}
149`)",
150                        8usize,
151                        __vt.len(),
152                        <RuntimeClip as ::unity::ClassIdentity>::NAME,
153                        "set_enable",
154                    )
155                });
156                let __inner: extern "C" fn(RuntimeClip, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
157                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
158                __inner(__receiver, ::core::convert::Into::into(value), __mi)
159            }
160        }
161    }
162    #[doc = "`SetTime(f64)` overload"]
163    fn set_time(self, time: impl ::core::convert::Into<f64>) -> () {
164        unsafe {
165            let __receiver = <RuntimeClip as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
166            ::unity::il2cpp_call!((::unity::module_base()+0x35d98a0usize)as*mut u8,();
167(RuntimeClip)__receiver,(f64)::core::convert::Into::into(time))
168        }
169    }
170    #[doc = "`SetDuration(f64)` overload"]
171    fn set_duration(self, duration: impl ::core::convert::Into<f64>) -> () {
172        unsafe {
173            let __receiver = <RuntimeClip as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
174            ::unity::il2cpp_call!((::unity::module_base()+0x35d9910usize)as*mut u8,();
175(RuntimeClip)__receiver,(f64)::core::convert::Into::into(duration))
176        }
177    }
178    #[doc = "`EvaluateAt(f64, crate::unity_engine::playables::framedata::FrameData)` overload"]
179    fn evaluate_at(
180        self,
181        local_time: impl ::core::convert::Into<f64>,
182        frame_data: impl ::core::convert::Into<crate::unity_engine::playables::framedata::FrameData>,
183    ) -> () {
184        unsafe {
185            let __receiver = <RuntimeClip as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
186            {
187                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
188                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
189                    panic!(
190                        "unity: virtual slot {}
191 out of range (vtable len {}
192) on the runtime class behind {}
193 (method `{}
194`)",
195                        9usize,
196                        __vt.len(),
197                        <RuntimeClip as ::unity::ClassIdentity>::NAME,
198                        "EvaluateAt",
199                    )
200                });
201                let __inner: extern "C" fn(RuntimeClip, f64, crate::unity_engine::playables::framedata::FrameData, ::unity::OptionalMethod) -> () =
202                    ::core::mem::transmute(__vi.method_ptr);
203                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
204                __inner(
205                    __receiver,
206                    ::core::convert::Into::into(local_time),
207                    ::core::convert::Into::into(frame_data),
208                    __mi,
209                )
210            }
211        }
212    }
213    #[doc = "`Reset()` overload"]
214    fn reset(self) -> () {
215        unsafe {
216            let __receiver = <RuntimeClip as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
217            {
218                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
219                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
220                    panic!(
221                        "unity: virtual slot {}
222 out of range (vtable len {}
223) on the runtime class behind {}
224 (method `{}
225`)",
226                        10usize,
227                        __vt.len(),
228                        <RuntimeClip as ::unity::ClassIdentity>::NAME,
229                        "Reset",
230                    )
231                });
232                let __inner: extern "C" fn(RuntimeClip, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
233                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
234                __inner(__receiver, __mi)
235            }
236        }
237    }
238}
239
240#[cfg(feature = "unity_engine-timeline-runtimeclip")]
241impl<__T: IRuntimeClip> IRuntimeClipMethods for __T {}
242
243#[cfg(feature = "unity_engine-timeline-runtimeclip")]
244impl RuntimeClip {
245    pub fn get_start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
246        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
247    }
248
249    pub fn get_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
250        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
251    }
252
253    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
254        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
255    }
256
257    pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
258        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
259    }
260
261    pub fn get_clip_method_info() -> &'static ::unity::il2cpp::MethodInfo {
262        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
263    }
264
265    pub fn get_mixer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
266        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
267    }
268
269    pub fn get_playable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
270        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
271    }
272
273    pub fn set_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
274        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
275    }
276
277    pub fn set_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
278        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
279    }
280
281    pub fn set_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
283    }
284
285    pub fn evaluate_at_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
287    }
288
289    pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
291    }
292}
293
294#[cfg(feature = "unity_engine-timeline-runtimeclip")]
295impl RuntimeClip {
296    #[doc = "Direct (non-virtual) call to `RuntimeClip`'s own `get_start`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
297    pub unsafe fn get_start(this: impl ::core::convert::Into<::unity::IlInstance>) -> f64 {
298        let __mi = Self::get_start_method_info();
299        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f64 = ::core::mem::transmute(__mi.method_ptr);
300        __inner(this.into(), ::core::option::Option::None)
301    }
302
303    #[doc = "Direct (non-virtual) call to `RuntimeClip`'s own `get_duration`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
304    pub unsafe fn get_duration(this: impl ::core::convert::Into<::unity::IlInstance>) -> f64 {
305        let __mi = Self::get_duration_method_info();
306        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f64 = ::core::mem::transmute(__mi.method_ptr);
307        __inner(this.into(), ::core::option::Option::None)
308    }
309
310    #[doc = "Direct (non-virtual) call to `RuntimeClip`'s own `set_enable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
311    pub unsafe fn set_enable(this: impl ::core::convert::Into<::unity::IlInstance>, value: bool) -> () {
312        let __mi = Self::set_enable_method_info();
313        let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
314        __inner(this.into(), value, ::core::option::Option::None)
315    }
316
317    #[doc = "Direct (non-virtual) call to `RuntimeClip`'s own `EvaluateAt`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
318    pub unsafe fn evaluate_at(
319        this: impl ::core::convert::Into<::unity::IlInstance>,
320        local_time: f64,
321        frame_data: crate::unity_engine::playables::framedata::FrameData,
322    ) -> () {
323        let __mi = Self::evaluate_at_method_info();
324        let __inner: extern "C" fn(::unity::IlInstance, f64, crate::unity_engine::playables::framedata::FrameData, ::unity::OptionalMethod) -> () =
325            ::core::mem::transmute(__mi.method_ptr);
326        __inner(this.into(), local_time, frame_data, ::core::option::Option::None)
327    }
328
329    #[doc = "Direct (non-virtual) call to `RuntimeClip`'s own `Reset`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
330    pub unsafe fn reset(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
331        let __mi = Self::reset_method_info();
332        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
333        __inner(this.into(), ::core::option::Option::None)
334    }
335}
336
337#[cfg(feature = "unity_engine-timeline-runtimeclip")]
338impl RuntimeClip {
339    #[doc = "`.ctor(crate::unity_engine::timeline::timelineclip::TimelineClip, crate::unity_engine::playables::playable::Playable, crate::unity_engine::playables::playable::Playable)` — overload selector"]
340    pub fn new(
341        clip: crate::unity_engine::timeline::timelineclip::TimelineClip,
342        clip_playable: crate::unity_engine::playables::playable::Playable,
343        parent_mixer: crate::unity_engine::playables::playable::Playable,
344    ) -> Self {
345        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
346            panic!(
347                "{}
348::{}
349 failed to instantiate",
350                ::core::stringify!(RuntimeClip),
351                ::core::stringify!(new),
352            )
353        });
354        <Self as IRuntimeClipMethods>::ctor(this, clip, clip_playable, parent_mixer);
355        this
356    }
357}
358
359#[cfg(feature = "unity_engine-timeline-runtimeclip")]
360#[doc(hidden)]
361pub mod prelude {
362    pub use super::{IRuntimeClip, IRuntimeClipMethods, RuntimeClip};
363    #[cfg(feature = "system-object")]
364    pub use crate::system::object::IObjectMethods;
365    #[cfg(feature = "unity_engine-timeline-runtimeclipbase")]
366    pub use crate::unity_engine::timeline::runtimeclipbase::IRuntimeClipBaseMethods;
367    #[cfg(feature = "unity_engine-timeline-runtimeelement")]
368    pub use crate::unity_engine::timeline::runtimeelement::IRuntimeElementMethods;
369    pub use crate::{
370        system::object::IObject,
371        unity_engine::timeline::{runtimeclipbase::IRuntimeClipBase, runtimeelement::IRuntimeElement},
372    };
373}