Skip to main content

engage/generated/moon_sharp/interpreter/
dynamicexpressionexception.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-dynamicexpressionexception-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        moon_sharp::interpreter::{
10            interpreterexception::{IInterpreterException, InterpreterException},
11            scriptruntimeexception::{IScriptRuntimeException, ScriptRuntimeException},
12        },
13        system::object::{IObject, Object},
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/dynamicexpressionexception/DynamicExpressionException.md"))]
17    #[::unity::class(namespace = "MoonSharp.Interpreter", name = "DynamicExpressionException")]
18    #[parent(crate::moon_sharp::interpreter::scriptruntimeexception::ScriptRuntimeException)]
19    pub struct DynamicExpressionException {}
20}
21
22#[cfg(feature = "moon_sharp-interpreter-dynamicexpressionexception-types")]
23pub use __types::*;
24
25#[cfg(feature = "moon_sharp-interpreter-dynamicexpressionexception")]
26#[doc(hidden)]
27#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
28mod __DynamicExpressionException_unity_raw {
29    use super::*;
30    #[doc(hidden)]
31    #[allow(non_snake_case)]
32    pub mod __lookup_ctor {
33        use super::*;
34        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
35            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
36                <::unity::Il2CppString as ::unity::IlType>::il_type(),
37                <::unity::Array<crate::system::object::Object> as ::unity::IlType>::il_type(),
38            ];
39            ::unity::lookup::method_info_on_class_with_signature(
40                <DynamicExpressionException as ::unity::ClassIdentity>::class(),
41                ".ctor",
42                2,
43                param_types,
44                false,
45            )
46        });
47        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
48            match &*METHOD {
49                ::core::result::Result::Ok(mi) => *mi,
50                ::core::result::Result::Err(e) => {
51                    panic!(
52                        "method lookup failed: {}
53::{}
54: {}
55",
56                        <DynamicExpressionException as ::unity::ClassIdentity>::NAME,
57                        ".ctor",
58                        e
59                    )
60                },
61            }
62        }
63    }
64    #[doc(hidden)]
65    #[allow(non_snake_case)]
66    pub mod __lookup_ctor_2 {
67        use super::*;
68        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
69            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
70            ::unity::lookup::method_info_on_class_with_signature(
71                <DynamicExpressionException as ::unity::ClassIdentity>::class(),
72                ".ctor",
73                1,
74                param_types,
75                false,
76            )
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                        <DynamicExpressionException as ::unity::ClassIdentity>::NAME,
88                        ".ctor",
89                        e
90                    )
91                },
92            }
93        }
94    }
95}
96
97#[cfg(feature = "moon_sharp-interpreter-dynamicexpressionexception")]
98pub trait IDynamicExpressionExceptionMethods: IDynamicExpressionException {
99    #[doc = "`.ctor(::unity::Il2CppString, ::unity::Array<crate::system::object::Object>)` overload"]
100    fn ctor(
101        self,
102        format: impl ::core::convert::Into<::unity::Il2CppString>,
103        args: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
104    ) -> () {
105        unsafe {
106            let __receiver =
107                <DynamicExpressionException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108            ::unity::il2cpp_call!(__DynamicExpressionException_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
109(DynamicExpressionException)__receiver,(::unity::Il2CppString)::core::convert::Into::into(format),(::unity::Array<crate::system::object::Object>)::core::convert::Into::into(args))
110        }
111    }
112    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
113    fn ctor_2(self, message: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
114        unsafe {
115            let __receiver =
116                <DynamicExpressionException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
117            ::unity::il2cpp_call!(__DynamicExpressionException_unity_raw::__lookup_ctor_2::get_method_info().method_ptr,();
118(DynamicExpressionException)__receiver,(::unity::Il2CppString)::core::convert::Into::into(message))
119        }
120    }
121}
122
123#[cfg(feature = "moon_sharp-interpreter-dynamicexpressionexception")]
124impl<__T: IDynamicExpressionException> IDynamicExpressionExceptionMethods for __T {}
125
126#[cfg(feature = "moon_sharp-interpreter-dynamicexpressionexception")]
127impl DynamicExpressionException {
128    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
129        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
130    }
131
132    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
133        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
134    }
135}
136
137#[cfg(feature = "moon_sharp-interpreter-dynamicexpressionexception")]
138impl DynamicExpressionException {
139    #[doc = "`.ctor(::unity::Il2CppString, ::unity::Array<crate::system::object::Object>)` — overload selector"]
140    pub fn new(format: ::unity::Il2CppString, args: ::unity::Array<crate::system::object::Object>) -> Self {
141        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
142            panic!(
143                "{}
144::{}
145 failed to instantiate",
146                ::core::stringify!(DynamicExpressionException),
147                ::core::stringify!(new),
148            )
149        });
150        <Self as IDynamicExpressionExceptionMethods>::ctor(this, format, args);
151        this
152    }
153
154    #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
155    pub fn new_2(message: ::unity::Il2CppString) -> Self {
156        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
157            panic!(
158                "{}
159::{}
160 failed to instantiate",
161                ::core::stringify!(DynamicExpressionException),
162                ::core::stringify!(new_2),
163            )
164        });
165        <Self as IDynamicExpressionExceptionMethods>::ctor_2(this, message);
166        this
167    }
168}
169
170#[cfg(feature = "moon_sharp-interpreter-dynamicexpressionexception")]
171#[doc(hidden)]
172pub mod prelude {
173    pub use super::{DynamicExpressionException, IDynamicExpressionException, IDynamicExpressionExceptionMethods};
174    #[cfg(feature = "moon_sharp-interpreter-interpreterexception")]
175    pub use crate::moon_sharp::interpreter::interpreterexception::IInterpreterExceptionMethods;
176    #[cfg(feature = "moon_sharp-interpreter-scriptruntimeexception")]
177    pub use crate::moon_sharp::interpreter::scriptruntimeexception::IScriptRuntimeExceptionMethods;
178    #[cfg(feature = "system-object")]
179    pub use crate::system::object::IObjectMethods;
180    pub use crate::{
181        moon_sharp::interpreter::{
182            interpreterexception::{IInterpreterException, InterpreterException},
183            scriptruntimeexception::IScriptRuntimeException,
184        },
185        system::object::IObject,
186    };
187}