engage/generated/nn/hid/
vibrationvalue.rs1#[cfg(feature = "nn-hid-vibrationvalue-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/vibrationvalue/VibrationValue.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct VibrationValue {
17 pub amplitude_low: f32,
18 pub frequency_low: f32,
19 pub amplitude_high: f32,
20 pub frequency_high: f32,
21 }
22 impl ::unity::ClassIdentity for VibrationValue {
23 const NAME: &'static str = "VibrationValue";
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 VibrationValue {
32 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
33 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
34 }
35 }
36 impl VibrationValue {
37 #[inline]
38 pub fn frequency_low_default() -> i32 {
39 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
40 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "FrequencyLowDefault");
41 ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
42 }
43
44 #[inline]
45 pub fn set_frequency_low_default(value: i32) {
46 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
47 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "FrequencyLowDefault");
48 ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
49 }
50
51 #[inline]
52 pub fn frequency_high_default() -> i32 {
53 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
54 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "FrequencyHighDefault");
55 ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
56 }
57
58 #[inline]
59 pub fn set_frequency_high_default(value: i32) {
60 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
61 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "FrequencyHighDefault");
62 ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
63 }
64 }
65}
66
67#[cfg(feature = "nn-hid-vibrationvalue-types")]
68pub use __types::*;
69
70#[cfg(feature = "nn-hid-vibrationvalue")]
71impl VibrationValue {
72 #[doc = "`Make()` overload"]
73 pub fn make() -> crate::nn::hid::vibrationvalue::VibrationValue {
74 unsafe {
75 ::unity::il2cpp_call!((::unity::module_base()+0x21c0ca0usize)as*mut u8,crate::nn::hid::vibrationvalue::VibrationValue;
76 )
77 }
78 }
79
80 #[doc = "`Make(f32, f32, f32, f32)` overload"]
81 pub fn make_2(
82 amplitude_low: impl ::core::convert::Into<f32>,
83 frequency_low: impl ::core::convert::Into<f32>,
84 amplitude_high: impl ::core::convert::Into<f32>,
85 frequency_high: impl ::core::convert::Into<f32>,
86 ) -> crate::nn::hid::vibrationvalue::VibrationValue {
87 unsafe {
88 ::unity::il2cpp_call!((::unity::module_base()+0x21c0ce0usize)as*mut u8,crate::nn::hid::vibrationvalue::VibrationValue;
89(f32)::core::convert::Into::into(amplitude_low),(f32)::core::convert::Into::into(frequency_low),(f32)::core::convert::Into::into(amplitude_high),(f32)::core::convert::Into::into(frequency_high))
90 }
91 }
92}
93
94#[cfg(feature = "nn-hid-vibrationvalue")]
95impl VibrationValue {
96 #[doc = "`.ctor(f32, f32, f32, f32)` overload"]
97 pub fn ctor(
98 &mut self,
99 amplitude_low: impl ::core::convert::Into<f32>,
100 frequency_low: impl ::core::convert::Into<f32>,
101 amplitude_high: impl ::core::convert::Into<f32>,
102 frequency_high: impl ::core::convert::Into<f32>,
103 ) -> () {
104 unsafe {
105 ::unity::il2cpp_call!((::unity::module_base()+0x21c0cc0usize)as*mut u8,();
106(*mut VibrationValue)self as*mut VibrationValue,(f32)::core::convert::Into::into(amplitude_low),(f32)::core::convert::Into::into(frequency_low),(f32)::core::convert::Into::into(amplitude_high),(f32)::core::convert::Into::into(frequency_high))
107 }
108 }
109
110 #[doc = "`Set(f32, f32, f32, f32)` overload"]
111 pub fn set(
112 &mut self,
113 amplitude_low: impl ::core::convert::Into<f32>,
114 frequency_low: impl ::core::convert::Into<f32>,
115 amplitude_high: impl ::core::convert::Into<f32>,
116 frequency_high: impl ::core::convert::Into<f32>,
117 ) -> () {
118 unsafe {
119 ::unity::il2cpp_call!((::unity::module_base()+0x21c0cf0usize)as*mut u8,();
120(*mut VibrationValue)self as*mut VibrationValue,(f32)::core::convert::Into::into(amplitude_low),(f32)::core::convert::Into::into(frequency_low),(f32)::core::convert::Into::into(amplitude_high),(f32)::core::convert::Into::into(frequency_high))
121 }
122 }
123
124 #[doc = "`Clear()` overload"]
125 pub fn clear(&mut self) -> () {
126 unsafe {
127 ::unity::il2cpp_call!((::unity::module_base()+0x21c0d10usize)as*mut u8,();
128(*mut VibrationValue)self as*mut VibrationValue)
129 }
130 }
131
132 #[doc = "`ToString()` overload"]
133 pub fn to_string(&mut self) -> ::unity::Il2CppString {
134 unsafe {
135 ::unity::il2cpp_call!((::unity::module_base()+0x21c0d20usize)as*mut u8, ::unity::Il2CppString;
136(*mut VibrationValue)self as*mut VibrationValue)
137 }
138 }
139}
140
141#[cfg(feature = "nn-hid-vibrationvalue")]
142impl VibrationValue {
143 pub fn make_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
145 }
146
147 pub fn make_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
149 }
150
151 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
153 }
154
155 pub fn set_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
157 }
158
159 pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
161 }
162
163 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
165 }
166}
167
168#[cfg(feature = "nn-hid-vibrationvalue")]
169#[doc(hidden)]
170pub mod prelude {
171 pub use super::VibrationValue;
172 #[cfg(feature = "system-object")]
173 pub use crate::system::object::IObjectMethods;
174 #[cfg(feature = "system-valuetype")]
175 pub use crate::system::valuetype::IValueTypeMethods;
176 pub use crate::system::{object::IObject, valuetype::IValueType};
177}