engage/generated/moon_sharp/interpreter/
yieldrequest.rs1#[cfg(feature = "moon_sharp-interpreter-yieldrequest-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/yieldrequest/YieldRequest.md"))]
11 #[::unity::class(namespace = "MoonSharp.Interpreter", name = "YieldRequest")]
12 #[parent(crate::system::object::Object)]
13 pub struct YieldRequest {
14 #[offset(16)]
15 #[rename(name = "ReturnValues")]
16 pub return_values: ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>,
17 }
18}
19
20#[cfg(feature = "moon_sharp-interpreter-yieldrequest-types")]
21pub use __types::*;
22
23#[cfg(feature = "moon_sharp-interpreter-yieldrequest")]
24#[doc(hidden)]
25#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
26mod __YieldRequest_unity_raw {
27 use super::*;
28 #[doc(hidden)]
29 #[allow(non_snake_case)]
30 pub mod __lookup_get_forced {
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 <YieldRequest as ::unity::ClassIdentity>::class(),
36 "get_Forced",
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 <YieldRequest as ::unity::ClassIdentity>::NAME,
52 "get_Forced",
53 e
54 )
55 },
56 }
57 }
58 }
59 #[doc(hidden)]
60 #[allow(non_snake_case)]
61 pub mod __lookup_set_forced {
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] = &[<bool as ::unity::IlType>::il_type()];
65 ::unity::lookup::method_info_on_class_with_signature(
66 <YieldRequest as ::unity::ClassIdentity>::class(),
67 "set_Forced",
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 <YieldRequest as ::unity::ClassIdentity>::NAME,
83 "set_Forced",
84 e
85 )
86 },
87 }
88 }
89 }
90 #[doc(hidden)]
91 #[allow(non_snake_case)]
92 pub mod __lookup_ctor {
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(<YieldRequest as ::unity::ClassIdentity>::class(), ".ctor", 0, param_types, false)
97 });
98 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
99 match &*METHOD {
100 ::core::result::Result::Ok(mi) => *mi,
101 ::core::result::Result::Err(e) => {
102 panic!(
103 "method lookup failed: {}
104::{}
105: {}
106",
107 <YieldRequest as ::unity::ClassIdentity>::NAME,
108 ".ctor",
109 e
110 )
111 },
112 }
113 }
114 }
115}
116
117#[cfg(feature = "moon_sharp-interpreter-yieldrequest")]
118pub trait IYieldRequestMethods: IYieldRequest {
119 #[doc = "`get_Forced()` overload"]
120 fn get_forced(self) -> bool {
121 unsafe {
122 let __receiver = <YieldRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123 ::unity::il2cpp_call!(__YieldRequest_unity_raw::__lookup_get_forced::get_method_info().method_ptr,bool;
124(YieldRequest)__receiver)
125 }
126 }
127 #[doc = "`set_Forced(bool)` overload"]
128 fn set_forced(self, value: impl ::core::convert::Into<bool>) -> () {
129 unsafe {
130 let __receiver = <YieldRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131 ::unity::il2cpp_call!(__YieldRequest_unity_raw::__lookup_set_forced::get_method_info().method_ptr,();
132(YieldRequest)__receiver,(bool)::core::convert::Into::into(value))
133 }
134 }
135 #[doc = "`.ctor()` overload"]
136 fn ctor(self) -> () {
137 unsafe {
138 let __receiver = <YieldRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
139 ::unity::il2cpp_call!(__YieldRequest_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
140(YieldRequest)__receiver)
141 }
142 }
143}
144
145#[cfg(feature = "moon_sharp-interpreter-yieldrequest")]
146impl<__T: IYieldRequest> IYieldRequestMethods for __T {}
147
148#[cfg(feature = "moon_sharp-interpreter-yieldrequest")]
149impl YieldRequest {
150 pub fn get_forced_method_info() -> &'static ::unity::il2cpp::MethodInfo {
151 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
152 }
153
154 pub fn set_forced_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
156 }
157
158 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
160 }
161}
162
163#[cfg(feature = "moon_sharp-interpreter-yieldrequest")]
164impl YieldRequest {
165 #[doc = "`.ctor()` — no args"]
166 pub fn new() -> Self {
167 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
168 panic!(
169 "{}
170::{}
171 failed to instantiate",
172 ::core::stringify!(YieldRequest),
173 ::core::stringify!(new),
174 )
175 });
176 <Self as IYieldRequestMethods>::ctor(this);
177 this
178 }
179}
180
181#[cfg(feature = "moon_sharp-interpreter-yieldrequest")]
182#[doc(hidden)]
183pub mod prelude {
184 pub use super::{IYieldRequest, IYieldRequestMethods, YieldRequest};
185 pub use crate::system::object::IObject;
186 #[cfg(feature = "system-object")]
187 pub use crate::system::object::IObjectMethods;
188}