Skip to main content

engage/generated/unity_engine/
lightmapsettings.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-lightmapsettings-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::object_2::{IObject_2, Object_2},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/lightmapsettings/LightmapSettings.md"))]
14    #[::unity::class(namespace = "UnityEngine", name = "LightmapSettings")]
15    #[parent(crate::unity_engine::object_2::Object_2)]
16    pub struct LightmapSettings {}
17}
18
19#[cfg(feature = "unity_engine-lightmapsettings-types")]
20pub use __types::*;
21
22#[cfg(feature = "unity_engine-lightmapsettings")]
23impl LightmapSettings {
24    #[doc = "`get_lightmaps()` overload"]
25    pub fn get_lightmaps() -> ::unity::Array<crate::unity_engine::lightmapdata::LightmapData> {
26        unsafe {
27            ::unity::il2cpp_call!((::unity::module_base()+0x2c563d0usize)as*mut u8, ::unity::Array<crate::unity_engine::lightmapdata::LightmapData> ;
28            )
29        }
30    }
31
32    #[doc = "`set_lightmaps(::unity::Array<crate::unity_engine::lightmapdata::LightmapData>)` overload"]
33    pub fn set_lightmaps(value: impl ::core::convert::Into<::unity::Array<crate::unity_engine::lightmapdata::LightmapData>>) -> () {
34        unsafe {
35            ::unity::il2cpp_call!((::unity::module_base()+0x2c56410usize)as*mut u8,();
36(::unity::Array<crate::unity_engine::lightmapdata::LightmapData>)::core::convert::Into::into(value))
37        }
38    }
39
40    #[doc = "`get_lightmapsMode()` overload"]
41    pub fn get_lightmaps_mode() -> crate::unity_engine::lightmapsmode::LightmapsMode {
42        unsafe {
43            ::unity::il2cpp_call!((::unity::module_base()+0x2c56460usize)as*mut u8,crate::unity_engine::lightmapsmode::LightmapsMode;
44            )
45        }
46    }
47
48    #[doc = "`set_lightmapsMode(crate::unity_engine::lightmapsmode::LightmapsMode)` overload"]
49    pub fn set_lightmaps_mode(value: impl ::core::convert::Into<crate::unity_engine::lightmapsmode::LightmapsMode>) -> () {
50        unsafe {
51            ::unity::il2cpp_call!((::unity::module_base()+0x2c564a0usize)as*mut u8,();
52(crate::unity_engine::lightmapsmode::LightmapsMode)::core::convert::Into::into(value))
53        }
54    }
55
56    #[doc = "`get_lightProbes()` overload"]
57    pub fn get_light_probes() -> crate::unity_engine::lightprobes::LightProbes {
58        unsafe {
59            ::unity::il2cpp_call!((::unity::module_base()+0x2c564f0usize)as*mut u8,crate::unity_engine::lightprobes::LightProbes;
60            )
61        }
62    }
63
64    #[doc = "`set_lightProbes(crate::unity_engine::lightprobes::LightProbes)` overload"]
65    pub fn set_light_probes(value: impl ::core::convert::Into<crate::unity_engine::lightprobes::LightProbes>) -> () {
66        unsafe {
67            ::unity::il2cpp_call!((::unity::module_base()+0x2c56530usize)as*mut u8,();
68(crate::unity_engine::lightprobes::LightProbes)::core::convert::Into::into(value))
69        }
70    }
71
72    #[doc = "`Reset()` overload"]
73    pub fn reset() -> () {
74        unsafe {
75            ::unity::il2cpp_call!((::unity::module_base()+0x2c56580usize)as*mut u8,();
76            )
77        }
78    }
79
80    #[doc = "`get_lightmapsModeLegacy()` overload"]
81    pub fn get_lightmaps_mode_legacy() -> crate::unity_engine::lightmapsmodelegacy::LightmapsModeLegacy {
82        unsafe {
83            ::unity::il2cpp_call!((::unity::module_base()+0x2c565c0usize)as*mut u8,crate::unity_engine::lightmapsmodelegacy::LightmapsModeLegacy;
84            )
85        }
86    }
87
88    #[doc = "`set_lightmapsModeLegacy(crate::unity_engine::lightmapsmodelegacy::LightmapsModeLegacy)` overload"]
89    pub fn set_lightmaps_mode_legacy(value: impl ::core::convert::Into<crate::unity_engine::lightmapsmodelegacy::LightmapsModeLegacy>) -> () {
90        unsafe {
91            ::unity::il2cpp_call!((::unity::module_base()+0x2c565d0usize)as*mut u8,();
92(crate::unity_engine::lightmapsmodelegacy::LightmapsModeLegacy)::core::convert::Into::into(value))
93        }
94    }
95
96    #[doc = "`get_bakedColorSpace()` overload"]
97    pub fn get_baked_color_space() -> crate::unity_engine::colorspace::ColorSpace {
98        unsafe {
99            ::unity::il2cpp_call!((::unity::module_base()+0x2c565e0usize)as*mut u8,crate::unity_engine::colorspace::ColorSpace;
100            )
101        }
102    }
103
104    #[doc = "`set_bakedColorSpace(crate::unity_engine::colorspace::ColorSpace)` overload"]
105    pub fn set_baked_color_space(value: impl ::core::convert::Into<crate::unity_engine::colorspace::ColorSpace>) -> () {
106        unsafe {
107            ::unity::il2cpp_call!((::unity::module_base()+0x2c565f0usize)as*mut u8,();
108(crate::unity_engine::colorspace::ColorSpace)::core::convert::Into::into(value))
109        }
110    }
111}
112
113#[cfg(feature = "unity_engine-lightmapsettings")]
114pub trait ILightmapSettingsMethods: ILightmapSettings {
115    #[doc = "`.ctor()` overload"]
116    fn ctor(self) -> () {
117        unsafe {
118            let __receiver = <LightmapSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
119            ::unity::il2cpp_call!((::unity::module_base()+0x2c56360usize)as*mut u8,();
120(LightmapSettings)__receiver)
121        }
122    }
123}
124
125#[cfg(feature = "unity_engine-lightmapsettings")]
126impl<__T: ILightmapSettings> ILightmapSettingsMethods for __T {}
127
128#[cfg(feature = "unity_engine-lightmapsettings")]
129impl LightmapSettings {
130    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
132    }
133
134    pub fn get_lightmaps_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
136    }
137
138    pub fn set_lightmaps_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
140    }
141
142    pub fn get_lightmaps_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
143        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
144    }
145
146    pub fn set_lightmaps_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
148    }
149
150    pub fn get_light_probes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
151        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
152    }
153
154    pub fn set_light_probes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
156    }
157
158    pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
160    }
161
162    pub fn get_lightmaps_mode_legacy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
164    }
165
166    pub fn set_lightmaps_mode_legacy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
168    }
169
170    pub fn get_baked_color_space_method_info() -> &'static ::unity::il2cpp::MethodInfo {
171        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
172    }
173
174    pub fn set_baked_color_space_method_info() -> &'static ::unity::il2cpp::MethodInfo {
175        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
176    }
177}
178
179#[cfg(feature = "unity_engine-lightmapsettings")]
180impl LightmapSettings {
181    #[doc = "`.ctor()` — no args"]
182    pub fn new() -> Self {
183        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
184            panic!(
185                "{}
186::{}
187 failed to instantiate",
188                ::core::stringify!(LightmapSettings),
189                ::core::stringify!(new),
190            )
191        });
192        <Self as ILightmapSettingsMethods>::ctor(this);
193        this
194    }
195}
196
197#[cfg(feature = "unity_engine-lightmapsettings")]
198#[doc(hidden)]
199pub mod prelude {
200    pub use super::{ILightmapSettings, ILightmapSettingsMethods, LightmapSettings};
201    #[cfg(feature = "system-object")]
202    pub use crate::system::object::IObjectMethods;
203    #[cfg(feature = "unity_engine-object_2")]
204    pub use crate::unity_engine::object_2::IObject_2Methods;
205    pub use crate::{system::object::IObject, unity_engine::object_2::IObject_2};
206}