Skip to main content

engage/generated/moon_sharp/interpreter/platforms/
platformaccessorbase.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-platforms-platformaccessorbase-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/platformaccessorbase/PlatformAccessorBase.md"))]
11    #[::unity::class(namespace = "MoonSharp.Interpreter.Platforms", name = "PlatformAccessorBase")]
12    #[parent(crate::system::object::Object)]
13    pub struct PlatformAccessorBase {}
14}
15
16#[cfg(feature = "moon_sharp-interpreter-platforms-platformaccessorbase-types")]
17pub use __types::*;
18
19#[cfg(feature = "moon_sharp-interpreter-platforms-platformaccessorbase")]
20#[doc(hidden)]
21#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
22mod __PlatformAccessorBase_unity_raw {
23    use super::*;
24    #[doc(hidden)]
25    #[allow(non_snake_case)]
26    pub mod __lookup_get_unity_runtime_name {
27        use super::*;
28        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
29            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
30            ::unity::lookup::method_info_on_class_with_signature(
31                <PlatformAccessorBase as ::unity::ClassIdentity>::class(),
32                "GetUnityRuntimeName",
33                0,
34                param_types,
35                false,
36            )
37        });
38        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
39            match &*METHOD {
40                ::core::result::Result::Ok(mi) => *mi,
41                ::core::result::Result::Err(e) => {
42                    panic!(
43                        "method lookup failed: {}
44::{}
45: {}
46",
47                        <PlatformAccessorBase as ::unity::ClassIdentity>::NAME,
48                        "GetUnityRuntimeName",
49                        e
50                    )
51                },
52            }
53        }
54    }
55    #[doc(hidden)]
56    #[allow(non_snake_case)]
57    pub mod __lookup_get_unity_platform_name {
58        use super::*;
59        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
60            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
61            ::unity::lookup::method_info_on_class_with_signature(
62                <PlatformAccessorBase as ::unity::ClassIdentity>::class(),
63                "GetUnityPlatformName",
64                0,
65                param_types,
66                false,
67            )
68        });
69        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
70            match &*METHOD {
71                ::core::result::Result::Ok(mi) => *mi,
72                ::core::result::Result::Err(e) => {
73                    panic!(
74                        "method lookup failed: {}
75::{}
76: {}
77",
78                        <PlatformAccessorBase as ::unity::ClassIdentity>::NAME,
79                        "GetUnityPlatformName",
80                        e
81                    )
82                },
83            }
84        }
85    }
86    #[doc(hidden)]
87    #[allow(non_snake_case)]
88    pub mod __lookup_ctor {
89        use super::*;
90        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
91            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
92            ::unity::lookup::method_info_on_class_with_signature(
93                <PlatformAccessorBase as ::unity::ClassIdentity>::class(),
94                ".ctor",
95                0,
96                param_types,
97                false,
98            )
99        });
100        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
101            match &*METHOD {
102                ::core::result::Result::Ok(mi) => *mi,
103                ::core::result::Result::Err(e) => {
104                    panic!(
105                        "method lookup failed: {}
106::{}
107: {}
108",
109                        <PlatformAccessorBase as ::unity::ClassIdentity>::NAME,
110                        ".ctor",
111                        e
112                    )
113                },
114            }
115        }
116    }
117}
118
119#[cfg(feature = "moon_sharp-interpreter-platforms-platformaccessorbase")]
120pub trait IPlatformAccessorBaseMethods: IPlatformAccessorBase {
121    #[doc = "`GetPlatformNamePrefix()` overload"]
122    fn get_platform_name_prefix(self) -> ::unity::Il2CppString {
123        unsafe {
124            let __receiver = <PlatformAccessorBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125            {
126                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
127                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
128                    panic!(
129                        "unity: virtual slot {}
130 out of range (vtable len {}
131) on the runtime class behind {}
132 (method `{}
133`)",
134                        18usize,
135                        __vt.len(),
136                        <PlatformAccessorBase as ::unity::ClassIdentity>::NAME,
137                        "GetPlatformNamePrefix",
138                    )
139                });
140                let __inner: extern "C" fn(PlatformAccessorBase, ::unity::OptionalMethod) -> ::unity::Il2CppString =
141                    ::core::mem::transmute(__vi.method_ptr);
142                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
143                __inner(__receiver, __mi)
144            }
145        }
146    }
147    #[doc = "`GetPlatformName()` overload"]
148    fn get_platform_name(self) -> ::unity::Il2CppString {
149        unsafe {
150            let __receiver = <PlatformAccessorBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151            {
152                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
153                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
154                    panic!(
155                        "unity: virtual slot {}
156 out of range (vtable len {}
157) on the runtime class behind {}
158 (method `{}
159`)",
160                        7usize,
161                        __vt.len(),
162                        <PlatformAccessorBase as ::unity::ClassIdentity>::NAME,
163                        "GetPlatformName",
164                    )
165                });
166                let __inner: extern "C" fn(PlatformAccessorBase, ::unity::OptionalMethod) -> ::unity::Il2CppString =
167                    ::core::mem::transmute(__vi.method_ptr);
168                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
169                __inner(__receiver, __mi)
170            }
171        }
172    }
173    #[doc = "`GetUnityRuntimeName()` overload"]
174    fn get_unity_runtime_name(self) -> ::unity::Il2CppString {
175        unsafe {
176            let __receiver = <PlatformAccessorBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
177            ::unity::il2cpp_call!(__PlatformAccessorBase_unity_raw::__lookup_get_unity_runtime_name::get_method_info().method_ptr, ::unity::Il2CppString;
178(PlatformAccessorBase)__receiver)
179        }
180    }
181    #[doc = "`GetUnityPlatformName()` overload"]
182    fn get_unity_platform_name(self) -> ::unity::Il2CppString {
183        unsafe {
184            let __receiver = <PlatformAccessorBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
185            ::unity::il2cpp_call!(__PlatformAccessorBase_unity_raw::__lookup_get_unity_platform_name::get_method_info().method_ptr, ::unity::Il2CppString;
186(PlatformAccessorBase)__receiver)
187        }
188    }
189    #[doc = "`DefaultPrint(::unity::Il2CppString)` overload"]
190    fn default_print(self, content: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
191        unsafe {
192            let __receiver = <PlatformAccessorBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
193            {
194                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
195                let __vi = *__vt.get(19usize).unwrap_or_else(|| {
196                    panic!(
197                        "unity: virtual slot {}
198 out of range (vtable len {}
199) on the runtime class behind {}
200 (method `{}
201`)",
202                        19usize,
203                        __vt.len(),
204                        <PlatformAccessorBase as ::unity::ClassIdentity>::NAME,
205                        "DefaultPrint",
206                    )
207                });
208                let __inner: extern "C" fn(PlatformAccessorBase, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
209                    ::core::mem::transmute(__vi.method_ptr);
210                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
211                __inner(__receiver, ::core::convert::Into::into(content), __mi)
212            }
213        }
214    }
215    #[doc = "`DefaultInput()` overload"]
216    fn default_input(self) -> ::unity::Il2CppString {
217        unsafe {
218            let __receiver = <PlatformAccessorBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
219            {
220                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
221                let __vi = *__vt.get(20usize).unwrap_or_else(|| {
222                    panic!(
223                        "unity: virtual slot {}
224 out of range (vtable len {}
225) on the runtime class behind {}
226 (method `{}
227`)",
228                        20usize,
229                        __vt.len(),
230                        <PlatformAccessorBase as ::unity::ClassIdentity>::NAME,
231                        "DefaultInput",
232                    )
233                });
234                let __inner: extern "C" fn(PlatformAccessorBase, ::unity::OptionalMethod) -> ::unity::Il2CppString =
235                    ::core::mem::transmute(__vi.method_ptr);
236                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
237                __inner(__receiver, __mi)
238            }
239        }
240    }
241    #[doc = "`DefaultInput(::unity::Il2CppString)` overload"]
242    fn default_input_2(self, prompt: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
243        unsafe {
244            let __receiver = <PlatformAccessorBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
245            {
246                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
247                let __vi = *__vt.get(21usize).unwrap_or_else(|| {
248                    panic!(
249                        "unity: virtual slot {}
250 out of range (vtable len {}
251) on the runtime class behind {}
252 (method `{}
253`)",
254                        21usize,
255                        __vt.len(),
256                        <PlatformAccessorBase as ::unity::ClassIdentity>::NAME,
257                        "DefaultInput",
258                    )
259                });
260                let __inner: extern "C" fn(PlatformAccessorBase, ::unity::Il2CppString, ::unity::OptionalMethod) -> ::unity::Il2CppString =
261                    ::core::mem::transmute(__vi.method_ptr);
262                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
263                __inner(__receiver, ::core::convert::Into::into(prompt), __mi)
264            }
265        }
266    }
267    #[doc = "`IO_GetStandardStream(crate::moon_sharp::interpreter::platforms::standardfiletype::StandardFileType)` overload"]
268    fn io_get_standard_stream(
269        self,
270        r#type: impl ::core::convert::Into<crate::moon_sharp::interpreter::platforms::standardfiletype::StandardFileType>,
271    ) -> crate::system::io::stream::Stream {
272        unsafe {
273            let __receiver = <PlatformAccessorBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
274            {
275                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
276                let __vi = *__vt.get(23usize).unwrap_or_else(|| {
277                    panic!(
278                        "unity: virtual slot {}
279 out of range (vtable len {}
280) on the runtime class behind {}
281 (method `{}
282`)",
283                        23usize,
284                        __vt.len(),
285                        <PlatformAccessorBase as ::unity::ClassIdentity>::NAME,
286                        "IO_GetStandardStream",
287                    )
288                });
289                let __inner: extern "C" fn(
290                    PlatformAccessorBase,
291                    crate::moon_sharp::interpreter::platforms::standardfiletype::StandardFileType,
292                    ::unity::OptionalMethod,
293                ) -> crate::system::io::stream::Stream = ::core::mem::transmute(__vi.method_ptr);
294                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
295                __inner(__receiver, ::core::convert::Into::into(r#type), __mi)
296            }
297        }
298    }
299    #[doc = "`IO_OS_GetTempFilename()` overload"]
300    fn io_os_get_temp_filename(self) -> ::unity::Il2CppString {
301        unsafe {
302            let __receiver = <PlatformAccessorBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
303            {
304                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
305                let __vi = *__vt.get(24usize).unwrap_or_else(|| {
306                    panic!(
307                        "unity: virtual slot {}
308 out of range (vtable len {}
309) on the runtime class behind {}
310 (method `{}
311`)",
312                        24usize,
313                        __vt.len(),
314                        <PlatformAccessorBase as ::unity::ClassIdentity>::NAME,
315                        "IO_OS_GetTempFilename",
316                    )
317                });
318                let __inner: extern "C" fn(PlatformAccessorBase, ::unity::OptionalMethod) -> ::unity::Il2CppString =
319                    ::core::mem::transmute(__vi.method_ptr);
320                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
321                __inner(__receiver, __mi)
322            }
323        }
324    }
325    #[doc = "`OS_ExitFast(i32)` overload"]
326    fn os_exit_fast(self, exit_code: impl ::core::convert::Into<i32>) -> () {
327        unsafe {
328            let __receiver = <PlatformAccessorBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
329            {
330                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
331                let __vi = *__vt.get(25usize).unwrap_or_else(|| {
332                    panic!(
333                        "unity: virtual slot {}
334 out of range (vtable len {}
335) on the runtime class behind {}
336 (method `{}
337`)",
338                        25usize,
339                        __vt.len(),
340                        <PlatformAccessorBase as ::unity::ClassIdentity>::NAME,
341                        "OS_ExitFast",
342                    )
343                });
344                let __inner: extern "C" fn(PlatformAccessorBase, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
345                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
346                __inner(__receiver, ::core::convert::Into::into(exit_code), __mi)
347            }
348        }
349    }
350    #[doc = "`OS_FileExists(::unity::Il2CppString)` overload"]
351    fn os_file_exists(self, file: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
352        unsafe {
353            let __receiver = <PlatformAccessorBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
354            {
355                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
356                let __vi = *__vt.get(26usize).unwrap_or_else(|| {
357                    panic!(
358                        "unity: virtual slot {}
359 out of range (vtable len {}
360) on the runtime class behind {}
361 (method `{}
362`)",
363                        26usize,
364                        __vt.len(),
365                        <PlatformAccessorBase as ::unity::ClassIdentity>::NAME,
366                        "OS_FileExists",
367                    )
368                });
369                let __inner: extern "C" fn(PlatformAccessorBase, ::unity::Il2CppString, ::unity::OptionalMethod) -> bool =
370                    ::core::mem::transmute(__vi.method_ptr);
371                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
372                __inner(__receiver, ::core::convert::Into::into(file), __mi)
373            }
374        }
375    }
376    #[doc = "`OS_FileDelete(::unity::Il2CppString)` overload"]
377    fn os_file_delete(self, file: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
378        unsafe {
379            let __receiver = <PlatformAccessorBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
380            {
381                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
382                let __vi = *__vt.get(27usize).unwrap_or_else(|| {
383                    panic!(
384                        "unity: virtual slot {}
385 out of range (vtable len {}
386) on the runtime class behind {}
387 (method `{}
388`)",
389                        27usize,
390                        __vt.len(),
391                        <PlatformAccessorBase as ::unity::ClassIdentity>::NAME,
392                        "OS_FileDelete",
393                    )
394                });
395                let __inner: extern "C" fn(PlatformAccessorBase, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
396                    ::core::mem::transmute(__vi.method_ptr);
397                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
398                __inner(__receiver, ::core::convert::Into::into(file), __mi)
399            }
400        }
401    }
402    #[doc = "`OS_FileMove(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
403    fn os_file_move(self, src: impl ::core::convert::Into<::unity::Il2CppString>, dst: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
404        unsafe {
405            let __receiver = <PlatformAccessorBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
406            {
407                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
408                let __vi = *__vt.get(28usize).unwrap_or_else(|| {
409                    panic!(
410                        "unity: virtual slot {}
411 out of range (vtable len {}
412) on the runtime class behind {}
413 (method `{}
414`)",
415                        28usize,
416                        __vt.len(),
417                        <PlatformAccessorBase as ::unity::ClassIdentity>::NAME,
418                        "OS_FileMove",
419                    )
420                });
421                let __inner: extern "C" fn(PlatformAccessorBase, ::unity::Il2CppString, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
422                    ::core::mem::transmute(__vi.method_ptr);
423                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
424                __inner(__receiver, ::core::convert::Into::into(src), ::core::convert::Into::into(dst), __mi)
425            }
426        }
427    }
428    #[doc = "`OS_Execute(::unity::Il2CppString)` overload"]
429    fn os_execute(self, cmdline: impl ::core::convert::Into<::unity::Il2CppString>) -> i32 {
430        unsafe {
431            let __receiver = <PlatformAccessorBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
432            {
433                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
434                let __vi = *__vt.get(29usize).unwrap_or_else(|| {
435                    panic!(
436                        "unity: virtual slot {}
437 out of range (vtable len {}
438) on the runtime class behind {}
439 (method `{}
440`)",
441                        29usize,
442                        __vt.len(),
443                        <PlatformAccessorBase as ::unity::ClassIdentity>::NAME,
444                        "OS_Execute",
445                    )
446                });
447                let __inner: extern "C" fn(PlatformAccessorBase, ::unity::Il2CppString, ::unity::OptionalMethod) -> i32 =
448                    ::core::mem::transmute(__vi.method_ptr);
449                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
450                __inner(__receiver, ::core::convert::Into::into(cmdline), __mi)
451            }
452        }
453    }
454    #[doc = "`FilterSupportedCoreModules(crate::moon_sharp::interpreter::coremodules::CoreModules)` overload"]
455    fn filter_supported_core_modules(
456        self,
457        module: impl ::core::convert::Into<crate::moon_sharp::interpreter::coremodules::CoreModules>,
458    ) -> crate::moon_sharp::interpreter::coremodules::CoreModules {
459        unsafe {
460            let __receiver = <PlatformAccessorBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
461            {
462                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
463                let __vi = *__vt.get(30usize).unwrap_or_else(|| {
464                    panic!(
465                        "unity: virtual slot {}
466 out of range (vtable len {}
467) on the runtime class behind {}
468 (method `{}
469`)",
470                        30usize,
471                        __vt.len(),
472                        <PlatformAccessorBase as ::unity::ClassIdentity>::NAME,
473                        "FilterSupportedCoreModules",
474                    )
475                });
476                let __inner: extern "C" fn(
477                    PlatformAccessorBase,
478                    crate::moon_sharp::interpreter::coremodules::CoreModules,
479                    ::unity::OptionalMethod,
480                ) -> crate::moon_sharp::interpreter::coremodules::CoreModules = ::core::mem::transmute(__vi.method_ptr);
481                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
482                __inner(__receiver, ::core::convert::Into::into(module), __mi)
483            }
484        }
485    }
486    #[doc = "`GetEnvironmentVariable(::unity::Il2CppString)` overload"]
487    fn get_environment_variable(self, envvarname: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
488        unsafe {
489            let __receiver = <PlatformAccessorBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
490            {
491                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
492                let __vi = *__vt.get(31usize).unwrap_or_else(|| {
493                    panic!(
494                        "unity: virtual slot {}
495 out of range (vtable len {}
496) on the runtime class behind {}
497 (method `{}
498`)",
499                        31usize,
500                        __vt.len(),
501                        <PlatformAccessorBase as ::unity::ClassIdentity>::NAME,
502                        "GetEnvironmentVariable",
503                    )
504                });
505                let __inner: extern "C" fn(PlatformAccessorBase, ::unity::Il2CppString, ::unity::OptionalMethod) -> ::unity::Il2CppString =
506                    ::core::mem::transmute(__vi.method_ptr);
507                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
508                __inner(__receiver, ::core::convert::Into::into(envvarname), __mi)
509            }
510        }
511    }
512    #[doc = "`IsRunningOnAOT()` overload"]
513    fn is_running_on_aot(self) -> bool {
514        unsafe {
515            let __receiver = <PlatformAccessorBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
516            {
517                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
518                let __vi = *__vt.get(32usize).unwrap_or_else(|| {
519                    panic!(
520                        "unity: virtual slot {}
521 out of range (vtable len {}
522) on the runtime class behind {}
523 (method `{}
524`)",
525                        32usize,
526                        __vt.len(),
527                        <PlatformAccessorBase as ::unity::ClassIdentity>::NAME,
528                        "IsRunningOnAOT",
529                    )
530                });
531                let __inner: extern "C" fn(PlatformAccessorBase, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
532                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
533                __inner(__receiver, __mi)
534            }
535        }
536    }
537    #[doc = "`.ctor()` overload"]
538    fn ctor(self) -> () {
539        unsafe {
540            let __receiver = <PlatformAccessorBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
541            ::unity::il2cpp_call!(__PlatformAccessorBase_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
542(PlatformAccessorBase)__receiver)
543        }
544    }
545}
546
547#[cfg(feature = "moon_sharp-interpreter-platforms-platformaccessorbase")]
548impl<__T: IPlatformAccessorBase> IPlatformAccessorBaseMethods for __T {}
549
550#[cfg(feature = "moon_sharp-interpreter-platforms-platformaccessorbase")]
551impl PlatformAccessorBase {
552    pub fn get_platform_name_prefix_method_info() -> &'static ::unity::il2cpp::MethodInfo {
553        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
554    }
555
556    pub fn get_platform_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
557        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
558    }
559
560    pub fn get_unity_runtime_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
561        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
562    }
563
564    pub fn get_unity_platform_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
565        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
566    }
567
568    pub fn default_print_method_info() -> &'static ::unity::il2cpp::MethodInfo {
569        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
570    }
571
572    pub fn default_input_method_info() -> &'static ::unity::il2cpp::MethodInfo {
573        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
574    }
575
576    pub fn default_input_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
577        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
578    }
579
580    pub fn io_get_standard_stream_method_info() -> &'static ::unity::il2cpp::MethodInfo {
581        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
582    }
583
584    pub fn io_os_get_temp_filename_method_info() -> &'static ::unity::il2cpp::MethodInfo {
585        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
586    }
587
588    pub fn os_exit_fast_method_info() -> &'static ::unity::il2cpp::MethodInfo {
589        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
590    }
591
592    pub fn os_file_exists_method_info() -> &'static ::unity::il2cpp::MethodInfo {
593        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
594    }
595
596    pub fn os_file_delete_method_info() -> &'static ::unity::il2cpp::MethodInfo {
597        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
598    }
599
600    pub fn os_file_move_method_info() -> &'static ::unity::il2cpp::MethodInfo {
601        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
602    }
603
604    pub fn os_execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
605        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
606    }
607
608    pub fn filter_supported_core_modules_method_info() -> &'static ::unity::il2cpp::MethodInfo {
609        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
610    }
611
612    pub fn get_environment_variable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
613        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
614    }
615
616    pub fn is_running_on_aot_method_info() -> &'static ::unity::il2cpp::MethodInfo {
617        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
618    }
619
620    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
621        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
622    }
623}
624
625#[cfg(feature = "moon_sharp-interpreter-platforms-platformaccessorbase")]
626impl PlatformAccessorBase {
627    #[doc = "Direct (non-virtual) call to `PlatformAccessorBase`'s own `GetPlatformNamePrefix`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
628    pub unsafe fn get_platform_name_prefix(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
629        let __mi = Self::get_platform_name_prefix_method_info();
630        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
631        __inner(this.into(), ::core::option::Option::None)
632    }
633
634    #[doc = "Direct (non-virtual) call to `PlatformAccessorBase`'s own `GetPlatformName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
635    pub unsafe fn get_platform_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
636        let __mi = Self::get_platform_name_method_info();
637        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
638        __inner(this.into(), ::core::option::Option::None)
639    }
640
641    #[doc = "Direct (non-virtual) call to `PlatformAccessorBase`'s own `DefaultPrint`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
642    pub unsafe fn default_print(this: impl ::core::convert::Into<::unity::IlInstance>, content: ::unity::Il2CppString) -> () {
643        let __mi = Self::default_print_method_info();
644        let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
645            ::core::mem::transmute(__mi.method_ptr);
646        __inner(this.into(), content, ::core::option::Option::None)
647    }
648
649    #[doc = "Direct (non-virtual) call to `PlatformAccessorBase`'s own `DefaultInput`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
650    pub unsafe fn default_input(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
651        let __mi = Self::default_input_method_info();
652        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
653        __inner(this.into(), ::core::option::Option::None)
654    }
655
656    #[doc = "Direct (non-virtual) call to `PlatformAccessorBase`'s own `DefaultInput`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
657    pub unsafe fn default_input_2(this: impl ::core::convert::Into<::unity::IlInstance>, prompt: ::unity::Il2CppString) -> ::unity::Il2CppString {
658        let __mi = Self::default_input_2_method_info();
659        let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> ::unity::Il2CppString =
660            ::core::mem::transmute(__mi.method_ptr);
661        __inner(this.into(), prompt, ::core::option::Option::None)
662    }
663
664    #[doc = "Direct (non-virtual) call to `PlatformAccessorBase`'s own `IO_GetStandardStream`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
665    pub unsafe fn io_get_standard_stream(
666        this: impl ::core::convert::Into<::unity::IlInstance>,
667        r#type: crate::moon_sharp::interpreter::platforms::standardfiletype::StandardFileType,
668    ) -> crate::system::io::stream::Stream {
669        let __mi = Self::io_get_standard_stream_method_info();
670        let __inner: extern "C" fn(
671            ::unity::IlInstance,
672            crate::moon_sharp::interpreter::platforms::standardfiletype::StandardFileType,
673            ::unity::OptionalMethod,
674        ) -> crate::system::io::stream::Stream = ::core::mem::transmute(__mi.method_ptr);
675        __inner(this.into(), r#type, ::core::option::Option::None)
676    }
677
678    #[doc = "Direct (non-virtual) call to `PlatformAccessorBase`'s own `IO_OS_GetTempFilename`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
679    pub unsafe fn io_os_get_temp_filename(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
680        let __mi = Self::io_os_get_temp_filename_method_info();
681        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
682        __inner(this.into(), ::core::option::Option::None)
683    }
684
685    #[doc = "Direct (non-virtual) call to `PlatformAccessorBase`'s own `OS_ExitFast`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
686    pub unsafe fn os_exit_fast(this: impl ::core::convert::Into<::unity::IlInstance>, exit_code: i32) -> () {
687        let __mi = Self::os_exit_fast_method_info();
688        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
689        __inner(this.into(), exit_code, ::core::option::Option::None)
690    }
691
692    #[doc = "Direct (non-virtual) call to `PlatformAccessorBase`'s own `OS_FileExists`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
693    pub unsafe fn os_file_exists(this: impl ::core::convert::Into<::unity::IlInstance>, file: ::unity::Il2CppString) -> bool {
694        let __mi = Self::os_file_exists_method_info();
695        let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> bool =
696            ::core::mem::transmute(__mi.method_ptr);
697        __inner(this.into(), file, ::core::option::Option::None)
698    }
699
700    #[doc = "Direct (non-virtual) call to `PlatformAccessorBase`'s own `OS_FileDelete`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
701    pub unsafe fn os_file_delete(this: impl ::core::convert::Into<::unity::IlInstance>, file: ::unity::Il2CppString) -> () {
702        let __mi = Self::os_file_delete_method_info();
703        let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
704            ::core::mem::transmute(__mi.method_ptr);
705        __inner(this.into(), file, ::core::option::Option::None)
706    }
707
708    #[doc = "Direct (non-virtual) call to `PlatformAccessorBase`'s own `OS_FileMove`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
709    pub unsafe fn os_file_move(this: impl ::core::convert::Into<::unity::IlInstance>, src: ::unity::Il2CppString, dst: ::unity::Il2CppString) -> () {
710        let __mi = Self::os_file_move_method_info();
711        let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
712            ::core::mem::transmute(__mi.method_ptr);
713        __inner(this.into(), src, dst, ::core::option::Option::None)
714    }
715
716    #[doc = "Direct (non-virtual) call to `PlatformAccessorBase`'s own `OS_Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
717    pub unsafe fn os_execute(this: impl ::core::convert::Into<::unity::IlInstance>, cmdline: ::unity::Il2CppString) -> i32 {
718        let __mi = Self::os_execute_method_info();
719        let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> i32 =
720            ::core::mem::transmute(__mi.method_ptr);
721        __inner(this.into(), cmdline, ::core::option::Option::None)
722    }
723
724    #[doc = "Direct (non-virtual) call to `PlatformAccessorBase`'s own `FilterSupportedCoreModules`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
725    pub unsafe fn filter_supported_core_modules(
726        this: impl ::core::convert::Into<::unity::IlInstance>,
727        module: crate::moon_sharp::interpreter::coremodules::CoreModules,
728    ) -> crate::moon_sharp::interpreter::coremodules::CoreModules {
729        let __mi = Self::filter_supported_core_modules_method_info();
730        let __inner: extern "C" fn(
731            ::unity::IlInstance,
732            crate::moon_sharp::interpreter::coremodules::CoreModules,
733            ::unity::OptionalMethod,
734        ) -> crate::moon_sharp::interpreter::coremodules::CoreModules = ::core::mem::transmute(__mi.method_ptr);
735        __inner(this.into(), module, ::core::option::Option::None)
736    }
737
738    #[doc = "Direct (non-virtual) call to `PlatformAccessorBase`'s own `GetEnvironmentVariable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
739    pub unsafe fn get_environment_variable(
740        this: impl ::core::convert::Into<::unity::IlInstance>,
741        envvarname: ::unity::Il2CppString,
742    ) -> ::unity::Il2CppString {
743        let __mi = Self::get_environment_variable_method_info();
744        let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> ::unity::Il2CppString =
745            ::core::mem::transmute(__mi.method_ptr);
746        __inner(this.into(), envvarname, ::core::option::Option::None)
747    }
748
749    #[doc = "Direct (non-virtual) call to `PlatformAccessorBase`'s own `IsRunningOnAOT`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
750    pub unsafe fn is_running_on_aot(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
751        let __mi = Self::is_running_on_aot_method_info();
752        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
753        __inner(this.into(), ::core::option::Option::None)
754    }
755}
756
757#[cfg(feature = "moon_sharp-interpreter-platforms-platformaccessorbase")]
758impl PlatformAccessorBase {
759    #[doc = "`.ctor()` — no args"]
760    pub fn new() -> Self {
761        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
762            panic!(
763                "{}
764::{}
765 failed to instantiate",
766                ::core::stringify!(PlatformAccessorBase),
767                ::core::stringify!(new),
768            )
769        });
770        <Self as IPlatformAccessorBaseMethods>::ctor(this);
771        this
772    }
773}
774
775#[cfg(feature = "moon_sharp-interpreter-platforms-platformaccessorbase")]
776#[doc(hidden)]
777pub mod prelude {
778    pub use super::{IPlatformAccessorBase, IPlatformAccessorBaseMethods, PlatformAccessorBase};
779    pub use crate::system::object::IObject;
780    #[cfg(feature = "system-object")]
781    pub use crate::system::object::IObjectMethods;
782}