Skip to main content

engage/generated/unity_engine/
lod.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-lod-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        valuetype::{IValueType, ValueType},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/lod/LOD.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct LOD {
17        pub screen_relative_transition_height: f32,
18        pub fade_transition_width: f32,
19        pub renderers: ::unity::Array<crate::unity_engine::renderer::Renderer>,
20    }
21    impl ::unity::ClassIdentity for LOD {
22        const NAME: &'static str = "LOD";
23        const NAMESPACE: &'static str = "UnityEngine";
24
25        fn class() -> ::unity::Class {
26            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
27            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
28        }
29    }
30    impl ::unity::IlType for LOD {
31        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
32            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
33        }
34    }
35}
36
37#[cfg(feature = "unity_engine-lod-types")]
38pub use __types::*;
39
40#[cfg(feature = "unity_engine-lod")]
41impl LOD {
42    #[doc = "`.ctor(f32, ::unity::Array<crate::unity_engine::renderer::Renderer>)` overload"]
43    pub fn ctor(
44        &mut self,
45        screen_relative_transition_height: impl ::core::convert::Into<f32>,
46        renderers: impl ::core::convert::Into<::unity::Array<crate::unity_engine::renderer::Renderer>>,
47    ) -> () {
48        unsafe {
49            ::unity::il2cpp_call!((::unity::module_base()+0x2c52850usize)as*mut u8,();
50(*mut LOD)self as*mut LOD,(f32)::core::convert::Into::into(screen_relative_transition_height),(::unity::Array<crate::unity_engine::renderer::Renderer>)::core::convert::Into::into(renderers))
51        }
52    }
53}
54
55#[cfg(feature = "unity_engine-lod")]
56impl LOD {
57    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
58        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
59    }
60}
61
62#[cfg(feature = "unity_engine-lod")]
63#[doc(hidden)]
64pub mod prelude {
65    pub use super::LOD;
66    #[cfg(feature = "system-object")]
67    pub use crate::system::object::IObjectMethods;
68    #[cfg(feature = "system-valuetype")]
69    pub use crate::system::valuetype::IValueTypeMethods;
70    pub use crate::system::{object::IObject, valuetype::IValueType};
71}