1#[cfg(feature = "moon_sharp-interpreter-scriptoptions-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/scriptoptions/ScriptOptions.md"))]
11 #[::unity::class(namespace = "MoonSharp.Interpreter", name = "ScriptOptions")]
12 #[parent(crate::system::object::Object)]
13 pub struct ScriptOptions {}
14}
15
16#[cfg(feature = "moon_sharp-interpreter-scriptoptions-types")]
17pub use __types::*;
18
19#[cfg(feature = "moon_sharp-interpreter-scriptoptions")]
20#[doc(hidden)]
21#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
22mod __ScriptOptions_unity_raw {
23 use super::*;
24 #[doc(hidden)]
25 #[allow(non_snake_case)]
26 pub mod __lookup_ctor {
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(<ScriptOptions as ::unity::ClassIdentity>::class(), ".ctor", 0, param_types, false)
31 });
32 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
33 match &*METHOD {
34 ::core::result::Result::Ok(mi) => *mi,
35 ::core::result::Result::Err(e) => {
36 panic!(
37 "method lookup failed: {}
38::{}
39: {}
40",
41 <ScriptOptions as ::unity::ClassIdentity>::NAME,
42 ".ctor",
43 e
44 )
45 },
46 }
47 }
48 }
49 #[doc(hidden)]
50 #[allow(non_snake_case)]
51 pub mod __lookup_ctor_2 {
52 use super::*;
53 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
54 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
55 &[<crate::moon_sharp::interpreter::scriptoptions::ScriptOptions as ::unity::IlType>::il_type()];
56 ::unity::lookup::method_info_on_class_with_signature(<ScriptOptions as ::unity::ClassIdentity>::class(), ".ctor", 1, param_types, false)
57 });
58 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
59 match &*METHOD {
60 ::core::result::Result::Ok(mi) => *mi,
61 ::core::result::Result::Err(e) => {
62 panic!(
63 "method lookup failed: {}
64::{}
65: {}
66",
67 <ScriptOptions as ::unity::ClassIdentity>::NAME,
68 ".ctor",
69 e
70 )
71 },
72 }
73 }
74 }
75 #[doc(hidden)]
76 #[allow(non_snake_case)]
77 pub mod __lookup_get_script_loader {
78 use super::*;
79 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
80 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
81 ::unity::lookup::method_info_on_class_with_signature(
82 <ScriptOptions as ::unity::ClassIdentity>::class(),
83 "get_ScriptLoader",
84 0,
85 param_types,
86 false,
87 )
88 });
89 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
90 match &*METHOD {
91 ::core::result::Result::Ok(mi) => *mi,
92 ::core::result::Result::Err(e) => {
93 panic!(
94 "method lookup failed: {}
95::{}
96: {}
97",
98 <ScriptOptions as ::unity::ClassIdentity>::NAME,
99 "get_ScriptLoader",
100 e
101 )
102 },
103 }
104 }
105 }
106 #[doc(hidden)]
107 #[allow(non_snake_case)]
108 pub mod __lookup_set_script_loader {
109 use super::*;
110 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
111 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
112 &[<crate::moon_sharp::interpreter::loaders::iscriptloader::IScriptLoader as ::unity::IlType>::il_type()];
113 ::unity::lookup::method_info_on_class_with_signature(
114 <ScriptOptions as ::unity::ClassIdentity>::class(),
115 "set_ScriptLoader",
116 1,
117 param_types,
118 false,
119 )
120 });
121 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
122 match &*METHOD {
123 ::core::result::Result::Ok(mi) => *mi,
124 ::core::result::Result::Err(e) => {
125 panic!(
126 "method lookup failed: {}
127::{}
128: {}
129",
130 <ScriptOptions as ::unity::ClassIdentity>::NAME,
131 "set_ScriptLoader",
132 e
133 )
134 },
135 }
136 }
137 }
138 #[doc(hidden)]
139 #[allow(non_snake_case)]
140 pub mod __lookup_get_debug_print {
141 use super::*;
142 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
143 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
144 ::unity::lookup::method_info_on_class_with_signature(
145 <ScriptOptions as ::unity::ClassIdentity>::class(),
146 "get_DebugPrint",
147 0,
148 param_types,
149 false,
150 )
151 });
152 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153 match &*METHOD {
154 ::core::result::Result::Ok(mi) => *mi,
155 ::core::result::Result::Err(e) => {
156 panic!(
157 "method lookup failed: {}
158::{}
159: {}
160",
161 <ScriptOptions as ::unity::ClassIdentity>::NAME,
162 "get_DebugPrint",
163 e
164 )
165 },
166 }
167 }
168 }
169 #[doc(hidden)]
170 #[allow(non_snake_case)]
171 pub mod __lookup_set_debug_print {
172 use super::*;
173 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
174 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
175 &[<crate::system::action_1::Action_1<::unity::Il2CppString> as ::unity::IlType>::il_type()];
176 ::unity::lookup::method_info_on_class_with_signature(
177 <ScriptOptions as ::unity::ClassIdentity>::class(),
178 "set_DebugPrint",
179 1,
180 param_types,
181 false,
182 )
183 });
184 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185 match &*METHOD {
186 ::core::result::Result::Ok(mi) => *mi,
187 ::core::result::Result::Err(e) => {
188 panic!(
189 "method lookup failed: {}
190::{}
191: {}
192",
193 <ScriptOptions as ::unity::ClassIdentity>::NAME,
194 "set_DebugPrint",
195 e
196 )
197 },
198 }
199 }
200 }
201 #[doc(hidden)]
202 #[allow(non_snake_case)]
203 pub mod __lookup_get_debug_input {
204 use super::*;
205 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
206 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
207 ::unity::lookup::method_info_on_class_with_signature(
208 <ScriptOptions as ::unity::ClassIdentity>::class(),
209 "get_DebugInput",
210 0,
211 param_types,
212 false,
213 )
214 });
215 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216 match &*METHOD {
217 ::core::result::Result::Ok(mi) => *mi,
218 ::core::result::Result::Err(e) => {
219 panic!(
220 "method lookup failed: {}
221::{}
222: {}
223",
224 <ScriptOptions as ::unity::ClassIdentity>::NAME,
225 "get_DebugInput",
226 e
227 )
228 },
229 }
230 }
231 }
232 #[doc(hidden)]
233 #[allow(non_snake_case)]
234 pub mod __lookup_set_debug_input {
235 use super::*;
236 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
237 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
238 &[<crate::system::func_2::Func_2<::unity::Il2CppString, ::unity::Il2CppString> as ::unity::IlType>::il_type()];
239 ::unity::lookup::method_info_on_class_with_signature(
240 <ScriptOptions as ::unity::ClassIdentity>::class(),
241 "set_DebugInput",
242 1,
243 param_types,
244 false,
245 )
246 });
247 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248 match &*METHOD {
249 ::core::result::Result::Ok(mi) => *mi,
250 ::core::result::Result::Err(e) => {
251 panic!(
252 "method lookup failed: {}
253::{}
254: {}
255",
256 <ScriptOptions as ::unity::ClassIdentity>::NAME,
257 "set_DebugInput",
258 e
259 )
260 },
261 }
262 }
263 }
264 #[doc(hidden)]
265 #[allow(non_snake_case)]
266 pub mod __lookup_get_use_lua_error_locations {
267 use super::*;
268 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
269 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
270 ::unity::lookup::method_info_on_class_with_signature(
271 <ScriptOptions as ::unity::ClassIdentity>::class(),
272 "get_UseLuaErrorLocations",
273 0,
274 param_types,
275 false,
276 )
277 });
278 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279 match &*METHOD {
280 ::core::result::Result::Ok(mi) => *mi,
281 ::core::result::Result::Err(e) => {
282 panic!(
283 "method lookup failed: {}
284::{}
285: {}
286",
287 <ScriptOptions as ::unity::ClassIdentity>::NAME,
288 "get_UseLuaErrorLocations",
289 e
290 )
291 },
292 }
293 }
294 }
295 #[doc(hidden)]
296 #[allow(non_snake_case)]
297 pub mod __lookup_set_use_lua_error_locations {
298 use super::*;
299 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
300 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<bool as ::unity::IlType>::il_type()];
301 ::unity::lookup::method_info_on_class_with_signature(
302 <ScriptOptions as ::unity::ClassIdentity>::class(),
303 "set_UseLuaErrorLocations",
304 1,
305 param_types,
306 false,
307 )
308 });
309 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310 match &*METHOD {
311 ::core::result::Result::Ok(mi) => *mi,
312 ::core::result::Result::Err(e) => {
313 panic!(
314 "method lookup failed: {}
315::{}
316: {}
317",
318 <ScriptOptions as ::unity::ClassIdentity>::NAME,
319 "set_UseLuaErrorLocations",
320 e
321 )
322 },
323 }
324 }
325 }
326 #[doc(hidden)]
327 #[allow(non_snake_case)]
328 pub mod __lookup_get_colon_operator_clr_callback_behaviour {
329 use super::*;
330 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
331 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
332 ::unity::lookup::method_info_on_class_with_signature(
333 <ScriptOptions as ::unity::ClassIdentity>::class(),
334 "get_ColonOperatorClrCallbackBehaviour",
335 0,
336 param_types,
337 false,
338 )
339 });
340 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
341 match &*METHOD {
342 ::core::result::Result::Ok(mi) => *mi,
343 ::core::result::Result::Err(e) => {
344 panic!(
345 "method lookup failed: {}
346::{}
347: {}
348",
349 <ScriptOptions as ::unity::ClassIdentity>::NAME,
350 "get_ColonOperatorClrCallbackBehaviour",
351 e
352 )
353 },
354 }
355 }
356 }
357 #[doc(hidden)]
358 #[allow(non_snake_case)]
359 pub mod __lookup_set_colon_operator_clr_callback_behaviour {
360 use super::*;
361 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
362 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
363 &[<crate::moon_sharp::interpreter::colonoperatorbehaviour::ColonOperatorBehaviour as ::unity::IlType>::il_type()];
364 ::unity::lookup::method_info_on_class_with_signature(
365 <ScriptOptions as ::unity::ClassIdentity>::class(),
366 "set_ColonOperatorClrCallbackBehaviour",
367 1,
368 param_types,
369 false,
370 )
371 });
372 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
373 match &*METHOD {
374 ::core::result::Result::Ok(mi) => *mi,
375 ::core::result::Result::Err(e) => {
376 panic!(
377 "method lookup failed: {}
378::{}
379: {}
380",
381 <ScriptOptions as ::unity::ClassIdentity>::NAME,
382 "set_ColonOperatorClrCallbackBehaviour",
383 e
384 )
385 },
386 }
387 }
388 }
389 #[doc(hidden)]
390 #[allow(non_snake_case)]
391 pub mod __lookup_get_stdin {
392 use super::*;
393 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
394 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
395 ::unity::lookup::method_info_on_class_with_signature(
396 <ScriptOptions as ::unity::ClassIdentity>::class(),
397 "get_Stdin",
398 0,
399 param_types,
400 false,
401 )
402 });
403 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
404 match &*METHOD {
405 ::core::result::Result::Ok(mi) => *mi,
406 ::core::result::Result::Err(e) => {
407 panic!(
408 "method lookup failed: {}
409::{}
410: {}
411",
412 <ScriptOptions as ::unity::ClassIdentity>::NAME,
413 "get_Stdin",
414 e
415 )
416 },
417 }
418 }
419 }
420 #[doc(hidden)]
421 #[allow(non_snake_case)]
422 pub mod __lookup_set_stdin {
423 use super::*;
424 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
425 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<crate::system::io::stream::Stream as ::unity::IlType>::il_type()];
426 ::unity::lookup::method_info_on_class_with_signature(
427 <ScriptOptions as ::unity::ClassIdentity>::class(),
428 "set_Stdin",
429 1,
430 param_types,
431 false,
432 )
433 });
434 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
435 match &*METHOD {
436 ::core::result::Result::Ok(mi) => *mi,
437 ::core::result::Result::Err(e) => {
438 panic!(
439 "method lookup failed: {}
440::{}
441: {}
442",
443 <ScriptOptions as ::unity::ClassIdentity>::NAME,
444 "set_Stdin",
445 e
446 )
447 },
448 }
449 }
450 }
451 #[doc(hidden)]
452 #[allow(non_snake_case)]
453 pub mod __lookup_get_stdout {
454 use super::*;
455 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
456 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
457 ::unity::lookup::method_info_on_class_with_signature(
458 <ScriptOptions as ::unity::ClassIdentity>::class(),
459 "get_Stdout",
460 0,
461 param_types,
462 false,
463 )
464 });
465 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
466 match &*METHOD {
467 ::core::result::Result::Ok(mi) => *mi,
468 ::core::result::Result::Err(e) => {
469 panic!(
470 "method lookup failed: {}
471::{}
472: {}
473",
474 <ScriptOptions as ::unity::ClassIdentity>::NAME,
475 "get_Stdout",
476 e
477 )
478 },
479 }
480 }
481 }
482 #[doc(hidden)]
483 #[allow(non_snake_case)]
484 pub mod __lookup_set_stdout {
485 use super::*;
486 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
487 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<crate::system::io::stream::Stream as ::unity::IlType>::il_type()];
488 ::unity::lookup::method_info_on_class_with_signature(
489 <ScriptOptions as ::unity::ClassIdentity>::class(),
490 "set_Stdout",
491 1,
492 param_types,
493 false,
494 )
495 });
496 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
497 match &*METHOD {
498 ::core::result::Result::Ok(mi) => *mi,
499 ::core::result::Result::Err(e) => {
500 panic!(
501 "method lookup failed: {}
502::{}
503: {}
504",
505 <ScriptOptions as ::unity::ClassIdentity>::NAME,
506 "set_Stdout",
507 e
508 )
509 },
510 }
511 }
512 }
513 #[doc(hidden)]
514 #[allow(non_snake_case)]
515 pub mod __lookup_get_stderr {
516 use super::*;
517 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
518 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
519 ::unity::lookup::method_info_on_class_with_signature(
520 <ScriptOptions as ::unity::ClassIdentity>::class(),
521 "get_Stderr",
522 0,
523 param_types,
524 false,
525 )
526 });
527 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
528 match &*METHOD {
529 ::core::result::Result::Ok(mi) => *mi,
530 ::core::result::Result::Err(e) => {
531 panic!(
532 "method lookup failed: {}
533::{}
534: {}
535",
536 <ScriptOptions as ::unity::ClassIdentity>::NAME,
537 "get_Stderr",
538 e
539 )
540 },
541 }
542 }
543 }
544 #[doc(hidden)]
545 #[allow(non_snake_case)]
546 pub mod __lookup_set_stderr {
547 use super::*;
548 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
549 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<crate::system::io::stream::Stream as ::unity::IlType>::il_type()];
550 ::unity::lookup::method_info_on_class_with_signature(
551 <ScriptOptions as ::unity::ClassIdentity>::class(),
552 "set_Stderr",
553 1,
554 param_types,
555 false,
556 )
557 });
558 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
559 match &*METHOD {
560 ::core::result::Result::Ok(mi) => *mi,
561 ::core::result::Result::Err(e) => {
562 panic!(
563 "method lookup failed: {}
564::{}
565: {}
566",
567 <ScriptOptions as ::unity::ClassIdentity>::NAME,
568 "set_Stderr",
569 e
570 )
571 },
572 }
573 }
574 }
575 #[doc(hidden)]
576 #[allow(non_snake_case)]
577 pub mod __lookup_get_tail_call_optimization_threshold {
578 use super::*;
579 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
580 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
581 ::unity::lookup::method_info_on_class_with_signature(
582 <ScriptOptions as ::unity::ClassIdentity>::class(),
583 "get_TailCallOptimizationThreshold",
584 0,
585 param_types,
586 false,
587 )
588 });
589 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
590 match &*METHOD {
591 ::core::result::Result::Ok(mi) => *mi,
592 ::core::result::Result::Err(e) => {
593 panic!(
594 "method lookup failed: {}
595::{}
596: {}
597",
598 <ScriptOptions as ::unity::ClassIdentity>::NAME,
599 "get_TailCallOptimizationThreshold",
600 e
601 )
602 },
603 }
604 }
605 }
606 #[doc(hidden)]
607 #[allow(non_snake_case)]
608 pub mod __lookup_set_tail_call_optimization_threshold {
609 use super::*;
610 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
611 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<i32 as ::unity::IlType>::il_type()];
612 ::unity::lookup::method_info_on_class_with_signature(
613 <ScriptOptions as ::unity::ClassIdentity>::class(),
614 "set_TailCallOptimizationThreshold",
615 1,
616 param_types,
617 false,
618 )
619 });
620 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
621 match &*METHOD {
622 ::core::result::Result::Ok(mi) => *mi,
623 ::core::result::Result::Err(e) => {
624 panic!(
625 "method lookup failed: {}
626::{}
627: {}
628",
629 <ScriptOptions as ::unity::ClassIdentity>::NAME,
630 "set_TailCallOptimizationThreshold",
631 e
632 )
633 },
634 }
635 }
636 }
637 #[doc(hidden)]
638 #[allow(non_snake_case)]
639 pub mod __lookup_get_check_thread_access {
640 use super::*;
641 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
642 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
643 ::unity::lookup::method_info_on_class_with_signature(
644 <ScriptOptions as ::unity::ClassIdentity>::class(),
645 "get_CheckThreadAccess",
646 0,
647 param_types,
648 false,
649 )
650 });
651 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
652 match &*METHOD {
653 ::core::result::Result::Ok(mi) => *mi,
654 ::core::result::Result::Err(e) => {
655 panic!(
656 "method lookup failed: {}
657::{}
658: {}
659",
660 <ScriptOptions as ::unity::ClassIdentity>::NAME,
661 "get_CheckThreadAccess",
662 e
663 )
664 },
665 }
666 }
667 }
668 #[doc(hidden)]
669 #[allow(non_snake_case)]
670 pub mod __lookup_set_check_thread_access {
671 use super::*;
672 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
673 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<bool as ::unity::IlType>::il_type()];
674 ::unity::lookup::method_info_on_class_with_signature(
675 <ScriptOptions as ::unity::ClassIdentity>::class(),
676 "set_CheckThreadAccess",
677 1,
678 param_types,
679 false,
680 )
681 });
682 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
683 match &*METHOD {
684 ::core::result::Result::Ok(mi) => *mi,
685 ::core::result::Result::Err(e) => {
686 panic!(
687 "method lookup failed: {}
688::{}
689: {}
690",
691 <ScriptOptions as ::unity::ClassIdentity>::NAME,
692 "set_CheckThreadAccess",
693 e
694 )
695 },
696 }
697 }
698 }
699}
700
701#[cfg(feature = "moon_sharp-interpreter-scriptoptions")]
702pub trait IScriptOptionsMethods: IScriptOptions {
703 #[doc = "`.ctor()` overload"]
704 fn ctor(self) -> () {
705 unsafe {
706 let __receiver = <ScriptOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
707 ::unity::il2cpp_call!(__ScriptOptions_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
708(ScriptOptions)__receiver)
709 }
710 }
711 #[doc = "`.ctor(crate::moon_sharp::interpreter::scriptoptions::ScriptOptions)` overload"]
712 fn ctor_2(self, defaults: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptoptions::ScriptOptions>) -> () {
713 unsafe {
714 let __receiver = <ScriptOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
715 ::unity::il2cpp_call!(__ScriptOptions_unity_raw::__lookup_ctor_2::get_method_info().method_ptr,();
716(ScriptOptions)__receiver,(crate::moon_sharp::interpreter::scriptoptions::ScriptOptions)::core::convert::Into::into(defaults))
717 }
718 }
719 #[doc = "`get_ScriptLoader()` overload"]
720 fn get_script_loader(self) -> crate::moon_sharp::interpreter::loaders::iscriptloader::IScriptLoader {
721 unsafe {
722 let __receiver = <ScriptOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
723 ::unity::il2cpp_call!(__ScriptOptions_unity_raw::__lookup_get_script_loader::get_method_info().method_ptr,crate::moon_sharp::interpreter::loaders::iscriptloader::IScriptLoader;
724(ScriptOptions)__receiver)
725 }
726 }
727 #[doc = "`set_ScriptLoader(crate::moon_sharp::interpreter::loaders::iscriptloader::IScriptLoader)` overload"]
728 fn set_script_loader(self, value: impl ::core::convert::Into<crate::moon_sharp::interpreter::loaders::iscriptloader::IScriptLoader>) -> () {
729 unsafe {
730 let __receiver = <ScriptOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
731 ::unity::il2cpp_call!(__ScriptOptions_unity_raw::__lookup_set_script_loader::get_method_info().method_ptr,();
732(ScriptOptions)__receiver,(crate::moon_sharp::interpreter::loaders::iscriptloader::IScriptLoader)::core::convert::Into::into(value))
733 }
734 }
735 #[doc = "`get_DebugPrint()` overload"]
736 fn get_debug_print(self) -> crate::system::action_1::Action_1<::unity::Il2CppString> {
737 unsafe {
738 let __receiver = <ScriptOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
739 ::unity::il2cpp_call!(__ScriptOptions_unity_raw::__lookup_get_debug_print::get_method_info().method_ptr,crate::system::action_1::Action_1< ::unity::Il2CppString> ;
740(ScriptOptions)__receiver)
741 }
742 }
743 #[doc = "`set_DebugPrint(crate::system::action_1::Action_1<::unity::Il2CppString>)` overload"]
744 fn set_debug_print(self, value: impl ::core::convert::Into<crate::system::action_1::Action_1<::unity::Il2CppString>>) -> () {
745 unsafe {
746 let __receiver = <ScriptOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
747 ::unity::il2cpp_call!(__ScriptOptions_unity_raw::__lookup_set_debug_print::get_method_info().method_ptr,();
748(ScriptOptions)__receiver,(crate::system::action_1::Action_1< ::unity::Il2CppString>)::core::convert::Into::into(value))
749 }
750 }
751 #[doc = "`get_DebugInput()` overload"]
752 fn get_debug_input(self) -> crate::system::func_2::Func_2<::unity::Il2CppString, ::unity::Il2CppString> {
753 unsafe {
754 let __receiver = <ScriptOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
755 ::unity::il2cpp_call!(__ScriptOptions_unity_raw::__lookup_get_debug_input::get_method_info().method_ptr,crate::system::func_2::Func_2< ::unity::Il2CppString, ::unity::Il2CppString> ;
756(ScriptOptions)__receiver)
757 }
758 }
759 #[doc = "`set_DebugInput(crate::system::func_2::Func_2<::unity::Il2CppString,::unity::Il2CppString>)` overload"]
760 fn set_debug_input(self, value: impl ::core::convert::Into<crate::system::func_2::Func_2<::unity::Il2CppString, ::unity::Il2CppString>>) -> () {
761 unsafe {
762 let __receiver = <ScriptOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
763 ::unity::il2cpp_call!(__ScriptOptions_unity_raw::__lookup_set_debug_input::get_method_info().method_ptr,();
764(ScriptOptions)__receiver,(crate::system::func_2::Func_2< ::unity::Il2CppString, ::unity::Il2CppString>)::core::convert::Into::into(value))
765 }
766 }
767 #[doc = "`get_UseLuaErrorLocations()` overload"]
768 fn get_use_lua_error_locations(self) -> bool {
769 unsafe {
770 let __receiver = <ScriptOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
771 ::unity::il2cpp_call!(__ScriptOptions_unity_raw::__lookup_get_use_lua_error_locations::get_method_info().method_ptr,bool;
772(ScriptOptions)__receiver)
773 }
774 }
775 #[doc = "`set_UseLuaErrorLocations(bool)` overload"]
776 fn set_use_lua_error_locations(self, value: impl ::core::convert::Into<bool>) -> () {
777 unsafe {
778 let __receiver = <ScriptOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
779 ::unity::il2cpp_call!(__ScriptOptions_unity_raw::__lookup_set_use_lua_error_locations::get_method_info().method_ptr,();
780(ScriptOptions)__receiver,(bool)::core::convert::Into::into(value))
781 }
782 }
783 #[doc = "`get_ColonOperatorClrCallbackBehaviour()` overload"]
784 fn get_colon_operator_clr_callback_behaviour(self) -> crate::moon_sharp::interpreter::colonoperatorbehaviour::ColonOperatorBehaviour {
785 unsafe {
786 let __receiver = <ScriptOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
787 ::unity::il2cpp_call!(__ScriptOptions_unity_raw::__lookup_get_colon_operator_clr_callback_behaviour::get_method_info().method_ptr,crate::moon_sharp::interpreter::colonoperatorbehaviour::ColonOperatorBehaviour;
788(ScriptOptions)__receiver)
789 }
790 }
791 #[doc = "`set_ColonOperatorClrCallbackBehaviour(crate::moon_sharp::interpreter::colonoperatorbehaviour::ColonOperatorBehaviour)` overload"]
792 fn set_colon_operator_clr_callback_behaviour(
793 self,
794 value: impl ::core::convert::Into<crate::moon_sharp::interpreter::colonoperatorbehaviour::ColonOperatorBehaviour>,
795 ) -> () {
796 unsafe {
797 let __receiver = <ScriptOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
798 ::unity::il2cpp_call!(__ScriptOptions_unity_raw::__lookup_set_colon_operator_clr_callback_behaviour::get_method_info().method_ptr,();
799(ScriptOptions)__receiver,(crate::moon_sharp::interpreter::colonoperatorbehaviour::ColonOperatorBehaviour)::core::convert::Into::into(value))
800 }
801 }
802 #[doc = "`get_Stdin()` overload"]
803 fn get_stdin(self) -> crate::system::io::stream::Stream {
804 unsafe {
805 let __receiver = <ScriptOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
806 ::unity::il2cpp_call!(__ScriptOptions_unity_raw::__lookup_get_stdin::get_method_info().method_ptr,crate::system::io::stream::Stream;
807(ScriptOptions)__receiver)
808 }
809 }
810 #[doc = "`set_Stdin(crate::system::io::stream::Stream)` overload"]
811 fn set_stdin(self, value: impl ::core::convert::Into<crate::system::io::stream::Stream>) -> () {
812 unsafe {
813 let __receiver = <ScriptOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
814 ::unity::il2cpp_call!(__ScriptOptions_unity_raw::__lookup_set_stdin::get_method_info().method_ptr,();
815(ScriptOptions)__receiver,(crate::system::io::stream::Stream)::core::convert::Into::into(value))
816 }
817 }
818 #[doc = "`get_Stdout()` overload"]
819 fn get_stdout(self) -> crate::system::io::stream::Stream {
820 unsafe {
821 let __receiver = <ScriptOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
822 ::unity::il2cpp_call!(__ScriptOptions_unity_raw::__lookup_get_stdout::get_method_info().method_ptr,crate::system::io::stream::Stream;
823(ScriptOptions)__receiver)
824 }
825 }
826 #[doc = "`set_Stdout(crate::system::io::stream::Stream)` overload"]
827 fn set_stdout(self, value: impl ::core::convert::Into<crate::system::io::stream::Stream>) -> () {
828 unsafe {
829 let __receiver = <ScriptOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
830 ::unity::il2cpp_call!(__ScriptOptions_unity_raw::__lookup_set_stdout::get_method_info().method_ptr,();
831(ScriptOptions)__receiver,(crate::system::io::stream::Stream)::core::convert::Into::into(value))
832 }
833 }
834 #[doc = "`get_Stderr()` overload"]
835 fn get_stderr(self) -> crate::system::io::stream::Stream {
836 unsafe {
837 let __receiver = <ScriptOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
838 ::unity::il2cpp_call!(__ScriptOptions_unity_raw::__lookup_get_stderr::get_method_info().method_ptr,crate::system::io::stream::Stream;
839(ScriptOptions)__receiver)
840 }
841 }
842 #[doc = "`set_Stderr(crate::system::io::stream::Stream)` overload"]
843 fn set_stderr(self, value: impl ::core::convert::Into<crate::system::io::stream::Stream>) -> () {
844 unsafe {
845 let __receiver = <ScriptOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
846 ::unity::il2cpp_call!(__ScriptOptions_unity_raw::__lookup_set_stderr::get_method_info().method_ptr,();
847(ScriptOptions)__receiver,(crate::system::io::stream::Stream)::core::convert::Into::into(value))
848 }
849 }
850 #[doc = "`get_TailCallOptimizationThreshold()` overload"]
851 fn get_tail_call_optimization_threshold(self) -> i32 {
852 unsafe {
853 let __receiver = <ScriptOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
854 ::unity::il2cpp_call!(__ScriptOptions_unity_raw::__lookup_get_tail_call_optimization_threshold::get_method_info().method_ptr,i32;
855(ScriptOptions)__receiver)
856 }
857 }
858 #[doc = "`set_TailCallOptimizationThreshold(i32)` overload"]
859 fn set_tail_call_optimization_threshold(self, value: impl ::core::convert::Into<i32>) -> () {
860 unsafe {
861 let __receiver = <ScriptOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
862 ::unity::il2cpp_call!(__ScriptOptions_unity_raw::__lookup_set_tail_call_optimization_threshold::get_method_info().method_ptr,();
863(ScriptOptions)__receiver,(i32)::core::convert::Into::into(value))
864 }
865 }
866 #[doc = "`get_CheckThreadAccess()` overload"]
867 fn get_check_thread_access(self) -> bool {
868 unsafe {
869 let __receiver = <ScriptOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
870 ::unity::il2cpp_call!(__ScriptOptions_unity_raw::__lookup_get_check_thread_access::get_method_info().method_ptr,bool;
871(ScriptOptions)__receiver)
872 }
873 }
874 #[doc = "`set_CheckThreadAccess(bool)` overload"]
875 fn set_check_thread_access(self, value: impl ::core::convert::Into<bool>) -> () {
876 unsafe {
877 let __receiver = <ScriptOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
878 ::unity::il2cpp_call!(__ScriptOptions_unity_raw::__lookup_set_check_thread_access::get_method_info().method_ptr,();
879(ScriptOptions)__receiver,(bool)::core::convert::Into::into(value))
880 }
881 }
882}
883
884#[cfg(feature = "moon_sharp-interpreter-scriptoptions")]
885impl<__T: IScriptOptions> IScriptOptionsMethods for __T {}
886
887#[cfg(feature = "moon_sharp-interpreter-scriptoptions")]
888impl ScriptOptions {
889 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
890 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
891 }
892
893 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
894 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
895 }
896
897 pub fn get_script_loader_method_info() -> &'static ::unity::il2cpp::MethodInfo {
898 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
899 }
900
901 pub fn set_script_loader_method_info() -> &'static ::unity::il2cpp::MethodInfo {
902 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
903 }
904
905 pub fn get_debug_print_method_info() -> &'static ::unity::il2cpp::MethodInfo {
906 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
907 }
908
909 pub fn set_debug_print_method_info() -> &'static ::unity::il2cpp::MethodInfo {
910 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
911 }
912
913 pub fn get_debug_input_method_info() -> &'static ::unity::il2cpp::MethodInfo {
914 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
915 }
916
917 pub fn set_debug_input_method_info() -> &'static ::unity::il2cpp::MethodInfo {
918 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
919 }
920
921 pub fn get_use_lua_error_locations_method_info() -> &'static ::unity::il2cpp::MethodInfo {
922 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
923 }
924
925 pub fn set_use_lua_error_locations_method_info() -> &'static ::unity::il2cpp::MethodInfo {
926 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
927 }
928
929 pub fn get_colon_operator_clr_callback_behaviour_method_info() -> &'static ::unity::il2cpp::MethodInfo {
930 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
931 }
932
933 pub fn set_colon_operator_clr_callback_behaviour_method_info() -> &'static ::unity::il2cpp::MethodInfo {
934 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
935 }
936
937 pub fn get_stdin_method_info() -> &'static ::unity::il2cpp::MethodInfo {
938 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
939 }
940
941 pub fn set_stdin_method_info() -> &'static ::unity::il2cpp::MethodInfo {
942 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
943 }
944
945 pub fn get_stdout_method_info() -> &'static ::unity::il2cpp::MethodInfo {
946 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
947 }
948
949 pub fn set_stdout_method_info() -> &'static ::unity::il2cpp::MethodInfo {
950 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
951 }
952
953 pub fn get_stderr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
954 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
955 }
956
957 pub fn set_stderr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
958 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
959 }
960
961 pub fn get_tail_call_optimization_threshold_method_info() -> &'static ::unity::il2cpp::MethodInfo {
962 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
963 }
964
965 pub fn set_tail_call_optimization_threshold_method_info() -> &'static ::unity::il2cpp::MethodInfo {
966 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
967 }
968
969 pub fn get_check_thread_access_method_info() -> &'static ::unity::il2cpp::MethodInfo {
970 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
971 }
972
973 pub fn set_check_thread_access_method_info() -> &'static ::unity::il2cpp::MethodInfo {
974 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
975 }
976}
977
978#[cfg(feature = "moon_sharp-interpreter-scriptoptions")]
979impl ScriptOptions {
980 #[doc = "`.ctor()` — no args"]
981 pub fn new() -> Self {
982 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
983 panic!(
984 "{}
985::{}
986 failed to instantiate",
987 ::core::stringify!(ScriptOptions),
988 ::core::stringify!(new),
989 )
990 });
991 <Self as IScriptOptionsMethods>::ctor(this);
992 this
993 }
994
995 #[doc = "`.ctor(crate::moon_sharp::interpreter::scriptoptions::ScriptOptions)` — overload selector"]
996 pub fn new_2(defaults: crate::moon_sharp::interpreter::scriptoptions::ScriptOptions) -> Self {
997 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
998 panic!(
999 "{}
1000::{}
1001 failed to instantiate",
1002 ::core::stringify!(ScriptOptions),
1003 ::core::stringify!(new_2),
1004 )
1005 });
1006 <Self as IScriptOptionsMethods>::ctor_2(this, defaults);
1007 this
1008 }
1009}
1010
1011#[cfg(feature = "moon_sharp-interpreter-scriptoptions")]
1012#[doc(hidden)]
1013pub mod prelude {
1014 pub use super::{IScriptOptions, IScriptOptionsMethods, ScriptOptions};
1015 pub use crate::system::object::IObject;
1016 #[cfg(feature = "system-object")]
1017 pub use crate::system::object::IObjectMethods;
1018}