Skip to main content

engage/generated/unity_engine/timeline/
runtimeelement.rs

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