1#[cfg(feature = "app-fixedvalue-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/app/fixedvalue/FixedValue.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct FixedValue {
17 pub v: i32,
18 }
19 impl ::unity::ClassIdentity for FixedValue {
20 const NAME: &'static str = "FixedValue";
21 const NAMESPACE: &'static str = "App";
22
23 fn class() -> ::unity::Class {
24 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
25 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
26 }
27 }
28 impl ::unity::IlType for FixedValue {
29 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
30 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
31 }
32 }
33}
34
35#[cfg(feature = "app-fixedvalue-types")]
36pub use __types::*;
37
38#[cfg(feature = "app-fixedvalue")]
39impl FixedValue {
40 #[doc = "`op_Addition(crate::app::fixedvalue::FixedValue, crate::app::fixedvalue::FixedValue)` overload"]
41 pub fn op_addition(
42 a: impl ::core::convert::Into<crate::app::fixedvalue::FixedValue>,
43 b: impl ::core::convert::Into<crate::app::fixedvalue::FixedValue>,
44 ) -> crate::app::fixedvalue::FixedValue {
45 unsafe {
46 ::unity::il2cpp_call!((::unity::module_base()+0x260c040usize)as*mut u8,crate::app::fixedvalue::FixedValue;
47(crate::app::fixedvalue::FixedValue)::core::convert::Into::into(a),(crate::app::fixedvalue::FixedValue)::core::convert::Into::into(b))
48 }
49 }
50
51 #[doc = "`op_Subtraction(crate::app::fixedvalue::FixedValue, crate::app::fixedvalue::FixedValue)` overload"]
52 pub fn op_subtraction(
53 a: impl ::core::convert::Into<crate::app::fixedvalue::FixedValue>,
54 b: impl ::core::convert::Into<crate::app::fixedvalue::FixedValue>,
55 ) -> crate::app::fixedvalue::FixedValue {
56 unsafe {
57 ::unity::il2cpp_call!((::unity::module_base()+0x260c050usize)as*mut u8,crate::app::fixedvalue::FixedValue;
58(crate::app::fixedvalue::FixedValue)::core::convert::Into::into(a),(crate::app::fixedvalue::FixedValue)::core::convert::Into::into(b))
59 }
60 }
61
62 #[doc = "`op_Multiply(crate::app::fixedvalue::FixedValue, crate::app::fixedvalue::FixedValue)` overload"]
63 pub fn op_multiply(
64 a: impl ::core::convert::Into<crate::app::fixedvalue::FixedValue>,
65 b: impl ::core::convert::Into<crate::app::fixedvalue::FixedValue>,
66 ) -> crate::app::fixedvalue::FixedValue {
67 unsafe {
68 ::unity::il2cpp_call!((::unity::module_base()+0x260c060usize)as*mut u8,crate::app::fixedvalue::FixedValue;
69(crate::app::fixedvalue::FixedValue)::core::convert::Into::into(a),(crate::app::fixedvalue::FixedValue)::core::convert::Into::into(b))
70 }
71 }
72
73 #[doc = "`op_Division(crate::app::fixedvalue::FixedValue, crate::app::fixedvalue::FixedValue)` overload"]
74 pub fn op_division(
75 a: impl ::core::convert::Into<crate::app::fixedvalue::FixedValue>,
76 b: impl ::core::convert::Into<crate::app::fixedvalue::FixedValue>,
77 ) -> crate::app::fixedvalue::FixedValue {
78 unsafe {
79 ::unity::il2cpp_call!((::unity::module_base()+0x260c070usize)as*mut u8,crate::app::fixedvalue::FixedValue;
80(crate::app::fixedvalue::FixedValue)::core::convert::Into::into(a),(crate::app::fixedvalue::FixedValue)::core::convert::Into::into(b))
81 }
82 }
83
84 #[doc = "`op_Addition(crate::app::fixedvalue::FixedValue, i32)` overload"]
85 pub fn op_addition_2(
86 a: impl ::core::convert::Into<crate::app::fixedvalue::FixedValue>,
87 b: impl ::core::convert::Into<i32>,
88 ) -> crate::app::fixedvalue::FixedValue {
89 unsafe {
90 ::unity::il2cpp_call!((::unity::module_base()+0x260c080usize)as*mut u8,crate::app::fixedvalue::FixedValue;
91(crate::app::fixedvalue::FixedValue)::core::convert::Into::into(a),(i32)::core::convert::Into::into(b))
92 }
93 }
94
95 #[doc = "`op_Subtraction(crate::app::fixedvalue::FixedValue, i32)` overload"]
96 pub fn op_subtraction_2(
97 a: impl ::core::convert::Into<crate::app::fixedvalue::FixedValue>,
98 b: impl ::core::convert::Into<i32>,
99 ) -> crate::app::fixedvalue::FixedValue {
100 unsafe {
101 ::unity::il2cpp_call!((::unity::module_base()+0x260c090usize)as*mut u8,crate::app::fixedvalue::FixedValue;
102(crate::app::fixedvalue::FixedValue)::core::convert::Into::into(a),(i32)::core::convert::Into::into(b))
103 }
104 }
105
106 #[doc = "`op_Multiply(crate::app::fixedvalue::FixedValue, i32)` overload"]
107 pub fn op_multiply_2(
108 a: impl ::core::convert::Into<crate::app::fixedvalue::FixedValue>,
109 b: impl ::core::convert::Into<i32>,
110 ) -> crate::app::fixedvalue::FixedValue {
111 unsafe {
112 ::unity::il2cpp_call!((::unity::module_base()+0x260c0a0usize)as*mut u8,crate::app::fixedvalue::FixedValue;
113(crate::app::fixedvalue::FixedValue)::core::convert::Into::into(a),(i32)::core::convert::Into::into(b))
114 }
115 }
116
117 #[doc = "`op_Division(crate::app::fixedvalue::FixedValue, i32)` overload"]
118 pub fn op_division_2(
119 a: impl ::core::convert::Into<crate::app::fixedvalue::FixedValue>,
120 b: impl ::core::convert::Into<i32>,
121 ) -> crate::app::fixedvalue::FixedValue {
122 unsafe {
123 ::unity::il2cpp_call!((::unity::module_base()+0x260c0b0usize)as*mut u8,crate::app::fixedvalue::FixedValue;
124(crate::app::fixedvalue::FixedValue)::core::convert::Into::into(a),(i32)::core::convert::Into::into(b))
125 }
126 }
127
128 #[doc = "`op_Addition(crate::app::fixedvalue::FixedValue, f32)` overload"]
129 pub fn op_addition_3(
130 a: impl ::core::convert::Into<crate::app::fixedvalue::FixedValue>,
131 b: impl ::core::convert::Into<f32>,
132 ) -> crate::app::fixedvalue::FixedValue {
133 unsafe {
134 ::unity::il2cpp_call!((::unity::module_base()+0x260c0c0usize)as*mut u8,crate::app::fixedvalue::FixedValue;
135(crate::app::fixedvalue::FixedValue)::core::convert::Into::into(a),(f32)::core::convert::Into::into(b))
136 }
137 }
138
139 #[doc = "`op_Subtraction(crate::app::fixedvalue::FixedValue, f32)` overload"]
140 pub fn op_subtraction_3(
141 a: impl ::core::convert::Into<crate::app::fixedvalue::FixedValue>,
142 b: impl ::core::convert::Into<f32>,
143 ) -> crate::app::fixedvalue::FixedValue {
144 unsafe {
145 ::unity::il2cpp_call!((::unity::module_base()+0x260c0f0usize)as*mut u8,crate::app::fixedvalue::FixedValue;
146(crate::app::fixedvalue::FixedValue)::core::convert::Into::into(a),(f32)::core::convert::Into::into(b))
147 }
148 }
149
150 #[doc = "`op_Multiply(crate::app::fixedvalue::FixedValue, f32)` overload"]
151 pub fn op_multiply_3(
152 a: impl ::core::convert::Into<crate::app::fixedvalue::FixedValue>,
153 b: impl ::core::convert::Into<f32>,
154 ) -> crate::app::fixedvalue::FixedValue {
155 unsafe {
156 ::unity::il2cpp_call!((::unity::module_base()+0x260c120usize)as*mut u8,crate::app::fixedvalue::FixedValue;
157(crate::app::fixedvalue::FixedValue)::core::convert::Into::into(a),(f32)::core::convert::Into::into(b))
158 }
159 }
160
161 #[doc = "`op_Division(crate::app::fixedvalue::FixedValue, f32)` overload"]
162 pub fn op_division_3(
163 a: impl ::core::convert::Into<crate::app::fixedvalue::FixedValue>,
164 b: impl ::core::convert::Into<f32>,
165 ) -> crate::app::fixedvalue::FixedValue {
166 unsafe {
167 ::unity::il2cpp_call!((::unity::module_base()+0x260c150usize)as*mut u8,crate::app::fixedvalue::FixedValue;
168(crate::app::fixedvalue::FixedValue)::core::convert::Into::into(a),(f32)::core::convert::Into::into(b))
169 }
170 }
171}
172
173#[cfg(feature = "app-fixedvalue")]
174impl FixedValue {
175 #[doc = "`get_Value()` overload"]
176 pub fn get_value(&mut self) -> i32 {
177 unsafe {
178 ::unity::il2cpp_call!((::unity::module_base()+0x260bf90usize)as*mut u8,i32;
179(*mut FixedValue)self as*mut FixedValue)
180 }
181 }
182
183 #[doc = "`set_Value(i32)` overload"]
184 pub fn set_value(&mut self, value: impl ::core::convert::Into<i32>) -> () {
185 unsafe {
186 ::unity::il2cpp_call!((::unity::module_base()+0x260bfa0usize)as*mut u8,();
187(*mut FixedValue)self as*mut FixedValue,(i32)::core::convert::Into::into(value))
188 }
189 }
190
191 #[doc = "`get_Float()` overload"]
192 pub fn get_float(&mut self) -> f32 {
193 unsafe {
194 ::unity::il2cpp_call!((::unity::module_base()+0x260bfb0usize)as*mut u8,f32;
195(*mut FixedValue)self as*mut FixedValue)
196 }
197 }
198
199 #[doc = "`set_Float(f32)` overload"]
200 pub fn set_float(&mut self, value: impl ::core::convert::Into<f32>) -> () {
201 unsafe {
202 ::unity::il2cpp_call!((::unity::module_base()+0x260bfc0usize)as*mut u8,();
203(*mut FixedValue)self as*mut FixedValue,(f32)::core::convert::Into::into(value))
204 }
205 }
206
207 #[doc = "`.ctor(i32)` overload"]
208 pub fn ctor(&mut self, value: impl ::core::convert::Into<i32>) -> () {
209 unsafe {
210 ::unity::il2cpp_call!((::unity::module_base()+0x260bff0usize)as*mut u8,();
211(*mut FixedValue)self as*mut FixedValue,(i32)::core::convert::Into::into(value))
212 }
213 }
214
215 #[doc = "`.ctor(f32)` overload"]
216 pub fn ctor_2(&mut self, value: impl ::core::convert::Into<f32>) -> () {
217 unsafe {
218 ::unity::il2cpp_call!((::unity::module_base()+0x260c000usize)as*mut u8,();
219(*mut FixedValue)self as*mut FixedValue,(f32)::core::convert::Into::into(value))
220 }
221 }
222
223 #[doc = "`.ctor(i32, i32)` overload"]
224 pub fn ctor_3(&mut self, value: impl ::core::convert::Into<i32>, shift: impl ::core::convert::Into<i32>) -> () {
225 unsafe {
226 ::unity::il2cpp_call!((::unity::module_base()+0x260c030usize)as*mut u8,();
227(*mut FixedValue)self as*mut FixedValue,(i32)::core::convert::Into::into(value),(i32)::core::convert::Into::into(shift))
228 }
229 }
230}
231
232#[cfg(feature = "app-fixedvalue")]
233impl FixedValue {
234 pub fn get_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
236 }
237
238 pub fn set_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
240 }
241
242 pub fn get_float_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
244 }
245
246 pub fn set_float_method_info() -> &'static ::unity::il2cpp::MethodInfo {
247 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
248 }
249
250 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
251 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
252 }
253
254 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
255 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
256 }
257
258 pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
259 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
260 }
261
262 pub fn op_addition_method_info() -> &'static ::unity::il2cpp::MethodInfo {
263 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
264 }
265
266 pub fn op_subtraction_method_info() -> &'static ::unity::il2cpp::MethodInfo {
267 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
268 }
269
270 pub fn op_multiply_method_info() -> &'static ::unity::il2cpp::MethodInfo {
271 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
272 }
273
274 pub fn op_division_method_info() -> &'static ::unity::il2cpp::MethodInfo {
275 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
276 }
277
278 pub fn op_addition_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
280 }
281
282 pub fn op_subtraction_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
283 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
284 }
285
286 pub fn op_multiply_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
287 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
288 }
289
290 pub fn op_division_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
291 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
292 }
293
294 pub fn op_addition_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
295 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
296 }
297
298 pub fn op_subtraction_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
299 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
300 }
301
302 pub fn op_multiply_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
303 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
304 }
305
306 pub fn op_division_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
307 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
308 }
309}
310
311#[cfg(feature = "app-fixedvalue")]
312#[doc(hidden)]
313pub mod prelude {
314 pub use super::FixedValue;
315 #[cfg(feature = "system-object")]
316 pub use crate::system::object::IObjectMethods;
317 #[cfg(feature = "system-valuetype")]
318 pub use crate::system::valuetype::IValueTypeMethods;
319 pub use crate::system::{object::IObject, valuetype::IValueType};
320}