Skip to main content

engage/generated/moon_sharp/interpreter/loaders/
scriptloaderbase.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-loaders-scriptloaderbase-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/loaders/scriptloaderbase/ScriptLoaderBase.md"))]
11    #[::unity::class(namespace = "MoonSharp.Interpreter.Loaders", name = "ScriptLoaderBase")]
12    #[parent(crate::system::object::Object)]
13    pub struct ScriptLoaderBase {}
14}
15
16#[cfg(feature = "moon_sharp-interpreter-loaders-scriptloaderbase-types")]
17pub use __types::*;
18
19#[cfg(feature = "moon_sharp-interpreter-loaders-scriptloaderbase")]
20#[doc(hidden)]
21#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
22mod __ScriptLoaderBase_unity_raw {
23    use super::*;
24    #[doc(hidden)]
25    #[allow(non_snake_case)]
26    pub mod __lookup_get_module_paths {
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                <ScriptLoaderBase as ::unity::ClassIdentity>::class(),
32                "get_ModulePaths",
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                        <ScriptLoaderBase as ::unity::ClassIdentity>::NAME,
48                        "get_ModulePaths",
49                        e
50                    )
51                },
52            }
53        }
54    }
55    #[doc(hidden)]
56    #[allow(non_snake_case)]
57    pub mod __lookup_set_module_paths {
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] = &[<::unity::Array<::unity::Il2CppString> as ::unity::IlType>::il_type()];
61            ::unity::lookup::method_info_on_class_with_signature(
62                <ScriptLoaderBase as ::unity::ClassIdentity>::class(),
63                "set_ModulePaths",
64                1,
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                        <ScriptLoaderBase as ::unity::ClassIdentity>::NAME,
79                        "set_ModulePaths",
80                        e
81                    )
82                },
83            }
84        }
85    }
86    #[doc(hidden)]
87    #[allow(non_snake_case)]
88    pub mod __lookup_unpack_string_paths {
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] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
92            ::unity::lookup::method_info_on_class_with_signature(
93                <ScriptLoaderBase as ::unity::ClassIdentity>::class(),
94                "UnpackStringPaths",
95                1,
96                param_types,
97                true,
98            )
99        });
100        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
101            match &*METHOD {
102                ::core::result::Result::Ok(mi) => *mi,
103                ::core::result::Result::Err(e) => {
104                    panic!(
105                        "method lookup failed: {}
106::{}
107: {}
108",
109                        <ScriptLoaderBase as ::unity::ClassIdentity>::NAME,
110                        "UnpackStringPaths",
111                        e
112                    )
113                },
114            }
115        }
116    }
117    #[doc(hidden)]
118    #[allow(non_snake_case)]
119    pub mod __lookup_get_default_environment_paths {
120        use super::*;
121        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
122            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
123            ::unity::lookup::method_info_on_class_with_signature(
124                <ScriptLoaderBase as ::unity::ClassIdentity>::class(),
125                "GetDefaultEnvironmentPaths",
126                0,
127                param_types,
128                true,
129            )
130        });
131        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132            match &*METHOD {
133                ::core::result::Result::Ok(mi) => *mi,
134                ::core::result::Result::Err(e) => {
135                    panic!(
136                        "method lookup failed: {}
137::{}
138: {}
139",
140                        <ScriptLoaderBase as ::unity::ClassIdentity>::NAME,
141                        "GetDefaultEnvironmentPaths",
142                        e
143                    )
144                },
145            }
146        }
147    }
148    #[doc(hidden)]
149    #[allow(non_snake_case)]
150    pub mod __lookup_get_ignore_lua_path_global {
151        use super::*;
152        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
153            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
154            ::unity::lookup::method_info_on_class_with_signature(
155                <ScriptLoaderBase as ::unity::ClassIdentity>::class(),
156                "get_IgnoreLuaPathGlobal",
157                0,
158                param_types,
159                false,
160            )
161        });
162        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163            match &*METHOD {
164                ::core::result::Result::Ok(mi) => *mi,
165                ::core::result::Result::Err(e) => {
166                    panic!(
167                        "method lookup failed: {}
168::{}
169: {}
170",
171                        <ScriptLoaderBase as ::unity::ClassIdentity>::NAME,
172                        "get_IgnoreLuaPathGlobal",
173                        e
174                    )
175                },
176            }
177        }
178    }
179    #[doc(hidden)]
180    #[allow(non_snake_case)]
181    pub mod __lookup_set_ignore_lua_path_global {
182        use super::*;
183        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
184            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<bool as ::unity::IlType>::il_type()];
185            ::unity::lookup::method_info_on_class_with_signature(
186                <ScriptLoaderBase as ::unity::ClassIdentity>::class(),
187                "set_IgnoreLuaPathGlobal",
188                1,
189                param_types,
190                false,
191            )
192        });
193        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194            match &*METHOD {
195                ::core::result::Result::Ok(mi) => *mi,
196                ::core::result::Result::Err(e) => {
197                    panic!(
198                        "method lookup failed: {}
199::{}
200: {}
201",
202                        <ScriptLoaderBase as ::unity::ClassIdentity>::NAME,
203                        "set_IgnoreLuaPathGlobal",
204                        e
205                    )
206                },
207            }
208        }
209    }
210    #[doc(hidden)]
211    #[allow(non_snake_case)]
212    pub mod __lookup_ctor {
213        use super::*;
214        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
215            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
216            ::unity::lookup::method_info_on_class_with_signature(
217                <ScriptLoaderBase as ::unity::ClassIdentity>::class(),
218                ".ctor",
219                0,
220                param_types,
221                false,
222            )
223        });
224        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
225            match &*METHOD {
226                ::core::result::Result::Ok(mi) => *mi,
227                ::core::result::Result::Err(e) => {
228                    panic!(
229                        "method lookup failed: {}
230::{}
231: {}
232",
233                        <ScriptLoaderBase as ::unity::ClassIdentity>::NAME,
234                        ".ctor",
235                        e
236                    )
237                },
238            }
239        }
240    }
241}
242
243#[cfg(feature = "moon_sharp-interpreter-loaders-scriptloaderbase")]
244impl ScriptLoaderBase {
245    #[doc = "`UnpackStringPaths(::unity::Il2CppString)` overload"]
246    pub fn unpack_string_paths(str: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Array<::unity::Il2CppString> {
247        unsafe {
248            ::unity::il2cpp_call!(__ScriptLoaderBase_unity_raw::__lookup_unpack_string_paths::get_method_info().method_ptr, ::unity::Array< ::unity::Il2CppString> ;
249(::unity::Il2CppString)::core::convert::Into::into(str))
250        }
251    }
252
253    #[doc = "`GetDefaultEnvironmentPaths()` overload"]
254    pub fn get_default_environment_paths() -> ::unity::Array<::unity::Il2CppString> {
255        unsafe {
256            ::unity::il2cpp_call!(__ScriptLoaderBase_unity_raw::__lookup_get_default_environment_paths::get_method_info().method_ptr, ::unity::Array< ::unity::Il2CppString> ;
257            )
258        }
259    }
260}
261
262#[cfg(feature = "moon_sharp-interpreter-loaders-scriptloaderbase")]
263pub trait IScriptLoaderBaseMethods: IScriptLoaderBase {
264    #[doc = "`ScriptFileExists(::unity::Il2CppString)` overload"]
265    fn script_file_exists(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
266        unsafe {
267            let __receiver = <ScriptLoaderBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
268            {
269                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
270                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
271                    panic!(
272                        "unity: virtual slot {}
273 out of range (vtable len {}
274) on the runtime class behind {}
275 (method `{}
276`)",
277                        7usize,
278                        __vt.len(),
279                        <ScriptLoaderBase as ::unity::ClassIdentity>::NAME,
280                        "ScriptFileExists",
281                    )
282                });
283                let __inner: extern "C" fn(ScriptLoaderBase, ::unity::Il2CppString, ::unity::OptionalMethod) -> bool =
284                    ::core::mem::transmute(__vi.method_ptr);
285                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
286                __inner(__receiver, ::core::convert::Into::into(name), __mi)
287            }
288        }
289    }
290    #[doc = "`LoadFile(::unity::Il2CppString, crate::moon_sharp::interpreter::table::Table)` overload"]
291    fn load_file(
292        self,
293        file: impl ::core::convert::Into<::unity::Il2CppString>,
294        global_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::table::Table>,
295    ) -> crate::system::object::Object {
296        unsafe {
297            let __receiver = <ScriptLoaderBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
298            {
299                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
300                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
301                    panic!(
302                        "unity: virtual slot {}
303 out of range (vtable len {}
304) on the runtime class behind {}
305 (method `{}
306`)",
307                        8usize,
308                        __vt.len(),
309                        <ScriptLoaderBase as ::unity::ClassIdentity>::NAME,
310                        "LoadFile",
311                    )
312                });
313                let __inner: extern "C" fn(
314                    ScriptLoaderBase,
315                    ::unity::Il2CppString,
316                    crate::moon_sharp::interpreter::table::Table,
317                    ::unity::OptionalMethod,
318                ) -> crate::system::object::Object = ::core::mem::transmute(__vi.method_ptr);
319                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
320                __inner(
321                    __receiver,
322                    ::core::convert::Into::into(file),
323                    ::core::convert::Into::into(global_context),
324                    __mi,
325                )
326            }
327        }
328    }
329    #[doc = "`ResolveModuleName(::unity::Il2CppString, ::unity::Array<::unity::Il2CppString>)` overload"]
330    fn resolve_module_name(
331        self,
332        modname: impl ::core::convert::Into<::unity::Il2CppString>,
333        paths: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>,
334    ) -> ::unity::Il2CppString {
335        unsafe {
336            let __receiver = <ScriptLoaderBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
337            {
338                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
339                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
340                    panic!(
341                        "unity: virtual slot {}
342 out of range (vtable len {}
343) on the runtime class behind {}
344 (method `{}
345`)",
346                        9usize,
347                        __vt.len(),
348                        <ScriptLoaderBase as ::unity::ClassIdentity>::NAME,
349                        "ResolveModuleName",
350                    )
351                });
352                let __inner: extern "C" fn(
353                    ScriptLoaderBase,
354                    ::unity::Il2CppString,
355                    ::unity::Array<::unity::Il2CppString>,
356                    ::unity::OptionalMethod,
357                ) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
358                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
359                __inner(__receiver, ::core::convert::Into::into(modname), ::core::convert::Into::into(paths), __mi)
360            }
361        }
362    }
363    #[doc = "`ResolveModuleName(::unity::Il2CppString, crate::moon_sharp::interpreter::table::Table)` overload"]
364    fn resolve_module_name_2(
365        self,
366        modname: impl ::core::convert::Into<::unity::Il2CppString>,
367        global_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::table::Table>,
368    ) -> ::unity::Il2CppString {
369        unsafe {
370            let __receiver = <ScriptLoaderBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
371            {
372                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
373                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
374                    panic!(
375                        "unity: virtual slot {}
376 out of range (vtable len {}
377) on the runtime class behind {}
378 (method `{}
379`)",
380                        10usize,
381                        __vt.len(),
382                        <ScriptLoaderBase as ::unity::ClassIdentity>::NAME,
383                        "ResolveModuleName",
384                    )
385                });
386                let __inner: extern "C" fn(
387                    ScriptLoaderBase,
388                    ::unity::Il2CppString,
389                    crate::moon_sharp::interpreter::table::Table,
390                    ::unity::OptionalMethod,
391                ) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
392                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
393                __inner(
394                    __receiver,
395                    ::core::convert::Into::into(modname),
396                    ::core::convert::Into::into(global_context),
397                    __mi,
398                )
399            }
400        }
401    }
402    #[doc = "`get_ModulePaths()` overload"]
403    fn get_module_paths(self) -> ::unity::Array<::unity::Il2CppString> {
404        unsafe {
405            let __receiver = <ScriptLoaderBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
406            ::unity::il2cpp_call!(__ScriptLoaderBase_unity_raw::__lookup_get_module_paths::get_method_info().method_ptr, ::unity::Array< ::unity::Il2CppString> ;
407(ScriptLoaderBase)__receiver)
408        }
409    }
410    #[doc = "`set_ModulePaths(::unity::Array<::unity::Il2CppString>)` overload"]
411    fn set_module_paths(self, value: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>) -> () {
412        unsafe {
413            let __receiver = <ScriptLoaderBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
414            ::unity::il2cpp_call!(__ScriptLoaderBase_unity_raw::__lookup_set_module_paths::get_method_info().method_ptr,();
415(ScriptLoaderBase)__receiver,(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(value))
416        }
417    }
418    #[doc = "`ResolveFileName(::unity::Il2CppString, crate::moon_sharp::interpreter::table::Table)` overload"]
419    fn resolve_file_name(
420        self,
421        filename: impl ::core::convert::Into<::unity::Il2CppString>,
422        global_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::table::Table>,
423    ) -> ::unity::Il2CppString {
424        unsafe {
425            let __receiver = <ScriptLoaderBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
426            {
427                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
428                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
429                    panic!(
430                        "unity: virtual slot {}
431 out of range (vtable len {}
432) on the runtime class behind {}
433 (method `{}
434`)",
435                        11usize,
436                        __vt.len(),
437                        <ScriptLoaderBase as ::unity::ClassIdentity>::NAME,
438                        "ResolveFileName",
439                    )
440                });
441                let __inner: extern "C" fn(
442                    ScriptLoaderBase,
443                    ::unity::Il2CppString,
444                    crate::moon_sharp::interpreter::table::Table,
445                    ::unity::OptionalMethod,
446                ) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
447                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
448                __inner(
449                    __receiver,
450                    ::core::convert::Into::into(filename),
451                    ::core::convert::Into::into(global_context),
452                    __mi,
453                )
454            }
455        }
456    }
457    #[doc = "`get_IgnoreLuaPathGlobal()` overload"]
458    fn get_ignore_lua_path_global(self) -> bool {
459        unsafe {
460            let __receiver = <ScriptLoaderBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
461            ::unity::il2cpp_call!(__ScriptLoaderBase_unity_raw::__lookup_get_ignore_lua_path_global::get_method_info().method_ptr,bool;
462(ScriptLoaderBase)__receiver)
463        }
464    }
465    #[doc = "`set_IgnoreLuaPathGlobal(bool)` overload"]
466    fn set_ignore_lua_path_global(self, value: impl ::core::convert::Into<bool>) -> () {
467        unsafe {
468            let __receiver = <ScriptLoaderBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
469            ::unity::il2cpp_call!(__ScriptLoaderBase_unity_raw::__lookup_set_ignore_lua_path_global::get_method_info().method_ptr,();
470(ScriptLoaderBase)__receiver,(bool)::core::convert::Into::into(value))
471        }
472    }
473    #[doc = "`.ctor()` overload"]
474    fn ctor(self) -> () {
475        unsafe {
476            let __receiver = <ScriptLoaderBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
477            ::unity::il2cpp_call!(__ScriptLoaderBase_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
478(ScriptLoaderBase)__receiver)
479        }
480    }
481}
482
483#[cfg(feature = "moon_sharp-interpreter-loaders-scriptloaderbase")]
484impl<__T: IScriptLoaderBase> IScriptLoaderBaseMethods for __T {}
485
486#[cfg(feature = "moon_sharp-interpreter-loaders-scriptloaderbase")]
487impl ScriptLoaderBase {
488    pub fn script_file_exists_method_info() -> &'static ::unity::il2cpp::MethodInfo {
489        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
490    }
491
492    pub fn load_file_method_info() -> &'static ::unity::il2cpp::MethodInfo {
493        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
494    }
495
496    pub fn resolve_module_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
497        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
498    }
499
500    pub fn resolve_module_name_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
501        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
502    }
503
504    pub fn get_module_paths_method_info() -> &'static ::unity::il2cpp::MethodInfo {
505        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
506    }
507
508    pub fn set_module_paths_method_info() -> &'static ::unity::il2cpp::MethodInfo {
509        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
510    }
511
512    pub fn unpack_string_paths_method_info() -> &'static ::unity::il2cpp::MethodInfo {
513        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
514    }
515
516    pub fn get_default_environment_paths_method_info() -> &'static ::unity::il2cpp::MethodInfo {
517        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
518    }
519
520    pub fn resolve_file_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
521        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
522    }
523
524    pub fn get_ignore_lua_path_global_method_info() -> &'static ::unity::il2cpp::MethodInfo {
525        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
526    }
527
528    pub fn set_ignore_lua_path_global_method_info() -> &'static ::unity::il2cpp::MethodInfo {
529        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
530    }
531
532    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
533        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
534    }
535}
536
537#[cfg(feature = "moon_sharp-interpreter-loaders-scriptloaderbase")]
538impl ScriptLoaderBase {
539    #[doc = "Direct (non-virtual) call to `ScriptLoaderBase`'s own `ScriptFileExists`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
540    pub unsafe fn script_file_exists(this: impl ::core::convert::Into<::unity::IlInstance>, name: ::unity::Il2CppString) -> bool {
541        let __mi = Self::script_file_exists_method_info();
542        let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> bool =
543            ::core::mem::transmute(__mi.method_ptr);
544        __inner(this.into(), name, ::core::option::Option::None)
545    }
546
547    #[doc = "Direct (non-virtual) call to `ScriptLoaderBase`'s own `LoadFile`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
548    pub unsafe fn load_file(
549        this: impl ::core::convert::Into<::unity::IlInstance>,
550        file: ::unity::Il2CppString,
551        global_context: crate::moon_sharp::interpreter::table::Table,
552    ) -> crate::system::object::Object {
553        let __mi = Self::load_file_method_info();
554        let __inner: extern "C" fn(
555            ::unity::IlInstance,
556            ::unity::Il2CppString,
557            crate::moon_sharp::interpreter::table::Table,
558            ::unity::OptionalMethod,
559        ) -> crate::system::object::Object = ::core::mem::transmute(__mi.method_ptr);
560        __inner(this.into(), file, global_context, ::core::option::Option::None)
561    }
562
563    #[doc = "Direct (non-virtual) call to `ScriptLoaderBase`'s own `ResolveModuleName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
564    pub unsafe fn resolve_module_name(
565        this: impl ::core::convert::Into<::unity::IlInstance>,
566        modname: ::unity::Il2CppString,
567        paths: ::unity::Array<::unity::Il2CppString>,
568    ) -> ::unity::Il2CppString {
569        let __mi = Self::resolve_module_name_method_info();
570        let __inner: extern "C" fn(
571            ::unity::IlInstance,
572            ::unity::Il2CppString,
573            ::unity::Array<::unity::Il2CppString>,
574            ::unity::OptionalMethod,
575        ) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
576        __inner(this.into(), modname, paths, ::core::option::Option::None)
577    }
578
579    #[doc = "Direct (non-virtual) call to `ScriptLoaderBase`'s own `ResolveModuleName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
580    pub unsafe fn resolve_module_name_2(
581        this: impl ::core::convert::Into<::unity::IlInstance>,
582        modname: ::unity::Il2CppString,
583        global_context: crate::moon_sharp::interpreter::table::Table,
584    ) -> ::unity::Il2CppString {
585        let __mi = Self::resolve_module_name_2_method_info();
586        let __inner: extern "C" fn(
587            ::unity::IlInstance,
588            ::unity::Il2CppString,
589            crate::moon_sharp::interpreter::table::Table,
590            ::unity::OptionalMethod,
591        ) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
592        __inner(this.into(), modname, global_context, ::core::option::Option::None)
593    }
594
595    #[doc = "Direct (non-virtual) call to `ScriptLoaderBase`'s own `ResolveFileName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
596    pub unsafe fn resolve_file_name(
597        this: impl ::core::convert::Into<::unity::IlInstance>,
598        filename: ::unity::Il2CppString,
599        global_context: crate::moon_sharp::interpreter::table::Table,
600    ) -> ::unity::Il2CppString {
601        let __mi = Self::resolve_file_name_method_info();
602        let __inner: extern "C" fn(
603            ::unity::IlInstance,
604            ::unity::Il2CppString,
605            crate::moon_sharp::interpreter::table::Table,
606            ::unity::OptionalMethod,
607        ) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
608        __inner(this.into(), filename, global_context, ::core::option::Option::None)
609    }
610}
611
612#[cfg(feature = "moon_sharp-interpreter-loaders-scriptloaderbase")]
613impl ScriptLoaderBase {
614    #[doc = "`.ctor()` — no args"]
615    pub fn new() -> Self {
616        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
617            panic!(
618                "{}
619::{}
620 failed to instantiate",
621                ::core::stringify!(ScriptLoaderBase),
622                ::core::stringify!(new),
623            )
624        });
625        <Self as IScriptLoaderBaseMethods>::ctor(this);
626        this
627    }
628}
629
630#[cfg(feature = "moon_sharp-interpreter-loaders-scriptloaderbase")]
631#[doc(hidden)]
632pub mod prelude {
633    pub use super::{IScriptLoaderBase, IScriptLoaderBaseMethods, ScriptLoaderBase};
634    pub use crate::system::object::IObject;
635    #[cfg(feature = "system-object")]
636    pub use crate::system::object::IObjectMethods;
637}