1#[cfg(feature = "moon_sharp-interpreter-interop-basic_descriptors-parameterdescriptor-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/interop/basic_descriptors/parameterdescriptor/ParameterDescriptor.md"))]
11 #[::unity::class(namespace = "MoonSharp.Interpreter.Interop.BasicDescriptors", name = "ParameterDescriptor")]
12 #[parent(crate::system::object::Object)]
13 pub struct ParameterDescriptor {
14 #[offset(56)]
15 #[rename(name = "m_OriginalType")]
16 pub m_original_type: ::unity::SystemType,
17 }
18}
19
20#[cfg(feature = "moon_sharp-interpreter-interop-basic_descriptors-parameterdescriptor-types")]
21pub use __types::*;
22
23#[cfg(feature = "moon_sharp-interpreter-interop-basic_descriptors-parameterdescriptor")]
24#[doc(hidden)]
25#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
26mod __ParameterDescriptor_unity_raw {
27 use super::*;
28 #[doc(hidden)]
29 #[allow(non_snake_case)]
30 pub mod __lookup_get_name {
31 use super::*;
32 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
33 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
34 ::unity::lookup::method_info_on_class_with_signature(
35 <ParameterDescriptor as ::unity::ClassIdentity>::class(),
36 "get_Name",
37 0,
38 param_types,
39 false,
40 )
41 });
42 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
43 match &*METHOD {
44 ::core::result::Result::Ok(mi) => *mi,
45 ::core::result::Result::Err(e) => {
46 panic!(
47 "method lookup failed: {}
48::{}
49: {}
50",
51 <ParameterDescriptor as ::unity::ClassIdentity>::NAME,
52 "get_Name",
53 e
54 )
55 },
56 }
57 }
58 }
59 #[doc(hidden)]
60 #[allow(non_snake_case)]
61 pub mod __lookup_set_name {
62 use super::*;
63 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
64 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
65 ::unity::lookup::method_info_on_class_with_signature(
66 <ParameterDescriptor as ::unity::ClassIdentity>::class(),
67 "set_Name",
68 1,
69 param_types,
70 false,
71 )
72 });
73 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
74 match &*METHOD {
75 ::core::result::Result::Ok(mi) => *mi,
76 ::core::result::Result::Err(e) => {
77 panic!(
78 "method lookup failed: {}
79::{}
80: {}
81",
82 <ParameterDescriptor as ::unity::ClassIdentity>::NAME,
83 "set_Name",
84 e
85 )
86 },
87 }
88 }
89 }
90 #[doc(hidden)]
91 #[allow(non_snake_case)]
92 pub mod __lookup_get_type {
93 use super::*;
94 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
95 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
96 ::unity::lookup::method_info_on_class_with_signature(
97 <ParameterDescriptor as ::unity::ClassIdentity>::class(),
98 "get_Type",
99 0,
100 param_types,
101 false,
102 )
103 });
104 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
105 match &*METHOD {
106 ::core::result::Result::Ok(mi) => *mi,
107 ::core::result::Result::Err(e) => {
108 panic!(
109 "method lookup failed: {}
110::{}
111: {}
112",
113 <ParameterDescriptor as ::unity::ClassIdentity>::NAME,
114 "get_Type",
115 e
116 )
117 },
118 }
119 }
120 }
121 #[doc(hidden)]
122 #[allow(non_snake_case)]
123 pub mod __lookup_set_type {
124 use super::*;
125 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
126 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::SystemType as ::unity::IlType>::il_type()];
127 ::unity::lookup::method_info_on_class_with_signature(
128 <ParameterDescriptor as ::unity::ClassIdentity>::class(),
129 "set_Type",
130 1,
131 param_types,
132 false,
133 )
134 });
135 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136 match &*METHOD {
137 ::core::result::Result::Ok(mi) => *mi,
138 ::core::result::Result::Err(e) => {
139 panic!(
140 "method lookup failed: {}
141::{}
142: {}
143",
144 <ParameterDescriptor as ::unity::ClassIdentity>::NAME,
145 "set_Type",
146 e
147 )
148 },
149 }
150 }
151 }
152 #[doc(hidden)]
153 #[allow(non_snake_case)]
154 pub mod __lookup_get_has_default_value {
155 use super::*;
156 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
157 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
158 ::unity::lookup::method_info_on_class_with_signature(
159 <ParameterDescriptor as ::unity::ClassIdentity>::class(),
160 "get_HasDefaultValue",
161 0,
162 param_types,
163 false,
164 )
165 });
166 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167 match &*METHOD {
168 ::core::result::Result::Ok(mi) => *mi,
169 ::core::result::Result::Err(e) => {
170 panic!(
171 "method lookup failed: {}
172::{}
173: {}
174",
175 <ParameterDescriptor as ::unity::ClassIdentity>::NAME,
176 "get_HasDefaultValue",
177 e
178 )
179 },
180 }
181 }
182 }
183 #[doc(hidden)]
184 #[allow(non_snake_case)]
185 pub mod __lookup_set_has_default_value {
186 use super::*;
187 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
188 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<bool as ::unity::IlType>::il_type()];
189 ::unity::lookup::method_info_on_class_with_signature(
190 <ParameterDescriptor as ::unity::ClassIdentity>::class(),
191 "set_HasDefaultValue",
192 1,
193 param_types,
194 false,
195 )
196 });
197 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198 match &*METHOD {
199 ::core::result::Result::Ok(mi) => *mi,
200 ::core::result::Result::Err(e) => {
201 panic!(
202 "method lookup failed: {}
203::{}
204: {}
205",
206 <ParameterDescriptor as ::unity::ClassIdentity>::NAME,
207 "set_HasDefaultValue",
208 e
209 )
210 },
211 }
212 }
213 }
214 #[doc(hidden)]
215 #[allow(non_snake_case)]
216 pub mod __lookup_get_default_value {
217 use super::*;
218 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
219 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
220 ::unity::lookup::method_info_on_class_with_signature(
221 <ParameterDescriptor as ::unity::ClassIdentity>::class(),
222 "get_DefaultValue",
223 0,
224 param_types,
225 false,
226 )
227 });
228 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
229 match &*METHOD {
230 ::core::result::Result::Ok(mi) => *mi,
231 ::core::result::Result::Err(e) => {
232 panic!(
233 "method lookup failed: {}
234::{}
235: {}
236",
237 <ParameterDescriptor as ::unity::ClassIdentity>::NAME,
238 "get_DefaultValue",
239 e
240 )
241 },
242 }
243 }
244 }
245 #[doc(hidden)]
246 #[allow(non_snake_case)]
247 pub mod __lookup_set_default_value {
248 use super::*;
249 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
250 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<crate::system::object::Object as ::unity::IlType>::il_type()];
251 ::unity::lookup::method_info_on_class_with_signature(
252 <ParameterDescriptor as ::unity::ClassIdentity>::class(),
253 "set_DefaultValue",
254 1,
255 param_types,
256 false,
257 )
258 });
259 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260 match &*METHOD {
261 ::core::result::Result::Ok(mi) => *mi,
262 ::core::result::Result::Err(e) => {
263 panic!(
264 "method lookup failed: {}
265::{}
266: {}
267",
268 <ParameterDescriptor as ::unity::ClassIdentity>::NAME,
269 "set_DefaultValue",
270 e
271 )
272 },
273 }
274 }
275 }
276 #[doc(hidden)]
277 #[allow(non_snake_case)]
278 pub mod __lookup_get_is_out {
279 use super::*;
280 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
281 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
282 ::unity::lookup::method_info_on_class_with_signature(
283 <ParameterDescriptor as ::unity::ClassIdentity>::class(),
284 "get_IsOut",
285 0,
286 param_types,
287 false,
288 )
289 });
290 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
291 match &*METHOD {
292 ::core::result::Result::Ok(mi) => *mi,
293 ::core::result::Result::Err(e) => {
294 panic!(
295 "method lookup failed: {}
296::{}
297: {}
298",
299 <ParameterDescriptor as ::unity::ClassIdentity>::NAME,
300 "get_IsOut",
301 e
302 )
303 },
304 }
305 }
306 }
307 #[doc(hidden)]
308 #[allow(non_snake_case)]
309 pub mod __lookup_set_is_out {
310 use super::*;
311 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
312 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<bool as ::unity::IlType>::il_type()];
313 ::unity::lookup::method_info_on_class_with_signature(
314 <ParameterDescriptor as ::unity::ClassIdentity>::class(),
315 "set_IsOut",
316 1,
317 param_types,
318 false,
319 )
320 });
321 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
322 match &*METHOD {
323 ::core::result::Result::Ok(mi) => *mi,
324 ::core::result::Result::Err(e) => {
325 panic!(
326 "method lookup failed: {}
327::{}
328: {}
329",
330 <ParameterDescriptor as ::unity::ClassIdentity>::NAME,
331 "set_IsOut",
332 e
333 )
334 },
335 }
336 }
337 }
338 #[doc(hidden)]
339 #[allow(non_snake_case)]
340 pub mod __lookup_get_is_ref {
341 use super::*;
342 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
343 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
344 ::unity::lookup::method_info_on_class_with_signature(
345 <ParameterDescriptor as ::unity::ClassIdentity>::class(),
346 "get_IsRef",
347 0,
348 param_types,
349 false,
350 )
351 });
352 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
353 match &*METHOD {
354 ::core::result::Result::Ok(mi) => *mi,
355 ::core::result::Result::Err(e) => {
356 panic!(
357 "method lookup failed: {}
358::{}
359: {}
360",
361 <ParameterDescriptor as ::unity::ClassIdentity>::NAME,
362 "get_IsRef",
363 e
364 )
365 },
366 }
367 }
368 }
369 #[doc(hidden)]
370 #[allow(non_snake_case)]
371 pub mod __lookup_set_is_ref {
372 use super::*;
373 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
374 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<bool as ::unity::IlType>::il_type()];
375 ::unity::lookup::method_info_on_class_with_signature(
376 <ParameterDescriptor as ::unity::ClassIdentity>::class(),
377 "set_IsRef",
378 1,
379 param_types,
380 false,
381 )
382 });
383 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
384 match &*METHOD {
385 ::core::result::Result::Ok(mi) => *mi,
386 ::core::result::Result::Err(e) => {
387 panic!(
388 "method lookup failed: {}
389::{}
390: {}
391",
392 <ParameterDescriptor as ::unity::ClassIdentity>::NAME,
393 "set_IsRef",
394 e
395 )
396 },
397 }
398 }
399 }
400 #[doc(hidden)]
401 #[allow(non_snake_case)]
402 pub mod __lookup_get_is_var_args {
403 use super::*;
404 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
405 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
406 ::unity::lookup::method_info_on_class_with_signature(
407 <ParameterDescriptor as ::unity::ClassIdentity>::class(),
408 "get_IsVarArgs",
409 0,
410 param_types,
411 false,
412 )
413 });
414 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
415 match &*METHOD {
416 ::core::result::Result::Ok(mi) => *mi,
417 ::core::result::Result::Err(e) => {
418 panic!(
419 "method lookup failed: {}
420::{}
421: {}
422",
423 <ParameterDescriptor as ::unity::ClassIdentity>::NAME,
424 "get_IsVarArgs",
425 e
426 )
427 },
428 }
429 }
430 }
431 #[doc(hidden)]
432 #[allow(non_snake_case)]
433 pub mod __lookup_set_is_var_args {
434 use super::*;
435 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
436 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<bool as ::unity::IlType>::il_type()];
437 ::unity::lookup::method_info_on_class_with_signature(
438 <ParameterDescriptor as ::unity::ClassIdentity>::class(),
439 "set_IsVarArgs",
440 1,
441 param_types,
442 false,
443 )
444 });
445 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
446 match &*METHOD {
447 ::core::result::Result::Ok(mi) => *mi,
448 ::core::result::Result::Err(e) => {
449 panic!(
450 "method lookup failed: {}
451::{}
452: {}
453",
454 <ParameterDescriptor as ::unity::ClassIdentity>::NAME,
455 "set_IsVarArgs",
456 e
457 )
458 },
459 }
460 }
461 }
462 #[doc(hidden)]
463 #[allow(non_snake_case)]
464 pub mod __lookup_get_has_been_restricted {
465 use super::*;
466 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
467 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
468 ::unity::lookup::method_info_on_class_with_signature(
469 <ParameterDescriptor as ::unity::ClassIdentity>::class(),
470 "get_HasBeenRestricted",
471 0,
472 param_types,
473 false,
474 )
475 });
476 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
477 match &*METHOD {
478 ::core::result::Result::Ok(mi) => *mi,
479 ::core::result::Result::Err(e) => {
480 panic!(
481 "method lookup failed: {}
482::{}
483: {}
484",
485 <ParameterDescriptor as ::unity::ClassIdentity>::NAME,
486 "get_HasBeenRestricted",
487 e
488 )
489 },
490 }
491 }
492 }
493 #[doc(hidden)]
494 #[allow(non_snake_case)]
495 pub mod __lookup_get_original_type {
496 use super::*;
497 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
498 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
499 ::unity::lookup::method_info_on_class_with_signature(
500 <ParameterDescriptor as ::unity::ClassIdentity>::class(),
501 "get_OriginalType",
502 0,
503 param_types,
504 false,
505 )
506 });
507 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
508 match &*METHOD {
509 ::core::result::Result::Ok(mi) => *mi,
510 ::core::result::Result::Err(e) => {
511 panic!(
512 "method lookup failed: {}
513::{}
514: {}
515",
516 <ParameterDescriptor as ::unity::ClassIdentity>::NAME,
517 "get_OriginalType",
518 e
519 )
520 },
521 }
522 }
523 }
524 #[doc(hidden)]
525 #[allow(non_snake_case)]
526 pub mod __lookup_ctor {
527 use super::*;
528 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
529 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
530 <::unity::Il2CppString as ::unity::IlType>::il_type(),
531 <::unity::SystemType as ::unity::IlType>::il_type(),
532 <bool as ::unity::IlType>::il_type(),
533 <::unity::IlInstance as ::unity::IlType>::il_type(),
534 <bool as ::unity::IlType>::il_type(),
535 <bool as ::unity::IlType>::il_type(),
536 <bool as ::unity::IlType>::il_type(),
537 ];
538 ::unity::lookup::method_info_on_class_with_signature(
539 <ParameterDescriptor as ::unity::ClassIdentity>::class(),
540 ".ctor",
541 7,
542 param_types,
543 false,
544 )
545 });
546 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
547 match &*METHOD {
548 ::core::result::Result::Ok(mi) => *mi,
549 ::core::result::Result::Err(e) => {
550 panic!(
551 "method lookup failed: {}
552::{}
553: {}
554",
555 <ParameterDescriptor as ::unity::ClassIdentity>::NAME,
556 ".ctor",
557 e
558 )
559 },
560 }
561 }
562 }
563 #[doc(hidden)]
564 #[allow(non_snake_case)]
565 pub mod __lookup_ctor_2 {
566 use super::*;
567 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
568 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
569 <::unity::Il2CppString as ::unity::IlType>::il_type(),
570 <::unity::SystemType as ::unity::IlType>::il_type(),
571 <bool as ::unity::IlType>::il_type(),
572 <crate::system::object::Object as ::unity::IlType>::il_type(),
573 <bool as ::unity::IlType>::il_type(),
574 <bool as ::unity::IlType>::il_type(),
575 <bool as ::unity::IlType>::il_type(),
576 <::unity::SystemType as ::unity::IlType>::il_type(),
577 ];
578 ::unity::lookup::method_info_on_class_with_signature(
579 <ParameterDescriptor as ::unity::ClassIdentity>::class(),
580 ".ctor",
581 8,
582 param_types,
583 false,
584 )
585 });
586 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
587 match &*METHOD {
588 ::core::result::Result::Ok(mi) => *mi,
589 ::core::result::Result::Err(e) => {
590 panic!(
591 "method lookup failed: {}
592::{}
593: {}
594",
595 <ParameterDescriptor as ::unity::ClassIdentity>::NAME,
596 ".ctor",
597 e
598 )
599 },
600 }
601 }
602 }
603 #[doc(hidden)]
604 #[allow(non_snake_case)]
605 pub mod __lookup_ctor_3 {
606 use super::*;
607 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
608 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
609 &[<crate::system::reflection::parameterinfo::ParameterInfo as ::unity::IlType>::il_type()];
610 ::unity::lookup::method_info_on_class_with_signature(
611 <ParameterDescriptor as ::unity::ClassIdentity>::class(),
612 ".ctor",
613 1,
614 param_types,
615 false,
616 )
617 });
618 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
619 match &*METHOD {
620 ::core::result::Result::Ok(mi) => *mi,
621 ::core::result::Result::Err(e) => {
622 panic!(
623 "method lookup failed: {}
624::{}
625: {}
626",
627 <ParameterDescriptor as ::unity::ClassIdentity>::NAME,
628 ".ctor",
629 e
630 )
631 },
632 }
633 }
634 }
635 #[doc(hidden)]
636 #[allow(non_snake_case)]
637 pub mod __lookup_restrict_type {
638 use super::*;
639 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
640 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::SystemType as ::unity::IlType>::il_type()];
641 ::unity::lookup::method_info_on_class_with_signature(
642 <ParameterDescriptor as ::unity::ClassIdentity>::class(),
643 "RestrictType",
644 1,
645 param_types,
646 false,
647 )
648 });
649 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
650 match &*METHOD {
651 ::core::result::Result::Ok(mi) => *mi,
652 ::core::result::Result::Err(e) => {
653 panic!(
654 "method lookup failed: {}
655::{}
656: {}
657",
658 <ParameterDescriptor as ::unity::ClassIdentity>::NAME,
659 "RestrictType",
660 e
661 )
662 },
663 }
664 }
665 }
666}
667
668#[cfg(feature = "moon_sharp-interpreter-interop-basic_descriptors-parameterdescriptor")]
669pub trait IParameterDescriptorMethods: IParameterDescriptor {
670 #[doc = "`get_Name()` overload"]
671 fn get_name(self) -> ::unity::Il2CppString {
672 unsafe {
673 let __receiver = <ParameterDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
674 ::unity::il2cpp_call!(__ParameterDescriptor_unity_raw::__lookup_get_name::get_method_info().method_ptr, ::unity::Il2CppString;
675(ParameterDescriptor)__receiver)
676 }
677 }
678 #[doc = "`set_Name(::unity::Il2CppString)` overload"]
679 fn set_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
680 unsafe {
681 let __receiver = <ParameterDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
682 ::unity::il2cpp_call!(__ParameterDescriptor_unity_raw::__lookup_set_name::get_method_info().method_ptr,();
683(ParameterDescriptor)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
684 }
685 }
686 #[doc = "`get_Type()` overload"]
687 fn get_type(self) -> ::unity::SystemType {
688 unsafe {
689 let __receiver = <ParameterDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
690 ::unity::il2cpp_call!(__ParameterDescriptor_unity_raw::__lookup_get_type::get_method_info().method_ptr, ::unity::SystemType;
691(ParameterDescriptor)__receiver)
692 }
693 }
694 #[doc = "`set_Type(::unity::SystemType)` overload"]
695 fn set_type(self, value: impl ::core::convert::Into<::unity::SystemType>) -> () {
696 unsafe {
697 let __receiver = <ParameterDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
698 ::unity::il2cpp_call!(__ParameterDescriptor_unity_raw::__lookup_set_type::get_method_info().method_ptr,();
699(ParameterDescriptor)__receiver,(::unity::SystemType)::core::convert::Into::into(value))
700 }
701 }
702 #[doc = "`get_HasDefaultValue()` overload"]
703 fn get_has_default_value(self) -> bool {
704 unsafe {
705 let __receiver = <ParameterDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
706 ::unity::il2cpp_call!(__ParameterDescriptor_unity_raw::__lookup_get_has_default_value::get_method_info().method_ptr,bool;
707(ParameterDescriptor)__receiver)
708 }
709 }
710 #[doc = "`set_HasDefaultValue(bool)` overload"]
711 fn set_has_default_value(self, value: impl ::core::convert::Into<bool>) -> () {
712 unsafe {
713 let __receiver = <ParameterDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
714 ::unity::il2cpp_call!(__ParameterDescriptor_unity_raw::__lookup_set_has_default_value::get_method_info().method_ptr,();
715(ParameterDescriptor)__receiver,(bool)::core::convert::Into::into(value))
716 }
717 }
718 #[doc = "`get_DefaultValue()` overload"]
719 fn get_default_value(self) -> crate::system::object::Object {
720 unsafe {
721 let __receiver = <ParameterDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
722 ::unity::il2cpp_call!(__ParameterDescriptor_unity_raw::__lookup_get_default_value::get_method_info().method_ptr,crate::system::object::Object;
723(ParameterDescriptor)__receiver)
724 }
725 }
726 #[doc = "`set_DefaultValue(crate::system::object::Object)` overload"]
727 fn set_default_value(self, value: impl ::core::convert::Into<crate::system::object::Object>) -> () {
728 unsafe {
729 let __receiver = <ParameterDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
730 ::unity::il2cpp_call!(__ParameterDescriptor_unity_raw::__lookup_set_default_value::get_method_info().method_ptr,();
731(ParameterDescriptor)__receiver,(crate::system::object::Object)::core::convert::Into::into(value))
732 }
733 }
734 #[doc = "`get_IsOut()` overload"]
735 fn get_is_out(self) -> bool {
736 unsafe {
737 let __receiver = <ParameterDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
738 ::unity::il2cpp_call!(__ParameterDescriptor_unity_raw::__lookup_get_is_out::get_method_info().method_ptr,bool;
739(ParameterDescriptor)__receiver)
740 }
741 }
742 #[doc = "`set_IsOut(bool)` overload"]
743 fn set_is_out(self, value: impl ::core::convert::Into<bool>) -> () {
744 unsafe {
745 let __receiver = <ParameterDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
746 ::unity::il2cpp_call!(__ParameterDescriptor_unity_raw::__lookup_set_is_out::get_method_info().method_ptr,();
747(ParameterDescriptor)__receiver,(bool)::core::convert::Into::into(value))
748 }
749 }
750 #[doc = "`get_IsRef()` overload"]
751 fn get_is_ref(self) -> bool {
752 unsafe {
753 let __receiver = <ParameterDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
754 ::unity::il2cpp_call!(__ParameterDescriptor_unity_raw::__lookup_get_is_ref::get_method_info().method_ptr,bool;
755(ParameterDescriptor)__receiver)
756 }
757 }
758 #[doc = "`set_IsRef(bool)` overload"]
759 fn set_is_ref(self, value: impl ::core::convert::Into<bool>) -> () {
760 unsafe {
761 let __receiver = <ParameterDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
762 ::unity::il2cpp_call!(__ParameterDescriptor_unity_raw::__lookup_set_is_ref::get_method_info().method_ptr,();
763(ParameterDescriptor)__receiver,(bool)::core::convert::Into::into(value))
764 }
765 }
766 #[doc = "`get_IsVarArgs()` overload"]
767 fn get_is_var_args(self) -> bool {
768 unsafe {
769 let __receiver = <ParameterDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
770 ::unity::il2cpp_call!(__ParameterDescriptor_unity_raw::__lookup_get_is_var_args::get_method_info().method_ptr,bool;
771(ParameterDescriptor)__receiver)
772 }
773 }
774 #[doc = "`set_IsVarArgs(bool)` overload"]
775 fn set_is_var_args(self, value: impl ::core::convert::Into<bool>) -> () {
776 unsafe {
777 let __receiver = <ParameterDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
778 ::unity::il2cpp_call!(__ParameterDescriptor_unity_raw::__lookup_set_is_var_args::get_method_info().method_ptr,();
779(ParameterDescriptor)__receiver,(bool)::core::convert::Into::into(value))
780 }
781 }
782 #[doc = "`get_HasBeenRestricted()` overload"]
783 fn get_has_been_restricted(self) -> bool {
784 unsafe {
785 let __receiver = <ParameterDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
786 ::unity::il2cpp_call!(__ParameterDescriptor_unity_raw::__lookup_get_has_been_restricted::get_method_info().method_ptr,bool;
787(ParameterDescriptor)__receiver)
788 }
789 }
790 #[doc = "`get_OriginalType()` overload"]
791 fn get_original_type(self) -> ::unity::SystemType {
792 unsafe {
793 let __receiver = <ParameterDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
794 ::unity::il2cpp_call!(__ParameterDescriptor_unity_raw::__lookup_get_original_type::get_method_info().method_ptr, ::unity::SystemType;
795(ParameterDescriptor)__receiver)
796 }
797 }
798 #[doc = "`.ctor(::unity::Il2CppString, ::unity::SystemType, bool, ::unity::IlInstance, bool, bool, bool)` overload"]
799 fn ctor(
800 self,
801 name: impl ::core::convert::Into<::unity::Il2CppString>,
802 r#type: impl ::core::convert::Into<::unity::SystemType>,
803 has_default_value: impl ::core::convert::Into<bool>,
804 default_value: impl ::core::convert::Into<::unity::IlInstance>,
805 is_out: impl ::core::convert::Into<bool>,
806 is_ref: impl ::core::convert::Into<bool>,
807 is_var_args: impl ::core::convert::Into<bool>,
808 ) -> () {
809 unsafe {
810 let __receiver = <ParameterDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
811 ::unity::il2cpp_call!(__ParameterDescriptor_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
812(ParameterDescriptor)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name),(::unity::SystemType)::core::convert::Into::into(r#type),(bool)::core::convert::Into::into(has_default_value),(::unity::IlInstance)::core::convert::Into::into(default_value),(bool)::core::convert::Into::into(is_out),(bool)::core::convert::Into::into(is_ref),(bool)::core::convert::Into::into(is_var_args))
813 }
814 }
815 #[doc = "`.ctor(::unity::Il2CppString, ::unity::SystemType, bool, crate::system::object::Object, bool, bool, bool, ::unity::SystemType)` overload"]
816 fn ctor_2(
817 self,
818 name: impl ::core::convert::Into<::unity::Il2CppString>,
819 r#type: impl ::core::convert::Into<::unity::SystemType>,
820 has_default_value: impl ::core::convert::Into<bool>,
821 default_value: impl ::core::convert::Into<crate::system::object::Object>,
822 is_out: impl ::core::convert::Into<bool>,
823 is_ref: impl ::core::convert::Into<bool>,
824 is_var_args: impl ::core::convert::Into<bool>,
825 type_restriction: impl ::core::convert::Into<::unity::SystemType>,
826 ) -> () {
827 unsafe {
828 let __receiver = <ParameterDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
829 ::unity::il2cpp_call!(__ParameterDescriptor_unity_raw::__lookup_ctor_2::get_method_info().method_ptr,();
830(ParameterDescriptor)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name),(::unity::SystemType)::core::convert::Into::into(r#type),(bool)::core::convert::Into::into(has_default_value),(crate::system::object::Object)::core::convert::Into::into(default_value),(bool)::core::convert::Into::into(is_out),(bool)::core::convert::Into::into(is_ref),(bool)::core::convert::Into::into(is_var_args),(::unity::SystemType)::core::convert::Into::into(type_restriction))
831 }
832 }
833 #[doc = "`.ctor(crate::system::reflection::parameterinfo::ParameterInfo)` overload"]
834 fn ctor_3(self, pi: impl ::core::convert::Into<crate::system::reflection::parameterinfo::ParameterInfo>) -> () {
835 unsafe {
836 let __receiver = <ParameterDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
837 ::unity::il2cpp_call!(__ParameterDescriptor_unity_raw::__lookup_ctor_3::get_method_info().method_ptr,();
838(ParameterDescriptor)__receiver,(crate::system::reflection::parameterinfo::ParameterInfo)::core::convert::Into::into(pi))
839 }
840 }
841 #[doc = "`ToString()` overload"]
842 fn to_string(self) -> ::unity::Il2CppString {
843 unsafe {
844 let __receiver = <ParameterDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
845 {
846 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
847 let __vi = *__vt.get(3usize).unwrap_or_else(|| {
848 panic!(
849 "unity: virtual slot {}
850 out of range (vtable len {}
851) on the runtime class behind {}
852 (method `{}
853`)",
854 3usize,
855 __vt.len(),
856 <ParameterDescriptor as ::unity::ClassIdentity>::NAME,
857 "ToString",
858 )
859 });
860 let __inner: extern "C" fn(ParameterDescriptor, ::unity::OptionalMethod) -> ::unity::Il2CppString =
861 ::core::mem::transmute(__vi.method_ptr);
862 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
863 __inner(__receiver, __mi)
864 }
865 }
866 }
867 #[doc = "`RestrictType(::unity::SystemType)` overload"]
868 fn restrict_type(self, r#type: impl ::core::convert::Into<::unity::SystemType>) -> () {
869 unsafe {
870 let __receiver = <ParameterDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
871 ::unity::il2cpp_call!(__ParameterDescriptor_unity_raw::__lookup_restrict_type::get_method_info().method_ptr,();
872(ParameterDescriptor)__receiver,(::unity::SystemType)::core::convert::Into::into(r#type))
873 }
874 }
875 #[doc = "`PrepareForWiring(crate::moon_sharp::interpreter::table::Table)` overload"]
876 fn prepare_for_wiring(self, table: impl ::core::convert::Into<crate::moon_sharp::interpreter::table::Table>) -> () {
877 unsafe {
878 let __receiver = <ParameterDescriptor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
879 {
880 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
881 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
882 panic!(
883 "unity: virtual slot {}
884 out of range (vtable len {}
885) on the runtime class behind {}
886 (method `{}
887`)",
888 4usize,
889 __vt.len(),
890 <ParameterDescriptor as ::unity::ClassIdentity>::NAME,
891 "PrepareForWiring",
892 )
893 });
894 let __inner: extern "C" fn(ParameterDescriptor, crate::moon_sharp::interpreter::table::Table, ::unity::OptionalMethod) -> () =
895 ::core::mem::transmute(__vi.method_ptr);
896 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
897 __inner(__receiver, ::core::convert::Into::into(table), __mi)
898 }
899 }
900 }
901}
902
903#[cfg(feature = "moon_sharp-interpreter-interop-basic_descriptors-parameterdescriptor")]
904impl<__T: IParameterDescriptor> IParameterDescriptorMethods for __T {}
905
906#[cfg(feature = "moon_sharp-interpreter-interop-basic_descriptors-parameterdescriptor")]
907impl ParameterDescriptor {
908 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
909 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
910 }
911
912 pub fn set_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
913 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
914 }
915
916 pub fn get_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
917 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
918 }
919
920 pub fn set_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
921 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
922 }
923
924 pub fn get_has_default_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
925 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
926 }
927
928 pub fn set_has_default_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
929 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
930 }
931
932 pub fn get_default_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
933 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
934 }
935
936 pub fn set_default_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
937 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
938 }
939
940 pub fn get_is_out_method_info() -> &'static ::unity::il2cpp::MethodInfo {
941 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
942 }
943
944 pub fn set_is_out_method_info() -> &'static ::unity::il2cpp::MethodInfo {
945 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
946 }
947
948 pub fn get_is_ref_method_info() -> &'static ::unity::il2cpp::MethodInfo {
949 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
950 }
951
952 pub fn set_is_ref_method_info() -> &'static ::unity::il2cpp::MethodInfo {
953 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
954 }
955
956 pub fn get_is_var_args_method_info() -> &'static ::unity::il2cpp::MethodInfo {
957 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
958 }
959
960 pub fn set_is_var_args_method_info() -> &'static ::unity::il2cpp::MethodInfo {
961 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
962 }
963
964 pub fn get_has_been_restricted_method_info() -> &'static ::unity::il2cpp::MethodInfo {
965 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
966 }
967
968 pub fn get_original_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
969 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
970 }
971
972 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
973 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
974 }
975
976 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
977 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
978 }
979
980 pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
981 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
982 }
983
984 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
985 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
986 }
987
988 pub fn restrict_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
989 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
990 }
991
992 pub fn prepare_for_wiring_method_info() -> &'static ::unity::il2cpp::MethodInfo {
993 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
994 }
995}
996
997#[cfg(feature = "moon_sharp-interpreter-interop-basic_descriptors-parameterdescriptor")]
998impl ParameterDescriptor {
999 #[doc = "Direct (non-virtual) call to `ParameterDescriptor`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1000 pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
1001 let __mi = Self::to_string_method_info();
1002 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
1003 __inner(this.into(), ::core::option::Option::None)
1004 }
1005
1006 #[doc = "Direct (non-virtual) call to `ParameterDescriptor`'s own `PrepareForWiring`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1007 pub unsafe fn prepare_for_wiring(
1008 this: impl ::core::convert::Into<::unity::IlInstance>,
1009 table: crate::moon_sharp::interpreter::table::Table,
1010 ) -> () {
1011 let __mi = Self::prepare_for_wiring_method_info();
1012 let __inner: extern "C" fn(::unity::IlInstance, crate::moon_sharp::interpreter::table::Table, ::unity::OptionalMethod) -> () =
1013 ::core::mem::transmute(__mi.method_ptr);
1014 __inner(this.into(), table, ::core::option::Option::None)
1015 }
1016}
1017
1018#[cfg(feature = "moon_sharp-interpreter-interop-basic_descriptors-parameterdescriptor")]
1019impl ParameterDescriptor {
1020 #[doc = "`.ctor(::unity::Il2CppString, ::unity::SystemType, bool, ::unity::IlInstance, bool, bool, bool)` — overload selector"]
1021 pub fn new(
1022 name: ::unity::Il2CppString,
1023 r#type: ::unity::SystemType,
1024 has_default_value: bool,
1025 default_value: ::unity::IlInstance,
1026 is_out: bool,
1027 is_ref: bool,
1028 is_var_args: bool,
1029 ) -> Self {
1030 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1031 panic!(
1032 "{}
1033::{}
1034 failed to instantiate",
1035 ::core::stringify!(ParameterDescriptor),
1036 ::core::stringify!(new),
1037 )
1038 });
1039 <Self as IParameterDescriptorMethods>::ctor(this, name, r#type, has_default_value, default_value, is_out, is_ref, is_var_args);
1040 this
1041 }
1042
1043 #[doc = "`.ctor(::unity::Il2CppString, ::unity::SystemType, bool, crate::system::object::Object, bool, bool, bool, ::unity::SystemType)` — overload selector"]
1044 pub fn new_2(
1045 name: ::unity::Il2CppString,
1046 r#type: ::unity::SystemType,
1047 has_default_value: bool,
1048 default_value: crate::system::object::Object,
1049 is_out: bool,
1050 is_ref: bool,
1051 is_var_args: bool,
1052 type_restriction: ::unity::SystemType,
1053 ) -> Self {
1054 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1055 panic!(
1056 "{}
1057::{}
1058 failed to instantiate",
1059 ::core::stringify!(ParameterDescriptor),
1060 ::core::stringify!(new_2),
1061 )
1062 });
1063 <Self as IParameterDescriptorMethods>::ctor_2(
1064 this,
1065 name,
1066 r#type,
1067 has_default_value,
1068 default_value,
1069 is_out,
1070 is_ref,
1071 is_var_args,
1072 type_restriction,
1073 );
1074 this
1075 }
1076
1077 #[doc = "`.ctor(crate::system::reflection::parameterinfo::ParameterInfo)` — overload selector"]
1078 pub fn new_3(pi: crate::system::reflection::parameterinfo::ParameterInfo) -> Self {
1079 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1080 panic!(
1081 "{}
1082::{}
1083 failed to instantiate",
1084 ::core::stringify!(ParameterDescriptor),
1085 ::core::stringify!(new_3),
1086 )
1087 });
1088 <Self as IParameterDescriptorMethods>::ctor_3(this, pi);
1089 this
1090 }
1091}
1092
1093#[cfg(feature = "moon_sharp-interpreter-interop-basic_descriptors-parameterdescriptor")]
1094#[doc(hidden)]
1095pub mod prelude {
1096 pub use super::{IParameterDescriptor, IParameterDescriptorMethods, ParameterDescriptor};
1097 pub use crate::system::object::IObject;
1098 #[cfg(feature = "system-object")]
1099 pub use crate::system::object::IObjectMethods;
1100}