1#[cfg(feature = "moon_sharp-interpreter-core_lib-loadmodule-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/core_lib/loadmodule/LoadModule.md"))]
11 #[::unity::class(namespace = "MoonSharp.Interpreter.CoreLib", name = "LoadModule")]
12 #[parent(crate::system::object::Object)]
13 pub struct LoadModule {
14 #[static_field]
15 #[rename(name = "require")]
16 pub require: ::unity::Il2CppString,
17 }
18}
19
20#[cfg(feature = "moon_sharp-interpreter-core_lib-loadmodule-types")]
21pub use __types::*;
22
23#[cfg(feature = "moon_sharp-interpreter-core_lib-loadmodule")]
24#[doc(hidden)]
25#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
26mod __LoadModule_unity_raw {
27 use super::*;
28 #[doc(hidden)]
29 #[allow(non_snake_case)]
30 pub mod __lookup_moon_sharp_init {
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 <crate::moon_sharp::interpreter::table::Table as ::unity::IlType>::il_type(),
35 <crate::moon_sharp::interpreter::table::Table as ::unity::IlType>::il_type(),
36 ];
37 ::unity::lookup::method_info_on_class_with_signature(
38 <LoadModule as ::unity::ClassIdentity>::class(),
39 "MoonSharpInit",
40 2,
41 param_types,
42 true,
43 )
44 });
45 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
46 match &*METHOD {
47 ::core::result::Result::Ok(mi) => *mi,
48 ::core::result::Result::Err(e) => {
49 panic!(
50 "method lookup failed: {}
51::{}
52: {}
53",
54 <LoadModule as ::unity::ClassIdentity>::NAME,
55 "MoonSharpInit",
56 e
57 )
58 },
59 }
60 }
61 }
62 #[doc(hidden)]
63 #[allow(non_snake_case)]
64 pub mod __lookup_load {
65 use super::*;
66 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
67 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
68 <crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext as ::unity::IlType>::il_type(),
69 <crate::moon_sharp::interpreter::callbackarguments::CallbackArguments as ::unity::IlType>::il_type(),
70 ];
71 ::unity::lookup::method_info_on_class_with_signature(<LoadModule as ::unity::ClassIdentity>::class(), "load", 2, param_types, true)
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 <LoadModule as ::unity::ClassIdentity>::NAME,
83 "load",
84 e
85 )
86 },
87 }
88 }
89 }
90 #[doc(hidden)]
91 #[allow(non_snake_case)]
92 pub mod __lookup_loadsafe {
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 <crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext as ::unity::IlType>::il_type(),
97 <crate::moon_sharp::interpreter::callbackarguments::CallbackArguments as ::unity::IlType>::il_type(),
98 ];
99 ::unity::lookup::method_info_on_class_with_signature(<LoadModule as ::unity::ClassIdentity>::class(), "loadsafe", 2, param_types, true)
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 <LoadModule as ::unity::ClassIdentity>::NAME,
111 "loadsafe",
112 e
113 )
114 },
115 }
116 }
117 }
118 #[doc(hidden)]
119 #[allow(non_snake_case)]
120 pub mod __lookup_load_impl {
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 <crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext as ::unity::IlType>::il_type(),
125 <crate::moon_sharp::interpreter::callbackarguments::CallbackArguments as ::unity::IlType>::il_type(),
126 <crate::moon_sharp::interpreter::table::Table as ::unity::IlType>::il_type(),
127 ];
128 ::unity::lookup::method_info_on_class_with_signature(<LoadModule as ::unity::ClassIdentity>::class(), "load_impl", 3, param_types, true)
129 });
130 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131 match &*METHOD {
132 ::core::result::Result::Ok(mi) => *mi,
133 ::core::result::Result::Err(e) => {
134 panic!(
135 "method lookup failed: {}
136::{}
137: {}
138",
139 <LoadModule as ::unity::ClassIdentity>::NAME,
140 "load_impl",
141 e
142 )
143 },
144 }
145 }
146 }
147 #[doc(hidden)]
148 #[allow(non_snake_case)]
149 pub mod __lookup_loadfile {
150 use super::*;
151 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
152 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
153 <crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext as ::unity::IlType>::il_type(),
154 <crate::moon_sharp::interpreter::callbackarguments::CallbackArguments as ::unity::IlType>::il_type(),
155 ];
156 ::unity::lookup::method_info_on_class_with_signature(<LoadModule as ::unity::ClassIdentity>::class(), "loadfile", 2, param_types, true)
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 <LoadModule as ::unity::ClassIdentity>::NAME,
168 "loadfile",
169 e
170 )
171 },
172 }
173 }
174 }
175 #[doc(hidden)]
176 #[allow(non_snake_case)]
177 pub mod __lookup_loadfilesafe {
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 <crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext as ::unity::IlType>::il_type(),
182 <crate::moon_sharp::interpreter::callbackarguments::CallbackArguments as ::unity::IlType>::il_type(),
183 ];
184 ::unity::lookup::method_info_on_class_with_signature(
185 <LoadModule as ::unity::ClassIdentity>::class(),
186 "loadfilesafe",
187 2,
188 param_types,
189 true,
190 )
191 });
192 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193 match &*METHOD {
194 ::core::result::Result::Ok(mi) => *mi,
195 ::core::result::Result::Err(e) => {
196 panic!(
197 "method lookup failed: {}
198::{}
199: {}
200",
201 <LoadModule as ::unity::ClassIdentity>::NAME,
202 "loadfilesafe",
203 e
204 )
205 },
206 }
207 }
208 }
209 #[doc(hidden)]
210 #[allow(non_snake_case)]
211 pub mod __lookup_loadfile_impl {
212 use super::*;
213 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
214 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
215 <crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext as ::unity::IlType>::il_type(),
216 <crate::moon_sharp::interpreter::callbackarguments::CallbackArguments as ::unity::IlType>::il_type(),
217 <crate::moon_sharp::interpreter::table::Table as ::unity::IlType>::il_type(),
218 ];
219 ::unity::lookup::method_info_on_class_with_signature(
220 <LoadModule as ::unity::ClassIdentity>::class(),
221 "loadfile_impl",
222 3,
223 param_types,
224 true,
225 )
226 });
227 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
228 match &*METHOD {
229 ::core::result::Result::Ok(mi) => *mi,
230 ::core::result::Result::Err(e) => {
231 panic!(
232 "method lookup failed: {}
233::{}
234: {}
235",
236 <LoadModule as ::unity::ClassIdentity>::NAME,
237 "loadfile_impl",
238 e
239 )
240 },
241 }
242 }
243 }
244 #[doc(hidden)]
245 #[allow(non_snake_case)]
246 pub mod __lookup_get_safe_default_env {
247 use super::*;
248 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
249 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
250 &[<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext as ::unity::IlType>::il_type()];
251 ::unity::lookup::method_info_on_class_with_signature(
252 <LoadModule as ::unity::ClassIdentity>::class(),
253 "GetSafeDefaultEnv",
254 1,
255 param_types,
256 true,
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 <LoadModule as ::unity::ClassIdentity>::NAME,
269 "GetSafeDefaultEnv",
270 e
271 )
272 },
273 }
274 }
275 }
276 #[doc(hidden)]
277 #[allow(non_snake_case)]
278 pub mod __lookup_dofile {
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 <crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext as ::unity::IlType>::il_type(),
283 <crate::moon_sharp::interpreter::callbackarguments::CallbackArguments as ::unity::IlType>::il_type(),
284 ];
285 ::unity::lookup::method_info_on_class_with_signature(<LoadModule as ::unity::ClassIdentity>::class(), "dofile", 2, param_types, true)
286 });
287 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
288 match &*METHOD {
289 ::core::result::Result::Ok(mi) => *mi,
290 ::core::result::Result::Err(e) => {
291 panic!(
292 "method lookup failed: {}
293::{}
294: {}
295",
296 <LoadModule as ::unity::ClassIdentity>::NAME,
297 "dofile",
298 e
299 )
300 },
301 }
302 }
303 }
304 #[doc(hidden)]
305 #[allow(non_snake_case)]
306 pub mod __lookup_require_clr_impl {
307 use super::*;
308 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
309 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
310 <crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext as ::unity::IlType>::il_type(),
311 <crate::moon_sharp::interpreter::callbackarguments::CallbackArguments as ::unity::IlType>::il_type(),
312 ];
313 ::unity::lookup::method_info_on_class_with_signature(
314 <LoadModule as ::unity::ClassIdentity>::class(),
315 "__require_clr_impl",
316 2,
317 param_types,
318 true,
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 <LoadModule as ::unity::ClassIdentity>::NAME,
331 "__require_clr_impl",
332 e
333 )
334 },
335 }
336 }
337 }
338 #[doc(hidden)]
339 #[allow(non_snake_case)]
340 pub mod __lookup_ctor {
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(<LoadModule as ::unity::ClassIdentity>::class(), ".ctor", 0, param_types, false)
345 });
346 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
347 match &*METHOD {
348 ::core::result::Result::Ok(mi) => *mi,
349 ::core::result::Result::Err(e) => {
350 panic!(
351 "method lookup failed: {}
352::{}
353: {}
354",
355 <LoadModule as ::unity::ClassIdentity>::NAME,
356 ".ctor",
357 e
358 )
359 },
360 }
361 }
362 }
363}
364
365#[cfg(feature = "moon_sharp-interpreter-core_lib-loadmodule")]
366impl LoadModule {
367 #[doc = "`MoonSharpInit(crate::moon_sharp::interpreter::table::Table, crate::moon_sharp::interpreter::table::Table)` overload"]
368 pub fn moon_sharp_init(
369 global_table: impl ::core::convert::Into<crate::moon_sharp::interpreter::table::Table>,
370 io_table: impl ::core::convert::Into<crate::moon_sharp::interpreter::table::Table>,
371 ) -> () {
372 unsafe {
373 ::unity::il2cpp_call!(__LoadModule_unity_raw::__lookup_moon_sharp_init::get_method_info().method_ptr,();
374(crate::moon_sharp::interpreter::table::Table)::core::convert::Into::into(global_table),(crate::moon_sharp::interpreter::table::Table)::core::convert::Into::into(io_table))
375 }
376 }
377
378 #[doc = "`load(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)` overload"]
379 pub fn load(
380 execution_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
381 args: impl ::core::convert::Into<crate::moon_sharp::interpreter::callbackarguments::CallbackArguments>,
382 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
383 unsafe {
384 ::unity::il2cpp_call!(__LoadModule_unity_raw::__lookup_load::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
385(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)::core::convert::Into::into(execution_context),(crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)::core::convert::Into::into(args))
386 }
387 }
388
389 #[doc = "`loadsafe(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)` overload"]
390 pub fn loadsafe(
391 execution_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
392 args: impl ::core::convert::Into<crate::moon_sharp::interpreter::callbackarguments::CallbackArguments>,
393 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
394 unsafe {
395 ::unity::il2cpp_call!(__LoadModule_unity_raw::__lookup_loadsafe::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
396(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)::core::convert::Into::into(execution_context),(crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)::core::convert::Into::into(args))
397 }
398 }
399
400 #[doc = "`load_impl(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments, crate::moon_sharp::interpreter::table::Table)` overload"]
401 pub fn load_impl(
402 execution_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
403 args: impl ::core::convert::Into<crate::moon_sharp::interpreter::callbackarguments::CallbackArguments>,
404 default_env: impl ::core::convert::Into<crate::moon_sharp::interpreter::table::Table>,
405 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
406 unsafe {
407 ::unity::il2cpp_call!(__LoadModule_unity_raw::__lookup_load_impl::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
408(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)::core::convert::Into::into(execution_context),(crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)::core::convert::Into::into(args),(crate::moon_sharp::interpreter::table::Table)::core::convert::Into::into(default_env))
409 }
410 }
411
412 #[doc = "`loadfile(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)` overload"]
413 pub fn loadfile(
414 execution_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
415 args: impl ::core::convert::Into<crate::moon_sharp::interpreter::callbackarguments::CallbackArguments>,
416 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
417 unsafe {
418 ::unity::il2cpp_call!(__LoadModule_unity_raw::__lookup_loadfile::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
419(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)::core::convert::Into::into(execution_context),(crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)::core::convert::Into::into(args))
420 }
421 }
422
423 #[doc = "`loadfilesafe(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)` overload"]
424 pub fn loadfilesafe(
425 execution_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
426 args: impl ::core::convert::Into<crate::moon_sharp::interpreter::callbackarguments::CallbackArguments>,
427 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
428 unsafe {
429 ::unity::il2cpp_call!(__LoadModule_unity_raw::__lookup_loadfilesafe::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
430(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)::core::convert::Into::into(execution_context),(crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)::core::convert::Into::into(args))
431 }
432 }
433
434 #[doc = "`loadfile_impl(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments, crate::moon_sharp::interpreter::table::Table)` overload"]
435 pub fn loadfile_impl(
436 execution_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
437 args: impl ::core::convert::Into<crate::moon_sharp::interpreter::callbackarguments::CallbackArguments>,
438 default_env: impl ::core::convert::Into<crate::moon_sharp::interpreter::table::Table>,
439 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
440 unsafe {
441 ::unity::il2cpp_call!(__LoadModule_unity_raw::__lookup_loadfile_impl::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
442(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)::core::convert::Into::into(execution_context),(crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)::core::convert::Into::into(args),(crate::moon_sharp::interpreter::table::Table)::core::convert::Into::into(default_env))
443 }
444 }
445
446 #[doc = "`GetSafeDefaultEnv(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)` overload"]
447 pub fn get_safe_default_env(
448 execution_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
449 ) -> crate::moon_sharp::interpreter::table::Table {
450 unsafe {
451 ::unity::il2cpp_call!(__LoadModule_unity_raw::__lookup_get_safe_default_env::get_method_info().method_ptr,crate::moon_sharp::interpreter::table::Table;
452(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)::core::convert::Into::into(execution_context))
453 }
454 }
455
456 #[doc = "`dofile(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)` overload"]
457 pub fn dofile(
458 execution_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
459 args: impl ::core::convert::Into<crate::moon_sharp::interpreter::callbackarguments::CallbackArguments>,
460 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
461 unsafe {
462 ::unity::il2cpp_call!(__LoadModule_unity_raw::__lookup_dofile::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
463(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)::core::convert::Into::into(execution_context),(crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)::core::convert::Into::into(args))
464 }
465 }
466
467 #[doc = "`__require_clr_impl(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)` overload"]
468 pub fn require_clr_impl(
469 execution_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
470 args: impl ::core::convert::Into<crate::moon_sharp::interpreter::callbackarguments::CallbackArguments>,
471 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
472 unsafe {
473 ::unity::il2cpp_call!(__LoadModule_unity_raw::__lookup_require_clr_impl::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
474(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)::core::convert::Into::into(execution_context),(crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)::core::convert::Into::into(args))
475 }
476 }
477}
478
479#[cfg(feature = "moon_sharp-interpreter-core_lib-loadmodule")]
480pub trait ILoadModuleMethods: ILoadModule {
481 #[doc = "`.ctor()` overload"]
482 fn ctor(self) -> () {
483 unsafe {
484 let __receiver = <LoadModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
485 ::unity::il2cpp_call!(__LoadModule_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
486(LoadModule)__receiver)
487 }
488 }
489}
490
491#[cfg(feature = "moon_sharp-interpreter-core_lib-loadmodule")]
492impl<__T: ILoadModule> ILoadModuleMethods for __T {}
493
494#[cfg(feature = "moon_sharp-interpreter-core_lib-loadmodule")]
495impl LoadModule {
496 pub fn moon_sharp_init_method_info() -> &'static ::unity::il2cpp::MethodInfo {
497 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
498 }
499
500 pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
501 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
502 }
503
504 pub fn loadsafe_method_info() -> &'static ::unity::il2cpp::MethodInfo {
505 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
506 }
507
508 pub fn load_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
509 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
510 }
511
512 pub fn loadfile_method_info() -> &'static ::unity::il2cpp::MethodInfo {
513 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
514 }
515
516 pub fn loadfilesafe_method_info() -> &'static ::unity::il2cpp::MethodInfo {
517 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
518 }
519
520 pub fn loadfile_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
521 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
522 }
523
524 pub fn get_safe_default_env_method_info() -> &'static ::unity::il2cpp::MethodInfo {
525 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
526 }
527
528 pub fn dofile_method_info() -> &'static ::unity::il2cpp::MethodInfo {
529 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
530 }
531
532 pub fn require_clr_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
533 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
534 }
535
536 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
537 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
538 }
539}
540
541#[cfg(feature = "moon_sharp-interpreter-core_lib-loadmodule")]
542impl LoadModule {
543 #[doc = "`.ctor()` — no args"]
544 pub fn new() -> Self {
545 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
546 panic!(
547 "{}
548::{}
549 failed to instantiate",
550 ::core::stringify!(LoadModule),
551 ::core::stringify!(new),
552 )
553 });
554 <Self as ILoadModuleMethods>::ctor(this);
555 this
556 }
557}
558
559#[cfg(feature = "moon_sharp-interpreter-core_lib-loadmodule")]
560#[doc(hidden)]
561pub mod prelude {
562 pub use super::{ILoadModule, ILoadModuleMethods, LoadModule};
563 pub use crate::system::object::IObject;
564 #[cfg(feature = "system-object")]
565 pub use crate::system::object::IObjectMethods;
566}