engage/generated/moon_sharp/interpreter/
scriptglobaloptions.rs1#[cfg(feature = "moon_sharp-interpreter-scriptglobaloptions-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/scriptglobaloptions/ScriptGlobalOptions.md"))]
11 #[::unity::class(namespace = "MoonSharp.Interpreter", name = "ScriptGlobalOptions")]
12 #[parent(crate::system::object::Object)]
13 pub struct ScriptGlobalOptions {}
14}
15
16#[cfg(feature = "moon_sharp-interpreter-scriptglobaloptions-types")]
17pub use __types::*;
18
19#[cfg(feature = "moon_sharp-interpreter-scriptglobaloptions")]
20#[doc(hidden)]
21#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
22mod __ScriptGlobalOptions_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(
31 <ScriptGlobalOptions as ::unity::ClassIdentity>::class(),
32 ".ctor",
33 0,
34 param_types,
35 false,
36 )
37 });
38 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
39 match &*METHOD {
40 ::core::result::Result::Ok(mi) => *mi,
41 ::core::result::Result::Err(e) => {
42 panic!(
43 "method lookup failed: {}
44::{}
45: {}
46",
47 <ScriptGlobalOptions as ::unity::ClassIdentity>::NAME,
48 ".ctor",
49 e
50 )
51 },
52 }
53 }
54 }
55 #[doc(hidden)]
56 #[allow(non_snake_case)]
57 pub mod __lookup_get_custom_converters {
58 use super::*;
59 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
60 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
61 ::unity::lookup::method_info_on_class_with_signature(
62 <ScriptGlobalOptions as ::unity::ClassIdentity>::class(),
63 "get_CustomConverters",
64 0,
65 param_types,
66 false,
67 )
68 });
69 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
70 match &*METHOD {
71 ::core::result::Result::Ok(mi) => *mi,
72 ::core::result::Result::Err(e) => {
73 panic!(
74 "method lookup failed: {}
75::{}
76: {}
77",
78 <ScriptGlobalOptions as ::unity::ClassIdentity>::NAME,
79 "get_CustomConverters",
80 e
81 )
82 },
83 }
84 }
85 }
86 #[doc(hidden)]
87 #[allow(non_snake_case)]
88 pub mod __lookup_set_custom_converters {
89 use super::*;
90 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
91 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
92 &[<crate::moon_sharp::interpreter::interop::customconverterscollection::CustomConvertersCollection as ::unity::IlType>::il_type()];
93 ::unity::lookup::method_info_on_class_with_signature(
94 <ScriptGlobalOptions as ::unity::ClassIdentity>::class(),
95 "set_CustomConverters",
96 1,
97 param_types,
98 false,
99 )
100 });
101 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102 match &*METHOD {
103 ::core::result::Result::Ok(mi) => *mi,
104 ::core::result::Result::Err(e) => {
105 panic!(
106 "method lookup failed: {}
107::{}
108: {}
109",
110 <ScriptGlobalOptions as ::unity::ClassIdentity>::NAME,
111 "set_CustomConverters",
112 e
113 )
114 },
115 }
116 }
117 }
118 #[doc(hidden)]
119 #[allow(non_snake_case)]
120 pub mod __lookup_get_platform {
121 use super::*;
122 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
123 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
124 ::unity::lookup::method_info_on_class_with_signature(
125 <ScriptGlobalOptions as ::unity::ClassIdentity>::class(),
126 "get_Platform",
127 0,
128 param_types,
129 false,
130 )
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 <ScriptGlobalOptions as ::unity::ClassIdentity>::NAME,
142 "get_Platform",
143 e
144 )
145 },
146 }
147 }
148 }
149 #[doc(hidden)]
150 #[allow(non_snake_case)]
151 pub mod __lookup_set_platform {
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::platforms::iplatformaccessor::IPlatformAccessor as ::unity::IlType>::il_type()];
156 ::unity::lookup::method_info_on_class_with_signature(
157 <ScriptGlobalOptions as ::unity::ClassIdentity>::class(),
158 "set_Platform",
159 1,
160 param_types,
161 false,
162 )
163 });
164 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165 match &*METHOD {
166 ::core::result::Result::Ok(mi) => *mi,
167 ::core::result::Result::Err(e) => {
168 panic!(
169 "method lookup failed: {}
170::{}
171: {}
172",
173 <ScriptGlobalOptions as ::unity::ClassIdentity>::NAME,
174 "set_Platform",
175 e
176 )
177 },
178 }
179 }
180 }
181 #[doc(hidden)]
182 #[allow(non_snake_case)]
183 pub mod __lookup_get_rethrow_exception_nested {
184 use super::*;
185 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
186 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
187 ::unity::lookup::method_info_on_class_with_signature(
188 <ScriptGlobalOptions as ::unity::ClassIdentity>::class(),
189 "get_RethrowExceptionNested",
190 0,
191 param_types,
192 false,
193 )
194 });
195 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196 match &*METHOD {
197 ::core::result::Result::Ok(mi) => *mi,
198 ::core::result::Result::Err(e) => {
199 panic!(
200 "method lookup failed: {}
201::{}
202: {}
203",
204 <ScriptGlobalOptions as ::unity::ClassIdentity>::NAME,
205 "get_RethrowExceptionNested",
206 e
207 )
208 },
209 }
210 }
211 }
212 #[doc(hidden)]
213 #[allow(non_snake_case)]
214 pub mod __lookup_set_rethrow_exception_nested {
215 use super::*;
216 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
217 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<bool as ::unity::IlType>::il_type()];
218 ::unity::lookup::method_info_on_class_with_signature(
219 <ScriptGlobalOptions as ::unity::ClassIdentity>::class(),
220 "set_RethrowExceptionNested",
221 1,
222 param_types,
223 false,
224 )
225 });
226 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
227 match &*METHOD {
228 ::core::result::Result::Ok(mi) => *mi,
229 ::core::result::Result::Err(e) => {
230 panic!(
231 "method lookup failed: {}
232::{}
233: {}
234",
235 <ScriptGlobalOptions as ::unity::ClassIdentity>::NAME,
236 "set_RethrowExceptionNested",
237 e
238 )
239 },
240 }
241 }
242 }
243}
244
245#[cfg(feature = "moon_sharp-interpreter-scriptglobaloptions")]
246pub trait IScriptGlobalOptionsMethods: IScriptGlobalOptions {
247 #[doc = "`.ctor()` overload"]
248 fn ctor(self) -> () {
249 unsafe {
250 let __receiver = <ScriptGlobalOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
251 ::unity::il2cpp_call!(__ScriptGlobalOptions_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
252(ScriptGlobalOptions)__receiver)
253 }
254 }
255 #[doc = "`get_CustomConverters()` overload"]
256 fn get_custom_converters(self) -> crate::moon_sharp::interpreter::interop::customconverterscollection::CustomConvertersCollection {
257 unsafe {
258 let __receiver = <ScriptGlobalOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
259 ::unity::il2cpp_call!(__ScriptGlobalOptions_unity_raw::__lookup_get_custom_converters::get_method_info().method_ptr,crate::moon_sharp::interpreter::interop::customconverterscollection::CustomConvertersCollection;
260(ScriptGlobalOptions)__receiver)
261 }
262 }
263 #[doc = "`set_CustomConverters(crate::moon_sharp::interpreter::interop::customconverterscollection::CustomConvertersCollection)` overload"]
264 fn set_custom_converters(
265 self,
266 value: impl ::core::convert::Into<crate::moon_sharp::interpreter::interop::customconverterscollection::CustomConvertersCollection>,
267 ) -> () {
268 unsafe {
269 let __receiver = <ScriptGlobalOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
270 ::unity::il2cpp_call!(__ScriptGlobalOptions_unity_raw::__lookup_set_custom_converters::get_method_info().method_ptr,();
271(ScriptGlobalOptions)__receiver,(crate::moon_sharp::interpreter::interop::customconverterscollection::CustomConvertersCollection)::core::convert::Into::into(value))
272 }
273 }
274 #[doc = "`get_Platform()` overload"]
275 fn get_platform(self) -> crate::moon_sharp::interpreter::platforms::iplatformaccessor::IPlatformAccessor {
276 unsafe {
277 let __receiver = <ScriptGlobalOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
278 ::unity::il2cpp_call!(__ScriptGlobalOptions_unity_raw::__lookup_get_platform::get_method_info().method_ptr,crate::moon_sharp::interpreter::platforms::iplatformaccessor::IPlatformAccessor;
279(ScriptGlobalOptions)__receiver)
280 }
281 }
282 #[doc = "`set_Platform(crate::moon_sharp::interpreter::platforms::iplatformaccessor::IPlatformAccessor)` overload"]
283 fn set_platform(self, value: impl ::core::convert::Into<crate::moon_sharp::interpreter::platforms::iplatformaccessor::IPlatformAccessor>) -> () {
284 unsafe {
285 let __receiver = <ScriptGlobalOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
286 ::unity::il2cpp_call!(__ScriptGlobalOptions_unity_raw::__lookup_set_platform::get_method_info().method_ptr,();
287(ScriptGlobalOptions)__receiver,(crate::moon_sharp::interpreter::platforms::iplatformaccessor::IPlatformAccessor)::core::convert::Into::into(value))
288 }
289 }
290 #[doc = "`get_RethrowExceptionNested()` overload"]
291 fn get_rethrow_exception_nested(self) -> bool {
292 unsafe {
293 let __receiver = <ScriptGlobalOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
294 ::unity::il2cpp_call!(__ScriptGlobalOptions_unity_raw::__lookup_get_rethrow_exception_nested::get_method_info().method_ptr,bool;
295(ScriptGlobalOptions)__receiver)
296 }
297 }
298 #[doc = "`set_RethrowExceptionNested(bool)` overload"]
299 fn set_rethrow_exception_nested(self, value: impl ::core::convert::Into<bool>) -> () {
300 unsafe {
301 let __receiver = <ScriptGlobalOptions as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
302 ::unity::il2cpp_call!(__ScriptGlobalOptions_unity_raw::__lookup_set_rethrow_exception_nested::get_method_info().method_ptr,();
303(ScriptGlobalOptions)__receiver,(bool)::core::convert::Into::into(value))
304 }
305 }
306}
307
308#[cfg(feature = "moon_sharp-interpreter-scriptglobaloptions")]
309impl<__T: IScriptGlobalOptions> IScriptGlobalOptionsMethods for __T {}
310
311#[cfg(feature = "moon_sharp-interpreter-scriptglobaloptions")]
312impl ScriptGlobalOptions {
313 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
315 }
316
317 pub fn get_custom_converters_method_info() -> &'static ::unity::il2cpp::MethodInfo {
318 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
319 }
320
321 pub fn set_custom_converters_method_info() -> &'static ::unity::il2cpp::MethodInfo {
322 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
323 }
324
325 pub fn get_platform_method_info() -> &'static ::unity::il2cpp::MethodInfo {
326 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
327 }
328
329 pub fn set_platform_method_info() -> &'static ::unity::il2cpp::MethodInfo {
330 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
331 }
332
333 pub fn get_rethrow_exception_nested_method_info() -> &'static ::unity::il2cpp::MethodInfo {
334 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
335 }
336
337 pub fn set_rethrow_exception_nested_method_info() -> &'static ::unity::il2cpp::MethodInfo {
338 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
339 }
340}
341
342#[cfg(feature = "moon_sharp-interpreter-scriptglobaloptions")]
343impl ScriptGlobalOptions {
344 #[doc = "`.ctor()` — no args"]
345 pub fn new() -> Self {
346 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
347 panic!(
348 "{}
349::{}
350 failed to instantiate",
351 ::core::stringify!(ScriptGlobalOptions),
352 ::core::stringify!(new),
353 )
354 });
355 <Self as IScriptGlobalOptionsMethods>::ctor(this);
356 this
357 }
358}
359
360#[cfg(feature = "moon_sharp-interpreter-scriptglobaloptions")]
361#[doc(hidden)]
362pub mod prelude {
363 pub use super::{IScriptGlobalOptions, IScriptGlobalOptionsMethods, ScriptGlobalOptions};
364 pub use crate::system::object::IObject;
365 #[cfg(feature = "system-object")]
366 pub use crate::system::object::IObjectMethods;
367}