Skip to main content

engage/generated/moon_sharp/interpreter/interop/lua_state_interop/
luastate.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-interop-lua_state_interop-luastate-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/interop/lua_state_interop/luastate/LuaState.md"))]
11    #[::unity::class(namespace = "MoonSharp.Interpreter.Interop.LuaStateInterop", name = "LuaState")]
12    #[parent(crate::system::object::Object)]
13    pub struct LuaState {
14        #[offset(16)]
15        #[rename(name = "m_Stack")]
16        pub m_stack: crate::system::collections::generic::list_1::List_1<crate::moon_sharp::interpreter::dynvalue::DynValue>,
17    }
18}
19
20#[cfg(feature = "moon_sharp-interpreter-interop-lua_state_interop-luastate-types")]
21pub use __types::*;
22
23#[cfg(feature = "moon_sharp-interpreter-interop-lua_state_interop-luastate")]
24#[doc(hidden)]
25#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
26mod __LuaState_unity_raw {
27    use super::*;
28    #[doc(hidden)]
29    #[allow(non_snake_case)]
30    pub mod __lookup_get_execution_context {
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            ::unity::lookup::method_info_on_class_with_signature(
35                <LuaState as ::unity::ClassIdentity>::class(),
36                "get_ExecutionContext",
37                0,
38                param_types,
39                false,
40            )
41        });
42        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
43            match &*METHOD {
44                ::core::result::Result::Ok(mi) => *mi,
45                ::core::result::Result::Err(e) => {
46                    panic!(
47                        "method lookup failed: {}
48::{}
49: {}
50",
51                        <LuaState as ::unity::ClassIdentity>::NAME,
52                        "get_ExecutionContext",
53                        e
54                    )
55                },
56            }
57        }
58    }
59    #[doc(hidden)]
60    #[allow(non_snake_case)]
61    pub mod __lookup_set_execution_context {
62        use super::*;
63        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
64            let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
65                &[<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext as ::unity::IlType>::il_type()];
66            ::unity::lookup::method_info_on_class_with_signature(
67                <LuaState as ::unity::ClassIdentity>::class(),
68                "set_ExecutionContext",
69                1,
70                param_types,
71                false,
72            )
73        });
74        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
75            match &*METHOD {
76                ::core::result::Result::Ok(mi) => *mi,
77                ::core::result::Result::Err(e) => {
78                    panic!(
79                        "method lookup failed: {}
80::{}
81: {}
82",
83                        <LuaState as ::unity::ClassIdentity>::NAME,
84                        "set_ExecutionContext",
85                        e
86                    )
87                },
88            }
89        }
90    }
91    #[doc(hidden)]
92    #[allow(non_snake_case)]
93    pub mod __lookup_get_function_name {
94        use super::*;
95        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
96            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
97            ::unity::lookup::method_info_on_class_with_signature(
98                <LuaState as ::unity::ClassIdentity>::class(),
99                "get_FunctionName",
100                0,
101                param_types,
102                false,
103            )
104        });
105        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106            match &*METHOD {
107                ::core::result::Result::Ok(mi) => *mi,
108                ::core::result::Result::Err(e) => {
109                    panic!(
110                        "method lookup failed: {}
111::{}
112: {}
113",
114                        <LuaState as ::unity::ClassIdentity>::NAME,
115                        "get_FunctionName",
116                        e
117                    )
118                },
119            }
120        }
121    }
122    #[doc(hidden)]
123    #[allow(non_snake_case)]
124    pub mod __lookup_set_function_name {
125        use super::*;
126        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
127            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
128            ::unity::lookup::method_info_on_class_with_signature(
129                <LuaState as ::unity::ClassIdentity>::class(),
130                "set_FunctionName",
131                1,
132                param_types,
133                false,
134            )
135        });
136        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
137            match &*METHOD {
138                ::core::result::Result::Ok(mi) => *mi,
139                ::core::result::Result::Err(e) => {
140                    panic!(
141                        "method lookup failed: {}
142::{}
143: {}
144",
145                        <LuaState as ::unity::ClassIdentity>::NAME,
146                        "set_FunctionName",
147                        e
148                    )
149                },
150            }
151        }
152    }
153    #[doc(hidden)]
154    #[allow(non_snake_case)]
155    pub mod __lookup_ctor {
156        use super::*;
157        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
158            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
159                <crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext as ::unity::IlType>::il_type(),
160                <crate::moon_sharp::interpreter::callbackarguments::CallbackArguments as ::unity::IlType>::il_type(),
161                <::unity::Il2CppString as ::unity::IlType>::il_type(),
162            ];
163            ::unity::lookup::method_info_on_class_with_signature(<LuaState as ::unity::ClassIdentity>::class(), ".ctor", 3, param_types, false)
164        });
165        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166            match &*METHOD {
167                ::core::result::Result::Ok(mi) => *mi,
168                ::core::result::Result::Err(e) => {
169                    panic!(
170                        "method lookup failed: {}
171::{}
172: {}
173",
174                        <LuaState as ::unity::ClassIdentity>::NAME,
175                        ".ctor",
176                        e
177                    )
178                },
179            }
180        }
181    }
182    #[doc(hidden)]
183    #[allow(non_snake_case)]
184    pub mod __lookup_top {
185        use super::*;
186        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
187            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<i32 as ::unity::IlType>::il_type()];
188            ::unity::lookup::method_info_on_class_with_signature(<LuaState as ::unity::ClassIdentity>::class(), "Top", 1, param_types, false)
189        });
190        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
191            match &*METHOD {
192                ::core::result::Result::Ok(mi) => *mi,
193                ::core::result::Result::Err(e) => {
194                    panic!(
195                        "method lookup failed: {}
196::{}
197: {}
198",
199                        <LuaState as ::unity::ClassIdentity>::NAME,
200                        "Top",
201                        e
202                    )
203                },
204            }
205        }
206    }
207    #[doc(hidden)]
208    #[allow(non_snake_case)]
209    pub mod __lookup_at {
210        use super::*;
211        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
212            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<i32 as ::unity::IlType>::il_type()];
213            ::unity::lookup::method_info_on_class_with_signature(<LuaState as ::unity::ClassIdentity>::class(), "At", 1, param_types, false)
214        });
215        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216            match &*METHOD {
217                ::core::result::Result::Ok(mi) => *mi,
218                ::core::result::Result::Err(e) => {
219                    panic!(
220                        "method lookup failed: {}
221::{}
222: {}
223",
224                        <LuaState as ::unity::ClassIdentity>::NAME,
225                        "At",
226                        e
227                    )
228                },
229            }
230        }
231    }
232    #[doc(hidden)]
233    #[allow(non_snake_case)]
234    pub mod __lookup_get_count {
235        use super::*;
236        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
237            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
238            ::unity::lookup::method_info_on_class_with_signature(<LuaState as ::unity::ClassIdentity>::class(), "get_Count", 0, param_types, false)
239        });
240        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
241            match &*METHOD {
242                ::core::result::Result::Ok(mi) => *mi,
243                ::core::result::Result::Err(e) => {
244                    panic!(
245                        "method lookup failed: {}
246::{}
247: {}
248",
249                        <LuaState as ::unity::ClassIdentity>::NAME,
250                        "get_Count",
251                        e
252                    )
253                },
254            }
255        }
256    }
257    #[doc(hidden)]
258    #[allow(non_snake_case)]
259    pub mod __lookup_push {
260        use super::*;
261        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
262            let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
263                &[<crate::moon_sharp::interpreter::dynvalue::DynValue as ::unity::IlType>::il_type()];
264            ::unity::lookup::method_info_on_class_with_signature(<LuaState as ::unity::ClassIdentity>::class(), "Push", 1, param_types, false)
265        });
266        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
267            match &*METHOD {
268                ::core::result::Result::Ok(mi) => *mi,
269                ::core::result::Result::Err(e) => {
270                    panic!(
271                        "method lookup failed: {}
272::{}
273: {}
274",
275                        <LuaState as ::unity::ClassIdentity>::NAME,
276                        "Push",
277                        e
278                    )
279                },
280            }
281        }
282    }
283    #[doc(hidden)]
284    #[allow(non_snake_case)]
285    pub mod __lookup_pop {
286        use super::*;
287        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
288            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
289            ::unity::lookup::method_info_on_class_with_signature(<LuaState as ::unity::ClassIdentity>::class(), "Pop", 0, param_types, false)
290        });
291        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
292            match &*METHOD {
293                ::core::result::Result::Ok(mi) => *mi,
294                ::core::result::Result::Err(e) => {
295                    panic!(
296                        "method lookup failed: {}
297::{}
298: {}
299",
300                        <LuaState as ::unity::ClassIdentity>::NAME,
301                        "Pop",
302                        e
303                    )
304                },
305            }
306        }
307    }
308    #[doc(hidden)]
309    #[allow(non_snake_case)]
310    pub mod __lookup_get_top_array {
311        use super::*;
312        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
313            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<i32 as ::unity::IlType>::il_type()];
314            ::unity::lookup::method_info_on_class_with_signature(<LuaState as ::unity::ClassIdentity>::class(), "GetTopArray", 1, param_types, false)
315        });
316        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317            match &*METHOD {
318                ::core::result::Result::Ok(mi) => *mi,
319                ::core::result::Result::Err(e) => {
320                    panic!(
321                        "method lookup failed: {}
322::{}
323: {}
324",
325                        <LuaState as ::unity::ClassIdentity>::NAME,
326                        "GetTopArray",
327                        e
328                    )
329                },
330            }
331        }
332    }
333    #[doc(hidden)]
334    #[allow(non_snake_case)]
335    pub mod __lookup_get_return_value {
336        use super::*;
337        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
338            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<i32 as ::unity::IlType>::il_type()];
339            ::unity::lookup::method_info_on_class_with_signature(
340                <LuaState as ::unity::ClassIdentity>::class(),
341                "GetReturnValue",
342                1,
343                param_types,
344                false,
345            )
346        });
347        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
348            match &*METHOD {
349                ::core::result::Result::Ok(mi) => *mi,
350                ::core::result::Result::Err(e) => {
351                    panic!(
352                        "method lookup failed: {}
353::{}
354: {}
355",
356                        <LuaState as ::unity::ClassIdentity>::NAME,
357                        "GetReturnValue",
358                        e
359                    )
360                },
361            }
362        }
363    }
364    #[doc(hidden)]
365    #[allow(non_snake_case)]
366    pub mod __lookup_discard {
367        use super::*;
368        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
369            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<i32 as ::unity::IlType>::il_type()];
370            ::unity::lookup::method_info_on_class_with_signature(<LuaState as ::unity::ClassIdentity>::class(), "Discard", 1, param_types, false)
371        });
372        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
373            match &*METHOD {
374                ::core::result::Result::Ok(mi) => *mi,
375                ::core::result::Result::Err(e) => {
376                    panic!(
377                        "method lookup failed: {}
378::{}
379: {}
380",
381                        <LuaState as ::unity::ClassIdentity>::NAME,
382                        "Discard",
383                        e
384                    )
385                },
386            }
387        }
388    }
389}
390
391#[cfg(feature = "moon_sharp-interpreter-interop-lua_state_interop-luastate")]
392pub trait ILuaStateMethods: ILuaState {
393    #[doc = "`get_ExecutionContext()` overload"]
394    fn get_execution_context(self) -> crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext {
395        unsafe {
396            let __receiver = <LuaState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
397            ::unity::il2cpp_call!(__LuaState_unity_raw::__lookup_get_execution_context::get_method_info().method_ptr,crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext;
398(LuaState)__receiver)
399        }
400    }
401    #[doc = "`set_ExecutionContext(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)` overload"]
402    fn set_execution_context(
403        self,
404        value: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
405    ) -> () {
406        unsafe {
407            let __receiver = <LuaState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
408            ::unity::il2cpp_call!(__LuaState_unity_raw::__lookup_set_execution_context::get_method_info().method_ptr,();
409(LuaState)__receiver,(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)::core::convert::Into::into(value))
410        }
411    }
412    #[doc = "`get_FunctionName()` overload"]
413    fn get_function_name(self) -> ::unity::Il2CppString {
414        unsafe {
415            let __receiver = <LuaState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
416            ::unity::il2cpp_call!(__LuaState_unity_raw::__lookup_get_function_name::get_method_info().method_ptr, ::unity::Il2CppString;
417(LuaState)__receiver)
418        }
419    }
420    #[doc = "`set_FunctionName(::unity::Il2CppString)` overload"]
421    fn set_function_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
422        unsafe {
423            let __receiver = <LuaState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
424            ::unity::il2cpp_call!(__LuaState_unity_raw::__lookup_set_function_name::get_method_info().method_ptr,();
425(LuaState)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
426        }
427    }
428    #[doc = "`.ctor(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments, ::unity::Il2CppString)` overload"]
429    fn ctor(
430        self,
431        execution_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
432        args: impl ::core::convert::Into<crate::moon_sharp::interpreter::callbackarguments::CallbackArguments>,
433        function_name: impl ::core::convert::Into<::unity::Il2CppString>,
434    ) -> () {
435        unsafe {
436            let __receiver = <LuaState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
437            ::unity::il2cpp_call!(__LuaState_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
438(LuaState)__receiver,(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)::core::convert::Into::into(execution_context),(crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)::core::convert::Into::into(args),(::unity::Il2CppString)::core::convert::Into::into(function_name))
439        }
440    }
441    #[doc = "`Top(i32)` overload"]
442    fn top(self, pos: impl ::core::convert::Into<i32>) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
443        unsafe {
444            let __receiver = <LuaState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
445            ::unity::il2cpp_call!(__LuaState_unity_raw::__lookup_top::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
446(LuaState)__receiver,(i32)::core::convert::Into::into(pos))
447        }
448    }
449    #[doc = "`At(i32)` overload"]
450    fn at(self, pos: impl ::core::convert::Into<i32>) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
451        unsafe {
452            let __receiver = <LuaState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
453            ::unity::il2cpp_call!(__LuaState_unity_raw::__lookup_at::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
454(LuaState)__receiver,(i32)::core::convert::Into::into(pos))
455        }
456    }
457    #[doc = "`get_Count()` overload"]
458    fn get_count(self) -> i32 {
459        unsafe {
460            let __receiver = <LuaState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
461            ::unity::il2cpp_call!(__LuaState_unity_raw::__lookup_get_count::get_method_info().method_ptr,i32;
462(LuaState)__receiver)
463        }
464    }
465    #[doc = "`Push(crate::moon_sharp::interpreter::dynvalue::DynValue)` overload"]
466    fn push(self, v: impl ::core::convert::Into<crate::moon_sharp::interpreter::dynvalue::DynValue>) -> () {
467        unsafe {
468            let __receiver = <LuaState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
469            ::unity::il2cpp_call!(__LuaState_unity_raw::__lookup_push::get_method_info().method_ptr,();
470(LuaState)__receiver,(crate::moon_sharp::interpreter::dynvalue::DynValue)::core::convert::Into::into(v))
471        }
472    }
473    #[doc = "`Pop()` overload"]
474    fn pop(self) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
475        unsafe {
476            let __receiver = <LuaState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
477            ::unity::il2cpp_call!(__LuaState_unity_raw::__lookup_pop::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
478(LuaState)__receiver)
479        }
480    }
481    #[doc = "`GetTopArray(i32)` overload"]
482    fn get_top_array(self, num: impl ::core::convert::Into<i32>) -> ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue> {
483        unsafe {
484            let __receiver = <LuaState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
485            ::unity::il2cpp_call!(__LuaState_unity_raw::__lookup_get_top_array::get_method_info().method_ptr, ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue> ;
486(LuaState)__receiver,(i32)::core::convert::Into::into(num))
487        }
488    }
489    #[doc = "`GetReturnValue(i32)` overload"]
490    fn get_return_value(self, retvals: impl ::core::convert::Into<i32>) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
491        unsafe {
492            let __receiver = <LuaState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
493            ::unity::il2cpp_call!(__LuaState_unity_raw::__lookup_get_return_value::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
494(LuaState)__receiver,(i32)::core::convert::Into::into(retvals))
495        }
496    }
497    #[doc = "`Discard(i32)` overload"]
498    fn discard(self, nargs: impl ::core::convert::Into<i32>) -> () {
499        unsafe {
500            let __receiver = <LuaState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
501            ::unity::il2cpp_call!(__LuaState_unity_raw::__lookup_discard::get_method_info().method_ptr,();
502(LuaState)__receiver,(i32)::core::convert::Into::into(nargs))
503        }
504    }
505}
506
507#[cfg(feature = "moon_sharp-interpreter-interop-lua_state_interop-luastate")]
508impl<__T: ILuaState> ILuaStateMethods for __T {}
509
510#[cfg(feature = "moon_sharp-interpreter-interop-lua_state_interop-luastate")]
511impl LuaState {
512    pub fn get_execution_context_method_info() -> &'static ::unity::il2cpp::MethodInfo {
513        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
514    }
515
516    pub fn set_execution_context_method_info() -> &'static ::unity::il2cpp::MethodInfo {
517        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
518    }
519
520    pub fn get_function_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
521        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
522    }
523
524    pub fn set_function_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
525        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
526    }
527
528    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
529        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
530    }
531
532    pub fn top_method_info() -> &'static ::unity::il2cpp::MethodInfo {
533        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
534    }
535
536    pub fn at_method_info() -> &'static ::unity::il2cpp::MethodInfo {
537        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
538    }
539
540    pub fn get_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
541        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
542    }
543
544    pub fn push_method_info() -> &'static ::unity::il2cpp::MethodInfo {
545        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
546    }
547
548    pub fn pop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
549        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
550    }
551
552    pub fn get_top_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
553        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
554    }
555
556    pub fn get_return_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
557        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
558    }
559
560    pub fn discard_method_info() -> &'static ::unity::il2cpp::MethodInfo {
561        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
562    }
563}
564
565#[cfg(feature = "moon_sharp-interpreter-interop-lua_state_interop-luastate")]
566impl LuaState {
567    #[doc = "`.ctor(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments, ::unity::Il2CppString)` — overload selector"]
568    pub fn new(
569        execution_context: crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext,
570        args: crate::moon_sharp::interpreter::callbackarguments::CallbackArguments,
571        function_name: ::unity::Il2CppString,
572    ) -> Self {
573        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
574            panic!(
575                "{}
576::{}
577 failed to instantiate",
578                ::core::stringify!(LuaState),
579                ::core::stringify!(new),
580            )
581        });
582        <Self as ILuaStateMethods>::ctor(this, execution_context, args, function_name);
583        this
584    }
585}
586
587#[cfg(feature = "moon_sharp-interpreter-interop-lua_state_interop-luastate")]
588#[doc(hidden)]
589pub mod prelude {
590    pub use super::{ILuaState, ILuaStateMethods, LuaState};
591    pub use crate::system::object::IObject;
592    #[cfg(feature = "system-object")]
593    pub use crate::system::object::IObjectMethods;
594}