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