1#[cfg(feature = "app-calculatorutil-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 r#enum::{Enum, IEnum},
11 valuetype::{IValueType, ValueType},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/calculatorutil/CalculatorUtil_Entity.md"))]
15 #[::unity::class(namespace = "App", name = "CalculatorUtil.Entity")]
16 #[parent(crate::system::object::Object)]
17 pub struct CalculatorUtil_Entity {
18 #[offset(16)]
19 #[rename(name = "m_Type")]
20 pub m_type: crate::app::calculatorutil::CalculatorUtil_Type,
21 #[offset(24)]
22 #[rename(name = "m_Name")]
23 pub m_name: ::unity::Il2CppString,
24 #[offset(32)]
25 #[rename(name = "m_Value")]
26 pub m_value: f32,
27 #[offset(36)]
28 #[rename(name = "m_Code")]
29 pub m_code: i32,
30 }
31
32 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/calculatorutil/CalculatorUtil.md"))]
33 #[::unity::class(namespace = "App", name = "CalculatorUtil")]
34 #[parent(crate::system::object::Object)]
35 pub struct CalculatorUtil {
36 #[static_field]
37 #[rename(name = "NullArgs")]
38 pub null_args: crate::system::collections::generic::list_1::List_1<f32>,
39 }
40
41 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/calculatorutil/CalculatorUtil_Type.md"))]
42 #[repr(C)]
43 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
44 pub struct CalculatorUtil_Type {
45 pub value: i32,
46 }
47 impl ::unity::ClassIdentity for CalculatorUtil_Type {
48 const NAME: &'static str = "CalculatorUtil.Type";
49 const NAMESPACE: &'static str = "App";
50
51 fn class() -> ::unity::Class {
52 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
53 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
54 }
55 }
56 impl ::unity::IlType for CalculatorUtil_Type {
57 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
58 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
59 }
60 }
61 impl CalculatorUtil_Type {
62 pub fn none() -> Self {
63 Self { value: 0 }
64 }
65
66 pub fn add() -> Self {
67 Self { value: 1 }
68 }
69
70 pub fn sub() -> Self {
71 Self { value: 2 }
72 }
73
74 pub fn mul() -> Self {
75 Self { value: 3 }
76 }
77
78 pub fn div() -> Self {
79 Self { value: 4 }
80 }
81
82 pub fn per() -> Self {
83 Self { value: 5 }
84 }
85
86 pub fn or() -> Self {
87 Self { value: 6 }
88 }
89
90 pub fn and() -> Self {
91 Self { value: 7 }
92 }
93
94 pub fn xor() -> Self {
95 Self { value: 8 }
96 }
97
98 pub fn l_shift() -> Self {
99 Self { value: 9 }
100 }
101
102 pub fn r_shift() -> Self {
103 Self { value: 10 }
104 }
105
106 pub fn equal() -> Self {
107 Self { value: 11 }
108 }
109
110 pub fn nequal() -> Self {
111 Self { value: 12 }
112 }
113
114 pub fn less() -> Self {
115 Self { value: 13 }
116 }
117
118 pub fn lequal() -> Self {
119 Self { value: 14 }
120 }
121
122 pub fn greater() -> Self {
123 Self { value: 15 }
124 }
125
126 pub fn gequal() -> Self {
127 Self { value: 16 }
128 }
129
130 pub fn assign() -> Self {
131 Self { value: 17 }
132 }
133
134 pub fn or_assign() -> Self {
135 Self { value: 18 }
136 }
137
138 pub fn and_assign() -> Self {
139 Self { value: 19 }
140 }
141
142 pub fn xor_assign() -> Self {
143 Self { value: 20 }
144 }
145
146 pub fn add_assign() -> Self {
147 Self { value: 21 }
148 }
149
150 pub fn sub_assign() -> Self {
151 Self { value: 22 }
152 }
153
154 pub fn mul_assign() -> Self {
155 Self { value: 23 }
156 }
157
158 pub fn div_assign() -> Self {
159 Self { value: 24 }
160 }
161
162 pub fn per_assign() -> Self {
163 Self { value: 25 }
164 }
165
166 pub fn ls_assign() -> Self {
167 Self { value: 26 }
168 }
169
170 pub fn rs_assign() -> Self {
171 Self { value: 27 }
172 }
173
174 pub fn open() -> Self {
175 Self { value: 28 }
176 }
177
178 pub fn close() -> Self {
179 Self { value: 29 }
180 }
181
182 pub fn comma() -> Self {
183 Self { value: 30 }
184 }
185
186 pub fn log_or() -> Self {
187 Self { value: 31 }
188 }
189
190 pub fn log_and() -> Self {
191 Self { value: 32 }
192 }
193
194 pub fn negative() -> Self {
195 Self { value: 33 }
196 }
197
198 pub fn number() -> Self {
199 Self { value: 34 }
200 }
201
202 pub fn variable() -> Self {
203 Self { value: 35 }
204 }
205
206 pub fn function() -> Self {
207 Self { value: 36 }
208 }
209
210 pub fn args() -> Self {
211 Self { value: 37 }
212 }
213
214 pub fn string() -> Self {
215 Self { value: 38 }
216 }
217 }
218}
219
220#[cfg(feature = "app-calculatorutil-types")]
221pub use __types::*;
222
223#[cfg(feature = "app-calculatorutil")]
224pub trait ICalculatorUtil_EntityMethods: ICalculatorUtil_Entity {
225 #[doc = "`get_Type()` overload"]
226 fn get_type(self) -> crate::app::calculatorutil::CalculatorUtil_Type {
227 unsafe {
228 let __receiver = <CalculatorUtil_Entity as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
229 ::unity::il2cpp_call!((::unity::module_base()+0x19bd700usize)as*mut u8,crate::app::calculatorutil::CalculatorUtil_Type;
230(CalculatorUtil_Entity)__receiver)
231 }
232 }
233 #[doc = "`get_Name()` overload"]
234 fn get_name(self) -> ::unity::Il2CppString {
235 unsafe {
236 let __receiver = <CalculatorUtil_Entity as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
237 ::unity::il2cpp_call!((::unity::module_base()+0x19bd710usize)as*mut u8, ::unity::Il2CppString;
238(CalculatorUtil_Entity)__receiver)
239 }
240 }
241 #[doc = "`get_Value()` overload"]
242 fn get_value(self) -> f32 {
243 unsafe {
244 let __receiver = <CalculatorUtil_Entity as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
245 ::unity::il2cpp_call!((::unity::module_base()+0x19bd720usize)as*mut u8,f32;
246(CalculatorUtil_Entity)__receiver)
247 }
248 }
249 #[doc = "`get_Code()` overload"]
250 fn get_code(self) -> i32 {
251 unsafe {
252 let __receiver = <CalculatorUtil_Entity as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
253 ::unity::il2cpp_call!((::unity::module_base()+0x19bd730usize)as*mut u8,i32;
254(CalculatorUtil_Entity)__receiver)
255 }
256 }
257 #[doc = "`.ctor(crate::app::calculatorutil::CalculatorUtil_Type, ::unity::Il2CppString, f32)` overload"]
258 fn ctor(
259 self,
260 r#type: impl ::core::convert::Into<crate::app::calculatorutil::CalculatorUtil_Type>,
261 name: impl ::core::convert::Into<::unity::Il2CppString>,
262 value: impl ::core::convert::Into<f32>,
263 ) -> () {
264 unsafe {
265 let __receiver = <CalculatorUtil_Entity as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
266 ::unity::il2cpp_call!((::unity::module_base()+0x19bd740usize)as*mut u8,();
267(CalculatorUtil_Entity)__receiver,(crate::app::calculatorutil::CalculatorUtil_Type)::core::convert::Into::into(r#type),(::unity::Il2CppString)::core::convert::Into::into(name),(f32)::core::convert::Into::into(value))
268 }
269 }
270}
271
272#[cfg(feature = "app-calculatorutil")]
273impl<__T: ICalculatorUtil_Entity> ICalculatorUtil_EntityMethods for __T {}
274
275#[cfg(feature = "app-calculatorutil")]
276impl CalculatorUtil_Entity {
277 pub fn get_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
278 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
279 }
280
281 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
283 }
284
285 pub fn get_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
287 }
288
289 pub fn get_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
291 }
292
293 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
295 }
296}
297
298#[cfg(feature = "app-calculatorutil")]
299impl CalculatorUtil_Entity {
300 #[doc = "`.ctor(crate::app::calculatorutil::CalculatorUtil_Type, ::unity::Il2CppString, f32)` — overload selector"]
301 pub fn new(r#type: crate::app::calculatorutil::CalculatorUtil_Type, name: ::unity::Il2CppString, value: f32) -> Self {
302 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
303 panic!(
304 "{}
305::{}
306 failed to instantiate",
307 ::core::stringify!(CalculatorUtil_Entity),
308 ::core::stringify!(new),
309 )
310 });
311 <Self as ICalculatorUtil_EntityMethods>::ctor(this, r#type, name, value);
312 this
313 }
314}
315
316#[cfg(feature = "app-calculatorutil")]
317impl CalculatorUtil {
318 #[doc = "`GetPriority(crate::app::calculatorutil::CalculatorUtil_Type)` overload"]
319 pub fn get_priority(r#type: impl ::core::convert::Into<crate::app::calculatorutil::CalculatorUtil_Type>) -> i32 {
320 unsafe {
321 ::unity::il2cpp_call!((::unity::module_base()+0x29935a0usize)as*mut u8,i32;
322(crate::app::calculatorutil::CalculatorUtil_Type)::core::convert::Into::into(r#type))
323 }
324 }
325
326 #[doc = "`IsNegative(crate::app::calculatorutil::CalculatorUtil_Type, crate::app::calculatorutil::CalculatorUtil_Type)` overload"]
327 pub fn is_negative(
328 now: impl ::core::convert::Into<crate::app::calculatorutil::CalculatorUtil_Type>,
329 old: impl ::core::convert::Into<crate::app::calculatorutil::CalculatorUtil_Type>,
330 ) -> bool {
331 unsafe {
332 ::unity::il2cpp_call!((::unity::module_base()+0x29935d0usize)as*mut u8,bool;
333(crate::app::calculatorutil::CalculatorUtil_Type)::core::convert::Into::into(now),(crate::app::calculatorutil::CalculatorUtil_Type)::core::convert::Into::into(old))
334 }
335 }
336
337 #[doc = "`IsAssign(crate::app::calculatorutil::CalculatorUtil_Type)` overload"]
338 pub fn is_assign(r#type: impl ::core::convert::Into<crate::app::calculatorutil::CalculatorUtil_Type>) -> bool {
339 unsafe {
340 ::unity::il2cpp_call!((::unity::module_base()+0x298f690usize)as*mut u8,bool;
341(crate::app::calculatorutil::CalculatorUtil_Type)::core::convert::Into::into(r#type))
342 }
343 }
344
345 #[doc = "`GetSingleType(u16)` overload"]
346 pub fn get_single_type(name: impl ::core::convert::Into<u16>) -> crate::app::calculatorutil::CalculatorUtil_Type {
347 unsafe {
348 ::unity::il2cpp_call!((::unity::module_base()+0x2993600usize)as*mut u8,crate::app::calculatorutil::CalculatorUtil_Type;
349(u16)::core::convert::Into::into(name))
350 }
351 }
352
353 #[doc = "`GetThreeType(::unity::Il2CppString, i32)` overload"]
354 pub fn get_three_type(
355 name: impl ::core::convert::Into<::unity::Il2CppString>,
356 index: impl ::core::convert::Into<i32>,
357 ) -> crate::app::calculatorutil::CalculatorUtil_Type {
358 unsafe {
359 ::unity::il2cpp_call!((::unity::module_base()+0x2993660usize)as*mut u8,crate::app::calculatorutil::CalculatorUtil_Type;
360(::unity::Il2CppString)::core::convert::Into::into(name),(i32)::core::convert::Into::into(index))
361 }
362 }
363
364 #[doc = "`GetDoubleType(::unity::Il2CppString, i32)` overload"]
365 pub fn get_double_type(
366 name: impl ::core::convert::Into<::unity::Il2CppString>,
367 index: impl ::core::convert::Into<i32>,
368 ) -> crate::app::calculatorutil::CalculatorUtil_Type {
369 unsafe {
370 ::unity::il2cpp_call!((::unity::module_base()+0x2993720usize)as*mut u8,crate::app::calculatorutil::CalculatorUtil_Type;
371(::unity::Il2CppString)::core::convert::Into::into(name),(i32)::core::convert::Into::into(index))
372 }
373 }
374
375 #[doc = "`IsCode(u16)` overload"]
376 pub fn is_code(name: impl ::core::convert::Into<u16>) -> bool {
377 unsafe {
378 ::unity::il2cpp_call!((::unity::module_base()+0x29938f0usize)as*mut u8,bool;
379(u16)::core::convert::Into::into(name))
380 }
381 }
382
383 #[doc = "`IsNumber(u16)` overload"]
384 pub fn is_number(name: impl ::core::convert::Into<u16>) -> bool {
385 unsafe {
386 ::unity::il2cpp_call!((::unity::module_base()+0x2993960usize)as*mut u8,bool;
387(u16)::core::convert::Into::into(name))
388 }
389 }
390
391 #[doc = "`IsString(u16)` overload"]
392 pub fn is_string(name: impl ::core::convert::Into<u16>) -> bool {
393 unsafe {
394 ::unity::il2cpp_call!((::unity::module_base()+0x2993990usize)as*mut u8,bool;
395(u16)::core::convert::Into::into(name))
396 }
397 }
398
399 #[doc = "`IsArgs(::unity::Il2CppString, i32)` overload"]
400 pub fn is_args(name: impl ::core::convert::Into<::unity::Il2CppString>, index: impl ::core::convert::Into<i32>) -> bool {
401 unsafe {
402 ::unity::il2cpp_call!((::unity::module_base()+0x29939a0usize)as*mut u8,bool;
403(::unity::Il2CppString)::core::convert::Into::into(name),(i32)::core::convert::Into::into(index))
404 }
405 }
406
407 #[doc = "`IsEmpty(u16)` overload"]
408 pub fn is_empty(name: impl ::core::convert::Into<u16>) -> bool {
409 unsafe {
410 ::unity::il2cpp_call!((::unity::module_base()+0x2993a90usize)as*mut u8,bool;
411(u16)::core::convert::Into::into(name))
412 }
413 }
414
415 #[doc = "`StringToNumber(::unity::Il2CppString, i32)` overload"]
416 pub fn string_to_number(
417 name: impl ::core::convert::Into<::unity::Il2CppString>,
418 index: impl ::core::convert::Into<i32>,
419 ) -> ::unity::Il2CppString {
420 unsafe {
421 ::unity::il2cpp_call!((::unity::module_base()+0x2993ac0usize)as*mut u8, ::unity::Il2CppString;
422(::unity::Il2CppString)::core::convert::Into::into(name),(i32)::core::convert::Into::into(index))
423 }
424 }
425
426 #[doc = "`StringToString(::unity::Il2CppString, i32)` overload"]
427 pub fn string_to_string(
428 name: impl ::core::convert::Into<::unity::Il2CppString>,
429 index: impl ::core::convert::Into<i32>,
430 ) -> ::unity::Il2CppString {
431 unsafe {
432 ::unity::il2cpp_call!((::unity::module_base()+0x2993bf0usize)as*mut u8, ::unity::Il2CppString;
433(::unity::Il2CppString)::core::convert::Into::into(name),(i32)::core::convert::Into::into(index))
434 }
435 }
436
437 #[doc = "`StringToArgs(::unity::Il2CppString, i32)` overload"]
438 pub fn string_to_args(name: impl ::core::convert::Into<::unity::Il2CppString>, index: impl ::core::convert::Into<i32>) -> ::unity::Il2CppString {
439 unsafe {
440 ::unity::il2cpp_call!((::unity::module_base()+0x2993d40usize)as*mut u8, ::unity::Il2CppString;
441(::unity::Il2CppString)::core::convert::Into::into(name),(i32)::core::convert::Into::into(index))
442 }
443 }
444
445 #[doc = "`StringToName(::unity::Il2CppString, i32)` overload"]
446 pub fn string_to_name(name: impl ::core::convert::Into<::unity::Il2CppString>, index: impl ::core::convert::Into<i32>) -> ::unity::Il2CppString {
447 unsafe {
448 ::unity::il2cpp_call!((::unity::module_base()+0x2993d50usize)as*mut u8, ::unity::Il2CppString;
449(::unity::Il2CppString)::core::convert::Into::into(name),(i32)::core::convert::Into::into(index))
450 }
451 }
452
453 #[doc = "`.cctor()` overload"]
454 pub fn cctor() -> () {
455 unsafe {
456 ::unity::il2cpp_call!((::unity::module_base()+0x2993f70usize)as*mut u8,();
457 )
458 }
459 }
460}
461
462#[cfg(feature = "app-calculatorutil")]
463pub trait ICalculatorUtilMethods: ICalculatorUtil {
464 #[doc = "`.ctor()` overload"]
465 fn ctor(self) -> () {
466 unsafe {
467 let __receiver = <CalculatorUtil as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
468 ::unity::il2cpp_call!((::unity::module_base()+0x298d8f0usize)as*mut u8,();
469(CalculatorUtil)__receiver)
470 }
471 }
472}
473
474#[cfg(feature = "app-calculatorutil")]
475impl<__T: ICalculatorUtil> ICalculatorUtilMethods for __T {}
476
477#[cfg(feature = "app-calculatorutil")]
478impl CalculatorUtil {
479 pub fn get_priority_method_info() -> &'static ::unity::il2cpp::MethodInfo {
480 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
481 }
482
483 pub fn is_negative_method_info() -> &'static ::unity::il2cpp::MethodInfo {
484 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
485 }
486
487 pub fn is_assign_method_info() -> &'static ::unity::il2cpp::MethodInfo {
488 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
489 }
490
491 pub fn get_single_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
492 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
493 }
494
495 pub fn get_three_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
496 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
497 }
498
499 pub fn get_double_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
500 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
501 }
502
503 pub fn is_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
504 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
505 }
506
507 pub fn is_number_method_info() -> &'static ::unity::il2cpp::MethodInfo {
508 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
509 }
510
511 pub fn is_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
512 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
513 }
514
515 pub fn is_args_method_info() -> &'static ::unity::il2cpp::MethodInfo {
516 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
517 }
518
519 pub fn is_empty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
520 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
521 }
522
523 pub fn string_to_number_method_info() -> &'static ::unity::il2cpp::MethodInfo {
524 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
525 }
526
527 pub fn string_to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
528 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
529 }
530
531 pub fn string_to_args_method_info() -> &'static ::unity::il2cpp::MethodInfo {
532 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
533 }
534
535 pub fn string_to_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
536 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
537 }
538
539 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
540 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
541 }
542
543 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
544 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
545 }
546}
547
548#[cfg(feature = "app-calculatorutil")]
549impl CalculatorUtil {
550 #[doc = "`.ctor()` — no args"]
551 pub fn new() -> Self {
552 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
553 panic!(
554 "{}
555::{}
556 failed to instantiate",
557 ::core::stringify!(CalculatorUtil),
558 ::core::stringify!(new),
559 )
560 });
561 <Self as ICalculatorUtilMethods>::ctor(this);
562 this
563 }
564}
565
566#[cfg(feature = "app-calculatorutil")]
567#[doc(hidden)]
568pub mod prelude {
569 pub use super::{
570 CalculatorUtil, CalculatorUtil_Entity, CalculatorUtil_Type, ICalculatorUtil, ICalculatorUtilMethods, ICalculatorUtil_Entity,
571 ICalculatorUtil_EntityMethods,
572 };
573 #[cfg(feature = "system-object")]
574 pub use crate::system::object::IObjectMethods;
575 #[cfg(feature = "system-enum")]
576 pub use crate::system::r#enum::IEnumMethods;
577 #[cfg(feature = "system-valuetype")]
578 pub use crate::system::valuetype::IValueTypeMethods;
579 pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
580}