Skip to main content

engage/generated/app/
interpolatortime.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-interpolatortime-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/app/interpolatortime/InterpolatorTime.md"))]
11    #[::unity::class(namespace = "App", name = "InterpolatorTime")]
12    #[parent(crate::system::object::Object)]
13    pub struct InterpolatorTime {
14        #[offset(16)]
15        #[rename(name = "m_Time")]
16        pub m_time: f32,
17        #[offset(20)]
18        #[rename(name = "m_Tick")]
19        pub m_tick: f32,
20        #[offset(24)]
21        #[rename(name = "m_Type")]
22        pub m_type: crate::app::curve::Curve_Type,
23        #[offset(28)]
24        #[rename(name = "m_Num")]
25        pub m_num: i32,
26        #[offset(32)]
27        #[rename(name = "m_IsFirst")]
28        pub m_is_first: bool,
29        #[offset(33)]
30        #[rename(name = "m_IsDirty")]
31        pub m_is_dirty: bool,
32    }
33}
34
35#[cfg(feature = "app-interpolatortime-types")]
36pub use __types::*;
37
38#[cfg(feature = "app-interpolatortime")]
39pub trait IInterpolatorTimeMethods: IInterpolatorTime {
40    #[doc = "`.ctor(crate::app::curve::Curve_Type, i32)` overload"]
41    fn ctor(self, r#type: impl ::core::convert::Into<crate::app::curve::Curve_Type>, num: impl ::core::convert::Into<i32>) -> () {
42        unsafe {
43            let __receiver = <InterpolatorTime as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44            ::unity::il2cpp_call!((::unity::module_base()+0x27950a0usize)as*mut u8,();
45(InterpolatorTime)__receiver,(crate::app::curve::Curve_Type)::core::convert::Into::into(r#type),(i32)::core::convert::Into::into(num))
46        }
47    }
48    #[doc = "`get_Time()` overload"]
49    fn get_time(self) -> f32 {
50        unsafe {
51            let __receiver = <InterpolatorTime as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
52            ::unity::il2cpp_call!((::unity::module_base()+0x2795100usize)as*mut u8,f32;
53(InterpolatorTime)__receiver)
54        }
55    }
56    #[doc = "`get_IsFirst()` overload"]
57    fn get_is_first(self) -> bool {
58        unsafe {
59            let __receiver = <InterpolatorTime as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
60            ::unity::il2cpp_call!((::unity::module_base()+0x2795110usize)as*mut u8,bool;
61(InterpolatorTime)__receiver)
62        }
63    }
64    #[doc = "`get_IsStability()` overload"]
65    fn get_is_stability(self) -> bool {
66        unsafe {
67            let __receiver = <InterpolatorTime as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68            ::unity::il2cpp_call!((::unity::module_base()+0x2795120usize)as*mut u8,bool;
69(InterpolatorTime)__receiver)
70        }
71    }
72    #[doc = "`get_IsNextStability()` overload"]
73    fn get_is_next_stability(self) -> bool {
74        unsafe {
75            let __receiver = <InterpolatorTime as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76            ::unity::il2cpp_call!((::unity::module_base()+0x2795130usize)as*mut u8,bool;
77(InterpolatorTime)__receiver)
78        }
79    }
80    #[doc = "`get_IsRunning()` overload"]
81    fn get_is_running(self) -> bool {
82        unsafe {
83            let __receiver = <InterpolatorTime as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84            ::unity::il2cpp_call!((::unity::module_base()+0x27951f0usize)as*mut u8,bool;
85(InterpolatorTime)__receiver)
86        }
87    }
88    #[doc = "`Reset()` overload"]
89    fn reset(self) -> () {
90        unsafe {
91            let __receiver = <InterpolatorTime as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92            ::unity::il2cpp_call!((::unity::module_base()+0x27950f0usize)as*mut u8,();
93(InterpolatorTime)__receiver)
94        }
95    }
96    #[doc = "`Instant()` overload"]
97    fn instant(self) -> () {
98        unsafe {
99            let __receiver = <InterpolatorTime as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100            ::unity::il2cpp_call!((::unity::module_base()+0x2795200usize)as*mut u8,();
101(InterpolatorTime)__receiver)
102        }
103    }
104    #[doc = "`SetCurve(crate::app::curve::Curve_Type, i32)` overload"]
105    fn set_curve(self, r#type: impl ::core::convert::Into<crate::app::curve::Curve_Type>, num: impl ::core::convert::Into<i32>) -> () {
106        unsafe {
107            let __receiver = <InterpolatorTime as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108            ::unity::il2cpp_call!((::unity::module_base()+0x2795210usize)as*mut u8,();
109(InterpolatorTime)__receiver,(crate::app::curve::Curve_Type)::core::convert::Into::into(r#type),(i32)::core::convert::Into::into(num))
110        }
111    }
112    #[doc = "`SetCurve(crate::app::curve::Curve_Type)` overload"]
113    fn set_curve_2(self, r#type: impl ::core::convert::Into<crate::app::curve::Curve_Type>) -> () {
114        unsafe {
115            let __receiver = <InterpolatorTime as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116            ::unity::il2cpp_call!((::unity::module_base()+0x2795220usize)as*mut u8,();
117(InterpolatorTime)__receiver,(crate::app::curve::Curve_Type)::core::convert::Into::into(r#type))
118        }
119    }
120    #[doc = "`GetRate()` overload"]
121    fn get_rate(self) -> f32 {
122        unsafe {
123            let __receiver = <InterpolatorTime as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
124            ::unity::il2cpp_call!((::unity::module_base()+0x2795230usize)as*mut u8,f32;
125(InterpolatorTime)__receiver)
126        }
127    }
128    #[doc = "`GetValue(f32, f32)` overload"]
129    fn get_value(self, prev: impl ::core::convert::Into<f32>, next: impl ::core::convert::Into<f32>) -> f32 {
130        unsafe {
131            let __receiver = <InterpolatorTime as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132            ::unity::il2cpp_call!((::unity::module_base()+0x2794b10usize)as*mut u8,f32;
133(InterpolatorTime)__receiver,(f32)::core::convert::Into::into(prev),(f32)::core::convert::Into::into(next))
134        }
135    }
136    #[doc = "`SetTime(f32)` overload"]
137    fn set_time(self, time: impl ::core::convert::Into<f32>) -> () {
138        unsafe {
139            let __receiver = <InterpolatorTime as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
140            ::unity::il2cpp_call!((::unity::module_base()+0x2795250usize)as*mut u8,();
141(InterpolatorTime)__receiver,(f32)::core::convert::Into::into(time))
142        }
143    }
144    #[doc = "`get_NextTick()` overload"]
145    fn get_next_tick(self) -> f32 {
146        unsafe {
147            let __receiver = <InterpolatorTime as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
148            ::unity::il2cpp_call!((::unity::module_base()+0x2795280usize)as*mut u8,f32;
149(InterpolatorTime)__receiver)
150        }
151    }
152    #[doc = "`Tick(bool)` overload"]
153    fn tick(self, is_fade_skip: impl ::core::convert::Into<bool>) -> bool {
154        unsafe {
155            let __receiver = <InterpolatorTime as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
156            ::unity::il2cpp_call!((::unity::module_base()+0x2795330usize)as*mut u8,bool;
157(InterpolatorTime)__receiver,(bool)::core::convert::Into::into(is_fade_skip))
158        }
159    }
160}
161
162#[cfg(feature = "app-interpolatortime")]
163impl<__T: IInterpolatorTime> IInterpolatorTimeMethods for __T {}
164
165#[cfg(feature = "app-interpolatortime")]
166impl InterpolatorTime {
167    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
169    }
170
171    pub fn get_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
173    }
174
175    pub fn get_is_first_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
177    }
178
179    pub fn get_is_stability_method_info() -> &'static ::unity::il2cpp::MethodInfo {
180        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
181    }
182
183    pub fn get_is_next_stability_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
185    }
186
187    pub fn get_is_running_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
189    }
190
191    pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
193    }
194
195    pub fn instant_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
197    }
198
199    pub fn set_curve_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
201    }
202
203    pub fn set_curve_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
205    }
206
207    pub fn get_rate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
209    }
210
211    pub fn get_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
212        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
213    }
214
215    pub fn set_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
217    }
218
219    pub fn get_next_tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
220        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
221    }
222
223    pub fn tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
224        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
225    }
226}
227
228#[cfg(feature = "app-interpolatortime")]
229impl InterpolatorTime {
230    #[doc = "`.ctor(crate::app::curve::Curve_Type, i32)` — overload selector"]
231    pub fn new(r#type: crate::app::curve::Curve_Type, num: i32) -> Self {
232        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
233            panic!(
234                "{}
235::{}
236 failed to instantiate",
237                ::core::stringify!(InterpolatorTime),
238                ::core::stringify!(new),
239            )
240        });
241        <Self as IInterpolatorTimeMethods>::ctor(this, r#type, num);
242        this
243    }
244}
245
246#[cfg(feature = "app-interpolatortime")]
247#[doc(hidden)]
248pub mod prelude {
249    pub use super::{IInterpolatorTime, IInterpolatorTimeMethods, InterpolatorTime};
250    pub use crate::system::object::IObject;
251    #[cfg(feature = "system-object")]
252    pub use crate::system::object::IObjectMethods;
253}