Skip to main content

engage/generated/app/
interpolatorrotation.rs

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