Skip to main content

engage/generated/root/
lightprobegenerator.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-lightprobegenerator-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::{
10            object::{IObject, Object},
11            r#enum::{Enum, IEnum},
12            valuetype::{IValueType, ValueType},
13        },
14        unity_engine::{
15            behaviour::{Behaviour, IBehaviour},
16            component::{Component, IComponent},
17            monobehaviour::{IMonoBehaviour, MonoBehaviour},
18            object_2::{IObject_2, Object_2},
19        },
20    };
21
22    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/lightprobegenerator/LightProbeGenerator_LightProbePlacementType.md"))]
23    #[repr(C)]
24    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
25    pub struct LightProbeGenerator_LightProbePlacementType {
26        pub value: i32,
27    }
28    impl ::unity::ClassIdentity for LightProbeGenerator_LightProbePlacementType {
29        const NAME: &'static str = "LightProbeGenerator.LightProbePlacementType";
30        const NAMESPACE: &'static str = "";
31
32        fn class() -> ::unity::Class {
33            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
34            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
35        }
36    }
37    impl ::unity::IlType for LightProbeGenerator_LightProbePlacementType {
38        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
39            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
40        }
41    }
42    impl LightProbeGenerator_LightProbePlacementType {
43        pub fn grid() -> Self {
44            Self { value: 0 }
45        }
46
47        pub fn random() -> Self {
48            Self { value: 1 }
49        }
50    }
51
52    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/lightprobegenerator/LightProbeGenerator_LightProbeArea.md"))]
53    #[::unity::class(namespace = "", name = "LightProbeGenerator.LightProbeArea")]
54    #[parent(crate::system::object::Object)]
55    pub struct LightProbeGenerator_LightProbeArea {
56        #[offset(16)]
57        #[rename(name = "ProbeVolume")]
58        pub probe_volume: crate::unity_engine::bounds::Bounds,
59        #[offset(40)]
60        #[rename(name = "Subdivisions")]
61        pub subdivisions: crate::unity_engine::vector3::Vector3,
62        #[offset(52)]
63        #[rename(name = "RandomCount")]
64        pub random_count: i32,
65    }
66
67    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/lightprobegenerator/LightProbeGenerator.md"))]
68    #[::unity::class(namespace = "", name = "LightProbeGenerator")]
69    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
70    pub struct LightProbeGenerator {
71        #[offset(24)]
72        #[rename(name = "LightProbeVolumes")]
73        pub light_probe_volumes: ::unity::Array<crate::root::lightprobegenerator::LightProbeGenerator_LightProbeArea>,
74        #[offset(32)]
75        #[rename(name = "PlacementAlgorithm")]
76        pub placement_algorithm: crate::root::lightprobegenerator::LightProbeGenerator_LightProbePlacementType,
77    }
78}
79
80#[cfg(feature = "root-lightprobegenerator-types")]
81pub use __types::*;
82
83#[cfg(feature = "root-lightprobegenerator")]
84pub trait ILightProbeGenerator_LightProbeAreaMethods: ILightProbeGenerator_LightProbeArea {
85    #[doc = "`.ctor()` overload"]
86    fn ctor(self) -> () {
87        unsafe {
88            let __receiver =
89                <LightProbeGenerator_LightProbeArea as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90            ::unity::il2cpp_call!((::unity::module_base()+0x1fd7b20usize)as*mut u8,();
91(LightProbeGenerator_LightProbeArea)__receiver)
92        }
93    }
94}
95
96#[cfg(feature = "root-lightprobegenerator")]
97impl<__T: ILightProbeGenerator_LightProbeArea> ILightProbeGenerator_LightProbeAreaMethods for __T {}
98
99#[cfg(feature = "root-lightprobegenerator")]
100impl LightProbeGenerator_LightProbeArea {
101    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
103    }
104}
105
106#[cfg(feature = "root-lightprobegenerator")]
107impl LightProbeGenerator_LightProbeArea {
108    #[doc = "`.ctor()` — no args"]
109    pub fn new() -> Self {
110        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
111            panic!(
112                "{}
113::{}
114 failed to instantiate",
115                ::core::stringify!(LightProbeGenerator_LightProbeArea),
116                ::core::stringify!(new),
117            )
118        });
119        <Self as ILightProbeGenerator_LightProbeAreaMethods>::ctor(this);
120        this
121    }
122}
123
124#[cfg(feature = "root-lightprobegenerator")]
125pub trait ILightProbeGeneratorMethods: ILightProbeGenerator {
126    #[doc = "`GenProbes()` overload"]
127    fn gen_probes(self) -> () {
128        unsafe {
129            let __receiver = <LightProbeGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
130            ::unity::il2cpp_call!((::unity::module_base()+0x1beb5f0usize)as*mut u8,();
131(LightProbeGenerator)__receiver)
132        }
133    }
134    #[doc = "`GetProbesForVolume_Grid(crate::unity_engine::bounds::Bounds, crate::unity_engine::vector3::Vector3)` overload"]
135    fn get_probes_for_volume_grid(
136        self,
137        probe_volume: impl ::core::convert::Into<crate::unity_engine::bounds::Bounds>,
138        subdivisions: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
139    ) -> crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector3::Vector3> {
140        unsafe {
141            let __receiver = <LightProbeGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142            ::unity::il2cpp_call!((::unity::module_base()+0x1beb600usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector3::Vector3> ;
143(LightProbeGenerator)__receiver,(crate::unity_engine::bounds::Bounds)::core::convert::Into::into(probe_volume),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(subdivisions))
144        }
145    }
146    #[doc = "`GetProbesForVolume_Random(crate::unity_engine::bounds::Bounds, i32)` overload"]
147    fn get_probes_for_volume_random(
148        self,
149        probe_volume: impl ::core::convert::Into<crate::unity_engine::bounds::Bounds>,
150        count: impl ::core::convert::Into<i32>,
151    ) -> crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector3::Vector3> {
152        unsafe {
153            let __receiver = <LightProbeGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
154            ::unity::il2cpp_call!((::unity::module_base()+0x1beb820usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector3::Vector3> ;
155(LightProbeGenerator)__receiver,(crate::unity_engine::bounds::Bounds)::core::convert::Into::into(probe_volume),(i32)::core::convert::Into::into(count))
156        }
157    }
158    #[doc = "`.ctor()` overload"]
159    fn ctor(self) -> () {
160        unsafe {
161            let __receiver = <LightProbeGenerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162            ::unity::il2cpp_call!((::unity::module_base()+0x1beb9a0usize)as*mut u8,();
163(LightProbeGenerator)__receiver)
164        }
165    }
166}
167
168#[cfg(feature = "root-lightprobegenerator")]
169impl<__T: ILightProbeGenerator> ILightProbeGeneratorMethods for __T {}
170
171#[cfg(feature = "root-lightprobegenerator")]
172impl LightProbeGenerator {
173    pub fn gen_probes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
175    }
176
177    pub fn get_probes_for_volume_grid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
179    }
180
181    pub fn get_probes_for_volume_random_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
183    }
184
185    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
186        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
187    }
188}
189
190#[cfg(feature = "root-lightprobegenerator")]
191impl LightProbeGenerator {
192    #[doc = "`.ctor()` — no args"]
193    pub fn new() -> Self {
194        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
195            panic!(
196                "{}
197::{}
198 failed to instantiate",
199                ::core::stringify!(LightProbeGenerator),
200                ::core::stringify!(new),
201            )
202        });
203        <Self as ILightProbeGeneratorMethods>::ctor(this);
204        this
205    }
206}
207
208#[cfg(feature = "root-lightprobegenerator")]
209#[doc(hidden)]
210pub mod prelude {
211    pub use super::{
212        ILightProbeGenerator, ILightProbeGeneratorMethods, ILightProbeGenerator_LightProbeArea, ILightProbeGenerator_LightProbeAreaMethods,
213        LightProbeGenerator, LightProbeGenerator_LightProbeArea, LightProbeGenerator_LightProbePlacementType,
214    };
215    #[cfg(feature = "system-object")]
216    pub use crate::system::object::IObjectMethods;
217    #[cfg(feature = "system-enum")]
218    pub use crate::system::r#enum::IEnumMethods;
219    #[cfg(feature = "system-valuetype")]
220    pub use crate::system::valuetype::IValueTypeMethods;
221    #[cfg(feature = "unity_engine-behaviour")]
222    pub use crate::unity_engine::behaviour::IBehaviourMethods;
223    #[cfg(feature = "unity_engine-component")]
224    pub use crate::unity_engine::component::IComponentMethods;
225    #[cfg(feature = "unity_engine-monobehaviour")]
226    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
227    #[cfg(feature = "unity_engine-object_2")]
228    pub use crate::unity_engine::object_2::IObject_2Methods;
229    pub use crate::{
230        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
231        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
232    };
233}