Skip to main content

engage/generated/nn/hid/
npadcontrollercolor.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "nn-hid-npadcontrollercolor-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/nn/hid/npadcontrollercolor/NpadControllerColor.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct NpadControllerColor {}
17    impl ::unity::ClassIdentity for NpadControllerColor {
18        const NAME: &'static str = "NpadControllerColor";
19        const NAMESPACE: &'static str = "nn.hid";
20
21        fn class() -> ::unity::Class {
22            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
23            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
24        }
25    }
26    impl ::unity::IlType for NpadControllerColor {
27        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
28            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
29        }
30    }
31}
32
33#[cfg(feature = "nn-hid-npadcontrollercolor-types")]
34pub use __types::*;
35
36#[cfg(feature = "nn-hid-npadcontrollercolor")]
37impl NpadControllerColor {
38    #[doc = "`ToString()` overload"]
39    pub fn to_string(&mut self) -> ::unity::Il2CppString {
40        unsafe {
41            ::unity::il2cpp_call!((::unity::module_base()+0x1f1e960usize)as*mut u8, ::unity::Il2CppString;
42(*mut NpadControllerColor)self as*mut NpadControllerColor)
43        }
44    }
45}
46
47#[cfg(feature = "nn-hid-npadcontrollercolor")]
48impl NpadControllerColor {
49    pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
50        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
51    }
52}
53
54#[cfg(feature = "nn-hid-npadcontrollercolor")]
55#[doc(hidden)]
56pub mod prelude {
57    pub use super::NpadControllerColor;
58    #[cfg(feature = "system-object")]
59    pub use crate::system::object::IObjectMethods;
60    #[cfg(feature = "system-valuetype")]
61    pub use crate::system::valuetype::IValueTypeMethods;
62    pub use crate::system::{object::IObject, valuetype::IValueType};
63}