engage/generated/unity_engine/timeline/
runtimeclipbase.rs1#[cfg(feature = "unity_engine-timeline-runtimeclipbase-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::runtimeelement::{IRuntimeElement, RuntimeElement},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/timeline/runtimeclipbase/RuntimeClipBase.md"))]
14 #[::unity::class(namespace = "UnityEngine.Timeline", name = "RuntimeClipBase")]
15 #[parent(crate::unity_engine::timeline::runtimeelement::RuntimeElement)]
16 pub struct RuntimeClipBase {}
17}
18
19#[cfg(feature = "unity_engine-timeline-runtimeclipbase-types")]
20pub use __types::*;
21
22#[cfg(feature = "unity_engine-timeline-runtimeclipbase")]
23pub trait IRuntimeClipBaseMethods: IRuntimeClipBase {
24 #[doc = "`get_start()` overload"]
25 fn get_start(self) -> f64 {
26 unsafe {
27 let __receiver = <RuntimeClipBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
28 {
29 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
30 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
31 panic!(
32 "unity: virtual slot {}
33 out of range (vtable len {}
34) on the runtime class behind {}
35 (method `{}
36`)",
37 11usize,
38 __vt.len(),
39 <RuntimeClipBase as ::unity::ClassIdentity>::NAME,
40 "get_start",
41 )
42 });
43 let __inner: extern "C" fn(RuntimeClipBase, ::unity::OptionalMethod) -> f64 = ::core::mem::transmute(__vi.method_ptr);
44 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
45 __inner(__receiver, __mi)
46 }
47 }
48 }
49 #[doc = "`get_duration()` overload"]
50 fn get_duration(self) -> f64 {
51 unsafe {
52 let __receiver = <RuntimeClipBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
53 {
54 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
55 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
56 panic!(
57 "unity: virtual slot {}
58 out of range (vtable len {}
59) on the runtime class behind {}
60 (method `{}
61`)",
62 12usize,
63 __vt.len(),
64 <RuntimeClipBase as ::unity::ClassIdentity>::NAME,
65 "get_duration",
66 )
67 });
68 let __inner: extern "C" fn(RuntimeClipBase, ::unity::OptionalMethod) -> f64 = ::core::mem::transmute(__vi.method_ptr);
69 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
70 __inner(__receiver, __mi)
71 }
72 }
73 }
74 #[doc = "`get_intervalStart()` overload"]
75 fn get_interval_start(self) -> i64 {
76 unsafe {
77 let __receiver = <RuntimeClipBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78 {
79 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
80 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
81 panic!(
82 "unity: virtual slot {}
83 out of range (vtable len {}
84) on the runtime class behind {}
85 (method `{}
86`)",
87 6usize,
88 __vt.len(),
89 <RuntimeClipBase as ::unity::ClassIdentity>::NAME,
90 "get_intervalStart",
91 )
92 });
93 let __inner: extern "C" fn(RuntimeClipBase, ::unity::OptionalMethod) -> i64 = ::core::mem::transmute(__vi.method_ptr);
94 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
95 __inner(__receiver, __mi)
96 }
97 }
98 }
99 #[doc = "`get_intervalEnd()` overload"]
100 fn get_interval_end(self) -> i64 {
101 unsafe {
102 let __receiver = <RuntimeClipBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103 {
104 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
105 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
106 panic!(
107 "unity: virtual slot {}
108 out of range (vtable len {}
109) on the runtime class behind {}
110 (method `{}
111`)",
112 7usize,
113 __vt.len(),
114 <RuntimeClipBase as ::unity::ClassIdentity>::NAME,
115 "get_intervalEnd",
116 )
117 });
118 let __inner: extern "C" fn(RuntimeClipBase, ::unity::OptionalMethod) -> i64 = ::core::mem::transmute(__vi.method_ptr);
119 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
120 __inner(__receiver, __mi)
121 }
122 }
123 }
124 #[doc = "`.ctor()` overload"]
125 fn ctor(self) -> () {
126 unsafe {
127 let __receiver = <RuntimeClipBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128 ::unity::il2cpp_call!((::unity::module_base()+0x35d9600usize)as*mut u8,();
129(RuntimeClipBase)__receiver)
130 }
131 }
132}
133
134#[cfg(feature = "unity_engine-timeline-runtimeclipbase")]
135impl<__T: IRuntimeClipBase> IRuntimeClipBaseMethods for __T {}
136
137#[cfg(feature = "unity_engine-timeline-runtimeclipbase")]
138impl RuntimeClipBase {
139 pub fn get_start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
141 }
142
143 pub fn get_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
145 }
146
147 pub fn get_interval_start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
149 }
150
151 pub fn get_interval_end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
153 }
154
155 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
157 }
158}
159
160#[cfg(feature = "unity_engine-timeline-runtimeclipbase")]
161impl RuntimeClipBase {
162 #[doc = "Direct (non-virtual) call to `RuntimeClipBase`'s own `get_start`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
163 pub unsafe fn get_start(this: impl ::core::convert::Into<::unity::IlInstance>) -> f64 {
164 let __mi = Self::get_start_method_info();
165 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f64 = ::core::mem::transmute(__mi.method_ptr);
166 __inner(this.into(), ::core::option::Option::None)
167 }
168
169 #[doc = "Direct (non-virtual) call to `RuntimeClipBase`'s own `get_duration`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
170 pub unsafe fn get_duration(this: impl ::core::convert::Into<::unity::IlInstance>) -> f64 {
171 let __mi = Self::get_duration_method_info();
172 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f64 = ::core::mem::transmute(__mi.method_ptr);
173 __inner(this.into(), ::core::option::Option::None)
174 }
175
176 #[doc = "Direct (non-virtual) call to `RuntimeClipBase`'s own `get_intervalStart`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
177 pub unsafe fn get_interval_start(this: impl ::core::convert::Into<::unity::IlInstance>) -> i64 {
178 let __mi = Self::get_interval_start_method_info();
179 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i64 = ::core::mem::transmute(__mi.method_ptr);
180 __inner(this.into(), ::core::option::Option::None)
181 }
182
183 #[doc = "Direct (non-virtual) call to `RuntimeClipBase`'s own `get_intervalEnd`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
184 pub unsafe fn get_interval_end(this: impl ::core::convert::Into<::unity::IlInstance>) -> i64 {
185 let __mi = Self::get_interval_end_method_info();
186 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i64 = ::core::mem::transmute(__mi.method_ptr);
187 __inner(this.into(), ::core::option::Option::None)
188 }
189}
190
191#[cfg(feature = "unity_engine-timeline-runtimeclipbase")]
192impl RuntimeClipBase {
193 #[doc = "`.ctor()` — no args"]
194 pub fn new() -> Self {
195 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
196 panic!(
197 "{}
198::{}
199 failed to instantiate",
200 ::core::stringify!(RuntimeClipBase),
201 ::core::stringify!(new),
202 )
203 });
204 <Self as IRuntimeClipBaseMethods>::ctor(this);
205 this
206 }
207}
208
209#[cfg(feature = "unity_engine-timeline-runtimeclipbase")]
210#[doc(hidden)]
211pub mod prelude {
212 pub use super::{IRuntimeClipBase, IRuntimeClipBaseMethods, RuntimeClipBase};
213 #[cfg(feature = "system-object")]
214 pub use crate::system::object::IObjectMethods;
215 #[cfg(feature = "unity_engine-timeline-runtimeelement")]
216 pub use crate::unity_engine::timeline::runtimeelement::IRuntimeElementMethods;
217 pub use crate::{system::object::IObject, unity_engine::timeline::runtimeelement::IRuntimeElement};
218}