1#[cfg(feature = "moon_sharp-interpreter-platforms-platformautodetector-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/platforms/platformautodetector/PlatformAutoDetector.md"))]
11 #[::unity::class(namespace = "MoonSharp.Interpreter.Platforms", name = "PlatformAutoDetector")]
12 #[parent(crate::system::object::Object)]
13 pub struct PlatformAutoDetector {
14 #[static_field]
15 #[rename(name = "m_AutoDetectionsDone")]
16 pub m_auto_detections_done: bool,
17 }
18}
19
20#[cfg(feature = "moon_sharp-interpreter-platforms-platformautodetector-types")]
21pub use __types::*;
22
23#[cfg(feature = "moon_sharp-interpreter-platforms-platformautodetector")]
24#[doc(hidden)]
25#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
26mod __PlatformAutoDetector_unity_raw {
27 use super::*;
28 #[doc(hidden)]
29 #[allow(non_snake_case)]
30 pub mod __lookup_get_is_running_on_mono {
31 use super::*;
32 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
33 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
34 ::unity::lookup::method_info_on_class_with_signature(
35 <PlatformAutoDetector as ::unity::ClassIdentity>::class(),
36 "get_IsRunningOnMono",
37 0,
38 param_types,
39 true,
40 )
41 });
42 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
43 match &*METHOD {
44 ::core::result::Result::Ok(mi) => *mi,
45 ::core::result::Result::Err(e) => {
46 panic!(
47 "method lookup failed: {}
48::{}
49: {}
50",
51 <PlatformAutoDetector as ::unity::ClassIdentity>::NAME,
52 "get_IsRunningOnMono",
53 e
54 )
55 },
56 }
57 }
58 }
59 #[doc(hidden)]
60 #[allow(non_snake_case)]
61 pub mod __lookup_set_is_running_on_mono {
62 use super::*;
63 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
64 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<bool as ::unity::IlType>::il_type()];
65 ::unity::lookup::method_info_on_class_with_signature(
66 <PlatformAutoDetector as ::unity::ClassIdentity>::class(),
67 "set_IsRunningOnMono",
68 1,
69 param_types,
70 true,
71 )
72 });
73 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
74 match &*METHOD {
75 ::core::result::Result::Ok(mi) => *mi,
76 ::core::result::Result::Err(e) => {
77 panic!(
78 "method lookup failed: {}
79::{}
80: {}
81",
82 <PlatformAutoDetector as ::unity::ClassIdentity>::NAME,
83 "set_IsRunningOnMono",
84 e
85 )
86 },
87 }
88 }
89 }
90 #[doc(hidden)]
91 #[allow(non_snake_case)]
92 pub mod __lookup_get_is_running_on_clr4 {
93 use super::*;
94 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
95 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
96 ::unity::lookup::method_info_on_class_with_signature(
97 <PlatformAutoDetector as ::unity::ClassIdentity>::class(),
98 "get_IsRunningOnClr4",
99 0,
100 param_types,
101 true,
102 )
103 });
104 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
105 match &*METHOD {
106 ::core::result::Result::Ok(mi) => *mi,
107 ::core::result::Result::Err(e) => {
108 panic!(
109 "method lookup failed: {}
110::{}
111: {}
112",
113 <PlatformAutoDetector as ::unity::ClassIdentity>::NAME,
114 "get_IsRunningOnClr4",
115 e
116 )
117 },
118 }
119 }
120 }
121 #[doc(hidden)]
122 #[allow(non_snake_case)]
123 pub mod __lookup_set_is_running_on_clr4 {
124 use super::*;
125 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
126 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<bool as ::unity::IlType>::il_type()];
127 ::unity::lookup::method_info_on_class_with_signature(
128 <PlatformAutoDetector as ::unity::ClassIdentity>::class(),
129 "set_IsRunningOnClr4",
130 1,
131 param_types,
132 true,
133 )
134 });
135 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136 match &*METHOD {
137 ::core::result::Result::Ok(mi) => *mi,
138 ::core::result::Result::Err(e) => {
139 panic!(
140 "method lookup failed: {}
141::{}
142: {}
143",
144 <PlatformAutoDetector as ::unity::ClassIdentity>::NAME,
145 "set_IsRunningOnClr4",
146 e
147 )
148 },
149 }
150 }
151 }
152 #[doc(hidden)]
153 #[allow(non_snake_case)]
154 pub mod __lookup_get_is_running_on_unity {
155 use super::*;
156 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
157 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
158 ::unity::lookup::method_info_on_class_with_signature(
159 <PlatformAutoDetector as ::unity::ClassIdentity>::class(),
160 "get_IsRunningOnUnity",
161 0,
162 param_types,
163 true,
164 )
165 });
166 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167 match &*METHOD {
168 ::core::result::Result::Ok(mi) => *mi,
169 ::core::result::Result::Err(e) => {
170 panic!(
171 "method lookup failed: {}
172::{}
173: {}
174",
175 <PlatformAutoDetector as ::unity::ClassIdentity>::NAME,
176 "get_IsRunningOnUnity",
177 e
178 )
179 },
180 }
181 }
182 }
183 #[doc(hidden)]
184 #[allow(non_snake_case)]
185 pub mod __lookup_set_is_running_on_unity {
186 use super::*;
187 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
188 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<bool as ::unity::IlType>::il_type()];
189 ::unity::lookup::method_info_on_class_with_signature(
190 <PlatformAutoDetector as ::unity::ClassIdentity>::class(),
191 "set_IsRunningOnUnity",
192 1,
193 param_types,
194 true,
195 )
196 });
197 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198 match &*METHOD {
199 ::core::result::Result::Ok(mi) => *mi,
200 ::core::result::Result::Err(e) => {
201 panic!(
202 "method lookup failed: {}
203::{}
204: {}
205",
206 <PlatformAutoDetector as ::unity::ClassIdentity>::NAME,
207 "set_IsRunningOnUnity",
208 e
209 )
210 },
211 }
212 }
213 }
214 #[doc(hidden)]
215 #[allow(non_snake_case)]
216 pub mod __lookup_get_is_portable_framework {
217 use super::*;
218 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
219 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
220 ::unity::lookup::method_info_on_class_with_signature(
221 <PlatformAutoDetector as ::unity::ClassIdentity>::class(),
222 "get_IsPortableFramework",
223 0,
224 param_types,
225 true,
226 )
227 });
228 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
229 match &*METHOD {
230 ::core::result::Result::Ok(mi) => *mi,
231 ::core::result::Result::Err(e) => {
232 panic!(
233 "method lookup failed: {}
234::{}
235: {}
236",
237 <PlatformAutoDetector as ::unity::ClassIdentity>::NAME,
238 "get_IsPortableFramework",
239 e
240 )
241 },
242 }
243 }
244 }
245 #[doc(hidden)]
246 #[allow(non_snake_case)]
247 pub mod __lookup_set_is_portable_framework {
248 use super::*;
249 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
250 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<bool as ::unity::IlType>::il_type()];
251 ::unity::lookup::method_info_on_class_with_signature(
252 <PlatformAutoDetector as ::unity::ClassIdentity>::class(),
253 "set_IsPortableFramework",
254 1,
255 param_types,
256 true,
257 )
258 });
259 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260 match &*METHOD {
261 ::core::result::Result::Ok(mi) => *mi,
262 ::core::result::Result::Err(e) => {
263 panic!(
264 "method lookup failed: {}
265::{}
266: {}
267",
268 <PlatformAutoDetector as ::unity::ClassIdentity>::NAME,
269 "set_IsPortableFramework",
270 e
271 )
272 },
273 }
274 }
275 }
276 #[doc(hidden)]
277 #[allow(non_snake_case)]
278 pub mod __lookup_get_is_unity_native {
279 use super::*;
280 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
281 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
282 ::unity::lookup::method_info_on_class_with_signature(
283 <PlatformAutoDetector as ::unity::ClassIdentity>::class(),
284 "get_IsUnityNative",
285 0,
286 param_types,
287 true,
288 )
289 });
290 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
291 match &*METHOD {
292 ::core::result::Result::Ok(mi) => *mi,
293 ::core::result::Result::Err(e) => {
294 panic!(
295 "method lookup failed: {}
296::{}
297: {}
298",
299 <PlatformAutoDetector as ::unity::ClassIdentity>::NAME,
300 "get_IsUnityNative",
301 e
302 )
303 },
304 }
305 }
306 }
307 #[doc(hidden)]
308 #[allow(non_snake_case)]
309 pub mod __lookup_set_is_unity_native {
310 use super::*;
311 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
312 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<bool as ::unity::IlType>::il_type()];
313 ::unity::lookup::method_info_on_class_with_signature(
314 <PlatformAutoDetector as ::unity::ClassIdentity>::class(),
315 "set_IsUnityNative",
316 1,
317 param_types,
318 true,
319 )
320 });
321 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
322 match &*METHOD {
323 ::core::result::Result::Ok(mi) => *mi,
324 ::core::result::Result::Err(e) => {
325 panic!(
326 "method lookup failed: {}
327::{}
328: {}
329",
330 <PlatformAutoDetector as ::unity::ClassIdentity>::NAME,
331 "set_IsUnityNative",
332 e
333 )
334 },
335 }
336 }
337 }
338 #[doc(hidden)]
339 #[allow(non_snake_case)]
340 pub mod __lookup_get_is_unity_il2cpp {
341 use super::*;
342 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
343 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
344 ::unity::lookup::method_info_on_class_with_signature(
345 <PlatformAutoDetector as ::unity::ClassIdentity>::class(),
346 "get_IsUnityIL2CPP",
347 0,
348 param_types,
349 true,
350 )
351 });
352 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
353 match &*METHOD {
354 ::core::result::Result::Ok(mi) => *mi,
355 ::core::result::Result::Err(e) => {
356 panic!(
357 "method lookup failed: {}
358::{}
359: {}
360",
361 <PlatformAutoDetector as ::unity::ClassIdentity>::NAME,
362 "get_IsUnityIL2CPP",
363 e
364 )
365 },
366 }
367 }
368 }
369 #[doc(hidden)]
370 #[allow(non_snake_case)]
371 pub mod __lookup_set_is_unity_il2cpp {
372 use super::*;
373 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
374 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<bool as ::unity::IlType>::il_type()];
375 ::unity::lookup::method_info_on_class_with_signature(
376 <PlatformAutoDetector as ::unity::ClassIdentity>::class(),
377 "set_IsUnityIL2CPP",
378 1,
379 param_types,
380 true,
381 )
382 });
383 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
384 match &*METHOD {
385 ::core::result::Result::Ok(mi) => *mi,
386 ::core::result::Result::Err(e) => {
387 panic!(
388 "method lookup failed: {}
389::{}
390: {}
391",
392 <PlatformAutoDetector as ::unity::ClassIdentity>::NAME,
393 "set_IsUnityIL2CPP",
394 e
395 )
396 },
397 }
398 }
399 }
400 #[doc(hidden)]
401 #[allow(non_snake_case)]
402 pub mod __lookup_get_is_running_on_aot {
403 use super::*;
404 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
405 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
406 ::unity::lookup::method_info_on_class_with_signature(
407 <PlatformAutoDetector as ::unity::ClassIdentity>::class(),
408 "get_IsRunningOnAOT",
409 0,
410 param_types,
411 true,
412 )
413 });
414 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
415 match &*METHOD {
416 ::core::result::Result::Ok(mi) => *mi,
417 ::core::result::Result::Err(e) => {
418 panic!(
419 "method lookup failed: {}
420::{}
421: {}
422",
423 <PlatformAutoDetector as ::unity::ClassIdentity>::NAME,
424 "get_IsRunningOnAOT",
425 e
426 )
427 },
428 }
429 }
430 }
431 #[doc(hidden)]
432 #[allow(non_snake_case)]
433 pub mod __lookup_auto_detect_platform_flags {
434 use super::*;
435 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
436 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
437 ::unity::lookup::method_info_on_class_with_signature(
438 <PlatformAutoDetector as ::unity::ClassIdentity>::class(),
439 "AutoDetectPlatformFlags",
440 0,
441 param_types,
442 true,
443 )
444 });
445 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
446 match &*METHOD {
447 ::core::result::Result::Ok(mi) => *mi,
448 ::core::result::Result::Err(e) => {
449 panic!(
450 "method lookup failed: {}
451::{}
452: {}
453",
454 <PlatformAutoDetector as ::unity::ClassIdentity>::NAME,
455 "AutoDetectPlatformFlags",
456 e
457 )
458 },
459 }
460 }
461 }
462 #[doc(hidden)]
463 #[allow(non_snake_case)]
464 pub mod __lookup_get_default_platform {
465 use super::*;
466 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
467 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
468 ::unity::lookup::method_info_on_class_with_signature(
469 <PlatformAutoDetector as ::unity::ClassIdentity>::class(),
470 "GetDefaultPlatform",
471 0,
472 param_types,
473 true,
474 )
475 });
476 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
477 match &*METHOD {
478 ::core::result::Result::Ok(mi) => *mi,
479 ::core::result::Result::Err(e) => {
480 panic!(
481 "method lookup failed: {}
482::{}
483: {}
484",
485 <PlatformAutoDetector as ::unity::ClassIdentity>::NAME,
486 "GetDefaultPlatform",
487 e
488 )
489 },
490 }
491 }
492 }
493 #[doc(hidden)]
494 #[allow(non_snake_case)]
495 pub mod __lookup_get_default_script_loader {
496 use super::*;
497 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
498 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
499 ::unity::lookup::method_info_on_class_with_signature(
500 <PlatformAutoDetector as ::unity::ClassIdentity>::class(),
501 "GetDefaultScriptLoader",
502 0,
503 param_types,
504 true,
505 )
506 });
507 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
508 match &*METHOD {
509 ::core::result::Result::Ok(mi) => *mi,
510 ::core::result::Result::Err(e) => {
511 panic!(
512 "method lookup failed: {}
513::{}
514: {}
515",
516 <PlatformAutoDetector as ::unity::ClassIdentity>::NAME,
517 "GetDefaultScriptLoader",
518 e
519 )
520 },
521 }
522 }
523 }
524 #[doc(hidden)]
525 #[allow(non_snake_case)]
526 pub mod __lookup_cctor {
527 use super::*;
528 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
529 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
530 ::unity::lookup::method_info_on_class_with_signature(
531 <PlatformAutoDetector as ::unity::ClassIdentity>::class(),
532 ".cctor",
533 0,
534 param_types,
535 true,
536 )
537 });
538 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
539 match &*METHOD {
540 ::core::result::Result::Ok(mi) => *mi,
541 ::core::result::Result::Err(e) => {
542 panic!(
543 "method lookup failed: {}
544::{}
545: {}
546",
547 <PlatformAutoDetector as ::unity::ClassIdentity>::NAME,
548 ".cctor",
549 e
550 )
551 },
552 }
553 }
554 }
555}
556
557#[cfg(feature = "moon_sharp-interpreter-platforms-platformautodetector")]
558impl PlatformAutoDetector {
559 #[doc = "`get_IsRunningOnMono()` overload"]
560 pub fn get_is_running_on_mono() -> bool {
561 unsafe {
562 ::unity::il2cpp_call!(__PlatformAutoDetector_unity_raw::__lookup_get_is_running_on_mono::get_method_info().method_ptr,bool;
563 )
564 }
565 }
566
567 #[doc = "`set_IsRunningOnMono(bool)` overload"]
568 pub fn set_is_running_on_mono(value: impl ::core::convert::Into<bool>) -> () {
569 unsafe {
570 ::unity::il2cpp_call!(__PlatformAutoDetector_unity_raw::__lookup_set_is_running_on_mono::get_method_info().method_ptr,();
571(bool)::core::convert::Into::into(value))
572 }
573 }
574
575 #[doc = "`get_IsRunningOnClr4()` overload"]
576 pub fn get_is_running_on_clr4() -> bool {
577 unsafe {
578 ::unity::il2cpp_call!(__PlatformAutoDetector_unity_raw::__lookup_get_is_running_on_clr4::get_method_info().method_ptr,bool;
579 )
580 }
581 }
582
583 #[doc = "`set_IsRunningOnClr4(bool)` overload"]
584 pub fn set_is_running_on_clr4(value: impl ::core::convert::Into<bool>) -> () {
585 unsafe {
586 ::unity::il2cpp_call!(__PlatformAutoDetector_unity_raw::__lookup_set_is_running_on_clr4::get_method_info().method_ptr,();
587(bool)::core::convert::Into::into(value))
588 }
589 }
590
591 #[doc = "`get_IsRunningOnUnity()` overload"]
592 pub fn get_is_running_on_unity() -> bool {
593 unsafe {
594 ::unity::il2cpp_call!(__PlatformAutoDetector_unity_raw::__lookup_get_is_running_on_unity::get_method_info().method_ptr,bool;
595 )
596 }
597 }
598
599 #[doc = "`set_IsRunningOnUnity(bool)` overload"]
600 pub fn set_is_running_on_unity(value: impl ::core::convert::Into<bool>) -> () {
601 unsafe {
602 ::unity::il2cpp_call!(__PlatformAutoDetector_unity_raw::__lookup_set_is_running_on_unity::get_method_info().method_ptr,();
603(bool)::core::convert::Into::into(value))
604 }
605 }
606
607 #[doc = "`get_IsPortableFramework()` overload"]
608 pub fn get_is_portable_framework() -> bool {
609 unsafe {
610 ::unity::il2cpp_call!(__PlatformAutoDetector_unity_raw::__lookup_get_is_portable_framework::get_method_info().method_ptr,bool;
611 )
612 }
613 }
614
615 #[doc = "`set_IsPortableFramework(bool)` overload"]
616 pub fn set_is_portable_framework(value: impl ::core::convert::Into<bool>) -> () {
617 unsafe {
618 ::unity::il2cpp_call!(__PlatformAutoDetector_unity_raw::__lookup_set_is_portable_framework::get_method_info().method_ptr,();
619(bool)::core::convert::Into::into(value))
620 }
621 }
622
623 #[doc = "`get_IsUnityNative()` overload"]
624 pub fn get_is_unity_native() -> bool {
625 unsafe {
626 ::unity::il2cpp_call!(__PlatformAutoDetector_unity_raw::__lookup_get_is_unity_native::get_method_info().method_ptr,bool;
627 )
628 }
629 }
630
631 #[doc = "`set_IsUnityNative(bool)` overload"]
632 pub fn set_is_unity_native(value: impl ::core::convert::Into<bool>) -> () {
633 unsafe {
634 ::unity::il2cpp_call!(__PlatformAutoDetector_unity_raw::__lookup_set_is_unity_native::get_method_info().method_ptr,();
635(bool)::core::convert::Into::into(value))
636 }
637 }
638
639 #[doc = "`get_IsUnityIL2CPP()` overload"]
640 pub fn get_is_unity_il2cpp() -> bool {
641 unsafe {
642 ::unity::il2cpp_call!(__PlatformAutoDetector_unity_raw::__lookup_get_is_unity_il2cpp::get_method_info().method_ptr,bool;
643 )
644 }
645 }
646
647 #[doc = "`set_IsUnityIL2CPP(bool)` overload"]
648 pub fn set_is_unity_il2cpp(value: impl ::core::convert::Into<bool>) -> () {
649 unsafe {
650 ::unity::il2cpp_call!(__PlatformAutoDetector_unity_raw::__lookup_set_is_unity_il2cpp::get_method_info().method_ptr,();
651(bool)::core::convert::Into::into(value))
652 }
653 }
654
655 #[doc = "`get_IsRunningOnAOT()` overload"]
656 pub fn get_is_running_on_aot() -> bool {
657 unsafe {
658 ::unity::il2cpp_call!(__PlatformAutoDetector_unity_raw::__lookup_get_is_running_on_aot::get_method_info().method_ptr,bool;
659 )
660 }
661 }
662
663 #[doc = "`AutoDetectPlatformFlags()` overload"]
664 pub fn auto_detect_platform_flags() -> () {
665 unsafe {
666 ::unity::il2cpp_call!(__PlatformAutoDetector_unity_raw::__lookup_auto_detect_platform_flags::get_method_info().method_ptr,();
667 )
668 }
669 }
670
671 #[doc = "`GetDefaultPlatform()` overload"]
672 pub fn get_default_platform() -> crate::moon_sharp::interpreter::platforms::iplatformaccessor::IPlatformAccessor {
673 unsafe {
674 ::unity::il2cpp_call!(__PlatformAutoDetector_unity_raw::__lookup_get_default_platform::get_method_info().method_ptr,crate::moon_sharp::interpreter::platforms::iplatformaccessor::IPlatformAccessor;
675 )
676 }
677 }
678
679 #[doc = "`GetDefaultScriptLoader()` overload"]
680 pub fn get_default_script_loader() -> crate::moon_sharp::interpreter::loaders::iscriptloader::IScriptLoader {
681 unsafe {
682 ::unity::il2cpp_call!(__PlatformAutoDetector_unity_raw::__lookup_get_default_script_loader::get_method_info().method_ptr,crate::moon_sharp::interpreter::loaders::iscriptloader::IScriptLoader;
683 )
684 }
685 }
686
687 #[doc = "`.cctor()` overload"]
688 pub fn cctor() -> () {
689 unsafe {
690 ::unity::il2cpp_call!(__PlatformAutoDetector_unity_raw::__lookup_cctor::get_method_info().method_ptr,();
691 )
692 }
693 }
694}
695
696#[cfg(feature = "moon_sharp-interpreter-platforms-platformautodetector")]
697impl PlatformAutoDetector {
698 pub fn get_is_running_on_mono_method_info() -> &'static ::unity::il2cpp::MethodInfo {
699 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
700 }
701
702 pub fn set_is_running_on_mono_method_info() -> &'static ::unity::il2cpp::MethodInfo {
703 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
704 }
705
706 pub fn get_is_running_on_clr4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
707 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
708 }
709
710 pub fn set_is_running_on_clr4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
711 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
712 }
713
714 pub fn get_is_running_on_unity_method_info() -> &'static ::unity::il2cpp::MethodInfo {
715 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
716 }
717
718 pub fn set_is_running_on_unity_method_info() -> &'static ::unity::il2cpp::MethodInfo {
719 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
720 }
721
722 pub fn get_is_portable_framework_method_info() -> &'static ::unity::il2cpp::MethodInfo {
723 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
724 }
725
726 pub fn set_is_portable_framework_method_info() -> &'static ::unity::il2cpp::MethodInfo {
727 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
728 }
729
730 pub fn get_is_unity_native_method_info() -> &'static ::unity::il2cpp::MethodInfo {
731 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
732 }
733
734 pub fn set_is_unity_native_method_info() -> &'static ::unity::il2cpp::MethodInfo {
735 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
736 }
737
738 pub fn get_is_unity_il2cpp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
739 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
740 }
741
742 pub fn set_is_unity_il2cpp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
743 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
744 }
745
746 pub fn get_is_running_on_aot_method_info() -> &'static ::unity::il2cpp::MethodInfo {
747 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
748 }
749
750 pub fn auto_detect_platform_flags_method_info() -> &'static ::unity::il2cpp::MethodInfo {
751 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
752 }
753
754 pub fn get_default_platform_method_info() -> &'static ::unity::il2cpp::MethodInfo {
755 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
756 }
757
758 pub fn get_default_script_loader_method_info() -> &'static ::unity::il2cpp::MethodInfo {
759 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
760 }
761
762 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
763 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
764 }
765}
766
767#[cfg(feature = "moon_sharp-interpreter-platforms-platformautodetector")]
768#[doc(hidden)]
769pub mod prelude {
770 pub use super::{IPlatformAutoDetector, PlatformAutoDetector};
771 pub use crate::system::object::IObject;
772 #[cfg(feature = "system-object")]
773 pub use crate::system::object::IObjectMethods;
774}