engage/generated/moon_sharp/interpreter/interop/
reflectionspecialname.rs1#[cfg(feature = "moon_sharp-interpreter-interop-reflectionspecialname-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 valuetype::{IValueType, ValueType},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/interop/reflectionspecialname/ReflectionSpecialName.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct ReflectionSpecialName {}
17 impl ::unity::ClassIdentity for ReflectionSpecialName {
18 const NAME: &'static str = "ReflectionSpecialName";
19 const NAMESPACE: &'static str = "MoonSharp.Interpreter.Interop";
20
21 fn class() -> ::unity::Class {
22 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
23 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
24 }
25 }
26 impl ::unity::IlType for ReflectionSpecialName {
27 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
28 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
29 }
30 }
31}
32
33#[cfg(feature = "moon_sharp-interpreter-interop-reflectionspecialname-types")]
34pub use __types::*;
35
36#[cfg(feature = "moon_sharp-interpreter-interop-reflectionspecialname")]
37#[doc(hidden)]
38#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
39mod __ReflectionSpecialName_unity_raw {
40 use super::*;
41 #[doc(hidden)]
42 #[allow(non_snake_case)]
43 pub mod __lookup_get_type {
44 use super::*;
45 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
46 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
47 ::unity::lookup::method_info_on_class_with_signature(
48 <ReflectionSpecialName as ::unity::ClassIdentity>::class(),
49 "get_Type",
50 0,
51 param_types,
52 false,
53 )
54 });
55 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
56 match &*METHOD {
57 ::core::result::Result::Ok(mi) => *mi,
58 ::core::result::Result::Err(e) => {
59 panic!(
60 "method lookup failed: {}
61::{}
62: {}
63",
64 <ReflectionSpecialName as ::unity::ClassIdentity>::NAME,
65 "get_Type",
66 e
67 )
68 },
69 }
70 }
71 }
72 #[doc(hidden)]
73 #[allow(non_snake_case)]
74 pub mod __lookup_set_type {
75 use super::*;
76 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
77 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
78 &[<crate::moon_sharp::interpreter::interop::reflectionspecialnametype::ReflectionSpecialNameType as ::unity::IlType>::il_type()];
79 ::unity::lookup::method_info_on_class_with_signature(
80 <ReflectionSpecialName as ::unity::ClassIdentity>::class(),
81 "set_Type",
82 1,
83 param_types,
84 false,
85 )
86 });
87 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
88 match &*METHOD {
89 ::core::result::Result::Ok(mi) => *mi,
90 ::core::result::Result::Err(e) => {
91 panic!(
92 "method lookup failed: {}
93::{}
94: {}
95",
96 <ReflectionSpecialName as ::unity::ClassIdentity>::NAME,
97 "set_Type",
98 e
99 )
100 },
101 }
102 }
103 }
104 #[doc(hidden)]
105 #[allow(non_snake_case)]
106 pub mod __lookup_get_argument {
107 use super::*;
108 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
109 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
110 ::unity::lookup::method_info_on_class_with_signature(
111 <ReflectionSpecialName as ::unity::ClassIdentity>::class(),
112 "get_Argument",
113 0,
114 param_types,
115 false,
116 )
117 });
118 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
119 match &*METHOD {
120 ::core::result::Result::Ok(mi) => *mi,
121 ::core::result::Result::Err(e) => {
122 panic!(
123 "method lookup failed: {}
124::{}
125: {}
126",
127 <ReflectionSpecialName as ::unity::ClassIdentity>::NAME,
128 "get_Argument",
129 e
130 )
131 },
132 }
133 }
134 }
135 #[doc(hidden)]
136 #[allow(non_snake_case)]
137 pub mod __lookup_set_argument {
138 use super::*;
139 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
140 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
141 ::unity::lookup::method_info_on_class_with_signature(
142 <ReflectionSpecialName as ::unity::ClassIdentity>::class(),
143 "set_Argument",
144 1,
145 param_types,
146 false,
147 )
148 });
149 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
150 match &*METHOD {
151 ::core::result::Result::Ok(mi) => *mi,
152 ::core::result::Result::Err(e) => {
153 panic!(
154 "method lookup failed: {}
155::{}
156: {}
157",
158 <ReflectionSpecialName as ::unity::ClassIdentity>::NAME,
159 "set_Argument",
160 e
161 )
162 },
163 }
164 }
165 }
166 #[doc(hidden)]
167 #[allow(non_snake_case)]
168 pub mod __lookup_ctor {
169 use super::*;
170 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
171 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
172 <crate::moon_sharp::interpreter::interop::reflectionspecialnametype::ReflectionSpecialNameType as ::unity::IlType>::il_type(),
173 <::unity::Il2CppString as ::unity::IlType>::il_type(),
174 ];
175 ::unity::lookup::method_info_on_class_with_signature(
176 <ReflectionSpecialName as ::unity::ClassIdentity>::class(),
177 ".ctor",
178 2,
179 param_types,
180 false,
181 )
182 });
183 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184 match &*METHOD {
185 ::core::result::Result::Ok(mi) => *mi,
186 ::core::result::Result::Err(e) => {
187 panic!(
188 "method lookup failed: {}
189::{}
190: {}
191",
192 <ReflectionSpecialName as ::unity::ClassIdentity>::NAME,
193 ".ctor",
194 e
195 )
196 },
197 }
198 }
199 }
200 #[doc(hidden)]
201 #[allow(non_snake_case)]
202 pub mod __lookup_ctor_2 {
203 use super::*;
204 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
205 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
206 ::unity::lookup::method_info_on_class_with_signature(
207 <ReflectionSpecialName as ::unity::ClassIdentity>::class(),
208 ".ctor",
209 1,
210 param_types,
211 false,
212 )
213 });
214 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215 match &*METHOD {
216 ::core::result::Result::Ok(mi) => *mi,
217 ::core::result::Result::Err(e) => {
218 panic!(
219 "method lookup failed: {}
220::{}
221: {}
222",
223 <ReflectionSpecialName as ::unity::ClassIdentity>::NAME,
224 ".ctor",
225 e
226 )
227 },
228 }
229 }
230 }
231}
232
233#[cfg(feature = "moon_sharp-interpreter-interop-reflectionspecialname")]
234impl ReflectionSpecialName {
235 #[doc = "`get_Type()` overload"]
236 pub fn get_type(&mut self) -> crate::moon_sharp::interpreter::interop::reflectionspecialnametype::ReflectionSpecialNameType {
237 unsafe {
238 ::unity::il2cpp_call!(::unity::callable_ptr(__ReflectionSpecialName_unity_raw::__lookup_get_type::get_method_info().method_ptr),crate::moon_sharp::interpreter::interop::reflectionspecialnametype::ReflectionSpecialNameType;
239(*mut ReflectionSpecialName)self as*mut ReflectionSpecialName)
240 }
241 }
242
243 #[doc = "`set_Type(crate::moon_sharp::interpreter::interop::reflectionspecialnametype::ReflectionSpecialNameType)` overload"]
244 pub fn set_type(
245 &mut self,
246 value: impl ::core::convert::Into<crate::moon_sharp::interpreter::interop::reflectionspecialnametype::ReflectionSpecialNameType>,
247 ) -> () {
248 unsafe {
249 ::unity::il2cpp_call!(::unity::callable_ptr(__ReflectionSpecialName_unity_raw::__lookup_set_type::get_method_info().method_ptr),();
250(*mut ReflectionSpecialName)self as*mut ReflectionSpecialName,(crate::moon_sharp::interpreter::interop::reflectionspecialnametype::ReflectionSpecialNameType)::core::convert::Into::into(value))
251 }
252 }
253
254 #[doc = "`get_Argument()` overload"]
255 pub fn get_argument(&mut self) -> ::unity::Il2CppString {
256 unsafe {
257 ::unity::il2cpp_call!(::unity::callable_ptr(__ReflectionSpecialName_unity_raw::__lookup_get_argument::get_method_info().method_ptr), ::unity::Il2CppString;
258(*mut ReflectionSpecialName)self as*mut ReflectionSpecialName)
259 }
260 }
261
262 #[doc = "`set_Argument(::unity::Il2CppString)` overload"]
263 pub fn set_argument(&mut self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
264 unsafe {
265 ::unity::il2cpp_call!(::unity::callable_ptr(__ReflectionSpecialName_unity_raw::__lookup_set_argument::get_method_info().method_ptr),();
266(*mut ReflectionSpecialName)self as*mut ReflectionSpecialName,(::unity::Il2CppString)::core::convert::Into::into(value))
267 }
268 }
269
270 #[doc = "`.ctor(crate::moon_sharp::interpreter::interop::reflectionspecialnametype::ReflectionSpecialNameType, ::unity::Il2CppString)` overload"]
271 pub fn ctor(
272 &mut self,
273 r#type: impl ::core::convert::Into<crate::moon_sharp::interpreter::interop::reflectionspecialnametype::ReflectionSpecialNameType>,
274 argument: impl ::core::convert::Into<::unity::Il2CppString>,
275 ) -> () {
276 unsafe {
277 ::unity::il2cpp_call!(::unity::callable_ptr(__ReflectionSpecialName_unity_raw::__lookup_ctor::get_method_info().method_ptr),();
278(*mut ReflectionSpecialName)self as*mut ReflectionSpecialName,(crate::moon_sharp::interpreter::interop::reflectionspecialnametype::ReflectionSpecialNameType)::core::convert::Into::into(r#type),(::unity::Il2CppString)::core::convert::Into::into(argument))
279 }
280 }
281
282 #[doc = "`.ctor(::unity::Il2CppString)` overload"]
283 pub fn ctor_2(&mut self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
284 unsafe {
285 ::unity::il2cpp_call!(::unity::callable_ptr(__ReflectionSpecialName_unity_raw::__lookup_ctor_2::get_method_info().method_ptr),();
286(*mut ReflectionSpecialName)self as*mut ReflectionSpecialName,(::unity::Il2CppString)::core::convert::Into::into(name))
287 }
288 }
289}
290
291#[cfg(feature = "moon_sharp-interpreter-interop-reflectionspecialname")]
292impl ReflectionSpecialName {
293 pub fn get_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
295 }
296
297 pub fn set_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
299 }
300
301 pub fn get_argument_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
303 }
304
305 pub fn set_argument_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
307 }
308
309 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
311 }
312
313 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
315 }
316}
317
318#[cfg(feature = "moon_sharp-interpreter-interop-reflectionspecialname")]
319#[doc(hidden)]
320pub mod prelude {
321 pub use super::ReflectionSpecialName;
322 #[cfg(feature = "system-object")]
323 pub use crate::system::object::IObjectMethods;
324 #[cfg(feature = "system-valuetype")]
325 pub use crate::system::valuetype::IValueTypeMethods;
326 pub use crate::system::{object::IObject, valuetype::IValueType};
327}