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