Skip to main content

engage/generated/unity_engine/experimental/rendering/universal/
light2dmanager.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-experimental-rendering-universal-light2dmanager-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/experimental/rendering/universal/light2dmanager/Light2DManager.md"))]
11    #[::unity::class(namespace = "UnityEngine.Experimental.Rendering.Universal", name = "Light2DManager")]
12    #[parent(crate::system::object::Object)]
13    pub struct Light2DManager {
14        #[static_field]
15        #[rename(name = "s_SortingLayers")]
16        pub s_sorting_layers: ::unity::Array<crate::unity_engine::sortinglayer::SortingLayer>,
17    }
18}
19
20#[cfg(feature = "unity_engine-experimental-rendering-universal-light2dmanager-types")]
21pub use __types::*;
22
23#[cfg(feature = "unity_engine-experimental-rendering-universal-light2dmanager")]
24impl Light2DManager {
25    #[doc = "`get_lights()` overload"]
26    pub fn get_lights(
27    ) -> crate::system::collections::generic::list_1::List_1<crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2> {
28        unsafe {
29            ::unity::il2cpp_call!((::unity::module_base()+0x2ef56c0usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2> ;
30            )
31        }
32    }
33
34    #[doc = "`RegisterLight(crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2)` overload"]
35    pub fn register_light(light: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2>) -> () {
36        unsafe {
37            ::unity::il2cpp_call!((::unity::module_base()+0x2ef3ef0usize)as*mut u8,();
38(crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2)::core::convert::Into::into(light))
39        }
40    }
41
42    #[doc = "`DeregisterLight(crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2)` overload"]
43    pub fn deregister_light(light: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2>) -> () {
44        unsafe {
45            ::unity::il2cpp_call!((::unity::module_base()+0x2ef4050usize)as*mut u8,();
46(crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2)::core::convert::Into::into(light))
47        }
48    }
49
50    #[doc = "`ErrorIfDuplicateGlobalLight(crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2)` overload"]
51    pub fn error_if_duplicate_global_light(
52        light: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2>,
53    ) -> () {
54        unsafe {
55            ::unity::il2cpp_call!((::unity::module_base()+0x2ef1e10usize)as*mut u8,();
56(crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2)::core::convert::Into::into(light))
57        }
58    }
59
60    #[doc = "`GetGlobalColor(i32, i32, *mutcrate::unity_engine::color::Color)` overload"]
61    pub fn get_global_color(
62        sorting_layer_index: impl ::core::convert::Into<i32>,
63        blend_style_index: impl ::core::convert::Into<i32>,
64    ) -> (bool, crate::unity_engine::color::Color) {
65        unsafe {
66            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::color::Color>::uninit();
67            let __ret = {
68                ::unity::il2cpp_call!((::unity::module_base()+0x2ef59e0usize)as*mut u8,bool;
69(i32)::core::convert::Into::into(sorting_layer_index),(i32)::core::convert::Into::into(blend_style_index),(*mut crate::unity_engine::color::Color)__out_0.as_mut_ptr())
70            };
71            (__ret, __out_0.assume_init())
72        }
73    }
74
75    #[doc = "`ContainsDuplicateGlobalLight(i32, i32)` overload"]
76    pub fn contains_duplicate_global_light(
77        sorting_layer_index: impl ::core::convert::Into<i32>,
78        blend_style_index: impl ::core::convert::Into<i32>,
79    ) -> bool {
80        unsafe {
81            ::unity::il2cpp_call!((::unity::module_base()+0x2ef5730usize)as*mut u8,bool;
82(i32)::core::convert::Into::into(sorting_layer_index),(i32)::core::convert::Into::into(blend_style_index))
83        }
84    }
85
86    #[doc = "`GetCachedSortingLayer()` overload"]
87    pub fn get_cached_sorting_layer() -> ::unity::Array<crate::unity_engine::sortinglayer::SortingLayer> {
88        unsafe {
89            ::unity::il2cpp_call!((::unity::module_base()+0x2ef2250usize)as*mut u8, ::unity::Array<crate::unity_engine::sortinglayer::SortingLayer> ;
90            )
91        }
92    }
93
94    #[doc = "`.cctor()` overload"]
95    pub fn cctor() -> () {
96        unsafe {
97            ::unity::il2cpp_call!((::unity::module_base()+0x2ef5c50usize)as*mut u8,();
98            )
99        }
100    }
101}
102
103#[cfg(feature = "unity_engine-experimental-rendering-universal-light2dmanager")]
104impl Light2DManager {
105    pub fn get_lights_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
107    }
108
109    pub fn register_light_method_info() -> &'static ::unity::il2cpp::MethodInfo {
110        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
111    }
112
113    pub fn deregister_light_method_info() -> &'static ::unity::il2cpp::MethodInfo {
114        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
115    }
116
117    pub fn error_if_duplicate_global_light_method_info() -> &'static ::unity::il2cpp::MethodInfo {
118        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
119    }
120
121    pub fn get_global_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
122        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
123    }
124
125    pub fn contains_duplicate_global_light_method_info() -> &'static ::unity::il2cpp::MethodInfo {
126        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
127    }
128
129    pub fn get_cached_sorting_layer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
130        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
131    }
132
133    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
134        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
135    }
136}
137
138#[cfg(feature = "unity_engine-experimental-rendering-universal-light2dmanager")]
139#[doc(hidden)]
140pub mod prelude {
141    pub use super::{ILight2DManager, Light2DManager};
142    pub use crate::system::object::IObject;
143    #[cfg(feature = "system-object")]
144    pub use crate::system::object::IObjectMethods;
145}