Skip to main content

engage/generated/app/
gamecurve.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-gamecurve-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::{
11            object_2::{IObject_2, Object_2},
12            scriptableobject::{IScriptableObject, ScriptableObject},
13        },
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gamecurve/GameCurve.md"))]
17    #[::unity::class(namespace = "App", name = "GameCurve")]
18    #[parent(crate::unity_engine::scriptableobject::ScriptableObject)]
19    pub struct GameCurve {
20        #[offset(24)]
21        #[rename(name = "m_Curve")]
22        pub m_curve: crate::unity_engine::animationcurve::AnimationCurve,
23    }
24}
25
26#[cfg(feature = "app-gamecurve-types")]
27pub use __types::*;
28
29#[cfg(feature = "app-gamecurve")]
30pub trait IGameCurveMethods: IGameCurve {
31    #[doc = "`GetValue(f32)` overload"]
32    fn get_value(self, time: impl ::core::convert::Into<f32>) -> f32 {
33        unsafe {
34            let __receiver = <GameCurve as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
35            ::unity::il2cpp_call!((::unity::module_base()+0x227bec0usize)as*mut u8,f32;
36(GameCurve)__receiver,(f32)::core::convert::Into::into(time))
37        }
38    }
39    #[doc = "`.ctor()` overload"]
40    fn ctor(self) -> () {
41        unsafe {
42            let __receiver = <GameCurve as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            ::unity::il2cpp_call!((::unity::module_base()+0x227bee0usize)as*mut u8,();
44(GameCurve)__receiver)
45        }
46    }
47}
48
49#[cfg(feature = "app-gamecurve")]
50impl<__T: IGameCurve> IGameCurveMethods for __T {}
51
52#[cfg(feature = "app-gamecurve")]
53impl GameCurve {
54    pub fn get_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
55        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
56    }
57
58    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
59        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
60    }
61}
62
63#[cfg(feature = "app-gamecurve")]
64impl GameCurve {
65    #[doc = "`.ctor()` — no args"]
66    pub fn new() -> Self {
67        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
68            panic!(
69                "{}
70::{}
71 failed to instantiate",
72                ::core::stringify!(GameCurve),
73                ::core::stringify!(new),
74            )
75        });
76        <Self as IGameCurveMethods>::ctor(this);
77        this
78    }
79}
80
81#[cfg(feature = "app-gamecurve")]
82#[doc(hidden)]
83pub mod prelude {
84    pub use super::{GameCurve, IGameCurve, IGameCurveMethods};
85    #[cfg(feature = "system-object")]
86    pub use crate::system::object::IObjectMethods;
87    #[cfg(feature = "unity_engine-object_2")]
88    pub use crate::unity_engine::object_2::IObject_2Methods;
89    #[cfg(feature = "unity_engine-scriptableobject")]
90    pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
91    pub use crate::{
92        system::object::IObject,
93        unity_engine::{object_2::IObject_2, scriptableobject::IScriptableObject},
94    };
95}