Skip to main content

engage/generated/unity_engine/rendering/
animationcurveparameter.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-animationcurveparameter-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::rendering::{
11            volumeparameter::{IVolumeParameter, VolumeParameter},
12            volumeparameter_1::{IVolumeParameter_1, VolumeParameter_1},
13        },
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/animationcurveparameter/AnimationCurveParameter.md"))]
17    #[::unity::class(namespace = "UnityEngine.Rendering", name = "AnimationCurveParameter")]
18    #[parent(crate::unity_engine::rendering::volumeparameter_1::VolumeParameter_1<crate::unity_engine::animationcurve::AnimationCurve>)]
19    pub struct AnimationCurveParameter {}
20}
21
22#[cfg(feature = "unity_engine-rendering-animationcurveparameter-types")]
23pub use __types::*;
24
25#[cfg(feature = "unity_engine-rendering-animationcurveparameter")]
26pub trait IAnimationCurveParameterMethods: IAnimationCurveParameter {
27    #[doc = "`.ctor(crate::unity_engine::animationcurve::AnimationCurve, bool)` overload"]
28    fn ctor(
29        self,
30        value: impl ::core::convert::Into<crate::unity_engine::animationcurve::AnimationCurve>,
31        override_state: impl ::core::convert::Into<bool>,
32    ) -> () {
33        unsafe {
34            let __receiver =
35                <AnimationCurveParameter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
36            ::unity::il2cpp_call!((::unity::module_base()+0x352ac50usize)as*mut u8,();
37(AnimationCurveParameter)__receiver,(crate::unity_engine::animationcurve::AnimationCurve)::core::convert::Into::into(value),(bool)::core::convert::Into::into(override_state))
38        }
39    }
40}
41
42#[cfg(feature = "unity_engine-rendering-animationcurveparameter")]
43impl<__T: IAnimationCurveParameter> IAnimationCurveParameterMethods for __T {}
44
45#[cfg(feature = "unity_engine-rendering-animationcurveparameter")]
46impl AnimationCurveParameter {
47    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
48        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
49    }
50}
51
52#[cfg(feature = "unity_engine-rendering-animationcurveparameter")]
53impl AnimationCurveParameter {
54    #[doc = "`.ctor(crate::unity_engine::animationcurve::AnimationCurve, bool)` — overload selector"]
55    pub fn new(value: crate::unity_engine::animationcurve::AnimationCurve, override_state: bool) -> Self {
56        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
57            panic!(
58                "{}
59::{}
60 failed to instantiate",
61                ::core::stringify!(AnimationCurveParameter),
62                ::core::stringify!(new),
63            )
64        });
65        <Self as IAnimationCurveParameterMethods>::ctor(this, value, override_state);
66        this
67    }
68}
69
70#[cfg(feature = "unity_engine-rendering-animationcurveparameter")]
71#[doc(hidden)]
72pub mod prelude {
73    pub use super::{AnimationCurveParameter, IAnimationCurveParameter, IAnimationCurveParameterMethods};
74    #[cfg(feature = "system-object")]
75    pub use crate::system::object::IObjectMethods;
76    #[cfg(feature = "unity_engine-rendering-volumeparameter")]
77    pub use crate::unity_engine::rendering::volumeparameter::IVolumeParameterMethods;
78    #[cfg(feature = "unity_engine-rendering-volumeparameter_1")]
79    pub use crate::unity_engine::rendering::volumeparameter_1::IVolumeParameter_1Methods;
80    pub use crate::{
81        system::object::IObject,
82        unity_engine::rendering::{volumeparameter::IVolumeParameter, volumeparameter_1::IVolumeParameter_1},
83    };
84}