Skip to main content

engage/generated/nn/hid/
controllerfirmwareupdatearg.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "nn-hid-controllerfirmwareupdatearg-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/controllerfirmwareupdatearg/ControllerFirmwareUpdateArg.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct ControllerFirmwareUpdateArg {
17        pub enable_force_update: bool,
18        pub padding0: u8,
19        pub padding1: u8,
20        pub padding2: u8,
21    }
22    impl ::unity::ClassIdentity for ControllerFirmwareUpdateArg {
23        const NAME: &'static str = "ControllerFirmwareUpdateArg";
24        const NAMESPACE: &'static str = "nn.hid";
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 ControllerFirmwareUpdateArg {
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 = "nn-hid-controllerfirmwareupdatearg-types")]
39pub use __types::*;
40
41#[cfg(feature = "nn-hid-controllerfirmwareupdatearg")]
42impl ControllerFirmwareUpdateArg {
43    #[doc = "`SetDefault()` overload"]
44    pub fn set_default(&mut self) -> () {
45        unsafe {
46            ::unity::il2cpp_call!((::unity::module_base()+0x253e120usize)as*mut u8,();
47(*mut ControllerFirmwareUpdateArg)self as*mut ControllerFirmwareUpdateArg)
48        }
49    }
50}
51
52#[cfg(feature = "nn-hid-controllerfirmwareupdatearg")]
53impl ControllerFirmwareUpdateArg {
54    pub fn set_default_method_info() -> &'static ::unity::il2cpp::MethodInfo {
55        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
56    }
57}
58
59#[cfg(feature = "nn-hid-controllerfirmwareupdatearg")]
60#[doc(hidden)]
61pub mod prelude {
62    pub use super::ControllerFirmwareUpdateArg;
63    #[cfg(feature = "system-object")]
64    pub use crate::system::object::IObjectMethods;
65    #[cfg(feature = "system-valuetype")]
66    pub use crate::system::valuetype::IValueTypeMethods;
67    pub use crate::system::{object::IObject, valuetype::IValueType};
68}