Skip to main content

engage/generated/nintendo/message_studio/lib/
lmscolor.rs

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