engage/generated/unity_engine/experimental/global_illumination/
lightmapping.rs1#[cfg(feature = "unity_engine-experimental-global_illumination-lightmapping-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 delegate::{Delegate, IDelegate},
10 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
11 object::{IObject, Object},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/experimental/global_illumination/lightmapping/Lightmapping_RequestLightsDelegate.md"))]
15 #[::unity::class(namespace = "UnityEngine.Experimental.GlobalIllumination", name = "Lightmapping.RequestLightsDelegate")]
16 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
17 pub struct Lightmapping_RequestLightsDelegate {}
18
19 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/experimental/global_illumination/lightmapping/Lightmapping.md"))]
20 #[::unity::class(namespace = "UnityEngine.Experimental.GlobalIllumination", name = "Lightmapping")]
21 #[parent(crate::system::object::Object)]
22 pub struct Lightmapping {
23 #[static_field]
24 #[rename(name = "s_DefaultDelegate")]
25 pub s_default_delegate: crate::unity_engine::experimental::global_illumination::lightmapping::Lightmapping_RequestLightsDelegate,
26 #[static_field]
27 #[rename(name = "s_RequestLightsDelegate")]
28 pub s_request_lights_delegate: crate::unity_engine::experimental::global_illumination::lightmapping::Lightmapping_RequestLightsDelegate,
29 }
30}
31
32#[cfg(feature = "unity_engine-experimental-global_illumination-lightmapping-types")]
33pub use __types::*;
34
35#[cfg(feature = "unity_engine-experimental-global_illumination-lightmapping")]
36pub trait ILightmapping_RequestLightsDelegateMethods: ILightmapping_RequestLightsDelegate {
37 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
38 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
39 unsafe {
40 let __receiver =
41 <Lightmapping_RequestLightsDelegate as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
42 ::unity::il2cpp_call!((::unity::module_base()+0x379c670usize)as*mut u8,();
43(Lightmapping_RequestLightsDelegate)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
44 }
45 }
46}
47
48#[cfg(feature = "unity_engine-experimental-global_illumination-lightmapping")]
49impl<__T: ILightmapping_RequestLightsDelegate> ILightmapping_RequestLightsDelegateMethods for __T {}
50
51#[cfg(feature = "unity_engine-experimental-global_illumination-lightmapping")]
52impl Lightmapping_RequestLightsDelegate {
53 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
54 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
55 }
56}
57
58#[cfg(feature = "unity_engine-experimental-global_illumination-lightmapping")]
59impl Lightmapping_RequestLightsDelegate {
60 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
61 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
62 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
63 panic!(
64 "{}
65::{}
66 failed to instantiate",
67 ::core::stringify!(Lightmapping_RequestLightsDelegate),
68 ::core::stringify!(new),
69 )
70 });
71 <Self as ILightmapping_RequestLightsDelegateMethods>::ctor(this, object, method);
72 this
73 }
74}
75
76#[cfg(feature = "unity_engine-experimental-global_illumination-lightmapping")]
77impl Lightmapping {
78 #[doc = "`SetDelegate(crate::unity_engine::experimental::global_illumination::lightmapping::Lightmapping_RequestLightsDelegate)` overload"]
79 pub fn set_delegate(
80 del: impl ::core::convert::Into<crate::unity_engine::experimental::global_illumination::lightmapping::Lightmapping_RequestLightsDelegate>,
81 ) -> () {
82 unsafe {
83 ::unity::il2cpp_call!((::unity::module_base()+0x2c57cb0usize)as*mut u8,();
84(crate::unity_engine::experimental::global_illumination::lightmapping::Lightmapping_RequestLightsDelegate)::core::convert::Into::into(del))
85 }
86 }
87
88 #[doc = "`GetDelegate()` overload"]
89 pub fn get_delegate() -> crate::unity_engine::experimental::global_illumination::lightmapping::Lightmapping_RequestLightsDelegate {
90 unsafe {
91 ::unity::il2cpp_call!((::unity::module_base()+0x2c57d60usize)as*mut u8,crate::unity_engine::experimental::global_illumination::lightmapping::Lightmapping_RequestLightsDelegate;
92 )
93 }
94 }
95
96 #[doc = "`ResetDelegate()` overload"]
97 pub fn reset_delegate() -> () {
98 unsafe {
99 ::unity::il2cpp_call!((::unity::module_base()+0x2c57dd0usize)as*mut u8,();
100 )
101 }
102 }
103
104 #[doc = "`RequestLights(::unity::Array<crate::unity_engine::light::Light>, ::unity::IntPtr, i32)` overload"]
105 pub fn request_lights(
106 lights: impl ::core::convert::Into<::unity::Array<crate::unity_engine::light::Light>>,
107 out_lights_ptr: impl ::core::convert::Into<::unity::IntPtr>,
108 out_lights_count: impl ::core::convert::Into<i32>,
109 ) -> () {
110 unsafe {
111 ::unity::il2cpp_call!((::unity::module_base()+0x2c57e40usize)as*mut u8,();
112(::unity::Array<crate::unity_engine::light::Light>)::core::convert::Into::into(lights),(::unity::IntPtr)::core::convert::Into::into(out_lights_ptr),(i32)::core::convert::Into::into(out_lights_count))
113 }
114 }
115
116 #[doc = "`.cctor()` overload"]
117 pub fn cctor() -> () {
118 unsafe {
119 ::unity::il2cpp_call!((::unity::module_base()+0x2c57f10usize)as*mut u8,();
120 )
121 }
122 }
123}
124
125#[cfg(feature = "unity_engine-experimental-global_illumination-lightmapping")]
126impl Lightmapping {
127 pub fn set_delegate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
129 }
130
131 pub fn get_delegate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
133 }
134
135 pub fn reset_delegate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
137 }
138
139 pub fn request_lights_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
141 }
142
143 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
145 }
146}
147
148#[cfg(feature = "unity_engine-experimental-global_illumination-lightmapping")]
149#[doc(hidden)]
150pub mod prelude {
151 pub use super::{
152 ILightmapping, ILightmapping_RequestLightsDelegate, ILightmapping_RequestLightsDelegateMethods, Lightmapping,
153 Lightmapping_RequestLightsDelegate,
154 };
155 #[cfg(feature = "system-delegate")]
156 pub use crate::system::delegate::IDelegateMethods;
157 #[cfg(feature = "system-multicastdelegate")]
158 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
159 #[cfg(feature = "system-object")]
160 pub use crate::system::object::IObjectMethods;
161 pub use crate::system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject};
162}