Skip to main content

engage/generated/unity_engine/rendering/
nointerpclampedfloatparameter.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-nointerpclampedfloatparameter-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/nointerpclampedfloatparameter/NoInterpClampedFloatParameter.md"))]
17    #[::unity::class(namespace = "UnityEngine.Rendering", name = "NoInterpClampedFloatParameter")]
18    #[parent(crate::unity_engine::rendering::volumeparameter_1::VolumeParameter_1<f32>)]
19    pub struct NoInterpClampedFloatParameter {
20        #[offset(24)]
21        #[rename(name = "min")]
22        pub min: f32,
23        #[offset(28)]
24        #[rename(name = "max")]
25        pub max: f32,
26    }
27}
28
29#[cfg(feature = "unity_engine-rendering-nointerpclampedfloatparameter-types")]
30pub use __types::*;
31
32#[cfg(feature = "unity_engine-rendering-nointerpclampedfloatparameter")]
33pub trait INoInterpClampedFloatParameterMethods: INoInterpClampedFloatParameter {
34    #[doc = "`get_value()` overload"]
35    fn get_value(self) -> f32 {
36        unsafe {
37            let __receiver =
38                <NoInterpClampedFloatParameter 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(12usize).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                        12usize,
49                        __vt.len(),
50                        <NoInterpClampedFloatParameter as ::unity::ClassIdentity>::NAME,
51                        "get_value",
52                    )
53                });
54                let __inner: extern "C" fn(NoInterpClampedFloatParameter, ::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 = "`set_value(f32)` overload"]
61    fn set_value(self, value: impl ::core::convert::Into<f32>) -> () {
62        unsafe {
63            let __receiver =
64                <NoInterpClampedFloatParameter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65            {
66                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
67                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
68                    panic!(
69                        "unity: virtual slot {}
70 out of range (vtable len {}
71) on the runtime class behind {}
72 (method `{}
73`)",
74                        13usize,
75                        __vt.len(),
76                        <NoInterpClampedFloatParameter as ::unity::ClassIdentity>::NAME,
77                        "set_value",
78                    )
79                });
80                let __inner: extern "C" fn(NoInterpClampedFloatParameter, f32, ::unity::OptionalMethod) -> () =
81                    ::core::mem::transmute(__vi.method_ptr);
82                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
83                __inner(__receiver, ::core::convert::Into::into(value), __mi)
84            }
85        }
86    }
87    #[doc = "`.ctor(f32, f32, f32, bool)` overload"]
88    fn ctor(
89        self,
90        value: impl ::core::convert::Into<f32>,
91        min: impl ::core::convert::Into<f32>,
92        max: impl ::core::convert::Into<f32>,
93        override_state: impl ::core::convert::Into<bool>,
94    ) -> () {
95        unsafe {
96            let __receiver =
97                <NoInterpClampedFloatParameter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98            ::unity::il2cpp_call!((::unity::module_base()+0x30abdb0usize)as*mut u8,();
99(NoInterpClampedFloatParameter)__receiver,(f32)::core::convert::Into::into(value),(f32)::core::convert::Into::into(min),(f32)::core::convert::Into::into(max),(bool)::core::convert::Into::into(override_state))
100        }
101    }
102}
103
104#[cfg(feature = "unity_engine-rendering-nointerpclampedfloatparameter")]
105impl<__T: INoInterpClampedFloatParameter> INoInterpClampedFloatParameterMethods for __T {}
106
107#[cfg(feature = "unity_engine-rendering-nointerpclampedfloatparameter")]
108impl NoInterpClampedFloatParameter {
109    pub fn get_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
110        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
111    }
112
113    pub fn set_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
114        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
115    }
116
117    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
118        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
119    }
120}
121
122#[cfg(feature = "unity_engine-rendering-nointerpclampedfloatparameter")]
123impl NoInterpClampedFloatParameter {
124    #[doc = "Direct (non-virtual) call to `NoInterpClampedFloatParameter`'s own `get_value`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
125    pub unsafe fn get_value(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
126        let __mi = Self::get_value_method_info();
127        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
128        __inner(this.into(), ::core::option::Option::None)
129    }
130
131    #[doc = "Direct (non-virtual) call to `NoInterpClampedFloatParameter`'s own `set_value`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
132    pub unsafe fn set_value(this: impl ::core::convert::Into<::unity::IlInstance>, value: f32) -> () {
133        let __mi = Self::set_value_method_info();
134        let __inner: extern "C" fn(::unity::IlInstance, f32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
135        __inner(this.into(), value, ::core::option::Option::None)
136    }
137}
138
139#[cfg(feature = "unity_engine-rendering-nointerpclampedfloatparameter")]
140impl NoInterpClampedFloatParameter {
141    #[doc = "`.ctor(f32, f32, f32, bool)` — overload selector"]
142    pub fn new(value: f32, min: f32, max: f32, override_state: bool) -> Self {
143        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
144            panic!(
145                "{}
146::{}
147 failed to instantiate",
148                ::core::stringify!(NoInterpClampedFloatParameter),
149                ::core::stringify!(new),
150            )
151        });
152        <Self as INoInterpClampedFloatParameterMethods>::ctor(this, value, min, max, override_state);
153        this
154    }
155}
156
157#[cfg(feature = "unity_engine-rendering-nointerpclampedfloatparameter")]
158#[doc(hidden)]
159pub mod prelude {
160    pub use super::{INoInterpClampedFloatParameter, INoInterpClampedFloatParameterMethods, NoInterpClampedFloatParameter};
161    #[cfg(feature = "system-object")]
162    pub use crate::system::object::IObjectMethods;
163    #[cfg(feature = "unity_engine-rendering-volumeparameter")]
164    pub use crate::unity_engine::rendering::volumeparameter::IVolumeParameterMethods;
165    #[cfg(feature = "unity_engine-rendering-volumeparameter_1")]
166    pub use crate::unity_engine::rendering::volumeparameter_1::IVolumeParameter_1Methods;
167    pub use crate::{
168        system::object::IObject,
169        unity_engine::rendering::{volumeparameter::IVolumeParameter, volumeparameter_1::IVolumeParameter_1},
170    };
171}