engage/generated/nn/hid/
controllersupportarg.rs1#[cfg(feature = "nn-hid-controllersupportarg-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/controllersupportarg/ControllerSupportArg.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct ControllerSupportArg {
17 pub player_count_min: u8,
18 pub player_count_max: u8,
19 pub enable_take_over_connection: bool,
20 pub enable_left_justify: bool,
21 pub enable_permit_joy_dual: bool,
22 pub enable_single_mode: bool,
23 pub enable_identification_color: bool,
24 pub identification_color: crate::nn::hid::controllersupportarg::ControllerSupportArg_Color4u8Array8,
25 pub enable_explain_text: bool,
26 pub explain_text: ::unity::Array<u8>,
27 }
28 impl ::unity::ClassIdentity for ControllerSupportArg {
29 const NAME: &'static str = "ControllerSupportArg";
30 const NAMESPACE: &'static str = "nn.hid";
31
32 fn class() -> ::unity::Class {
33 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
34 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
35 }
36 }
37 impl ::unity::IlType for ControllerSupportArg {
38 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
39 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
40 }
41 }
42 impl ControllerSupportArg {
43 #[inline]
44 pub fn explain_text_size() -> i32 {
45 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
46 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "ExplainTextSize");
47 ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
48 }
49
50 #[inline]
51 pub fn set_explain_text_size(value: i32) {
52 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
53 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "ExplainTextSize");
54 ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
55 }
56 }
57
58 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/nn/hid/controllersupportarg/ControllerSupportArg_Color4u8Array8.md"))]
59 #[repr(C)]
60 #[derive(::core::clone::Clone, ::core::marker::Copy)]
61 pub struct ControllerSupportArg_Color4u8Array8 {}
62 impl ::unity::ClassIdentity for ControllerSupportArg_Color4u8Array8 {
63 const NAME: &'static str = "ControllerSupportArg.Color4u8Array8";
64 const NAMESPACE: &'static str = "nn.hid";
65
66 fn class() -> ::unity::Class {
67 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
68 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
69 }
70 }
71 impl ::unity::IlType for ControllerSupportArg_Color4u8Array8 {
72 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
73 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
74 }
75 }
76 impl ControllerSupportArg_Color4u8Array8 {
77 #[inline]
78 pub fn length() -> i32 {
79 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
80 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "_Length");
81 ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
82 }
83
84 #[inline]
85 pub fn set_length(value: i32) {
86 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
87 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "_Length");
88 ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
89 }
90 }
91}
92
93#[cfg(feature = "nn-hid-controllersupportarg-types")]
94pub use __types::*;
95
96#[cfg(feature = "nn-hid-controllersupportarg")]
97impl ControllerSupportArg {
98 #[doc = "`SetDefault()` overload"]
99 pub fn set_default(&mut self) -> () {
100 unsafe {
101 ::unity::il2cpp_call!((::unity::module_base()+0x253ef40usize)as*mut u8,();
102(*mut ControllerSupportArg)self as*mut ControllerSupportArg)
103 }
104 }
105
106 #[doc = "`ToString()` overload"]
107 pub fn to_string(&mut self) -> ::unity::Il2CppString {
108 unsafe {
109 ::unity::il2cpp_call!((::unity::module_base()+0x253efe0usize)as*mut u8, ::unity::Il2CppString;
110(*mut ControllerSupportArg)self as*mut ControllerSupportArg)
111 }
112 }
113}
114
115#[cfg(feature = "nn-hid-controllersupportarg")]
116impl ControllerSupportArg {
117 pub fn set_default_method_info() -> &'static ::unity::il2cpp::MethodInfo {
118 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
119 }
120
121 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
122 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
123 }
124}
125
126#[cfg(feature = "nn-hid-controllersupportarg")]
127impl ControllerSupportArg_Color4u8Array8 {
128 #[doc = "`get_Length()` overload"]
129 pub fn get_length(&mut self) -> i32 {
130 unsafe {
131 ::unity::il2cpp_call!((::unity::module_base()+0x19cbe10usize)as*mut u8,i32;
132(*mut ControllerSupportArg_Color4u8Array8)self as*mut ControllerSupportArg_Color4u8Array8)
133 }
134 }
135
136 #[doc = "`get_Count()` overload"]
137 pub fn get_count(&mut self) -> i32 {
138 unsafe {
139 ::unity::il2cpp_call!((::unity::module_base()+0x19cc000usize)as*mut u8,i32;
140(*mut ControllerSupportArg_Color4u8Array8)self as*mut ControllerSupportArg_Color4u8Array8)
141 }
142 }
143
144 #[doc = "`get_IsReadOnly()` overload"]
145 pub fn get_is_read_only(&mut self) -> bool {
146 unsafe {
147 ::unity::il2cpp_call!((::unity::module_base()+0x19cc010usize)as*mut u8,bool;
148(*mut ControllerSupportArg_Color4u8Array8)self as*mut ControllerSupportArg_Color4u8Array8)
149 }
150 }
151
152 #[doc = "`ToString()` overload"]
153 pub fn to_string(&mut self) -> ::unity::Il2CppString {
154 unsafe {
155 ::unity::il2cpp_call!((::unity::module_base()+0x19cc3e0usize)as*mut u8, ::unity::Il2CppString;
156(*mut ControllerSupportArg_Color4u8Array8)self as*mut ControllerSupportArg_Color4u8Array8)
157 }
158 }
159
160 #[doc = "`System.Collections.IEnumerable.GetEnumerator()` overload"]
161 pub fn system_collections_i_enumerable_get_enumerator(&mut self) -> crate::system::collections::ienumerator::IEnumerator {
162 unsafe {
163 ::unity::il2cpp_call!((::unity::module_base()+0x19cc770usize)as*mut u8,crate::system::collections::ienumerator::IEnumerator;
164(*mut ControllerSupportArg_Color4u8Array8)self as*mut ControllerSupportArg_Color4u8Array8)
165 }
166 }
167
168 #[doc = "`Clear()` overload"]
169 pub fn clear(&mut self) -> () {
170 unsafe {
171 ::unity::il2cpp_call!((::unity::module_base()+0x19cc830usize)as*mut u8,();
172(*mut ControllerSupportArg_Color4u8Array8)self as*mut ControllerSupportArg_Color4u8Array8)
173 }
174 }
175
176 #[doc = "`RemoveAt(i32)` overload"]
177 pub fn remove_at(&mut self, index: impl ::core::convert::Into<i32>) -> () {
178 unsafe {
179 ::unity::il2cpp_call!((::unity::module_base()+0x19cc8f0usize)as*mut u8,();
180(*mut ControllerSupportArg_Color4u8Array8)self as*mut ControllerSupportArg_Color4u8Array8,(i32)::core::convert::Into::into(index))
181 }
182 }
183}
184
185#[cfg(feature = "nn-hid-controllersupportarg")]
186impl ControllerSupportArg_Color4u8Array8 {
187 pub fn get_length_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
189 }
190
191 pub fn get_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
193 }
194
195 pub fn get_is_read_only_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
197 }
198
199 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
201 }
202
203 pub fn system_collections_i_enumerable_get_enumerator_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
205 }
206
207 pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
209 }
210
211 pub fn remove_at_method_info() -> &'static ::unity::il2cpp::MethodInfo {
212 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
213 }
214}
215
216#[cfg(feature = "nn-hid-controllersupportarg")]
217#[doc(hidden)]
218pub mod prelude {
219 pub use super::{ControllerSupportArg, ControllerSupportArg_Color4u8Array8};
220 #[cfg(feature = "system-object")]
221 pub use crate::system::object::IObjectMethods;
222 #[cfg(feature = "system-valuetype")]
223 pub use crate::system::valuetype::IValueTypeMethods;
224 pub use crate::system::{object::IObject, valuetype::IValueType};
225}