Skip to main content

engage/generated/unity_engine/rendering/
boolparameter.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-boolparameter-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::rendering::{
11            volumeparameter::{IVolumeParameter, VolumeParameter},
12            volumeparameter_1::{IVolumeParameter_1, VolumeParameter_1},
13        },
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/boolparameter/BoolParameter.md"))]
17    #[::unity::class(namespace = "UnityEngine.Rendering", name = "BoolParameter")]
18    #[parent(crate::unity_engine::rendering::volumeparameter_1::VolumeParameter_1<bool>)]
19    pub struct BoolParameter {}
20}
21
22#[cfg(feature = "unity_engine-rendering-boolparameter-types")]
23pub use __types::*;
24
25#[cfg(feature = "unity_engine-rendering-boolparameter")]
26pub trait IBoolParameterMethods: IBoolParameter {
27    #[doc = "`.ctor(bool, bool)` overload"]
28    fn ctor(self, value: impl ::core::convert::Into<bool>, override_state: impl ::core::convert::Into<bool>) -> () {
29        unsafe {
30            let __receiver = <BoolParameter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
31            ::unity::il2cpp_call!((::unity::module_base()+0x352d870usize)as*mut u8,();
32(BoolParameter)__receiver,(bool)::core::convert::Into::into(value),(bool)::core::convert::Into::into(override_state))
33        }
34    }
35}
36
37#[cfg(feature = "unity_engine-rendering-boolparameter")]
38impl<__T: IBoolParameter> IBoolParameterMethods for __T {}
39
40#[cfg(feature = "unity_engine-rendering-boolparameter")]
41impl BoolParameter {
42    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
43        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
44    }
45}
46
47#[cfg(feature = "unity_engine-rendering-boolparameter")]
48impl BoolParameter {
49    #[doc = "`.ctor(bool, bool)` — overload selector"]
50    pub fn new(value: bool, override_state: bool) -> Self {
51        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
52            panic!(
53                "{}
54::{}
55 failed to instantiate",
56                ::core::stringify!(BoolParameter),
57                ::core::stringify!(new),
58            )
59        });
60        <Self as IBoolParameterMethods>::ctor(this, value, override_state);
61        this
62    }
63}
64
65#[cfg(feature = "unity_engine-rendering-boolparameter")]
66#[doc(hidden)]
67pub mod prelude {
68    pub use super::{BoolParameter, IBoolParameter, IBoolParameterMethods};
69    #[cfg(feature = "system-object")]
70    pub use crate::system::object::IObjectMethods;
71    #[cfg(feature = "unity_engine-rendering-volumeparameter")]
72    pub use crate::unity_engine::rendering::volumeparameter::IVolumeParameterMethods;
73    #[cfg(feature = "unity_engine-rendering-volumeparameter_1")]
74    pub use crate::unity_engine::rendering::volumeparameter_1::IVolumeParameter_1Methods;
75    pub use crate::{
76        system::object::IObject,
77        unity_engine::rendering::{volumeparameter::IVolumeParameter, volumeparameter_1::IVolumeParameter_1},
78    };
79}