engage/generated/unity_engine/rendering/universal/custom/
customheathaze.rs1#[cfg(feature = "unity_engine-rendering-universal-custom-customheathaze-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 rendering::volumecomponent::{IVolumeComponent, VolumeComponent},
13 scriptableobject::{IScriptableObject, ScriptableObject},
14 },
15 };
16
17 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/custom/customheathaze/CustomHeatHaze.md"))]
18 #[::unity::class(namespace = "UnityEngine.Rendering.Universal.Custom", name = "CustomHeatHaze")]
19 #[parent(crate::unity_engine::rendering::volumecomponent::VolumeComponent)]
20 pub struct CustomHeatHaze {
21 #[offset(56)]
22 #[rename(name = "intensity")]
23 pub intensity: crate::unity_engine::rendering::clampedfloatparameter::ClampedFloatParameter,
24 #[offset(64)]
25 #[rename(name = "cycle")]
26 pub cycle: crate::unity_engine::rendering::clampedfloatparameter::ClampedFloatParameter,
27 #[offset(72)]
28 #[rename(name = "cycleU")]
29 pub cycle_u: crate::unity_engine::rendering::clampedfloatparameter::ClampedFloatParameter,
30 #[offset(80)]
31 #[rename(name = "cycleV")]
32 pub cycle_v: crate::unity_engine::rendering::clampedfloatparameter::ClampedFloatParameter,
33 #[offset(88)]
34 #[rename(name = "beginToApply")]
35 pub begin_to_apply: crate::unity_engine::rendering::minfloatparameter::MinFloatParameter,
36 #[offset(96)]
37 #[rename(name = "beginFadeWidth")]
38 pub begin_fade_width: crate::unity_engine::rendering::minfloatparameter::MinFloatParameter,
39 }
40}
41
42#[cfg(feature = "unity_engine-rendering-universal-custom-customheathaze-types")]
43pub use __types::*;
44
45#[cfg(feature = "unity_engine-rendering-universal-custom-customheathaze")]
46pub trait ICustomHeatHazeMethods: ICustomHeatHaze {
47 #[doc = "`IsActive()` overload"]
48 fn is_active(self) -> bool {
49 unsafe {
50 let __receiver = <CustomHeatHaze as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 {
52 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
53 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
54 panic!(
55 "unity: virtual slot {}
56 out of range (vtable len {}
57) on the runtime class behind {}
58 (method `{}
59`)",
60 8usize,
61 __vt.len(),
62 <CustomHeatHaze as ::unity::ClassIdentity>::NAME,
63 "IsActive",
64 )
65 });
66 let __inner: extern "C" fn(CustomHeatHaze, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
67 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
68 __inner(__receiver, __mi)
69 }
70 }
71 }
72 #[doc = "`IsTileCompatible()` overload"]
73 fn is_tile_compatible(self) -> bool {
74 unsafe {
75 let __receiver = <CustomHeatHaze as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76 {
77 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
78 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
79 panic!(
80 "unity: virtual slot {}
81 out of range (vtable len {}
82) on the runtime class behind {}
83 (method `{}
84`)",
85 9usize,
86 __vt.len(),
87 <CustomHeatHaze as ::unity::ClassIdentity>::NAME,
88 "IsTileCompatible",
89 )
90 });
91 let __inner: extern "C" fn(CustomHeatHaze, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
92 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
93 __inner(__receiver, __mi)
94 }
95 }
96 }
97 #[doc = "`.ctor()` overload"]
98 fn ctor(self) -> () {
99 unsafe {
100 let __receiver = <CustomHeatHaze as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
101 ::unity::il2cpp_call!((::unity::module_base()+0x2a4ba60usize)as*mut u8,();
102(CustomHeatHaze)__receiver)
103 }
104 }
105}
106
107#[cfg(feature = "unity_engine-rendering-universal-custom-customheathaze")]
108impl<__T: ICustomHeatHaze> ICustomHeatHazeMethods for __T {}
109
110#[cfg(feature = "unity_engine-rendering-universal-custom-customheathaze")]
111impl CustomHeatHaze {
112 pub fn is_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
113 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
114 }
115
116 pub fn is_tile_compatible_method_info() -> &'static ::unity::il2cpp::MethodInfo {
117 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
118 }
119
120 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
121 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
122 }
123}
124
125#[cfg(feature = "unity_engine-rendering-universal-custom-customheathaze")]
126impl CustomHeatHaze {
127 #[doc = "Direct (non-virtual) call to `CustomHeatHaze`'s own `IsActive`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
128 pub unsafe fn is_active(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
129 let __mi = Self::is_active_method_info();
130 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
131 __inner(this.into(), ::core::option::Option::None)
132 }
133
134 #[doc = "Direct (non-virtual) call to `CustomHeatHaze`'s own `IsTileCompatible`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
135 pub unsafe fn is_tile_compatible(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
136 let __mi = Self::is_tile_compatible_method_info();
137 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
138 __inner(this.into(), ::core::option::Option::None)
139 }
140}
141
142#[cfg(feature = "unity_engine-rendering-universal-custom-customheathaze")]
143impl CustomHeatHaze {
144 #[doc = "`.ctor()` — no args"]
145 pub fn new() -> Self {
146 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
147 panic!(
148 "{}
149::{}
150 failed to instantiate",
151 ::core::stringify!(CustomHeatHaze),
152 ::core::stringify!(new),
153 )
154 });
155 <Self as ICustomHeatHazeMethods>::ctor(this);
156 this
157 }
158}
159
160#[cfg(feature = "unity_engine-rendering-universal-custom-customheathaze")]
161#[doc(hidden)]
162pub mod prelude {
163 pub use super::{CustomHeatHaze, ICustomHeatHaze, ICustomHeatHazeMethods};
164 #[cfg(feature = "system-object")]
165 pub use crate::system::object::IObjectMethods;
166 #[cfg(feature = "unity_engine-object_2")]
167 pub use crate::unity_engine::object_2::IObject_2Methods;
168 #[cfg(feature = "unity_engine-rendering-volumecomponent")]
169 pub use crate::unity_engine::rendering::volumecomponent::IVolumeComponentMethods;
170 #[cfg(feature = "unity_engine-scriptableobject")]
171 pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
172 pub use crate::{
173 system::object::IObject,
174 unity_engine::{object_2::IObject_2, rendering::volumecomponent::IVolumeComponent, scriptableobject::IScriptableObject},
175 };
176}