Skip to main content

engage/generated/unity_engine/
lightingsettings.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-lightingsettings-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/lightingsettings/LightingSettings.md"))]
14    #[::unity::class(namespace = "UnityEngine", name = "LightingSettings")]
15    #[parent(crate::unity_engine::object_2::Object_2)]
16    pub struct LightingSettings {}
17}
18
19#[cfg(feature = "unity_engine-lightingsettings-types")]
20pub use __types::*;
21
22#[cfg(feature = "unity_engine-lightingsettings")]
23impl LightingSettings {
24    #[doc = "`Internal_Create(crate::unity_engine::lightingsettings::LightingSettings)` overload"]
25    pub fn internal_create(self_: impl ::core::convert::Into<crate::unity_engine::lightingsettings::LightingSettings>) -> () {
26        unsafe {
27            ::unity::il2cpp_call!((::unity::module_base()+0x2c560d0usize)as*mut u8,();
28(crate::unity_engine::lightingsettings::LightingSettings)::core::convert::Into::into(self_))
29        }
30    }
31}
32
33#[cfg(feature = "unity_engine-lightingsettings")]
34pub trait ILightingSettingsMethods: ILightingSettings {
35    #[doc = "`LightingSettingsDontStripMe()` overload"]
36    fn lighting_settings_dont_strip_me(self) -> () {
37        unsafe {
38            let __receiver = <LightingSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
39            ::unity::il2cpp_call!((::unity::module_base()+0x2c56020usize)as*mut u8,();
40(LightingSettings)__receiver)
41        }
42    }
43    #[doc = "`.ctor()` overload"]
44    fn ctor(self) -> () {
45        unsafe {
46            let __receiver = <LightingSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
47            ::unity::il2cpp_call!((::unity::module_base()+0x2c56030usize)as*mut u8,();
48(LightingSettings)__receiver)
49        }
50    }
51    #[doc = "`get_bakedGI()` overload"]
52    fn get_baked_gi(self) -> bool {
53        unsafe {
54            let __receiver = <LightingSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
55            ::unity::il2cpp_call!((::unity::module_base()+0x2c56120usize)as*mut u8,bool;
56(LightingSettings)__receiver)
57        }
58    }
59    #[doc = "`set_bakedGI(bool)` overload"]
60    fn set_baked_gi(self, value: impl ::core::convert::Into<bool>) -> () {
61        unsafe {
62            let __receiver = <LightingSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63            ::unity::il2cpp_call!((::unity::module_base()+0x2c56170usize)as*mut u8,();
64(LightingSettings)__receiver,(bool)::core::convert::Into::into(value))
65        }
66    }
67    #[doc = "`get_realtimeGI()` overload"]
68    fn get_realtime_gi(self) -> bool {
69        unsafe {
70            let __receiver = <LightingSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71            ::unity::il2cpp_call!((::unity::module_base()+0x2c561c0usize)as*mut u8,bool;
72(LightingSettings)__receiver)
73        }
74    }
75    #[doc = "`set_realtimeGI(bool)` overload"]
76    fn set_realtime_gi(self, value: impl ::core::convert::Into<bool>) -> () {
77        unsafe {
78            let __receiver = <LightingSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79            ::unity::il2cpp_call!((::unity::module_base()+0x2c56210usize)as*mut u8,();
80(LightingSettings)__receiver,(bool)::core::convert::Into::into(value))
81        }
82    }
83    #[doc = "`get_realtimeEnvironmentLighting()` overload"]
84    fn get_realtime_environment_lighting(self) -> bool {
85        unsafe {
86            let __receiver = <LightingSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87            ::unity::il2cpp_call!((::unity::module_base()+0x2c56260usize)as*mut u8,bool;
88(LightingSettings)__receiver)
89        }
90    }
91    #[doc = "`set_realtimeEnvironmentLighting(bool)` overload"]
92    fn set_realtime_environment_lighting(self, value: impl ::core::convert::Into<bool>) -> () {
93        unsafe {
94            let __receiver = <LightingSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95            ::unity::il2cpp_call!((::unity::module_base()+0x2c562b0usize)as*mut u8,();
96(LightingSettings)__receiver,(bool)::core::convert::Into::into(value))
97        }
98    }
99}
100
101#[cfg(feature = "unity_engine-lightingsettings")]
102impl<__T: ILightingSettings> ILightingSettingsMethods for __T {}
103
104#[cfg(feature = "unity_engine-lightingsettings")]
105impl LightingSettings {
106    pub fn lighting_settings_dont_strip_me_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
108    }
109
110    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
111        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
112    }
113
114    pub fn internal_create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
115        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
116    }
117
118    pub fn get_baked_gi_method_info() -> &'static ::unity::il2cpp::MethodInfo {
119        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
120    }
121
122    pub fn set_baked_gi_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
124    }
125
126    pub fn get_realtime_gi_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
128    }
129
130    pub fn set_realtime_gi_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
132    }
133
134    pub fn get_realtime_environment_lighting_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
136    }
137
138    pub fn set_realtime_environment_lighting_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
140    }
141}
142
143#[cfg(feature = "unity_engine-lightingsettings")]
144impl LightingSettings {
145    #[doc = "`.ctor()` — no args"]
146    pub fn new() -> Self {
147        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
148            panic!(
149                "{}
150::{}
151 failed to instantiate",
152                ::core::stringify!(LightingSettings),
153                ::core::stringify!(new),
154            )
155        });
156        <Self as ILightingSettingsMethods>::ctor(this);
157        this
158    }
159}
160
161#[cfg(feature = "unity_engine-lightingsettings")]
162#[doc(hidden)]
163pub mod prelude {
164    pub use super::{ILightingSettings, ILightingSettingsMethods, LightingSettings};
165    #[cfg(feature = "system-object")]
166    pub use crate::system::object::IObjectMethods;
167    #[cfg(feature = "unity_engine-object_2")]
168    pub use crate::unity_engine::object_2::IObject_2Methods;
169    pub use crate::{system::object::IObject, unity_engine::object_2::IObject_2};
170}