Skip to main content

engage/generated/unity_engine/rendering/
visiblelight.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-visiblelight-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        valuetype::{IValueType, ValueType},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/visiblelight/VisibleLight.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct VisibleLight {
17        pub m_light_type: crate::unity_engine::lighttype::LightType,
18        pub m_final_color: crate::unity_engine::color::Color,
19        pub m_screen_rect: crate::unity_engine::rect::Rect,
20        pub m_local_to_world_matrix: crate::unity_engine::matrix4x4::Matrix4x4,
21        pub m_range: f32,
22        pub m_spot_angle: f32,
23        pub m_instance_id: i32,
24        pub m_flags: crate::unity_engine::rendering::visiblelightflags::VisibleLightFlags,
25    }
26    impl ::unity::ClassIdentity for VisibleLight {
27        const NAME: &'static str = "VisibleLight";
28        const NAMESPACE: &'static str = "UnityEngine.Rendering";
29
30        fn class() -> ::unity::Class {
31            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
32            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
33        }
34    }
35    impl ::unity::IlType for VisibleLight {
36        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
37            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
38        }
39    }
40}
41
42#[cfg(feature = "unity_engine-rendering-visiblelight-types")]
43pub use __types::*;
44
45#[cfg(feature = "unity_engine-rendering-visiblelight")]
46impl VisibleLight {
47    #[doc = "`get_light()` overload"]
48    pub fn get_light(&mut self) -> crate::unity_engine::light::Light {
49        unsafe {
50            ::unity::il2cpp_call!((::unity::module_base()+0x379a3d0usize)as*mut u8,crate::unity_engine::light::Light;
51(*mut VisibleLight)self as*mut VisibleLight)
52        }
53    }
54
55    #[doc = "`get_lightType()` overload"]
56    pub fn get_light_type(&mut self) -> crate::unity_engine::lighttype::LightType {
57        unsafe {
58            ::unity::il2cpp_call!((::unity::module_base()+0x379a490usize)as*mut u8,crate::unity_engine::lighttype::LightType;
59(*mut VisibleLight)self as*mut VisibleLight)
60        }
61    }
62
63    #[doc = "`get_finalColor()` overload"]
64    pub fn get_final_color(&mut self) -> crate::unity_engine::color::Color {
65        unsafe {
66            ::unity::il2cpp_call!((::unity::module_base()+0x379a4a0usize)as*mut u8,crate::unity_engine::color::Color;
67(*mut VisibleLight)self as*mut VisibleLight)
68        }
69    }
70
71    #[doc = "`get_localToWorldMatrix()` overload"]
72    pub fn get_local_to_world_matrix(&mut self) -> crate::unity_engine::matrix4x4::Matrix4x4 {
73        unsafe {
74            ::unity::il2cpp_call!((::unity::module_base()+0x379a4b0usize)as*mut u8,crate::unity_engine::matrix4x4::Matrix4x4;
75(*mut VisibleLight)self as*mut VisibleLight)
76        }
77    }
78
79    #[doc = "`get_range()` overload"]
80    pub fn get_range(&mut self) -> f32 {
81        unsafe {
82            ::unity::il2cpp_call!((::unity::module_base()+0x379a4f0usize)as*mut u8,f32;
83(*mut VisibleLight)self as*mut VisibleLight)
84        }
85    }
86
87    #[doc = "`get_spotAngle()` overload"]
88    pub fn get_spot_angle(&mut self) -> f32 {
89        unsafe {
90            ::unity::il2cpp_call!((::unity::module_base()+0x379a500usize)as*mut u8,f32;
91(*mut VisibleLight)self as*mut VisibleLight)
92        }
93    }
94
95    #[doc = "`Equals(crate::unity_engine::rendering::visiblelight::VisibleLight)` overload"]
96    pub fn equals(&mut self, other: impl ::core::convert::Into<crate::unity_engine::rendering::visiblelight::VisibleLight>) -> bool {
97        unsafe {
98            ::unity::il2cpp_call!((::unity::module_base()+0x379a510usize)as*mut u8,bool;
99(*mut VisibleLight)self as*mut VisibleLight,(crate::unity_engine::rendering::visiblelight::VisibleLight)::core::convert::Into::into(other))
100        }
101    }
102
103    #[doc = "`Equals(crate::system::object::Object)` overload"]
104    pub fn equals_2(&mut self, obj: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
105        unsafe {
106            ::unity::il2cpp_call!((::unity::module_base()+0x379a670usize)as*mut u8,bool;
107(*mut VisibleLight)self as*mut VisibleLight,(crate::system::object::Object)::core::convert::Into::into(obj))
108        }
109    }
110
111    #[doc = "`GetHashCode()` overload"]
112    pub fn get_hash_code(&mut self) -> i32 {
113        unsafe {
114            ::unity::il2cpp_call!((::unity::module_base()+0x379a750usize)as*mut u8,i32;
115(*mut VisibleLight)self as*mut VisibleLight)
116        }
117    }
118}
119
120#[cfg(feature = "unity_engine-rendering-visiblelight")]
121impl VisibleLight {
122    pub fn get_light_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
124    }
125
126    pub fn get_light_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
128    }
129
130    pub fn get_final_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
132    }
133
134    pub fn get_local_to_world_matrix_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
136    }
137
138    pub fn get_range_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
140    }
141
142    pub fn get_spot_angle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
143        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
144    }
145
146    pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
148    }
149
150    pub fn equals_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
151        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
152    }
153
154    pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
156    }
157}
158
159#[cfg(feature = "unity_engine-rendering-visiblelight")]
160#[doc(hidden)]
161pub mod prelude {
162    pub use super::VisibleLight;
163    #[cfg(feature = "system-object")]
164    pub use crate::system::object::IObjectMethods;
165    #[cfg(feature = "system-valuetype")]
166    pub use crate::system::valuetype::IValueTypeMethods;
167    pub use crate::system::{object::IObject, valuetype::IValueType};
168}