Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-experimental-rendering-universal-ilight2dcullresult_interface-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8
9    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/experimental/rendering/universal/ilight2dcullresult_interface/ILight2DCullResult_Interface.md"))]
10    #[::unity::class(namespace = "UnityEngine.Experimental.Rendering.Universal", name = "ILight2DCullResult")]
11    pub struct ILight2DCullResult_Interface {}
12}
13
14#[cfg(feature = "unity_engine-experimental-rendering-universal-ilight2dcullresult_interface-types")]
15pub use __types::*;
16
17#[cfg(feature = "unity_engine-experimental-rendering-universal-ilight2dcullresult_interface")]
18pub trait IILight2DCullResult_InterfaceMethods: IILight2DCullResult_Interface {
19    #[doc = "`get_visibleLights()` overload"]
20    fn get_visible_lights(
21        self,
22    ) -> crate::system::collections::generic::list_1::List_1<crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2> {
23        unsafe {
24            let __receiver =
25                <ILight2DCullResult_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
26            {
27                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
28                let __vi = *__vt.get(0usize).unwrap_or_else(|| {
29                    panic!(
30                        "unity: virtual slot {}
31 out of range (vtable len {}
32) on the runtime class behind {}
33 (method `{}
34`)",
35                        0usize,
36                        __vt.len(),
37                        <ILight2DCullResult_Interface as ::unity::ClassIdentity>::NAME,
38                        "get_visibleLights",
39                    )
40                });
41                let __inner: extern "C" fn(
42                    ILight2DCullResult_Interface,
43                    ::unity::OptionalMethod,
44                ) -> crate::system::collections::generic::list_1::List_1<
45                    crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2,
46                > = ::core::mem::transmute(__vi.method_ptr);
47                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
48                __inner(__receiver, __mi)
49            }
50        }
51    }
52    #[doc = "`GetLightStatsByLayer(i32)` overload"]
53    fn get_light_stats_by_layer(
54        self,
55        layer: impl ::core::convert::Into<i32>,
56    ) -> crate::unity_engine::experimental::rendering::universal::lightstats::LightStats {
57        unsafe {
58            let __receiver =
59                <ILight2DCullResult_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
60            {
61                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
62                let __vi = *__vt.get(1usize).unwrap_or_else(|| {
63                    panic!(
64                        "unity: virtual slot {}
65 out of range (vtable len {}
66) on the runtime class behind {}
67 (method `{}
68`)",
69                        1usize,
70                        __vt.len(),
71                        <ILight2DCullResult_Interface as ::unity::ClassIdentity>::NAME,
72                        "GetLightStatsByLayer",
73                    )
74                });
75                let __inner: extern "C" fn(
76                    ILight2DCullResult_Interface,
77                    i32,
78                    ::unity::OptionalMethod,
79                ) -> crate::unity_engine::experimental::rendering::universal::lightstats::LightStats = ::core::mem::transmute(__vi.method_ptr);
80                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
81                __inner(__receiver, ::core::convert::Into::into(layer), __mi)
82            }
83        }
84    }
85    #[doc = "`IsSceneLit()` overload"]
86    fn is_scene_lit(self) -> bool {
87        unsafe {
88            let __receiver =
89                <ILight2DCullResult_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90            {
91                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
92                let __vi = *__vt.get(2usize).unwrap_or_else(|| {
93                    panic!(
94                        "unity: virtual slot {}
95 out of range (vtable len {}
96) on the runtime class behind {}
97 (method `{}
98`)",
99                        2usize,
100                        __vt.len(),
101                        <ILight2DCullResult_Interface as ::unity::ClassIdentity>::NAME,
102                        "IsSceneLit",
103                    )
104                });
105                let __inner: extern "C" fn(ILight2DCullResult_Interface, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
106                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
107                __inner(__receiver, __mi)
108            }
109        }
110    }
111}
112
113#[cfg(feature = "unity_engine-experimental-rendering-universal-ilight2dcullresult_interface")]
114impl<__T: IILight2DCullResult_Interface> IILight2DCullResult_InterfaceMethods for __T {}
115
116#[cfg(feature = "unity_engine-experimental-rendering-universal-ilight2dcullresult_interface")]
117impl ILight2DCullResult_Interface {
118    pub fn get_visible_lights_method_info() -> &'static ::unity::il2cpp::MethodInfo {
119        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
120    }
121
122    pub fn get_light_stats_by_layer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
124    }
125
126    pub fn is_scene_lit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
128    }
129}
130
131#[cfg(feature = "unity_engine-experimental-rendering-universal-ilight2dcullresult_interface")]
132impl ILight2DCullResult_Interface {
133    #[doc = "Direct (non-virtual) call to `ILight2DCullResult_Interface`'s own `get_visibleLights`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
134    pub unsafe fn get_visible_lights(
135        this: impl ::core::convert::Into<::unity::IlInstance>,
136    ) -> crate::system::collections::generic::list_1::List_1<crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2> {
137        let __mi = Self::get_visible_lights_method_info();
138        let __inner: extern "C" fn(
139            ::unity::IlInstance,
140            ::unity::OptionalMethod,
141        ) -> crate::system::collections::generic::list_1::List_1<
142            crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2,
143        > = ::core::mem::transmute(__mi.method_ptr);
144        __inner(this.into(), ::core::option::Option::None)
145    }
146
147    #[doc = "Direct (non-virtual) call to `ILight2DCullResult_Interface`'s own `GetLightStatsByLayer`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
148    pub unsafe fn get_light_stats_by_layer(
149        this: impl ::core::convert::Into<::unity::IlInstance>,
150        layer: i32,
151    ) -> crate::unity_engine::experimental::rendering::universal::lightstats::LightStats {
152        let __mi = Self::get_light_stats_by_layer_method_info();
153        let __inner: extern "C" fn(
154            ::unity::IlInstance,
155            i32,
156            ::unity::OptionalMethod,
157        ) -> crate::unity_engine::experimental::rendering::universal::lightstats::LightStats = ::core::mem::transmute(__mi.method_ptr);
158        __inner(this.into(), layer, ::core::option::Option::None)
159    }
160
161    #[doc = "Direct (non-virtual) call to `ILight2DCullResult_Interface`'s own `IsSceneLit`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
162    pub unsafe fn is_scene_lit(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
163        let __mi = Self::is_scene_lit_method_info();
164        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
165        __inner(this.into(), ::core::option::Option::None)
166    }
167}
168
169#[cfg(feature = "unity_engine-experimental-rendering-universal-ilight2dcullresult_interface")]
170#[doc(hidden)]
171pub mod prelude {
172    pub use super::{IILight2DCullResult_Interface, IILight2DCullResult_InterfaceMethods, ILight2DCullResult_Interface};
173}