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