engage/generated/app/
interpolatorfloat.rs1#[cfg(feature = "app-interpolatorfloat-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 interpolator_1::{IInterpolator_1, Interpolator_1},
11 interpolatortime::{IInterpolatorTime, InterpolatorTime},
12 },
13 system::object::{IObject, Object},
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/interpolatorfloat/InterpolatorFloat.md"))]
17 #[::unity::class(namespace = "App", name = "InterpolatorFloat")]
18 #[parent(crate::app::interpolator_1::Interpolator_1<f32>)]
19 pub struct InterpolatorFloat {}
20}
21
22#[cfg(feature = "app-interpolatorfloat-types")]
23pub use __types::*;
24
25#[cfg(feature = "app-interpolatorfloat")]
26pub trait IInterpolatorFloatMethods: IInterpolatorFloat {
27 #[doc = "`.ctor(crate::app::curve::Curve_Type, i32)` overload"]
28 fn ctor(self, r#type: impl ::core::convert::Into<crate::app::curve::Curve_Type>, num: impl ::core::convert::Into<i32>) -> () {
29 unsafe {
30 let __receiver = <InterpolatorFloat as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
31 ::unity::il2cpp_call!((::unity::module_base()+0x2794b50usize)as*mut u8,();
32(InterpolatorFloat)__receiver,(crate::app::curve::Curve_Type)::core::convert::Into::into(r#type),(i32)::core::convert::Into::into(num))
33 }
34 }
35 #[doc = "`get_Value()` overload"]
36 fn get_value(self) -> f32 {
37 unsafe {
38 let __receiver = <InterpolatorFloat as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
39 {
40 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
41 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
42 panic!(
43 "unity: virtual slot {}
44 out of range (vtable len {}
45) on the runtime class behind {}
46 (method `{}
47`)",
48 4usize,
49 __vt.len(),
50 <InterpolatorFloat as ::unity::ClassIdentity>::NAME,
51 "get_Value",
52 )
53 });
54 let __inner: extern "C" fn(InterpolatorFloat, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
55 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
56 __inner(__receiver, __mi)
57 }
58 }
59 }
60 #[doc = "`IsEqual(f32, f32)` overload"]
61 fn is_equal(self, a: impl ::core::convert::Into<f32>, b: impl ::core::convert::Into<f32>) -> bool {
62 unsafe {
63 let __receiver = <InterpolatorFloat as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64 {
65 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
66 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
67 panic!(
68 "unity: virtual slot {}
69 out of range (vtable len {}
70) on the runtime class behind {}
71 (method `{}
72`)",
73 5usize,
74 __vt.len(),
75 <InterpolatorFloat as ::unity::ClassIdentity>::NAME,
76 "IsEqual",
77 )
78 });
79 let __inner: extern "C" fn(InterpolatorFloat, f32, f32, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
80 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
81 __inner(__receiver, ::core::convert::Into::into(a), ::core::convert::Into::into(b), __mi)
82 }
83 }
84 }
85}
86
87#[cfg(feature = "app-interpolatorfloat")]
88impl<__T: IInterpolatorFloat> IInterpolatorFloatMethods for __T {}
89
90#[cfg(feature = "app-interpolatorfloat")]
91impl InterpolatorFloat {
92 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
93 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
94 }
95
96 pub fn get_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
97 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
98 }
99
100 pub fn is_equal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
101 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
102 }
103}
104
105#[cfg(feature = "app-interpolatorfloat")]
106impl InterpolatorFloat {
107 #[doc = "Direct (non-virtual) call to `InterpolatorFloat`'s own `get_Value`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
108 pub unsafe fn get_value(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
109 let __mi = Self::get_value_method_info();
110 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
111 __inner(this.into(), ::core::option::Option::None)
112 }
113
114 #[doc = "Direct (non-virtual) call to `InterpolatorFloat`'s own `IsEqual`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
115 pub unsafe fn is_equal(this: impl ::core::convert::Into<::unity::IlInstance>, a: f32, b: f32) -> bool {
116 let __mi = Self::is_equal_method_info();
117 let __inner: extern "C" fn(::unity::IlInstance, f32, f32, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
118 __inner(this.into(), a, b, ::core::option::Option::None)
119 }
120}
121
122#[cfg(feature = "app-interpolatorfloat")]
123impl InterpolatorFloat {
124 #[doc = "`.ctor(crate::app::curve::Curve_Type, i32)` — overload selector"]
125 pub fn new(r#type: crate::app::curve::Curve_Type, num: i32) -> Self {
126 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
127 panic!(
128 "{}
129::{}
130 failed to instantiate",
131 ::core::stringify!(InterpolatorFloat),
132 ::core::stringify!(new),
133 )
134 });
135 <Self as IInterpolatorFloatMethods>::ctor(this, r#type, num);
136 this
137 }
138}
139
140#[cfg(feature = "app-interpolatorfloat")]
141#[doc(hidden)]
142pub mod prelude {
143 pub use super::{IInterpolatorFloat, IInterpolatorFloatMethods, InterpolatorFloat};
144 #[cfg(feature = "app-interpolator_1")]
145 pub use crate::app::interpolator_1::IInterpolator_1Methods;
146 #[cfg(feature = "app-interpolatortime")]
147 pub use crate::app::interpolatortime::IInterpolatorTimeMethods;
148 #[cfg(feature = "system-object")]
149 pub use crate::system::object::IObjectMethods;
150 pub use crate::{
151 app::{
152 interpolator_1::{IInterpolator_1, Interpolator_1},
153 interpolatortime::{IInterpolatorTime, InterpolatorTime},
154 },
155 system::object::IObject,
156 };
157}