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