Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowcastergroup2dmanager-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/shadowcastergroup2dmanager/ShadowCasterGroup2DManager.md"))]
11    #[::unity::class(namespace = "UnityEngine.Experimental.Rendering.Universal", name = "ShadowCasterGroup2DManager")]
12    #[parent(crate::system::object::Object)]
13    pub struct ShadowCasterGroup2DManager {
14        #[static_field]
15        #[rename(name = "s_ShadowCasterGroups")]
16        pub s_shadow_caster_groups: crate::system::collections::generic::list_1::List_1<
17            crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D,
18        >,
19    }
20}
21
22#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowcastergroup2dmanager-types")]
23pub use __types::*;
24
25#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowcastergroup2dmanager")]
26impl ShadowCasterGroup2DManager {
27    #[doc = "`get_shadowCasterGroups()` overload"]
28    pub fn get_shadow_caster_groups() -> crate::system::collections::generic::list_1::List_1<
29        crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D,
30    > {
31        unsafe {
32            ::unity::il2cpp_call!((::unity::module_base()+0x2eda150usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D> ;
33            )
34        }
35    }
36
37    #[doc = "`AddShadowCasterGroupToList(crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D, crate::system::collections::generic::list_1::List_1<crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D>)` overload"]
38    pub fn add_shadow_caster_group_to_list(
39        shadow_caster: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D>,
40        list: impl ::core::convert::Into<
41            crate::system::collections::generic::list_1::List_1<
42                crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D,
43            >,
44        >,
45    ) -> () {
46        unsafe {
47            ::unity::il2cpp_call!((::unity::module_base()+0x2eda1c0usize)as*mut u8,();
48(crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D)::core::convert::Into::into(shadow_caster),(crate::system::collections::generic::list_1::List_1<crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D>)::core::convert::Into::into(list))
49        }
50    }
51
52    #[doc = "`RemoveShadowCasterGroupFromList(crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D, crate::system::collections::generic::list_1::List_1<crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D>)` overload"]
53    pub fn remove_shadow_caster_group_from_list(
54        shadow_caster: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D>,
55        list: impl ::core::convert::Into<
56            crate::system::collections::generic::list_1::List_1<
57                crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D,
58            >,
59        >,
60    ) -> () {
61        unsafe {
62            ::unity::il2cpp_call!((::unity::module_base()+0x2eda2a0usize)as*mut u8,();
63(crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D)::core::convert::Into::into(shadow_caster),(crate::system::collections::generic::list_1::List_1<crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D>)::core::convert::Into::into(list))
64        }
65    }
66
67    #[doc = "`FindTopMostCompositeShadowCaster(crate::unity_engine::experimental::rendering::universal::shadowcaster2d::ShadowCaster2D)` overload"]
68    pub fn find_top_most_composite_shadow_caster(
69        shadow_caster: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::shadowcaster2d::ShadowCaster2D>,
70    ) -> crate::unity_engine::experimental::rendering::universal::compositeshadowcaster2d::CompositeShadowCaster2D {
71        unsafe {
72            ::unity::il2cpp_call!((::unity::module_base()+0x2eda300usize)as*mut u8,crate::unity_engine::experimental::rendering::universal::compositeshadowcaster2d::CompositeShadowCaster2D;
73(crate::unity_engine::experimental::rendering::universal::shadowcaster2d::ShadowCaster2D)::core::convert::Into::into(shadow_caster))
74        }
75    }
76
77    #[doc = "`AddToShadowCasterGroup(crate::unity_engine::experimental::rendering::universal::shadowcaster2d::ShadowCaster2D, *mutcrate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D)` overload"]
78    pub fn add_to_shadow_caster_group(
79        shadow_caster: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::shadowcaster2d::ShadowCaster2D>,
80    ) -> (
81        bool,
82        crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D,
83    ) {
84        unsafe {
85            let mut __out_0 = ::core::mem::MaybeUninit::<
86                crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D,
87            >::uninit();
88            let __ret = {
89                ::unity::il2cpp_call!((::unity::module_base()+0x2ed9b20usize)as*mut u8,bool;
90(crate::unity_engine::experimental::rendering::universal::shadowcaster2d::ShadowCaster2D)::core::convert::Into::into(shadow_caster),(*mut crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D)__out_0.as_mut_ptr())
91            };
92            (__ret, __out_0.assume_init())
93        }
94    }
95
96    #[doc = "`RemoveFromShadowCasterGroup(crate::unity_engine::experimental::rendering::universal::shadowcaster2d::ShadowCaster2D, crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D)` overload"]
97    pub fn remove_from_shadow_caster_group(
98        shadow_caster: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::shadowcaster2d::ShadowCaster2D>,
99        shadow_caster_group: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D>,
100    ) -> () {
101        unsafe {
102            ::unity::il2cpp_call!((::unity::module_base()+0x2ed96f0usize)as*mut u8,();
103(crate::unity_engine::experimental::rendering::universal::shadowcaster2d::ShadowCaster2D)::core::convert::Into::into(shadow_caster),(crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D)::core::convert::Into::into(shadow_caster_group))
104        }
105    }
106
107    #[doc = "`AddGroup(crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D)` overload"]
108    pub fn add_group(
109        group: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D>,
110    ) -> () {
111        unsafe {
112            ::unity::il2cpp_call!((::unity::module_base()+0x2ed9dc0usize)as*mut u8,();
113(crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D)::core::convert::Into::into(group))
114        }
115    }
116
117    #[doc = "`RemoveGroup(crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D)` overload"]
118    pub fn remove_group(
119        group: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D>,
120    ) -> () {
121        unsafe {
122            ::unity::il2cpp_call!((::unity::module_base()+0x2ed9c90usize)as*mut u8,();
123(crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D)::core::convert::Into::into(group))
124        }
125    }
126
127    #[doc = "`.cctor()` overload"]
128    pub fn cctor() -> () {
129        unsafe {
130            ::unity::il2cpp_call!((::unity::module_base()+0x2eda420usize)as*mut u8,();
131            )
132        }
133    }
134}
135
136#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowcastergroup2dmanager")]
137pub trait IShadowCasterGroup2DManagerMethods: IShadowCasterGroup2DManager {
138    #[doc = "`.ctor()` overload"]
139    fn ctor(self) -> () {
140        unsafe {
141            let __receiver =
142                <ShadowCasterGroup2DManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143            ::unity::il2cpp_call!((::unity::module_base()+0x2eda410usize)as*mut u8,();
144(ShadowCasterGroup2DManager)__receiver)
145        }
146    }
147}
148
149#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowcastergroup2dmanager")]
150impl<__T: IShadowCasterGroup2DManager> IShadowCasterGroup2DManagerMethods for __T {}
151
152#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowcastergroup2dmanager")]
153impl ShadowCasterGroup2DManager {
154    pub fn get_shadow_caster_groups_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
156    }
157
158    pub fn add_shadow_caster_group_to_list_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
160    }
161
162    pub fn remove_shadow_caster_group_from_list_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
164    }
165
166    pub fn find_top_most_composite_shadow_caster_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
168    }
169
170    pub fn add_to_shadow_caster_group_method_info() -> &'static ::unity::il2cpp::MethodInfo {
171        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
172    }
173
174    pub fn remove_from_shadow_caster_group_method_info() -> &'static ::unity::il2cpp::MethodInfo {
175        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
176    }
177
178    pub fn add_group_method_info() -> &'static ::unity::il2cpp::MethodInfo {
179        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
180    }
181
182    pub fn remove_group_method_info() -> &'static ::unity::il2cpp::MethodInfo {
183        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
184    }
185
186    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
187        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
188    }
189
190    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
191        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
192    }
193}
194
195#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowcastergroup2dmanager")]
196impl ShadowCasterGroup2DManager {
197    #[doc = "`.ctor()` — no args"]
198    pub fn new() -> Self {
199        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
200            panic!(
201                "{}
202::{}
203 failed to instantiate",
204                ::core::stringify!(ShadowCasterGroup2DManager),
205                ::core::stringify!(new),
206            )
207        });
208        <Self as IShadowCasterGroup2DManagerMethods>::ctor(this);
209        this
210    }
211}
212
213#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowcastergroup2dmanager")]
214#[doc(hidden)]
215pub mod prelude {
216    pub use super::{IShadowCasterGroup2DManager, IShadowCasterGroup2DManagerMethods, ShadowCasterGroup2DManager};
217    pub use crate::system::object::IObject;
218    #[cfg(feature = "system-object")]
219    pub use crate::system::object::IObjectMethods;
220}