Skip to main content

engage/generated/unity_engine/
lightmapdata.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-lightmapdata-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/lightmapdata/LightmapData.md"))]
11    #[::unity::class(namespace = "UnityEngine", name = "LightmapData")]
12    #[parent(crate::system::object::Object)]
13    pub struct LightmapData {
14        #[offset(16)]
15        #[rename(name = "m_Light")]
16        pub m_light: crate::unity_engine::texture2d::Texture2D,
17        #[offset(24)]
18        #[rename(name = "m_Dir")]
19        pub m_dir: crate::unity_engine::texture2d::Texture2D,
20        #[offset(32)]
21        #[rename(name = "m_ShadowMask")]
22        pub m_shadow_mask: crate::unity_engine::texture2d::Texture2D,
23    }
24}
25
26#[cfg(feature = "unity_engine-lightmapdata-types")]
27pub use __types::*;
28
29#[cfg(feature = "unity_engine-lightmapdata")]
30pub trait ILightmapDataMethods: ILightmapData {
31    #[doc = "`get_lightmapColor()` overload"]
32    fn get_lightmap_color(self) -> crate::unity_engine::texture2d::Texture2D {
33        unsafe {
34            let __receiver = <LightmapData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
35            ::unity::il2cpp_call!((::unity::module_base()+0x2c56300usize)as*mut u8,crate::unity_engine::texture2d::Texture2D;
36(LightmapData)__receiver)
37        }
38    }
39    #[doc = "`set_lightmapColor(crate::unity_engine::texture2d::Texture2D)` overload"]
40    fn set_lightmap_color(self, value: impl ::core::convert::Into<crate::unity_engine::texture2d::Texture2D>) -> () {
41        unsafe {
42            let __receiver = <LightmapData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            ::unity::il2cpp_call!((::unity::module_base()+0x2c56310usize)as*mut u8,();
44(LightmapData)__receiver,(crate::unity_engine::texture2d::Texture2D)::core::convert::Into::into(value))
45        }
46    }
47    #[doc = "`set_lightmapDir(crate::unity_engine::texture2d::Texture2D)` overload"]
48    fn set_lightmap_dir(self, value: impl ::core::convert::Into<crate::unity_engine::texture2d::Texture2D>) -> () {
49        unsafe {
50            let __receiver = <LightmapData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51            ::unity::il2cpp_call!((::unity::module_base()+0x2c56320usize)as*mut u8,();
52(LightmapData)__receiver,(crate::unity_engine::texture2d::Texture2D)::core::convert::Into::into(value))
53        }
54    }
55    #[doc = "`get_shadowMask()` overload"]
56    fn get_shadow_mask(self) -> crate::unity_engine::texture2d::Texture2D {
57        unsafe {
58            let __receiver = <LightmapData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            ::unity::il2cpp_call!((::unity::module_base()+0x2c56330usize)as*mut u8,crate::unity_engine::texture2d::Texture2D;
60(LightmapData)__receiver)
61        }
62    }
63    #[doc = "`set_shadowMask(crate::unity_engine::texture2d::Texture2D)` overload"]
64    fn set_shadow_mask(self, value: impl ::core::convert::Into<crate::unity_engine::texture2d::Texture2D>) -> () {
65        unsafe {
66            let __receiver = <LightmapData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67            ::unity::il2cpp_call!((::unity::module_base()+0x2c56340usize)as*mut u8,();
68(LightmapData)__receiver,(crate::unity_engine::texture2d::Texture2D)::core::convert::Into::into(value))
69        }
70    }
71    #[doc = "`.ctor()` overload"]
72    fn ctor(self) -> () {
73        unsafe {
74            let __receiver = <LightmapData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            ::unity::il2cpp_call!((::unity::module_base()+0x2c56350usize)as*mut u8,();
76(LightmapData)__receiver)
77        }
78    }
79}
80
81#[cfg(feature = "unity_engine-lightmapdata")]
82impl<__T: ILightmapData> ILightmapDataMethods for __T {}
83
84#[cfg(feature = "unity_engine-lightmapdata")]
85impl LightmapData {
86    pub fn get_lightmap_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
87        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
88    }
89
90    pub fn set_lightmap_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
91        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
92    }
93
94    pub fn set_lightmap_dir_method_info() -> &'static ::unity::il2cpp::MethodInfo {
95        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
96    }
97
98    pub fn get_shadow_mask_method_info() -> &'static ::unity::il2cpp::MethodInfo {
99        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
100    }
101
102    pub fn set_shadow_mask_method_info() -> &'static ::unity::il2cpp::MethodInfo {
103        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
104    }
105
106    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
108    }
109}
110
111#[cfg(feature = "unity_engine-lightmapdata")]
112impl LightmapData {
113    #[doc = "`.ctor()` — no args"]
114    pub fn new() -> Self {
115        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
116            panic!(
117                "{}
118::{}
119 failed to instantiate",
120                ::core::stringify!(LightmapData),
121                ::core::stringify!(new),
122            )
123        });
124        <Self as ILightmapDataMethods>::ctor(this);
125        this
126    }
127}
128
129#[cfg(feature = "unity_engine-lightmapdata")]
130#[doc(hidden)]
131pub mod prelude {
132    pub use super::{ILightmapData, ILightmapDataMethods, LightmapData};
133    pub use crate::system::object::IObject;
134    #[cfg(feature = "system-object")]
135    pub use crate::system::object::IObjectMethods;
136}