1#[cfg(feature = "moon_sharp-interpreter-platforms-iplatformaccessor-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8
9 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/platforms/iplatformaccessor/IPlatformAccessor.md"))]
10 #[::unity::class(namespace = "MoonSharp.Interpreter.Platforms", name = "IPlatformAccessor")]
11 pub struct IPlatformAccessor {}
12}
13
14#[cfg(feature = "moon_sharp-interpreter-platforms-iplatformaccessor-types")]
15pub use __types::*;
16
17#[cfg(feature = "moon_sharp-interpreter-platforms-iplatformaccessor")]
18pub trait IIPlatformAccessorMethods: IIPlatformAccessor {
19 #[doc = "`FilterSupportedCoreModules(crate::moon_sharp::interpreter::coremodules::CoreModules)` overload"]
20 fn filter_supported_core_modules(
21 self,
22 module: impl ::core::convert::Into<crate::moon_sharp::interpreter::coremodules::CoreModules>,
23 ) -> crate::moon_sharp::interpreter::coremodules::CoreModules {
24 unsafe {
25 let __receiver = <IPlatformAccessor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
26 {
27 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
28 let __vi = *__vt.get(0usize).unwrap_or_else(|| {
29 panic!(
30 "unity: virtual slot {}
31 out of range (vtable len {}
32) on the runtime class behind {}
33 (method `{}
34`)",
35 0usize,
36 __vt.len(),
37 <IPlatformAccessor as ::unity::ClassIdentity>::NAME,
38 "FilterSupportedCoreModules",
39 )
40 });
41 let __inner: extern "C" fn(
42 IPlatformAccessor,
43 crate::moon_sharp::interpreter::coremodules::CoreModules,
44 ::unity::OptionalMethod,
45 ) -> crate::moon_sharp::interpreter::coremodules::CoreModules = ::core::mem::transmute(__vi.method_ptr);
46 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
47 __inner(__receiver, ::core::convert::Into::into(module), __mi)
48 }
49 }
50 }
51 #[doc = "`GetEnvironmentVariable(::unity::Il2CppString)` overload"]
52 fn get_environment_variable(self, envvarname: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
53 unsafe {
54 let __receiver = <IPlatformAccessor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
55 {
56 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
57 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
58 panic!(
59 "unity: virtual slot {}
60 out of range (vtable len {}
61) on the runtime class behind {}
62 (method `{}
63`)",
64 1usize,
65 __vt.len(),
66 <IPlatformAccessor as ::unity::ClassIdentity>::NAME,
67 "GetEnvironmentVariable",
68 )
69 });
70 let __inner: extern "C" fn(IPlatformAccessor, ::unity::Il2CppString, ::unity::OptionalMethod) -> ::unity::Il2CppString =
71 ::core::mem::transmute(__vi.method_ptr);
72 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
73 __inner(__receiver, ::core::convert::Into::into(envvarname), __mi)
74 }
75 }
76 }
77 #[doc = "`IsRunningOnAOT()` overload"]
78 fn is_running_on_aot(self) -> bool {
79 unsafe {
80 let __receiver = <IPlatformAccessor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81 {
82 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
83 let __vi = *__vt.get(2usize).unwrap_or_else(|| {
84 panic!(
85 "unity: virtual slot {}
86 out of range (vtable len {}
87) on the runtime class behind {}
88 (method `{}
89`)",
90 2usize,
91 __vt.len(),
92 <IPlatformAccessor as ::unity::ClassIdentity>::NAME,
93 "IsRunningOnAOT",
94 )
95 });
96 let __inner: extern "C" fn(IPlatformAccessor, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
97 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
98 __inner(__receiver, __mi)
99 }
100 }
101 }
102 #[doc = "`GetPlatformName()` overload"]
103 fn get_platform_name(self) -> ::unity::Il2CppString {
104 unsafe {
105 let __receiver = <IPlatformAccessor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106 {
107 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
108 let __vi = *__vt.get(3usize).unwrap_or_else(|| {
109 panic!(
110 "unity: virtual slot {}
111 out of range (vtable len {}
112) on the runtime class behind {}
113 (method `{}
114`)",
115 3usize,
116 __vt.len(),
117 <IPlatformAccessor as ::unity::ClassIdentity>::NAME,
118 "GetPlatformName",
119 )
120 });
121 let __inner: extern "C" fn(IPlatformAccessor, ::unity::OptionalMethod) -> ::unity::Il2CppString =
122 ::core::mem::transmute(__vi.method_ptr);
123 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
124 __inner(__receiver, __mi)
125 }
126 }
127 }
128 #[doc = "`DefaultPrint(::unity::Il2CppString)` overload"]
129 fn default_print(self, content: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
130 unsafe {
131 let __receiver = <IPlatformAccessor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132 {
133 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
134 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
135 panic!(
136 "unity: virtual slot {}
137 out of range (vtable len {}
138) on the runtime class behind {}
139 (method `{}
140`)",
141 4usize,
142 __vt.len(),
143 <IPlatformAccessor as ::unity::ClassIdentity>::NAME,
144 "DefaultPrint",
145 )
146 });
147 let __inner: extern "C" fn(IPlatformAccessor, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
148 ::core::mem::transmute(__vi.method_ptr);
149 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
150 __inner(__receiver, ::core::convert::Into::into(content), __mi)
151 }
152 }
153 }
154 #[doc = "`DefaultInput(::unity::Il2CppString)` overload"]
155 fn default_input(self, prompt: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
156 unsafe {
157 let __receiver = <IPlatformAccessor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
158 {
159 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
160 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
161 panic!(
162 "unity: virtual slot {}
163 out of range (vtable len {}
164) on the runtime class behind {}
165 (method `{}
166`)",
167 5usize,
168 __vt.len(),
169 <IPlatformAccessor as ::unity::ClassIdentity>::NAME,
170 "DefaultInput",
171 )
172 });
173 let __inner: extern "C" fn(IPlatformAccessor, ::unity::Il2CppString, ::unity::OptionalMethod) -> ::unity::Il2CppString =
174 ::core::mem::transmute(__vi.method_ptr);
175 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
176 __inner(__receiver, ::core::convert::Into::into(prompt), __mi)
177 }
178 }
179 }
180 #[doc = "`IO_GetStandardStream(crate::moon_sharp::interpreter::platforms::standardfiletype::StandardFileType)` overload"]
181 fn io_get_standard_stream(
182 self,
183 r#type: impl ::core::convert::Into<crate::moon_sharp::interpreter::platforms::standardfiletype::StandardFileType>,
184 ) -> crate::system::io::stream::Stream {
185 unsafe {
186 let __receiver = <IPlatformAccessor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
187 {
188 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
189 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
190 panic!(
191 "unity: virtual slot {}
192 out of range (vtable len {}
193) on the runtime class behind {}
194 (method `{}
195`)",
196 7usize,
197 __vt.len(),
198 <IPlatformAccessor as ::unity::ClassIdentity>::NAME,
199 "IO_GetStandardStream",
200 )
201 });
202 let __inner: extern "C" fn(
203 IPlatformAccessor,
204 crate::moon_sharp::interpreter::platforms::standardfiletype::StandardFileType,
205 ::unity::OptionalMethod,
206 ) -> crate::system::io::stream::Stream = ::core::mem::transmute(__vi.method_ptr);
207 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
208 __inner(__receiver, ::core::convert::Into::into(r#type), __mi)
209 }
210 }
211 }
212 #[doc = "`IO_OS_GetTempFilename()` overload"]
213 fn io_os_get_temp_filename(self) -> ::unity::Il2CppString {
214 unsafe {
215 let __receiver = <IPlatformAccessor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
216 {
217 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
218 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
219 panic!(
220 "unity: virtual slot {}
221 out of range (vtable len {}
222) on the runtime class behind {}
223 (method `{}
224`)",
225 8usize,
226 __vt.len(),
227 <IPlatformAccessor as ::unity::ClassIdentity>::NAME,
228 "IO_OS_GetTempFilename",
229 )
230 });
231 let __inner: extern "C" fn(IPlatformAccessor, ::unity::OptionalMethod) -> ::unity::Il2CppString =
232 ::core::mem::transmute(__vi.method_ptr);
233 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
234 __inner(__receiver, __mi)
235 }
236 }
237 }
238 #[doc = "`OS_ExitFast(i32)` overload"]
239 fn os_exit_fast(self, exit_code: impl ::core::convert::Into<i32>) -> () {
240 unsafe {
241 let __receiver = <IPlatformAccessor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
242 {
243 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
244 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
245 panic!(
246 "unity: virtual slot {}
247 out of range (vtable len {}
248) on the runtime class behind {}
249 (method `{}
250`)",
251 9usize,
252 __vt.len(),
253 <IPlatformAccessor as ::unity::ClassIdentity>::NAME,
254 "OS_ExitFast",
255 )
256 });
257 let __inner: extern "C" fn(IPlatformAccessor, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
258 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
259 __inner(__receiver, ::core::convert::Into::into(exit_code), __mi)
260 }
261 }
262 }
263 #[doc = "`OS_FileExists(::unity::Il2CppString)` overload"]
264 fn os_file_exists(self, file: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
265 unsafe {
266 let __receiver = <IPlatformAccessor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
267 {
268 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
269 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
270 panic!(
271 "unity: virtual slot {}
272 out of range (vtable len {}
273) on the runtime class behind {}
274 (method `{}
275`)",
276 10usize,
277 __vt.len(),
278 <IPlatformAccessor as ::unity::ClassIdentity>::NAME,
279 "OS_FileExists",
280 )
281 });
282 let __inner: extern "C" fn(IPlatformAccessor, ::unity::Il2CppString, ::unity::OptionalMethod) -> bool =
283 ::core::mem::transmute(__vi.method_ptr);
284 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
285 __inner(__receiver, ::core::convert::Into::into(file), __mi)
286 }
287 }
288 }
289 #[doc = "`OS_FileDelete(::unity::Il2CppString)` overload"]
290 fn os_file_delete(self, file: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
291 unsafe {
292 let __receiver = <IPlatformAccessor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
293 {
294 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
295 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
296 panic!(
297 "unity: virtual slot {}
298 out of range (vtable len {}
299) on the runtime class behind {}
300 (method `{}
301`)",
302 11usize,
303 __vt.len(),
304 <IPlatformAccessor as ::unity::ClassIdentity>::NAME,
305 "OS_FileDelete",
306 )
307 });
308 let __inner: extern "C" fn(IPlatformAccessor, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
309 ::core::mem::transmute(__vi.method_ptr);
310 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
311 __inner(__receiver, ::core::convert::Into::into(file), __mi)
312 }
313 }
314 }
315 #[doc = "`OS_FileMove(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
316 fn os_file_move(self, src: impl ::core::convert::Into<::unity::Il2CppString>, dst: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
317 unsafe {
318 let __receiver = <IPlatformAccessor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
319 {
320 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
321 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
322 panic!(
323 "unity: virtual slot {}
324 out of range (vtable len {}
325) on the runtime class behind {}
326 (method `{}
327`)",
328 12usize,
329 __vt.len(),
330 <IPlatformAccessor as ::unity::ClassIdentity>::NAME,
331 "OS_FileMove",
332 )
333 });
334 let __inner: extern "C" fn(IPlatformAccessor, ::unity::Il2CppString, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
335 ::core::mem::transmute(__vi.method_ptr);
336 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
337 __inner(__receiver, ::core::convert::Into::into(src), ::core::convert::Into::into(dst), __mi)
338 }
339 }
340 }
341 #[doc = "`OS_Execute(::unity::Il2CppString)` overload"]
342 fn os_execute(self, cmdline: impl ::core::convert::Into<::unity::Il2CppString>) -> i32 {
343 unsafe {
344 let __receiver = <IPlatformAccessor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
345 {
346 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
347 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
348 panic!(
349 "unity: virtual slot {}
350 out of range (vtable len {}
351) on the runtime class behind {}
352 (method `{}
353`)",
354 13usize,
355 __vt.len(),
356 <IPlatformAccessor as ::unity::ClassIdentity>::NAME,
357 "OS_Execute",
358 )
359 });
360 let __inner: extern "C" fn(IPlatformAccessor, ::unity::Il2CppString, ::unity::OptionalMethod) -> i32 =
361 ::core::mem::transmute(__vi.method_ptr);
362 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
363 __inner(__receiver, ::core::convert::Into::into(cmdline), __mi)
364 }
365 }
366 }
367}
368
369#[cfg(feature = "moon_sharp-interpreter-platforms-iplatformaccessor")]
370impl<__T: IIPlatformAccessor> IIPlatformAccessorMethods for __T {}
371
372#[cfg(feature = "moon_sharp-interpreter-platforms-iplatformaccessor")]
373impl IPlatformAccessor {
374 pub fn filter_supported_core_modules_method_info() -> &'static ::unity::il2cpp::MethodInfo {
375 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
376 }
377
378 pub fn get_environment_variable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
379 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
380 }
381
382 pub fn is_running_on_aot_method_info() -> &'static ::unity::il2cpp::MethodInfo {
383 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
384 }
385
386 pub fn get_platform_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
387 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
388 }
389
390 pub fn default_print_method_info() -> &'static ::unity::il2cpp::MethodInfo {
391 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
392 }
393
394 pub fn default_input_method_info() -> &'static ::unity::il2cpp::MethodInfo {
395 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
396 }
397
398 pub fn io_get_standard_stream_method_info() -> &'static ::unity::il2cpp::MethodInfo {
399 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
400 }
401
402 pub fn io_os_get_temp_filename_method_info() -> &'static ::unity::il2cpp::MethodInfo {
403 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
404 }
405
406 pub fn os_exit_fast_method_info() -> &'static ::unity::il2cpp::MethodInfo {
407 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
408 }
409
410 pub fn os_file_exists_method_info() -> &'static ::unity::il2cpp::MethodInfo {
411 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
412 }
413
414 pub fn os_file_delete_method_info() -> &'static ::unity::il2cpp::MethodInfo {
415 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
416 }
417
418 pub fn os_file_move_method_info() -> &'static ::unity::il2cpp::MethodInfo {
419 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
420 }
421
422 pub fn os_execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
423 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
424 }
425}
426
427#[cfg(feature = "moon_sharp-interpreter-platforms-iplatformaccessor")]
428impl IPlatformAccessor {
429 #[doc = "Direct (non-virtual) call to `IPlatformAccessor`'s own `FilterSupportedCoreModules`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
430 pub unsafe fn filter_supported_core_modules(
431 this: impl ::core::convert::Into<::unity::IlInstance>,
432 module: crate::moon_sharp::interpreter::coremodules::CoreModules,
433 ) -> crate::moon_sharp::interpreter::coremodules::CoreModules {
434 let __mi = Self::filter_supported_core_modules_method_info();
435 let __inner: extern "C" fn(
436 ::unity::IlInstance,
437 crate::moon_sharp::interpreter::coremodules::CoreModules,
438 ::unity::OptionalMethod,
439 ) -> crate::moon_sharp::interpreter::coremodules::CoreModules = ::core::mem::transmute(__mi.method_ptr);
440 __inner(this.into(), module, ::core::option::Option::None)
441 }
442
443 #[doc = "Direct (non-virtual) call to `IPlatformAccessor`'s own `GetEnvironmentVariable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
444 pub unsafe fn get_environment_variable(
445 this: impl ::core::convert::Into<::unity::IlInstance>,
446 envvarname: ::unity::Il2CppString,
447 ) -> ::unity::Il2CppString {
448 let __mi = Self::get_environment_variable_method_info();
449 let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> ::unity::Il2CppString =
450 ::core::mem::transmute(__mi.method_ptr);
451 __inner(this.into(), envvarname, ::core::option::Option::None)
452 }
453
454 #[doc = "Direct (non-virtual) call to `IPlatformAccessor`'s own `IsRunningOnAOT`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
455 pub unsafe fn is_running_on_aot(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
456 let __mi = Self::is_running_on_aot_method_info();
457 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
458 __inner(this.into(), ::core::option::Option::None)
459 }
460
461 #[doc = "Direct (non-virtual) call to `IPlatformAccessor`'s own `GetPlatformName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
462 pub unsafe fn get_platform_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
463 let __mi = Self::get_platform_name_method_info();
464 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
465 __inner(this.into(), ::core::option::Option::None)
466 }
467
468 #[doc = "Direct (non-virtual) call to `IPlatformAccessor`'s own `DefaultPrint`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
469 pub unsafe fn default_print(this: impl ::core::convert::Into<::unity::IlInstance>, content: ::unity::Il2CppString) -> () {
470 let __mi = Self::default_print_method_info();
471 let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
472 ::core::mem::transmute(__mi.method_ptr);
473 __inner(this.into(), content, ::core::option::Option::None)
474 }
475
476 #[doc = "Direct (non-virtual) call to `IPlatformAccessor`'s own `DefaultInput`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
477 pub unsafe fn default_input(this: impl ::core::convert::Into<::unity::IlInstance>, prompt: ::unity::Il2CppString) -> ::unity::Il2CppString {
478 let __mi = Self::default_input_method_info();
479 let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> ::unity::Il2CppString =
480 ::core::mem::transmute(__mi.method_ptr);
481 __inner(this.into(), prompt, ::core::option::Option::None)
482 }
483
484 #[doc = "Direct (non-virtual) call to `IPlatformAccessor`'s own `IO_GetStandardStream`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
485 pub unsafe fn io_get_standard_stream(
486 this: impl ::core::convert::Into<::unity::IlInstance>,
487 r#type: crate::moon_sharp::interpreter::platforms::standardfiletype::StandardFileType,
488 ) -> crate::system::io::stream::Stream {
489 let __mi = Self::io_get_standard_stream_method_info();
490 let __inner: extern "C" fn(
491 ::unity::IlInstance,
492 crate::moon_sharp::interpreter::platforms::standardfiletype::StandardFileType,
493 ::unity::OptionalMethod,
494 ) -> crate::system::io::stream::Stream = ::core::mem::transmute(__mi.method_ptr);
495 __inner(this.into(), r#type, ::core::option::Option::None)
496 }
497
498 #[doc = "Direct (non-virtual) call to `IPlatformAccessor`'s own `IO_OS_GetTempFilename`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
499 pub unsafe fn io_os_get_temp_filename(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
500 let __mi = Self::io_os_get_temp_filename_method_info();
501 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
502 __inner(this.into(), ::core::option::Option::None)
503 }
504
505 #[doc = "Direct (non-virtual) call to `IPlatformAccessor`'s own `OS_ExitFast`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
506 pub unsafe fn os_exit_fast(this: impl ::core::convert::Into<::unity::IlInstance>, exit_code: i32) -> () {
507 let __mi = Self::os_exit_fast_method_info();
508 let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
509 __inner(this.into(), exit_code, ::core::option::Option::None)
510 }
511
512 #[doc = "Direct (non-virtual) call to `IPlatformAccessor`'s own `OS_FileExists`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
513 pub unsafe fn os_file_exists(this: impl ::core::convert::Into<::unity::IlInstance>, file: ::unity::Il2CppString) -> bool {
514 let __mi = Self::os_file_exists_method_info();
515 let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> bool =
516 ::core::mem::transmute(__mi.method_ptr);
517 __inner(this.into(), file, ::core::option::Option::None)
518 }
519
520 #[doc = "Direct (non-virtual) call to `IPlatformAccessor`'s own `OS_FileDelete`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
521 pub unsafe fn os_file_delete(this: impl ::core::convert::Into<::unity::IlInstance>, file: ::unity::Il2CppString) -> () {
522 let __mi = Self::os_file_delete_method_info();
523 let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
524 ::core::mem::transmute(__mi.method_ptr);
525 __inner(this.into(), file, ::core::option::Option::None)
526 }
527
528 #[doc = "Direct (non-virtual) call to `IPlatformAccessor`'s own `OS_FileMove`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
529 pub unsafe fn os_file_move(this: impl ::core::convert::Into<::unity::IlInstance>, src: ::unity::Il2CppString, dst: ::unity::Il2CppString) -> () {
530 let __mi = Self::os_file_move_method_info();
531 let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
532 ::core::mem::transmute(__mi.method_ptr);
533 __inner(this.into(), src, dst, ::core::option::Option::None)
534 }
535
536 #[doc = "Direct (non-virtual) call to `IPlatformAccessor`'s own `OS_Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
537 pub unsafe fn os_execute(this: impl ::core::convert::Into<::unity::IlInstance>, cmdline: ::unity::Il2CppString) -> i32 {
538 let __mi = Self::os_execute_method_info();
539 let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> i32 =
540 ::core::mem::transmute(__mi.method_ptr);
541 __inner(this.into(), cmdline, ::core::option::Option::None)
542 }
543}
544
545#[cfg(feature = "moon_sharp-interpreter-platforms-iplatformaccessor")]
546#[doc(hidden)]
547pub mod prelude {
548 pub use super::{IIPlatformAccessor, IIPlatformAccessorMethods, IPlatformAccessor};
549}