engage/generated/app/
interpolator_1.rs1#[cfg(feature = "app-interpolator_1-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::interpolatortime::{IInterpolatorTime, InterpolatorTime},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/interpolator_1/Interpolator_1.md"))]
14 #[::unity::class(namespace = "App", name = "Interpolator`1")]
15 #[parent(crate::app::interpolatortime::InterpolatorTime)]
16 #[parent(crate::system::object::Object)]
17 pub struct Interpolator_1<T0: ::unity::ClassIdentity> {
18 #[rename(name = "m_Prev")]
19 pub m_prev: T0,
20 #[rename(name = "m_Next")]
21 pub m_next: T0,
22 }
23}
24
25#[cfg(feature = "app-interpolator_1-types")]
26pub use __types::*;
27
28#[cfg(feature = "app-interpolator_1")]
29#[::unity::methods]
30impl<T0: ::unity::ClassIdentity> Interpolator_1<T0> {
31 #[doc = "`.ctor(crate::app::curve::Curve_Type, i32)` overload"]
32 #[method(name = ".ctor", args = 2)]
33 pub fn ctor(self, r#type: crate::app::curve::Curve_Type, num: i32) -> ();
34
35 #[doc = "`get_Value()` overload"]
36 #[method(name = "get_Value", args = 0)]
37 pub fn get_value(self) -> T0;
38
39 #[doc = "`get_Prev()` overload"]
40 #[method(name = "get_Prev", args = 0)]
41 pub fn get_prev(self) -> T0;
42
43 #[doc = "`set_Prev(T0)` overload"]
44 #[method(name = "set_Prev", args = 1)]
45 pub fn set_prev(self, value: T0) -> ();
46
47 #[doc = "`get_Next()` overload"]
48 #[method(name = "get_Next", args = 0)]
49 pub fn get_next(self) -> T0;
50
51 #[doc = "`set_Next(T0)` overload"]
52 #[method(name = "set_Next", args = 1)]
53 pub fn set_next(self, value: T0) -> ();
54
55 #[doc = "`get_Goal()` overload"]
56 #[method(name = "get_Goal", args = 0)]
57 pub fn get_goal(self) -> T0;
58
59 #[doc = "`IsEqual(T0, T0)` overload"]
60 #[method(name = "IsEqual", args = 2, abstract_dispatch)]
61 pub fn is_equal(self, a: T0, b: T0) -> bool;
62
63 #[doc = "`Set(T0, f32)` overload"]
64 #[method(name = "Set", args = 2)]
65 pub fn set(self, value: T0, time: f32) -> bool;
66
67 #[doc = "`op_Implicit(crate::app::interpolator_1::Interpolator_1<T0>)` overload"]
68 #[method(name = "op_Implicit", args = 1)]
69 pub fn op_implicit(v: crate::app::interpolator_1::Interpolator_1<T0>) -> T0;
70}
71
72#[cfg(feature = "app-interpolator_1")]
73impl<T0: ::unity::ClassIdentity> Interpolator_1<T0> {
74 #[doc = "`.ctor(crate::app::curve::Curve_Type, i32)` — overload selector"]
75 pub fn new(r#type: crate::app::curve::Curve_Type, num: i32) -> Self {
76 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
77 panic!(
78 "{}
79::{}
80 failed to instantiate",
81 ::core::stringify!(Interpolator_1),
82 ::core::stringify!(new),
83 )
84 });
85 <Self as IInterpolator_1Methods<T0>>::ctor(this, r#type, num);
86 this
87 }
88}
89
90#[cfg(feature = "app-interpolator_1")]
91#[doc(hidden)]
92pub mod prelude {
93 pub use super::{IInterpolator_1, IInterpolator_1Methods, Interpolator_1};
94 #[cfg(feature = "app-interpolatortime")]
95 pub use crate::app::interpolatortime::IInterpolatorTimeMethods;
96 #[cfg(feature = "system-object")]
97 pub use crate::system::object::IObjectMethods;
98 pub use crate::{
99 app::interpolatortime::{IInterpolatorTime, InterpolatorTime},
100 system::object::IObject,
101 };
102}