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