Skip to main content

engage/generated/moon_sharp/interpreter/core_lib/
dynamicmodule.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-core_lib-dynamicmodule-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/dynamicmodule/DynamicModule.md"))]
11    #[::unity::class(namespace = "MoonSharp.Interpreter.CoreLib", name = "DynamicModule")]
12    #[parent(crate::system::object::Object)]
13    pub struct DynamicModule {}
14
15    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/core_lib/dynamicmodule/DynamicModule_DynamicExprWrapper.md"))]
16    #[::unity::class(namespace = "MoonSharp.Interpreter.CoreLib", name = "DynamicModule.DynamicExprWrapper")]
17    #[parent(crate::system::object::Object)]
18    pub struct DynamicModule_DynamicExprWrapper {
19        #[offset(16)]
20        #[rename(name = "Expr")]
21        pub expr: crate::moon_sharp::interpreter::dynamicexpression::DynamicExpression,
22    }
23}
24
25#[cfg(feature = "moon_sharp-interpreter-core_lib-dynamicmodule-types")]
26pub use __types::*;
27
28#[cfg(feature = "moon_sharp-interpreter-core_lib-dynamicmodule")]
29#[doc(hidden)]
30#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
31mod __DynamicModule_unity_raw {
32    use super::*;
33    #[doc(hidden)]
34    #[allow(non_snake_case)]
35    pub mod __lookup_moon_sharp_init {
36        use super::*;
37        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
38            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
39                <crate::moon_sharp::interpreter::table::Table as ::unity::IlType>::il_type(),
40                <crate::moon_sharp::interpreter::table::Table as ::unity::IlType>::il_type(),
41            ];
42            ::unity::lookup::method_info_on_class_with_signature(
43                <DynamicModule as ::unity::ClassIdentity>::class(),
44                "MoonSharpInit",
45                2,
46                param_types,
47                true,
48            )
49        });
50        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
51            match &*METHOD {
52                ::core::result::Result::Ok(mi) => *mi,
53                ::core::result::Result::Err(e) => {
54                    panic!(
55                        "method lookup failed: {}
56::{}
57: {}
58",
59                        <DynamicModule as ::unity::ClassIdentity>::NAME,
60                        "MoonSharpInit",
61                        e
62                    )
63                },
64            }
65        }
66    }
67    #[doc(hidden)]
68    #[allow(non_snake_case)]
69    pub mod __lookup_eval {
70        use super::*;
71        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
72            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
73                <crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext as ::unity::IlType>::il_type(),
74                <crate::moon_sharp::interpreter::callbackarguments::CallbackArguments as ::unity::IlType>::il_type(),
75            ];
76            ::unity::lookup::method_info_on_class_with_signature(<DynamicModule as ::unity::ClassIdentity>::class(), "eval", 2, param_types, true)
77        });
78        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
79            match &*METHOD {
80                ::core::result::Result::Ok(mi) => *mi,
81                ::core::result::Result::Err(e) => {
82                    panic!(
83                        "method lookup failed: {}
84::{}
85: {}
86",
87                        <DynamicModule as ::unity::ClassIdentity>::NAME,
88                        "eval",
89                        e
90                    )
91                },
92            }
93        }
94    }
95    #[doc(hidden)]
96    #[allow(non_snake_case)]
97    pub mod __lookup_prepare {
98        use super::*;
99        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
100            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
101                <crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext as ::unity::IlType>::il_type(),
102                <crate::moon_sharp::interpreter::callbackarguments::CallbackArguments as ::unity::IlType>::il_type(),
103            ];
104            ::unity::lookup::method_info_on_class_with_signature(<DynamicModule as ::unity::ClassIdentity>::class(), "prepare", 2, param_types, true)
105        });
106        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107            match &*METHOD {
108                ::core::result::Result::Ok(mi) => *mi,
109                ::core::result::Result::Err(e) => {
110                    panic!(
111                        "method lookup failed: {}
112::{}
113: {}
114",
115                        <DynamicModule as ::unity::ClassIdentity>::NAME,
116                        "prepare",
117                        e
118                    )
119                },
120            }
121        }
122    }
123    #[doc(hidden)]
124    #[allow(non_snake_case)]
125    pub mod __lookup_ctor {
126        use super::*;
127        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
128            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
129            ::unity::lookup::method_info_on_class_with_signature(<DynamicModule as ::unity::ClassIdentity>::class(), ".ctor", 0, param_types, false)
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                        <DynamicModule as ::unity::ClassIdentity>::NAME,
141                        ".ctor",
142                        e
143                    )
144                },
145            }
146        }
147    }
148}
149
150#[cfg(feature = "moon_sharp-interpreter-core_lib-dynamicmodule")]
151impl DynamicModule {
152    #[doc = "`MoonSharpInit(crate::moon_sharp::interpreter::table::Table, crate::moon_sharp::interpreter::table::Table)` overload"]
153    pub fn moon_sharp_init(
154        global_table: impl ::core::convert::Into<crate::moon_sharp::interpreter::table::Table>,
155        string_table: impl ::core::convert::Into<crate::moon_sharp::interpreter::table::Table>,
156    ) -> () {
157        unsafe {
158            ::unity::il2cpp_call!(__DynamicModule_unity_raw::__lookup_moon_sharp_init::get_method_info().method_ptr,();
159(crate::moon_sharp::interpreter::table::Table)::core::convert::Into::into(global_table),(crate::moon_sharp::interpreter::table::Table)::core::convert::Into::into(string_table))
160        }
161    }
162
163    #[doc = "`eval(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)` overload"]
164    pub fn eval(
165        execution_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
166        args: impl ::core::convert::Into<crate::moon_sharp::interpreter::callbackarguments::CallbackArguments>,
167    ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
168        unsafe {
169            ::unity::il2cpp_call!(__DynamicModule_unity_raw::__lookup_eval::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
170(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)::core::convert::Into::into(execution_context),(crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)::core::convert::Into::into(args))
171        }
172    }
173
174    #[doc = "`prepare(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)` overload"]
175    pub fn prepare(
176        execution_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
177        args: impl ::core::convert::Into<crate::moon_sharp::interpreter::callbackarguments::CallbackArguments>,
178    ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
179        unsafe {
180            ::unity::il2cpp_call!(__DynamicModule_unity_raw::__lookup_prepare::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
181(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)::core::convert::Into::into(execution_context),(crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)::core::convert::Into::into(args))
182        }
183    }
184}
185
186#[cfg(feature = "moon_sharp-interpreter-core_lib-dynamicmodule")]
187pub trait IDynamicModuleMethods: IDynamicModule {
188    #[doc = "`.ctor()` overload"]
189    fn ctor(self) -> () {
190        unsafe {
191            let __receiver = <DynamicModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
192            ::unity::il2cpp_call!(__DynamicModule_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
193(DynamicModule)__receiver)
194        }
195    }
196}
197
198#[cfg(feature = "moon_sharp-interpreter-core_lib-dynamicmodule")]
199impl<__T: IDynamicModule> IDynamicModuleMethods for __T {}
200
201#[cfg(feature = "moon_sharp-interpreter-core_lib-dynamicmodule")]
202impl DynamicModule {
203    pub fn moon_sharp_init_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
205    }
206
207    pub fn eval_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
209    }
210
211    pub fn prepare_method_info() -> &'static ::unity::il2cpp::MethodInfo {
212        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
213    }
214
215    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
217    }
218}
219
220#[cfg(feature = "moon_sharp-interpreter-core_lib-dynamicmodule")]
221impl DynamicModule {
222    #[doc = "`.ctor()` — no args"]
223    pub fn new() -> Self {
224        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
225            panic!(
226                "{}
227::{}
228 failed to instantiate",
229                ::core::stringify!(DynamicModule),
230                ::core::stringify!(new),
231            )
232        });
233        <Self as IDynamicModuleMethods>::ctor(this);
234        this
235    }
236}
237
238#[cfg(feature = "moon_sharp-interpreter-core_lib-dynamicmodule")]
239#[doc(hidden)]
240#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
241mod __DynamicModule_DynamicExprWrapper_unity_raw {
242    use super::*;
243    #[doc(hidden)]
244    #[allow(non_snake_case)]
245    pub mod __lookup_ctor {
246        use super::*;
247        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
248            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
249            ::unity::lookup::method_info_on_class_with_signature(
250                <DynamicModule_DynamicExprWrapper as ::unity::ClassIdentity>::class(),
251                ".ctor",
252                0,
253                param_types,
254                false,
255            )
256        });
257        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
258            match &*METHOD {
259                ::core::result::Result::Ok(mi) => *mi,
260                ::core::result::Result::Err(e) => {
261                    panic!(
262                        "method lookup failed: {}
263::{}
264: {}
265",
266                        <DynamicModule_DynamicExprWrapper as ::unity::ClassIdentity>::NAME,
267                        ".ctor",
268                        e
269                    )
270                },
271            }
272        }
273    }
274}
275
276#[cfg(feature = "moon_sharp-interpreter-core_lib-dynamicmodule")]
277pub trait IDynamicModule_DynamicExprWrapperMethods: IDynamicModule_DynamicExprWrapper {
278    #[doc = "`.ctor()` overload"]
279    fn ctor(self) -> () {
280        unsafe {
281            let __receiver =
282                <DynamicModule_DynamicExprWrapper as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
283            ::unity::il2cpp_call!(__DynamicModule_DynamicExprWrapper_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
284(DynamicModule_DynamicExprWrapper)__receiver)
285        }
286    }
287}
288
289#[cfg(feature = "moon_sharp-interpreter-core_lib-dynamicmodule")]
290impl<__T: IDynamicModule_DynamicExprWrapper> IDynamicModule_DynamicExprWrapperMethods for __T {}
291
292#[cfg(feature = "moon_sharp-interpreter-core_lib-dynamicmodule")]
293impl DynamicModule_DynamicExprWrapper {
294    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
295        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
296    }
297}
298
299#[cfg(feature = "moon_sharp-interpreter-core_lib-dynamicmodule")]
300impl DynamicModule_DynamicExprWrapper {
301    #[doc = "`.ctor()` — no args"]
302    pub fn new() -> Self {
303        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
304            panic!(
305                "{}
306::{}
307 failed to instantiate",
308                ::core::stringify!(DynamicModule_DynamicExprWrapper),
309                ::core::stringify!(new),
310            )
311        });
312        <Self as IDynamicModule_DynamicExprWrapperMethods>::ctor(this);
313        this
314    }
315}
316
317#[cfg(feature = "moon_sharp-interpreter-core_lib-dynamicmodule")]
318#[doc(hidden)]
319pub mod prelude {
320    pub use super::{
321        DynamicModule, DynamicModule_DynamicExprWrapper, IDynamicModule, IDynamicModuleMethods, IDynamicModule_DynamicExprWrapper,
322        IDynamicModule_DynamicExprWrapperMethods,
323    };
324    pub use crate::system::object::IObject;
325    #[cfg(feature = "system-object")]
326    pub use crate::system::object::IObjectMethods;
327}