Skip to main content

engage/generated/nn/hid/
controllersupport.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "nn-hid-controllersupport-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/nn/hid/controllersupport/ControllerSupport.md"))]
11    #[::unity::class(namespace = "nn.hid", name = "ControllerSupport")]
12    #[parent(crate::system::object::Object)]
13    pub struct ControllerSupport {
14        #[static_field]
15        #[rename(name = "ExplainTextMaxLength")]
16        pub explain_text_max_length: i32,
17        #[static_field]
18        #[rename(name = "Utf8ByteSize")]
19        pub utf8_byte_size: i32,
20        #[static_field]
21        #[rename(name = "ExplainTextMaxBufferSize")]
22        pub explain_text_max_buffer_size: i32,
23        #[static_field]
24        #[rename(name = "ControllerSupportPlayerCountMax")]
25        pub controller_support_player_count_max: i32,
26    }
27}
28
29#[cfg(feature = "nn-hid-controllersupport-types")]
30pub use __types::*;
31
32#[cfg(feature = "nn-hid-controllersupport")]
33impl ControllerSupport {
34    #[doc = "`SetExplainText(*mutcrate::nn::hid::controllersupportarg::ControllerSupportArg, ::unity::Il2CppString, crate::nn::hid::npadid::NpadId)` overload"]
35    pub fn set_explain_text(
36        p_str: impl ::core::convert::Into<::unity::Il2CppString>,
37        npad_id: impl ::core::convert::Into<crate::nn::hid::npadid::NpadId>,
38    ) -> crate::nn::hid::controllersupportarg::ControllerSupportArg {
39        unsafe {
40            let mut __out_0 = ::core::mem::MaybeUninit::<crate::nn::hid::controllersupportarg::ControllerSupportArg>::uninit();
41            ::unity::il2cpp_call!((::unity::module_base()+0x253e3b0usize)as*mut u8,();
42(*mut crate::nn::hid::controllersupportarg::ControllerSupportArg)__out_0.as_mut_ptr(),(::unity::Il2CppString)::core::convert::Into::into(p_str),(crate::nn::hid::npadid::NpadId)::core::convert::Into::into(npad_id));
43            __out_0.assume_init()
44        }
45    }
46}
47
48#[cfg(feature = "nn-hid-controllersupport")]
49impl ControllerSupport {
50    pub fn set_explain_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
51        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
52    }
53}
54
55#[cfg(feature = "nn-hid-controllersupport")]
56#[doc(hidden)]
57pub mod prelude {
58    pub use super::{ControllerSupport, IControllerSupport};
59    pub use crate::system::object::IObject;
60    #[cfg(feature = "system-object")]
61    pub use crate::system::object::IObjectMethods;
62}