engage/generated/unity_engine/timeline/
iinterval.rs1#[cfg(feature = "unity_engine-timeline-iinterval-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8
9 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/timeline/iinterval/IInterval.md"))]
10 #[::unity::class(namespace = "UnityEngine.Timeline", name = "IInterval")]
11 pub struct IInterval {}
12}
13
14#[cfg(feature = "unity_engine-timeline-iinterval-types")]
15pub use __types::*;
16
17#[cfg(feature = "unity_engine-timeline-iinterval")]
18pub trait IIIntervalMethods: IIInterval {
19 #[doc = "`get_intervalStart()` overload"]
20 fn get_interval_start(self) -> i64 {
21 unsafe {
22 let __receiver = <IInterval as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
23 {
24 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
25 let __vi = *__vt.get(0usize).unwrap_or_else(|| {
26 panic!(
27 "unity: virtual slot {}
28 out of range (vtable len {}
29) on the runtime class behind {}
30 (method `{}
31`)",
32 0usize,
33 __vt.len(),
34 <IInterval as ::unity::ClassIdentity>::NAME,
35 "get_intervalStart",
36 )
37 });
38 let __inner: extern "C" fn(IInterval, ::unity::OptionalMethod) -> i64 = ::core::mem::transmute(__vi.method_ptr);
39 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
40 __inner(__receiver, __mi)
41 }
42 }
43 }
44 #[doc = "`get_intervalEnd()` overload"]
45 fn get_interval_end(self) -> i64 {
46 unsafe {
47 let __receiver = <IInterval as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48 {
49 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
50 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
51 panic!(
52 "unity: virtual slot {}
53 out of range (vtable len {}
54) on the runtime class behind {}
55 (method `{}
56`)",
57 1usize,
58 __vt.len(),
59 <IInterval as ::unity::ClassIdentity>::NAME,
60 "get_intervalEnd",
61 )
62 });
63 let __inner: extern "C" fn(IInterval, ::unity::OptionalMethod) -> i64 = ::core::mem::transmute(__vi.method_ptr);
64 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
65 __inner(__receiver, __mi)
66 }
67 }
68 }
69}
70
71#[cfg(feature = "unity_engine-timeline-iinterval")]
72impl<__T: IIInterval> IIIntervalMethods for __T {}
73
74#[cfg(feature = "unity_engine-timeline-iinterval")]
75impl IInterval {
76 pub fn get_interval_start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
77 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
78 }
79
80 pub fn get_interval_end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
81 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
82 }
83}
84
85#[cfg(feature = "unity_engine-timeline-iinterval")]
86impl IInterval {
87 #[doc = "Direct (non-virtual) call to `IInterval`'s own `get_intervalStart`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
88 pub unsafe fn get_interval_start(this: impl ::core::convert::Into<::unity::IlInstance>) -> i64 {
89 let __mi = Self::get_interval_start_method_info();
90 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i64 = ::core::mem::transmute(__mi.method_ptr);
91 __inner(this.into(), ::core::option::Option::None)
92 }
93
94 #[doc = "Direct (non-virtual) call to `IInterval`'s own `get_intervalEnd`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
95 pub unsafe fn get_interval_end(this: impl ::core::convert::Into<::unity::IlInstance>) -> i64 {
96 let __mi = Self::get_interval_end_method_info();
97 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i64 = ::core::mem::transmute(__mi.method_ptr);
98 __inner(this.into(), ::core::option::Option::None)
99 }
100}
101
102#[cfg(feature = "unity_engine-timeline-iinterval")]
103#[doc(hidden)]
104pub mod prelude {
105 pub use super::{IIInterval, IIIntervalMethods, IInterval};
106}