Skip to main content

engage/generated/moon_sharp/interpreter/tree/fast_interface/
loader_fast.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-tree-fast_interface-loader_fast-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/tree/fast_interface/loader_fast/Loader_Fast.md"))]
11    #[::unity::class(namespace = "MoonSharp.Interpreter.Tree.Fast_Interface", name = "Loader_Fast")]
12    #[parent(crate::system::object::Object)]
13    pub struct Loader_Fast {}
14}
15
16#[cfg(feature = "moon_sharp-interpreter-tree-fast_interface-loader_fast-types")]
17pub use __types::*;
18
19#[cfg(feature = "moon_sharp-interpreter-tree-fast_interface-loader_fast")]
20#[doc(hidden)]
21#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
22mod __Loader_Fast_unity_raw {
23    use super::*;
24    #[doc(hidden)]
25    #[allow(non_snake_case)]
26    pub mod __lookup_load_dynamic_expr {
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                <crate::moon_sharp::interpreter::script::Script as ::unity::IlType>::il_type(),
31                <crate::moon_sharp::interpreter::debugging::sourcecode::SourceCode as ::unity::IlType>::il_type(),
32            ];
33            ::unity::lookup::method_info_on_class_with_signature(
34                <Loader_Fast as ::unity::ClassIdentity>::class(),
35                "LoadDynamicExpr",
36                2,
37                param_types,
38                true,
39            )
40        });
41        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
42            match &*METHOD {
43                ::core::result::Result::Ok(mi) => *mi,
44                ::core::result::Result::Err(e) => {
45                    panic!(
46                        "method lookup failed: {}
47::{}
48: {}
49",
50                        <Loader_Fast as ::unity::ClassIdentity>::NAME,
51                        "LoadDynamicExpr",
52                        e
53                    )
54                },
55            }
56        }
57    }
58    #[doc(hidden)]
59    #[allow(non_snake_case)]
60    pub mod __lookup_create_loading_context {
61        use super::*;
62        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
63            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
64                <crate::moon_sharp::interpreter::script::Script as ::unity::IlType>::il_type(),
65                <crate::moon_sharp::interpreter::debugging::sourcecode::SourceCode as ::unity::IlType>::il_type(),
66            ];
67            ::unity::lookup::method_info_on_class_with_signature(
68                <Loader_Fast as ::unity::ClassIdentity>::class(),
69                "CreateLoadingContext",
70                2,
71                param_types,
72                true,
73            )
74        });
75        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
76            match &*METHOD {
77                ::core::result::Result::Ok(mi) => *mi,
78                ::core::result::Result::Err(e) => {
79                    panic!(
80                        "method lookup failed: {}
81::{}
82: {}
83",
84                        <Loader_Fast as ::unity::ClassIdentity>::NAME,
85                        "CreateLoadingContext",
86                        e
87                    )
88                },
89            }
90        }
91    }
92    #[doc(hidden)]
93    #[allow(non_snake_case)]
94    pub mod __lookup_load_chunk {
95        use super::*;
96        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
97            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
98                <crate::moon_sharp::interpreter::script::Script as ::unity::IlType>::il_type(),
99                <crate::moon_sharp::interpreter::debugging::sourcecode::SourceCode as ::unity::IlType>::il_type(),
100                <crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode as ::unity::IlType>::il_type(),
101            ];
102            ::unity::lookup::method_info_on_class_with_signature(<Loader_Fast as ::unity::ClassIdentity>::class(), "LoadChunk", 3, param_types, true)
103        });
104        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
105            match &*METHOD {
106                ::core::result::Result::Ok(mi) => *mi,
107                ::core::result::Result::Err(e) => {
108                    panic!(
109                        "method lookup failed: {}
110::{}
111: {}
112",
113                        <Loader_Fast as ::unity::ClassIdentity>::NAME,
114                        "LoadChunk",
115                        e
116                    )
117                },
118            }
119        }
120    }
121    #[doc(hidden)]
122    #[allow(non_snake_case)]
123    pub mod __lookup_load_function {
124        use super::*;
125        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
126            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
127                <crate::moon_sharp::interpreter::script::Script as ::unity::IlType>::il_type(),
128                <crate::moon_sharp::interpreter::debugging::sourcecode::SourceCode as ::unity::IlType>::il_type(),
129                <crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode as ::unity::IlType>::il_type(),
130                <bool as ::unity::IlType>::il_type(),
131            ];
132            ::unity::lookup::method_info_on_class_with_signature(
133                <Loader_Fast as ::unity::ClassIdentity>::class(),
134                "LoadFunction",
135                4,
136                param_types,
137                true,
138            )
139        });
140        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
141            match &*METHOD {
142                ::core::result::Result::Ok(mi) => *mi,
143                ::core::result::Result::Err(e) => {
144                    panic!(
145                        "method lookup failed: {}
146::{}
147: {}
148",
149                        <Loader_Fast as ::unity::ClassIdentity>::NAME,
150                        "LoadFunction",
151                        e
152                    )
153                },
154            }
155        }
156    }
157}
158
159#[cfg(feature = "moon_sharp-interpreter-tree-fast_interface-loader_fast")]
160impl Loader_Fast {
161    #[doc = "`LoadDynamicExpr(crate::moon_sharp::interpreter::script::Script, crate::moon_sharp::interpreter::debugging::sourcecode::SourceCode)` overload"]
162    pub fn load_dynamic_expr(
163        script: impl ::core::convert::Into<crate::moon_sharp::interpreter::script::Script>,
164        source: impl ::core::convert::Into<crate::moon_sharp::interpreter::debugging::sourcecode::SourceCode>,
165    ) -> crate::moon_sharp::interpreter::tree::expressions::dynamicexprexpression::DynamicExprExpression {
166        unsafe {
167            ::unity::il2cpp_call!(__Loader_Fast_unity_raw::__lookup_load_dynamic_expr::get_method_info().method_ptr,crate::moon_sharp::interpreter::tree::expressions::dynamicexprexpression::DynamicExprExpression;
168(crate::moon_sharp::interpreter::script::Script)::core::convert::Into::into(script),(crate::moon_sharp::interpreter::debugging::sourcecode::SourceCode)::core::convert::Into::into(source))
169        }
170    }
171
172    #[doc = "`CreateLoadingContext(crate::moon_sharp::interpreter::script::Script, crate::moon_sharp::interpreter::debugging::sourcecode::SourceCode)` overload"]
173    pub fn create_loading_context(
174        script: impl ::core::convert::Into<crate::moon_sharp::interpreter::script::Script>,
175        source: impl ::core::convert::Into<crate::moon_sharp::interpreter::debugging::sourcecode::SourceCode>,
176    ) -> crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext {
177        unsafe {
178            ::unity::il2cpp_call!(__Loader_Fast_unity_raw::__lookup_create_loading_context::get_method_info().method_ptr,crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext;
179(crate::moon_sharp::interpreter::script::Script)::core::convert::Into::into(script),(crate::moon_sharp::interpreter::debugging::sourcecode::SourceCode)::core::convert::Into::into(source))
180        }
181    }
182
183    #[doc = "`LoadChunk(crate::moon_sharp::interpreter::script::Script, crate::moon_sharp::interpreter::debugging::sourcecode::SourceCode, crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode)` overload"]
184    pub fn load_chunk(
185        script: impl ::core::convert::Into<crate::moon_sharp::interpreter::script::Script>,
186        source: impl ::core::convert::Into<crate::moon_sharp::interpreter::debugging::sourcecode::SourceCode>,
187        bytecode: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode>,
188    ) -> i32 {
189        unsafe {
190            ::unity::il2cpp_call!(__Loader_Fast_unity_raw::__lookup_load_chunk::get_method_info().method_ptr,i32;
191(crate::moon_sharp::interpreter::script::Script)::core::convert::Into::into(script),(crate::moon_sharp::interpreter::debugging::sourcecode::SourceCode)::core::convert::Into::into(source),(crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode)::core::convert::Into::into(bytecode))
192        }
193    }
194
195    #[doc = "`LoadFunction(crate::moon_sharp::interpreter::script::Script, crate::moon_sharp::interpreter::debugging::sourcecode::SourceCode, crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode, bool)` overload"]
196    pub fn load_function(
197        script: impl ::core::convert::Into<crate::moon_sharp::interpreter::script::Script>,
198        source: impl ::core::convert::Into<crate::moon_sharp::interpreter::debugging::sourcecode::SourceCode>,
199        bytecode: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode>,
200        uses_global_env: impl ::core::convert::Into<bool>,
201    ) -> i32 {
202        unsafe {
203            ::unity::il2cpp_call!(__Loader_Fast_unity_raw::__lookup_load_function::get_method_info().method_ptr,i32;
204(crate::moon_sharp::interpreter::script::Script)::core::convert::Into::into(script),(crate::moon_sharp::interpreter::debugging::sourcecode::SourceCode)::core::convert::Into::into(source),(crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode)::core::convert::Into::into(bytecode),(bool)::core::convert::Into::into(uses_global_env))
205        }
206    }
207}
208
209#[cfg(feature = "moon_sharp-interpreter-tree-fast_interface-loader_fast")]
210impl Loader_Fast {
211    pub fn load_dynamic_expr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
212        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
213    }
214
215    pub fn create_loading_context_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
217    }
218
219    pub fn load_chunk_method_info() -> &'static ::unity::il2cpp::MethodInfo {
220        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
221    }
222
223    pub fn load_function_method_info() -> &'static ::unity::il2cpp::MethodInfo {
224        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
225    }
226}
227
228#[cfg(feature = "moon_sharp-interpreter-tree-fast_interface-loader_fast")]
229#[doc(hidden)]
230pub mod prelude {
231    pub use super::{ILoader_Fast, Loader_Fast};
232    pub use crate::system::object::IObject;
233    #[cfg(feature = "system-object")]
234    pub use crate::system::object::IObjectMethods;
235}