Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowcastergroup2d-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::{
11            behaviour::{Behaviour, IBehaviour},
12            component::{Component, IComponent},
13            monobehaviour::{IMonoBehaviour, MonoBehaviour},
14            object_2::{IObject_2, Object_2},
15        },
16    };
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/experimental/rendering/universal/shadowcastergroup2d/ShadowCasterGroup2D.md"))]
19    #[::unity::class(namespace = "UnityEngine.Experimental.Rendering.Universal", name = "ShadowCasterGroup2D")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct ShadowCasterGroup2D {
22        #[offset(24)]
23        #[rename(name = "m_ShadowGroup")]
24        pub m_shadow_group: i32,
25        #[offset(32)]
26        #[rename(name = "m_ShadowCasters")]
27        pub m_shadow_casters: crate::system::collections::generic::list_1::List_1<
28            crate::unity_engine::experimental::rendering::universal::shadowcaster2d::ShadowCaster2D,
29        >,
30    }
31}
32
33#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowcastergroup2d-types")]
34pub use __types::*;
35
36#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowcastergroup2d")]
37pub trait IShadowCasterGroup2DMethods: IShadowCasterGroup2D {
38    #[doc = "`GetShadowCasters()` overload"]
39    fn get_shadow_casters(
40        self,
41    ) -> crate::system::collections::generic::list_1::List_1<crate::unity_engine::experimental::rendering::universal::shadowcaster2d::ShadowCaster2D>
42    {
43        unsafe {
44            let __receiver = <ShadowCasterGroup2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
45            ::unity::il2cpp_call!((::unity::module_base()+0x2eda010usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::unity_engine::experimental::rendering::universal::shadowcaster2d::ShadowCaster2D> ;
46(ShadowCasterGroup2D)__receiver)
47        }
48    }
49    #[doc = "`GetShadowGroup()` overload"]
50    fn get_shadow_group(self) -> i32 {
51        unsafe {
52            let __receiver = <ShadowCasterGroup2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
53            ::unity::il2cpp_call!((::unity::module_base()+0x2eda020usize)as*mut u8,i32;
54(ShadowCasterGroup2D)__receiver)
55        }
56    }
57    #[doc = "`RegisterShadowCaster2D(crate::unity_engine::experimental::rendering::universal::shadowcaster2d::ShadowCaster2D)` overload"]
58    fn register_shadow_caster2_d(
59        self,
60        shadow_caster2_d: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::shadowcaster2d::ShadowCaster2D>,
61    ) -> () {
62        unsafe {
63            let __receiver = <ShadowCasterGroup2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64            ::unity::il2cpp_call!((::unity::module_base()+0x2eda030usize)as*mut u8,();
65(ShadowCasterGroup2D)__receiver,(crate::unity_engine::experimental::rendering::universal::shadowcaster2d::ShadowCaster2D)::core::convert::Into::into(shadow_caster2_d))
66        }
67    }
68    #[doc = "`UnregisterShadowCaster2D(crate::unity_engine::experimental::rendering::universal::shadowcaster2d::ShadowCaster2D)` overload"]
69    fn unregister_shadow_caster2_d(
70        self,
71        shadow_caster2_d: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::shadowcaster2d::ShadowCaster2D>,
72    ) -> () {
73        unsafe {
74            let __receiver = <ShadowCasterGroup2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            ::unity::il2cpp_call!((::unity::module_base()+0x2eda0e0usize)as*mut u8,();
76(ShadowCasterGroup2D)__receiver,(crate::unity_engine::experimental::rendering::universal::shadowcaster2d::ShadowCaster2D)::core::convert::Into::into(shadow_caster2_d))
77        }
78    }
79    #[doc = "`.ctor()` overload"]
80    fn ctor(self) -> () {
81        unsafe {
82            let __receiver = <ShadowCasterGroup2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83            ::unity::il2cpp_call!((::unity::module_base()+0x2eda000usize)as*mut u8,();
84(ShadowCasterGroup2D)__receiver)
85        }
86    }
87}
88
89#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowcastergroup2d")]
90impl<__T: IShadowCasterGroup2D> IShadowCasterGroup2DMethods for __T {}
91
92#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowcastergroup2d")]
93impl ShadowCasterGroup2D {
94    pub fn get_shadow_casters_method_info() -> &'static ::unity::il2cpp::MethodInfo {
95        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
96    }
97
98    pub fn get_shadow_group_method_info() -> &'static ::unity::il2cpp::MethodInfo {
99        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
100    }
101
102    pub fn register_shadow_caster2_d_method_info() -> &'static ::unity::il2cpp::MethodInfo {
103        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
104    }
105
106    pub fn unregister_shadow_caster2_d_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
108    }
109
110    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
111        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
112    }
113}
114
115#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowcastergroup2d")]
116impl ShadowCasterGroup2D {
117    #[doc = "`.ctor()` — no args"]
118    pub fn new() -> Self {
119        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
120            panic!(
121                "{}
122::{}
123 failed to instantiate",
124                ::core::stringify!(ShadowCasterGroup2D),
125                ::core::stringify!(new),
126            )
127        });
128        <Self as IShadowCasterGroup2DMethods>::ctor(this);
129        this
130    }
131}
132
133#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowcastergroup2d")]
134#[doc(hidden)]
135pub mod prelude {
136    pub use super::{IShadowCasterGroup2D, IShadowCasterGroup2DMethods, ShadowCasterGroup2D};
137    #[cfg(feature = "system-object")]
138    pub use crate::system::object::IObjectMethods;
139    #[cfg(feature = "unity_engine-behaviour")]
140    pub use crate::unity_engine::behaviour::IBehaviourMethods;
141    #[cfg(feature = "unity_engine-component")]
142    pub use crate::unity_engine::component::IComponentMethods;
143    #[cfg(feature = "unity_engine-monobehaviour")]
144    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
145    #[cfg(feature = "unity_engine-object_2")]
146    pub use crate::unity_engine::object_2::IObject_2Methods;
147    pub use crate::{
148        system::object::IObject,
149        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
150    };
151}