1#[cfg(feature = "moon_sharp-interpreter-coroutine_2-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 moon_sharp::interpreter::refidobject::{IRefIdObject, RefIdObject},
10 system::{
11 object::{IObject, Object},
12 r#enum::{Enum, IEnum},
13 valuetype::{IValueType, ValueType},
14 },
15 };
16
17 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/coroutine_2/Coroutine_CoroutineType.md"))]
18 #[repr(C)]
19 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
20 pub struct Coroutine_CoroutineType {
21 pub value: i32,
22 }
23 impl ::unity::ClassIdentity for Coroutine_CoroutineType {
24 const NAME: &'static str = "Coroutine.CoroutineType";
25 const NAMESPACE: &'static str = "MoonSharp.Interpreter";
26
27 fn class() -> ::unity::Class {
28 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
29 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
30 }
31 }
32 impl ::unity::IlType for Coroutine_CoroutineType {
33 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
34 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
35 }
36 }
37 impl Coroutine_CoroutineType {
38 pub fn coroutine() -> Self {
39 Self { value: 0 }
40 }
41
42 pub fn clr_callback() -> Self {
43 Self { value: 1 }
44 }
45
46 pub fn clr_callback_dead() -> Self {
47 Self { value: 2 }
48 }
49 }
50
51 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/coroutine_2/Coroutine_2.md"))]
52 #[::unity::class(namespace = "MoonSharp.Interpreter", name = "Coroutine")]
53 #[parent(crate::moon_sharp::interpreter::refidobject::RefIdObject)]
54 pub struct Coroutine_2 {
55 #[offset(24)]
56 #[rename(name = "m_ClrCallback")]
57 pub m_clr_callback: crate::moon_sharp::interpreter::callbackfunction::CallbackFunction,
58 #[offset(32)]
59 #[rename(name = "m_Processor")]
60 pub m_processor: crate::moon_sharp::interpreter::execution::vm::processor::Processor,
61 }
62}
63
64#[cfg(feature = "moon_sharp-interpreter-coroutine_2-types")]
65pub use __types::*;
66
67#[cfg(feature = "moon_sharp-interpreter-coroutine_2")]
68#[doc(hidden)]
69#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
70mod __Coroutine_2_unity_raw {
71 use super::*;
72 #[doc(hidden)]
73 #[allow(non_snake_case)]
74 pub mod __lookup_get_type {
75 use super::*;
76 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
77 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
78 ::unity::lookup::method_info_on_class_with_signature(<Coroutine_2 as ::unity::ClassIdentity>::class(), "get_Type", 0, param_types, false)
79 });
80 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
81 match &*METHOD {
82 ::core::result::Result::Ok(mi) => *mi,
83 ::core::result::Result::Err(e) => {
84 panic!(
85 "method lookup failed: {}
86::{}
87: {}
88",
89 <Coroutine_2 as ::unity::ClassIdentity>::NAME,
90 "get_Type",
91 e
92 )
93 },
94 }
95 }
96 }
97 #[doc(hidden)]
98 #[allow(non_snake_case)]
99 pub mod __lookup_set_type {
100 use super::*;
101 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
102 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
103 &[<crate::moon_sharp::interpreter::coroutine_2::Coroutine_CoroutineType as ::unity::IlType>::il_type()];
104 ::unity::lookup::method_info_on_class_with_signature(<Coroutine_2 as ::unity::ClassIdentity>::class(), "set_Type", 1, param_types, false)
105 });
106 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107 match &*METHOD {
108 ::core::result::Result::Ok(mi) => *mi,
109 ::core::result::Result::Err(e) => {
110 panic!(
111 "method lookup failed: {}
112::{}
113: {}
114",
115 <Coroutine_2 as ::unity::ClassIdentity>::NAME,
116 "set_Type",
117 e
118 )
119 },
120 }
121 }
122 }
123 #[doc(hidden)]
124 #[allow(non_snake_case)]
125 pub mod __lookup_ctor {
126 use super::*;
127 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
128 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
129 &[<crate::moon_sharp::interpreter::callbackfunction::CallbackFunction as ::unity::IlType>::il_type()];
130 ::unity::lookup::method_info_on_class_with_signature(<Coroutine_2 as ::unity::ClassIdentity>::class(), ".ctor", 1, param_types, false)
131 });
132 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
133 match &*METHOD {
134 ::core::result::Result::Ok(mi) => *mi,
135 ::core::result::Result::Err(e) => {
136 panic!(
137 "method lookup failed: {}
138::{}
139: {}
140",
141 <Coroutine_2 as ::unity::ClassIdentity>::NAME,
142 ".ctor",
143 e
144 )
145 },
146 }
147 }
148 }
149 #[doc(hidden)]
150 #[allow(non_snake_case)]
151 pub mod __lookup_ctor_2 {
152 use super::*;
153 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
154 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
155 &[<crate::moon_sharp::interpreter::execution::vm::processor::Processor as ::unity::IlType>::il_type()];
156 ::unity::lookup::method_info_on_class_with_signature(<Coroutine_2 as ::unity::ClassIdentity>::class(), ".ctor", 1, param_types, false)
157 });
158 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159 match &*METHOD {
160 ::core::result::Result::Ok(mi) => *mi,
161 ::core::result::Result::Err(e) => {
162 panic!(
163 "method lookup failed: {}
164::{}
165: {}
166",
167 <Coroutine_2 as ::unity::ClassIdentity>::NAME,
168 ".ctor",
169 e
170 )
171 },
172 }
173 }
174 }
175 #[doc(hidden)]
176 #[allow(non_snake_case)]
177 pub mod __lookup_mark_clr_callback_as_dead {
178 use super::*;
179 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
180 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
181 ::unity::lookup::method_info_on_class_with_signature(
182 <Coroutine_2 as ::unity::ClassIdentity>::class(),
183 "MarkClrCallbackAsDead",
184 0,
185 param_types,
186 false,
187 )
188 });
189 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190 match &*METHOD {
191 ::core::result::Result::Ok(mi) => *mi,
192 ::core::result::Result::Err(e) => {
193 panic!(
194 "method lookup failed: {}
195::{}
196: {}
197",
198 <Coroutine_2 as ::unity::ClassIdentity>::NAME,
199 "MarkClrCallbackAsDead",
200 e
201 )
202 },
203 }
204 }
205 }
206 #[doc(hidden)]
207 #[allow(non_snake_case)]
208 pub mod __lookup_as_typed_enumerable {
209 use super::*;
210 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
211 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
212 ::unity::lookup::method_info_on_class_with_signature(
213 <Coroutine_2 as ::unity::ClassIdentity>::class(),
214 "AsTypedEnumerable",
215 0,
216 param_types,
217 false,
218 )
219 });
220 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
221 match &*METHOD {
222 ::core::result::Result::Ok(mi) => *mi,
223 ::core::result::Result::Err(e) => {
224 panic!(
225 "method lookup failed: {}
226::{}
227: {}
228",
229 <Coroutine_2 as ::unity::ClassIdentity>::NAME,
230 "AsTypedEnumerable",
231 e
232 )
233 },
234 }
235 }
236 }
237 #[doc(hidden)]
238 #[allow(non_snake_case)]
239 pub mod __lookup_as_enumerable {
240 use super::*;
241 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
242 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
243 ::unity::lookup::method_info_on_class_with_signature(
244 <Coroutine_2 as ::unity::ClassIdentity>::class(),
245 "AsEnumerable",
246 0,
247 param_types,
248 false,
249 )
250 });
251 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252 match &*METHOD {
253 ::core::result::Result::Ok(mi) => *mi,
254 ::core::result::Result::Err(e) => {
255 panic!(
256 "method lookup failed: {}
257::{}
258: {}
259",
260 <Coroutine_2 as ::unity::ClassIdentity>::NAME,
261 "AsEnumerable",
262 e
263 )
264 },
265 }
266 }
267 }
268 #[doc(hidden)]
269 #[allow(non_snake_case)]
270 pub mod __lookup_as_unity_coroutine {
271 use super::*;
272 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
273 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
274 ::unity::lookup::method_info_on_class_with_signature(
275 <Coroutine_2 as ::unity::ClassIdentity>::class(),
276 "AsUnityCoroutine",
277 0,
278 param_types,
279 false,
280 )
281 });
282 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
283 match &*METHOD {
284 ::core::result::Result::Ok(mi) => *mi,
285 ::core::result::Result::Err(e) => {
286 panic!(
287 "method lookup failed: {}
288::{}
289: {}
290",
291 <Coroutine_2 as ::unity::ClassIdentity>::NAME,
292 "AsUnityCoroutine",
293 e
294 )
295 },
296 }
297 }
298 }
299 #[doc(hidden)]
300 #[allow(non_snake_case)]
301 pub mod __lookup_resume {
302 use super::*;
303 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
304 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
305 &[<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue> as ::unity::IlType>::il_type()];
306 ::unity::lookup::method_info_on_class_with_signature(<Coroutine_2 as ::unity::ClassIdentity>::class(), "Resume", 1, param_types, false)
307 });
308 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309 match &*METHOD {
310 ::core::result::Result::Ok(mi) => *mi,
311 ::core::result::Result::Err(e) => {
312 panic!(
313 "method lookup failed: {}
314::{}
315: {}
316",
317 <Coroutine_2 as ::unity::ClassIdentity>::NAME,
318 "Resume",
319 e
320 )
321 },
322 }
323 }
324 }
325 #[doc(hidden)]
326 #[allow(non_snake_case)]
327 pub mod __lookup_resume_2 {
328 use super::*;
329 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
330 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
331 <crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext as ::unity::IlType>::il_type(),
332 <::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue> as ::unity::IlType>::il_type(),
333 ];
334 ::unity::lookup::method_info_on_class_with_signature(<Coroutine_2 as ::unity::ClassIdentity>::class(), "Resume", 2, param_types, false)
335 });
336 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
337 match &*METHOD {
338 ::core::result::Result::Ok(mi) => *mi,
339 ::core::result::Result::Err(e) => {
340 panic!(
341 "method lookup failed: {}
342::{}
343: {}
344",
345 <Coroutine_2 as ::unity::ClassIdentity>::NAME,
346 "Resume",
347 e
348 )
349 },
350 }
351 }
352 }
353 #[doc(hidden)]
354 #[allow(non_snake_case)]
355 pub mod __lookup_resume_3 {
356 use super::*;
357 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
358 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
359 ::unity::lookup::method_info_on_class_with_signature(<Coroutine_2 as ::unity::ClassIdentity>::class(), "Resume", 0, param_types, false)
360 });
361 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
362 match &*METHOD {
363 ::core::result::Result::Ok(mi) => *mi,
364 ::core::result::Result::Err(e) => {
365 panic!(
366 "method lookup failed: {}
367::{}
368: {}
369",
370 <Coroutine_2 as ::unity::ClassIdentity>::NAME,
371 "Resume",
372 e
373 )
374 },
375 }
376 }
377 }
378 #[doc(hidden)]
379 #[allow(non_snake_case)]
380 pub mod __lookup_resume_4 {
381 use super::*;
382 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
383 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
384 &[<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext as ::unity::IlType>::il_type()];
385 ::unity::lookup::method_info_on_class_with_signature(<Coroutine_2 as ::unity::ClassIdentity>::class(), "Resume", 1, param_types, false)
386 });
387 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
388 match &*METHOD {
389 ::core::result::Result::Ok(mi) => *mi,
390 ::core::result::Result::Err(e) => {
391 panic!(
392 "method lookup failed: {}
393::{}
394: {}
395",
396 <Coroutine_2 as ::unity::ClassIdentity>::NAME,
397 "Resume",
398 e
399 )
400 },
401 }
402 }
403 }
404 #[doc(hidden)]
405 #[allow(non_snake_case)]
406 pub mod __lookup_resume_5 {
407 use super::*;
408 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
409 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
410 &[<::unity::Array<crate::system::object::Object> as ::unity::IlType>::il_type()];
411 ::unity::lookup::method_info_on_class_with_signature(<Coroutine_2 as ::unity::ClassIdentity>::class(), "Resume", 1, param_types, false)
412 });
413 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
414 match &*METHOD {
415 ::core::result::Result::Ok(mi) => *mi,
416 ::core::result::Result::Err(e) => {
417 panic!(
418 "method lookup failed: {}
419::{}
420: {}
421",
422 <Coroutine_2 as ::unity::ClassIdentity>::NAME,
423 "Resume",
424 e
425 )
426 },
427 }
428 }
429 }
430 #[doc(hidden)]
431 #[allow(non_snake_case)]
432 pub mod __lookup_resume_6 {
433 use super::*;
434 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
435 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
436 <crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext as ::unity::IlType>::il_type(),
437 <::unity::Array<crate::system::object::Object> as ::unity::IlType>::il_type(),
438 ];
439 ::unity::lookup::method_info_on_class_with_signature(<Coroutine_2 as ::unity::ClassIdentity>::class(), "Resume", 2, param_types, false)
440 });
441 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
442 match &*METHOD {
443 ::core::result::Result::Ok(mi) => *mi,
444 ::core::result::Result::Err(e) => {
445 panic!(
446 "method lookup failed: {}
447::{}
448: {}
449",
450 <Coroutine_2 as ::unity::ClassIdentity>::NAME,
451 "Resume",
452 e
453 )
454 },
455 }
456 }
457 }
458 #[doc(hidden)]
459 #[allow(non_snake_case)]
460 pub mod __lookup_get_state {
461 use super::*;
462 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
463 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
464 ::unity::lookup::method_info_on_class_with_signature(<Coroutine_2 as ::unity::ClassIdentity>::class(), "get_State", 0, param_types, false)
465 });
466 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
467 match &*METHOD {
468 ::core::result::Result::Ok(mi) => *mi,
469 ::core::result::Result::Err(e) => {
470 panic!(
471 "method lookup failed: {}
472::{}
473: {}
474",
475 <Coroutine_2 as ::unity::ClassIdentity>::NAME,
476 "get_State",
477 e
478 )
479 },
480 }
481 }
482 }
483 #[doc(hidden)]
484 #[allow(non_snake_case)]
485 pub mod __lookup_get_stack_trace {
486 use super::*;
487 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
488 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
489 <i32 as ::unity::IlType>::il_type(),
490 <crate::moon_sharp::interpreter::debugging::sourceref::SourceRef as ::unity::IlType>::il_type(),
491 ];
492 ::unity::lookup::method_info_on_class_with_signature(
493 <Coroutine_2 as ::unity::ClassIdentity>::class(),
494 "GetStackTrace",
495 2,
496 param_types,
497 false,
498 )
499 });
500 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
501 match &*METHOD {
502 ::core::result::Result::Ok(mi) => *mi,
503 ::core::result::Result::Err(e) => {
504 panic!(
505 "method lookup failed: {}
506::{}
507: {}
508",
509 <Coroutine_2 as ::unity::ClassIdentity>::NAME,
510 "GetStackTrace",
511 e
512 )
513 },
514 }
515 }
516 }
517 #[doc(hidden)]
518 #[allow(non_snake_case)]
519 pub mod __lookup_set_owner_script {
520 use super::*;
521 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
522 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
523 &[<crate::moon_sharp::interpreter::script::Script as ::unity::IlType>::il_type()];
524 ::unity::lookup::method_info_on_class_with_signature(
525 <Coroutine_2 as ::unity::ClassIdentity>::class(),
526 "set_OwnerScript",
527 1,
528 param_types,
529 false,
530 )
531 });
532 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
533 match &*METHOD {
534 ::core::result::Result::Ok(mi) => *mi,
535 ::core::result::Result::Err(e) => {
536 panic!(
537 "method lookup failed: {}
538::{}
539: {}
540",
541 <Coroutine_2 as ::unity::ClassIdentity>::NAME,
542 "set_OwnerScript",
543 e
544 )
545 },
546 }
547 }
548 }
549 #[doc(hidden)]
550 #[allow(non_snake_case)]
551 pub mod __lookup_get_auto_yield_counter {
552 use super::*;
553 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
554 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
555 ::unity::lookup::method_info_on_class_with_signature(
556 <Coroutine_2 as ::unity::ClassIdentity>::class(),
557 "get_AutoYieldCounter",
558 0,
559 param_types,
560 false,
561 )
562 });
563 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
564 match &*METHOD {
565 ::core::result::Result::Ok(mi) => *mi,
566 ::core::result::Result::Err(e) => {
567 panic!(
568 "method lookup failed: {}
569::{}
570: {}
571",
572 <Coroutine_2 as ::unity::ClassIdentity>::NAME,
573 "get_AutoYieldCounter",
574 e
575 )
576 },
577 }
578 }
579 }
580 #[doc(hidden)]
581 #[allow(non_snake_case)]
582 pub mod __lookup_set_auto_yield_counter {
583 use super::*;
584 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
585 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<i64 as ::unity::IlType>::il_type()];
586 ::unity::lookup::method_info_on_class_with_signature(
587 <Coroutine_2 as ::unity::ClassIdentity>::class(),
588 "set_AutoYieldCounter",
589 1,
590 param_types,
591 false,
592 )
593 });
594 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
595 match &*METHOD {
596 ::core::result::Result::Ok(mi) => *mi,
597 ::core::result::Result::Err(e) => {
598 panic!(
599 "method lookup failed: {}
600::{}
601: {}
602",
603 <Coroutine_2 as ::unity::ClassIdentity>::NAME,
604 "set_AutoYieldCounter",
605 e
606 )
607 },
608 }
609 }
610 }
611}
612
613#[cfg(feature = "moon_sharp-interpreter-coroutine_2")]
614pub trait ICoroutine_2Methods: ICoroutine_2 {
615 #[doc = "`get_Type()` overload"]
616 fn get_type(self) -> crate::moon_sharp::interpreter::coroutine_2::Coroutine_CoroutineType {
617 unsafe {
618 let __receiver = <Coroutine_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
619 ::unity::il2cpp_call!(__Coroutine_2_unity_raw::__lookup_get_type::get_method_info().method_ptr,crate::moon_sharp::interpreter::coroutine_2::Coroutine_CoroutineType;
620(Coroutine_2)__receiver)
621 }
622 }
623 #[doc = "`set_Type(crate::moon_sharp::interpreter::coroutine_2::Coroutine_CoroutineType)` overload"]
624 fn set_type(self, value: impl ::core::convert::Into<crate::moon_sharp::interpreter::coroutine_2::Coroutine_CoroutineType>) -> () {
625 unsafe {
626 let __receiver = <Coroutine_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
627 ::unity::il2cpp_call!(__Coroutine_2_unity_raw::__lookup_set_type::get_method_info().method_ptr,();
628(Coroutine_2)__receiver,(crate::moon_sharp::interpreter::coroutine_2::Coroutine_CoroutineType)::core::convert::Into::into(value))
629 }
630 }
631 #[doc = "`.ctor(crate::moon_sharp::interpreter::callbackfunction::CallbackFunction)` overload"]
632 fn ctor(self, function: impl ::core::convert::Into<crate::moon_sharp::interpreter::callbackfunction::CallbackFunction>) -> () {
633 unsafe {
634 let __receiver = <Coroutine_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
635 ::unity::il2cpp_call!(__Coroutine_2_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
636(Coroutine_2)__receiver,(crate::moon_sharp::interpreter::callbackfunction::CallbackFunction)::core::convert::Into::into(function))
637 }
638 }
639 #[doc = "`.ctor(crate::moon_sharp::interpreter::execution::vm::processor::Processor)` overload"]
640 fn ctor_2(self, proc: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::vm::processor::Processor>) -> () {
641 unsafe {
642 let __receiver = <Coroutine_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
643 ::unity::il2cpp_call!(__Coroutine_2_unity_raw::__lookup_ctor_2::get_method_info().method_ptr,();
644(Coroutine_2)__receiver,(crate::moon_sharp::interpreter::execution::vm::processor::Processor)::core::convert::Into::into(proc))
645 }
646 }
647 #[doc = "`MarkClrCallbackAsDead()` overload"]
648 fn mark_clr_callback_as_dead(self) -> () {
649 unsafe {
650 let __receiver = <Coroutine_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
651 ::unity::il2cpp_call!(__Coroutine_2_unity_raw::__lookup_mark_clr_callback_as_dead::get_method_info().method_ptr,();
652(Coroutine_2)__receiver)
653 }
654 }
655 #[doc = "`AsTypedEnumerable()` overload"]
656 fn as_typed_enumerable(
657 self,
658 ) -> crate::system::collections::generic::ienumerable_1::IEnumerable_1<crate::moon_sharp::interpreter::dynvalue::DynValue> {
659 unsafe {
660 let __receiver = <Coroutine_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
661 ::unity::il2cpp_call!(__Coroutine_2_unity_raw::__lookup_as_typed_enumerable::get_method_info().method_ptr,crate::system::collections::generic::ienumerable_1::IEnumerable_1<crate::moon_sharp::interpreter::dynvalue::DynValue> ;
662(Coroutine_2)__receiver)
663 }
664 }
665 #[doc = "`AsEnumerable()` overload"]
666 fn as_enumerable(self) -> crate::system::collections::generic::ienumerable_1::IEnumerable_1<crate::system::object::Object> {
667 unsafe {
668 let __receiver = <Coroutine_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
669 ::unity::il2cpp_call!(__Coroutine_2_unity_raw::__lookup_as_enumerable::get_method_info().method_ptr,crate::system::collections::generic::ienumerable_1::IEnumerable_1<crate::system::object::Object> ;
670(Coroutine_2)__receiver)
671 }
672 }
673 #[doc = "`AsUnityCoroutine()` overload"]
674 fn as_unity_coroutine(self) -> crate::system::collections::ienumerator::IEnumerator {
675 unsafe {
676 let __receiver = <Coroutine_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
677 ::unity::il2cpp_call!(__Coroutine_2_unity_raw::__lookup_as_unity_coroutine::get_method_info().method_ptr,crate::system::collections::ienumerator::IEnumerator;
678(Coroutine_2)__receiver)
679 }
680 }
681 #[doc = "`Resume(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
682 fn resume(
683 self,
684 args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>,
685 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
686 unsafe {
687 let __receiver = <Coroutine_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
688 ::unity::il2cpp_call!(__Coroutine_2_unity_raw::__lookup_resume::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
689(Coroutine_2)__receiver,(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
690 }
691 }
692 #[doc = "`Resume(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
693 fn resume_2(
694 self,
695 context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
696 args: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>>,
697 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
698 unsafe {
699 let __receiver = <Coroutine_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
700 ::unity::il2cpp_call!(__Coroutine_2_unity_raw::__lookup_resume_2::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
701(Coroutine_2)__receiver,(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)::core::convert::Into::into(context),(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(args))
702 }
703 }
704 #[doc = "`Resume()` overload"]
705 fn resume_3(self) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
706 unsafe {
707 let __receiver = <Coroutine_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
708 ::unity::il2cpp_call!(__Coroutine_2_unity_raw::__lookup_resume_3::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
709(Coroutine_2)__receiver)
710 }
711 }
712 #[doc = "`Resume(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)` overload"]
713 fn resume_4(
714 self,
715 context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
716 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
717 unsafe {
718 let __receiver = <Coroutine_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
719 ::unity::il2cpp_call!(__Coroutine_2_unity_raw::__lookup_resume_4::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
720(Coroutine_2)__receiver,(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)::core::convert::Into::into(context))
721 }
722 }
723 #[doc = "`Resume(::unity::Array<crate::system::object::Object>)` overload"]
724 fn resume_5(
725 self,
726 args: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
727 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
728 unsafe {
729 let __receiver = <Coroutine_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
730 ::unity::il2cpp_call!(__Coroutine_2_unity_raw::__lookup_resume_5::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
731(Coroutine_2)__receiver,(::unity::Array<crate::system::object::Object>)::core::convert::Into::into(args))
732 }
733 }
734 #[doc = "`Resume(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, ::unity::Array<crate::system::object::Object>)` overload"]
735 fn resume_6(
736 self,
737 context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
738 args: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
739 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
740 unsafe {
741 let __receiver = <Coroutine_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
742 ::unity::il2cpp_call!(__Coroutine_2_unity_raw::__lookup_resume_6::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
743(Coroutine_2)__receiver,(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)::core::convert::Into::into(context),(::unity::Array<crate::system::object::Object>)::core::convert::Into::into(args))
744 }
745 }
746 #[doc = "`get_State()` overload"]
747 fn get_state(self) -> crate::moon_sharp::interpreter::coroutinestate::CoroutineState {
748 unsafe {
749 let __receiver = <Coroutine_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
750 ::unity::il2cpp_call!(__Coroutine_2_unity_raw::__lookup_get_state::get_method_info().method_ptr,crate::moon_sharp::interpreter::coroutinestate::CoroutineState;
751(Coroutine_2)__receiver)
752 }
753 }
754 #[doc = "`GetStackTrace(i32, crate::moon_sharp::interpreter::debugging::sourceref::SourceRef)` overload"]
755 fn get_stack_trace(
756 self,
757 skip: impl ::core::convert::Into<i32>,
758 entry_source_ref: impl ::core::convert::Into<crate::moon_sharp::interpreter::debugging::sourceref::SourceRef>,
759 ) -> ::unity::Array<crate::moon_sharp::interpreter::debugging::watchitem::WatchItem> {
760 unsafe {
761 let __receiver = <Coroutine_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
762 ::unity::il2cpp_call!(__Coroutine_2_unity_raw::__lookup_get_stack_trace::get_method_info().method_ptr, ::unity::Array<crate::moon_sharp::interpreter::debugging::watchitem::WatchItem> ;
763(Coroutine_2)__receiver,(i32)::core::convert::Into::into(skip),(crate::moon_sharp::interpreter::debugging::sourceref::SourceRef)::core::convert::Into::into(entry_source_ref))
764 }
765 }
766 #[doc = "`get_OwnerScript()` overload"]
767 fn get_owner_script(self) -> crate::moon_sharp::interpreter::script::Script {
768 unsafe {
769 let __receiver = <Coroutine_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
770 {
771 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
772 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
773 panic!(
774 "unity: virtual slot {}
775 out of range (vtable len {}
776) on the runtime class behind {}
777 (method `{}
778`)",
779 4usize,
780 __vt.len(),
781 <Coroutine_2 as ::unity::ClassIdentity>::NAME,
782 "get_OwnerScript",
783 )
784 });
785 let __inner: extern "C" fn(Coroutine_2, ::unity::OptionalMethod) -> crate::moon_sharp::interpreter::script::Script =
786 ::core::mem::transmute(__vi.method_ptr);
787 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
788 __inner(__receiver, __mi)
789 }
790 }
791 }
792 #[doc = "`set_OwnerScript(crate::moon_sharp::interpreter::script::Script)` overload"]
793 fn set_owner_script(self, value: impl ::core::convert::Into<crate::moon_sharp::interpreter::script::Script>) -> () {
794 unsafe {
795 let __receiver = <Coroutine_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
796 ::unity::il2cpp_call!(__Coroutine_2_unity_raw::__lookup_set_owner_script::get_method_info().method_ptr,();
797(Coroutine_2)__receiver,(crate::moon_sharp::interpreter::script::Script)::core::convert::Into::into(value))
798 }
799 }
800 #[doc = "`get_AutoYieldCounter()` overload"]
801 fn get_auto_yield_counter(self) -> i64 {
802 unsafe {
803 let __receiver = <Coroutine_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
804 ::unity::il2cpp_call!(__Coroutine_2_unity_raw::__lookup_get_auto_yield_counter::get_method_info().method_ptr,i64;
805(Coroutine_2)__receiver)
806 }
807 }
808 #[doc = "`set_AutoYieldCounter(i64)` overload"]
809 fn set_auto_yield_counter(self, value: impl ::core::convert::Into<i64>) -> () {
810 unsafe {
811 let __receiver = <Coroutine_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
812 ::unity::il2cpp_call!(__Coroutine_2_unity_raw::__lookup_set_auto_yield_counter::get_method_info().method_ptr,();
813(Coroutine_2)__receiver,(i64)::core::convert::Into::into(value))
814 }
815 }
816}
817
818#[cfg(feature = "moon_sharp-interpreter-coroutine_2")]
819impl<__T: ICoroutine_2> ICoroutine_2Methods for __T {}
820
821#[cfg(feature = "moon_sharp-interpreter-coroutine_2")]
822impl Coroutine_2 {
823 pub fn get_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
824 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
825 }
826
827 pub fn set_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
828 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
829 }
830
831 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
832 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
833 }
834
835 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
836 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
837 }
838
839 pub fn mark_clr_callback_as_dead_method_info() -> &'static ::unity::il2cpp::MethodInfo {
840 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
841 }
842
843 pub fn as_typed_enumerable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
844 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
845 }
846
847 pub fn as_enumerable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
848 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
849 }
850
851 pub fn as_unity_coroutine_method_info() -> &'static ::unity::il2cpp::MethodInfo {
852 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
853 }
854
855 pub fn resume_method_info() -> &'static ::unity::il2cpp::MethodInfo {
856 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
857 }
858
859 pub fn resume_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
860 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
861 }
862
863 pub fn resume_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
864 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
865 }
866
867 pub fn resume_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
868 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
869 }
870
871 pub fn resume_5_method_info() -> &'static ::unity::il2cpp::MethodInfo {
872 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
873 }
874
875 pub fn resume_6_method_info() -> &'static ::unity::il2cpp::MethodInfo {
876 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
877 }
878
879 pub fn get_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
880 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
881 }
882
883 pub fn get_stack_trace_method_info() -> &'static ::unity::il2cpp::MethodInfo {
884 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
885 }
886
887 pub fn get_owner_script_method_info() -> &'static ::unity::il2cpp::MethodInfo {
888 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
889 }
890
891 pub fn set_owner_script_method_info() -> &'static ::unity::il2cpp::MethodInfo {
892 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
893 }
894
895 pub fn get_auto_yield_counter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
896 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
897 }
898
899 pub fn set_auto_yield_counter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
900 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
901 }
902}
903
904#[cfg(feature = "moon_sharp-interpreter-coroutine_2")]
905impl Coroutine_2 {
906 #[doc = "Direct (non-virtual) call to `Coroutine_2`'s own `get_OwnerScript`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
907 pub unsafe fn get_owner_script(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::moon_sharp::interpreter::script::Script {
908 let __mi = Self::get_owner_script_method_info();
909 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::moon_sharp::interpreter::script::Script =
910 ::core::mem::transmute(__mi.method_ptr);
911 __inner(this.into(), ::core::option::Option::None)
912 }
913}
914
915#[cfg(feature = "moon_sharp-interpreter-coroutine_2")]
916impl Coroutine_2 {
917 #[doc = "`.ctor(crate::moon_sharp::interpreter::callbackfunction::CallbackFunction)` — overload selector"]
918 pub fn new(function: crate::moon_sharp::interpreter::callbackfunction::CallbackFunction) -> Self {
919 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
920 panic!(
921 "{}
922::{}
923 failed to instantiate",
924 ::core::stringify!(Coroutine_2),
925 ::core::stringify!(new),
926 )
927 });
928 <Self as ICoroutine_2Methods>::ctor(this, function);
929 this
930 }
931
932 #[doc = "`.ctor(crate::moon_sharp::interpreter::execution::vm::processor::Processor)` — overload selector"]
933 pub fn new_2(proc: crate::moon_sharp::interpreter::execution::vm::processor::Processor) -> Self {
934 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
935 panic!(
936 "{}
937::{}
938 failed to instantiate",
939 ::core::stringify!(Coroutine_2),
940 ::core::stringify!(new_2),
941 )
942 });
943 <Self as ICoroutine_2Methods>::ctor_2(this, proc);
944 this
945 }
946}
947
948#[cfg(feature = "moon_sharp-interpreter-coroutine_2")]
949#[doc(hidden)]
950pub mod prelude {
951 pub use super::{Coroutine_2, Coroutine_CoroutineType, ICoroutine_2, ICoroutine_2Methods};
952 #[cfg(feature = "moon_sharp-interpreter-refidobject")]
953 pub use crate::moon_sharp::interpreter::refidobject::IRefIdObjectMethods;
954 #[cfg(feature = "system-object")]
955 pub use crate::system::object::IObjectMethods;
956 #[cfg(feature = "system-enum")]
957 pub use crate::system::r#enum::IEnumMethods;
958 #[cfg(feature = "system-valuetype")]
959 pub use crate::system::valuetype::IValueTypeMethods;
960 pub use crate::{
961 moon_sharp::interpreter::refidobject::IRefIdObject,
962 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
963 };
964}