engage/generated/system/reflection/
parameterinfo.rs1#[cfg(feature = "system-reflection-parameterinfo-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/system/reflection/parameterinfo/ParameterInfo.md"))]
11 #[::unity::class(namespace = "System.Reflection", name = "ParameterInfo")]
12 #[parent(crate::system::object::Object)]
13 pub struct ParameterInfo {
14 #[offset(16)]
15 #[rename(name = "ClassImpl")]
16 pub class_impl: ::unity::SystemType,
17 #[offset(24)]
18 #[rename(name = "DefaultValueImpl")]
19 pub default_value_impl: ::unity::IlInstance,
20 #[offset(32)]
21 #[rename(name = "MemberImpl")]
22 pub member_impl: crate::system::reflection::memberinfo::MemberInfo,
23 #[offset(40)]
24 #[rename(name = "NameImpl")]
25 pub name_impl: ::unity::Il2CppString,
26 #[offset(48)]
27 #[rename(name = "PositionImpl")]
28 pub position_impl: i32,
29 #[offset(52)]
30 #[rename(name = "AttrsImpl")]
31 pub attrs_impl: crate::system::reflection::parameterattributes::ParameterAttributes,
32 }
33}
34
35#[cfg(feature = "system-reflection-parameterinfo-types")]
36pub use __types::*;
37
38#[cfg(feature = "system-reflection-parameterinfo")]
39impl ParameterInfo {
40 #[doc = "`New(crate::system::reflection::parameterinfo::ParameterInfo, crate::system::reflection::memberinfo::MemberInfo)` overload"]
41 pub fn new(
42 pinfo: impl ::core::convert::Into<crate::system::reflection::parameterinfo::ParameterInfo>,
43 member: impl ::core::convert::Into<crate::system::reflection::memberinfo::MemberInfo>,
44 ) -> crate::system::reflection::parameterinfo::ParameterInfo {
45 unsafe {
46 ::unity::il2cpp_call!((::unity::module_base()+0x3760f20usize)as*mut u8,crate::system::reflection::parameterinfo::ParameterInfo;
47(crate::system::reflection::parameterinfo::ParameterInfo)::core::convert::Into::into(pinfo),(crate::system::reflection::memberinfo::MemberInfo)::core::convert::Into::into(member))
48 }
49 }
50}
51
52#[cfg(feature = "system-reflection-parameterinfo")]
53pub trait IParameterInfoMethods: IParameterInfo {
54 #[doc = "`.ctor()` overload"]
55 fn ctor(self) -> () {
56 unsafe {
57 let __receiver = <ParameterInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
58 ::unity::il2cpp_call!((::unity::module_base()+0x3760690usize)as*mut u8,();
59(ParameterInfo)__receiver)
60 }
61 }
62 #[doc = "`ToString()` overload"]
63 fn to_string(self) -> ::unity::Il2CppString {
64 unsafe {
65 let __receiver = <ParameterInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66 {
67 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
68 let __vi = *__vt.get(3usize).unwrap_or_else(|| {
69 panic!(
70 "unity: virtual slot {}
71 out of range (vtable len {}
72) on the runtime class behind {}
73 (method `{}
74`)",
75 3usize,
76 __vt.len(),
77 <ParameterInfo as ::unity::ClassIdentity>::NAME,
78 "ToString",
79 )
80 });
81 let __inner: extern "C" fn(ParameterInfo, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
82 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
83 __inner(__receiver, __mi)
84 }
85 }
86 }
87 #[doc = "`get_ParameterType()` overload"]
88 fn get_parameter_type(self) -> ::unity::SystemType {
89 unsafe {
90 let __receiver = <ParameterInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91 {
92 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
93 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
94 panic!(
95 "unity: virtual slot {}
96 out of range (vtable len {}
97) on the runtime class behind {}
98 (method `{}
99`)",
100 7usize,
101 __vt.len(),
102 <ParameterInfo as ::unity::ClassIdentity>::NAME,
103 "get_ParameterType",
104 )
105 });
106 let __inner: extern "C" fn(ParameterInfo, ::unity::OptionalMethod) -> ::unity::SystemType = ::core::mem::transmute(__vi.method_ptr);
107 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
108 __inner(__receiver, __mi)
109 }
110 }
111 }
112 #[doc = "`get_Attributes()` overload"]
113 fn get_attributes(self) -> crate::system::reflection::parameterattributes::ParameterAttributes {
114 unsafe {
115 let __receiver = <ParameterInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116 {
117 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
118 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
119 panic!(
120 "unity: virtual slot {}
121 out of range (vtable len {}
122) on the runtime class behind {}
123 (method `{}
124`)",
125 8usize,
126 __vt.len(),
127 <ParameterInfo as ::unity::ClassIdentity>::NAME,
128 "get_Attributes",
129 )
130 });
131 let __inner: extern "C" fn(
132 ParameterInfo,
133 ::unity::OptionalMethod,
134 ) -> crate::system::reflection::parameterattributes::ParameterAttributes = ::core::mem::transmute(__vi.method_ptr);
135 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
136 __inner(__receiver, __mi)
137 }
138 }
139 }
140 #[doc = "`get_IsIn()` overload"]
141 fn get_is_in(self) -> bool {
142 unsafe {
143 let __receiver = <ParameterInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
144 ::unity::il2cpp_call!((::unity::module_base()+0x3760b20usize)as*mut u8,bool;
145(ParameterInfo)__receiver)
146 }
147 }
148 #[doc = "`get_IsOptional()` overload"]
149 fn get_is_optional(self) -> bool {
150 unsafe {
151 let __receiver = <ParameterInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
152 ::unity::il2cpp_call!((::unity::module_base()+0x3760b40usize)as*mut u8,bool;
153(ParameterInfo)__receiver)
154 }
155 }
156 #[doc = "`get_IsOut()` overload"]
157 fn get_is_out(self) -> bool {
158 unsafe {
159 let __receiver = <ParameterInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
160 ::unity::il2cpp_call!((::unity::module_base()+0x3760b60usize)as*mut u8,bool;
161(ParameterInfo)__receiver)
162 }
163 }
164 #[doc = "`get_IsRetval()` overload"]
165 fn get_is_retval(self) -> bool {
166 unsafe {
167 let __receiver = <ParameterInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
168 ::unity::il2cpp_call!((::unity::module_base()+0x3760860usize)as*mut u8,bool;
169(ParameterInfo)__receiver)
170 }
171 }
172 #[doc = "`get_Name()` overload"]
173 fn get_name(self) -> ::unity::Il2CppString {
174 unsafe {
175 let __receiver = <ParameterInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
176 {
177 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
178 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
179 panic!(
180 "unity: virtual slot {}
181 out of range (vtable len {}
182) on the runtime class behind {}
183 (method `{}
184`)",
185 9usize,
186 __vt.len(),
187 <ParameterInfo as ::unity::ClassIdentity>::NAME,
188 "get_Name",
189 )
190 });
191 let __inner: extern "C" fn(ParameterInfo, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
192 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
193 __inner(__receiver, __mi)
194 }
195 }
196 }
197 #[doc = "`get_Position()` overload"]
198 fn get_position(self) -> i32 {
199 unsafe {
200 let __receiver = <ParameterInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
201 {
202 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
203 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
204 panic!(
205 "unity: virtual slot {}
206 out of range (vtable len {}
207) on the runtime class behind {}
208 (method `{}
209`)",
210 10usize,
211 __vt.len(),
212 <ParameterInfo as ::unity::ClassIdentity>::NAME,
213 "get_Position",
214 )
215 });
216 let __inner: extern "C" fn(ParameterInfo, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
217 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
218 __inner(__receiver, __mi)
219 }
220 }
221 }
222 #[doc = "`GetPseudoCustomAttributes()` overload"]
223 fn get_pseudo_custom_attributes(self) -> ::unity::Array<crate::system::object::Object> {
224 unsafe {
225 let __receiver = <ParameterInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
226 ::unity::il2cpp_call!((::unity::module_base()+0x3760ba0usize)as*mut u8, ::unity::Array<crate::system::object::Object> ;
227(ParameterInfo)__receiver)
228 }
229 }
230 #[doc = "`GetDefaultValueImpl()` overload"]
231 fn get_default_value_impl(self) -> crate::system::object::Object {
232 unsafe {
233 let __receiver = <ParameterInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
234 ::unity::il2cpp_call!((::unity::module_base()+0x3760e30usize)as*mut u8,crate::system::object::Object;
235(ParameterInfo)__receiver)
236 }
237 }
238 #[doc = "`get_DefaultValue()` overload"]
239 fn get_default_value(self) -> crate::system::object::Object {
240 unsafe {
241 let __receiver = <ParameterInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
242 {
243 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
244 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
245 panic!(
246 "unity: virtual slot {}
247 out of range (vtable len {}
248) on the runtime class behind {}
249 (method `{}
250`)",
251 11usize,
252 __vt.len(),
253 <ParameterInfo as ::unity::ClassIdentity>::NAME,
254 "get_DefaultValue",
255 )
256 });
257 let __inner: extern "C" fn(ParameterInfo, ::unity::OptionalMethod) -> crate::system::object::Object =
258 ::core::mem::transmute(__vi.method_ptr);
259 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
260 __inner(__receiver, __mi)
261 }
262 }
263 }
264 #[doc = "`GetCustomAttributes(::unity::SystemType, bool)` overload"]
265 fn get_custom_attributes(
266 self,
267 attribute_type: impl ::core::convert::Into<::unity::SystemType>,
268 inherit: impl ::core::convert::Into<bool>,
269 ) -> ::unity::Array<crate::system::object::Object> {
270 unsafe {
271 let __receiver = <ParameterInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
272 {
273 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
274 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
275 panic!(
276 "unity: virtual slot {}
277 out of range (vtable len {}
278) on the runtime class behind {}
279 (method `{}
280`)",
281 12usize,
282 __vt.len(),
283 <ParameterInfo as ::unity::ClassIdentity>::NAME,
284 "GetCustomAttributes",
285 )
286 });
287 let __inner: extern "C" fn(
288 ParameterInfo,
289 ::unity::SystemType,
290 bool,
291 ::unity::OptionalMethod,
292 ) -> ::unity::Array<crate::system::object::Object> = ::core::mem::transmute(__vi.method_ptr);
293 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
294 __inner(
295 __receiver,
296 ::core::convert::Into::into(attribute_type),
297 ::core::convert::Into::into(inherit),
298 __mi,
299 )
300 }
301 }
302 }
303 #[doc = "`IsDefined(::unity::SystemType, bool)` overload"]
304 fn is_defined(self, attribute_type: impl ::core::convert::Into<::unity::SystemType>, inherit: impl ::core::convert::Into<bool>) -> bool {
305 unsafe {
306 let __receiver = <ParameterInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
307 {
308 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
309 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
310 panic!(
311 "unity: virtual slot {}
312 out of range (vtable len {}
313) on the runtime class behind {}
314 (method `{}
315`)",
316 13usize,
317 __vt.len(),
318 <ParameterInfo as ::unity::ClassIdentity>::NAME,
319 "IsDefined",
320 )
321 });
322 let __inner: extern "C" fn(ParameterInfo, ::unity::SystemType, bool, ::unity::OptionalMethod) -> bool =
323 ::core::mem::transmute(__vi.method_ptr);
324 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
325 __inner(
326 __receiver,
327 ::core::convert::Into::into(attribute_type),
328 ::core::convert::Into::into(inherit),
329 __mi,
330 )
331 }
332 }
333 }
334}
335
336#[cfg(feature = "system-reflection-parameterinfo")]
337impl<__T: IParameterInfo> IParameterInfoMethods for __T {}
338
339#[cfg(feature = "system-reflection-parameterinfo")]
340impl ParameterInfo {
341 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
342 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
343 }
344
345 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
346 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
347 }
348
349 pub fn get_parameter_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
350 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
351 }
352
353 pub fn get_attributes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
354 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
355 }
356
357 pub fn get_is_in_method_info() -> &'static ::unity::il2cpp::MethodInfo {
358 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
359 }
360
361 pub fn get_is_optional_method_info() -> &'static ::unity::il2cpp::MethodInfo {
362 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
363 }
364
365 pub fn get_is_out_method_info() -> &'static ::unity::il2cpp::MethodInfo {
366 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
367 }
368
369 pub fn get_is_retval_method_info() -> &'static ::unity::il2cpp::MethodInfo {
370 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
371 }
372
373 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
374 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
375 }
376
377 pub fn get_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
378 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
379 }
380
381 pub fn get_pseudo_custom_attributes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
382 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
383 }
384
385 pub fn get_default_value_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
386 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
387 }
388
389 pub fn get_default_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
390 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
391 }
392
393 pub fn get_custom_attributes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
394 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
395 }
396
397 pub fn is_defined_method_info() -> &'static ::unity::il2cpp::MethodInfo {
398 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
399 }
400
401 pub fn new_method_info() -> &'static ::unity::il2cpp::MethodInfo {
402 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
403 }
404}
405
406#[cfg(feature = "system-reflection-parameterinfo")]
407impl ParameterInfo {
408 #[doc = "Direct (non-virtual) call to `ParameterInfo`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
409 pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
410 let __mi = Self::to_string_method_info();
411 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
412 __inner(this.into(), ::core::option::Option::None)
413 }
414
415 #[doc = "Direct (non-virtual) call to `ParameterInfo`'s own `get_ParameterType`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
416 pub unsafe fn get_parameter_type(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::SystemType {
417 let __mi = Self::get_parameter_type_method_info();
418 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::SystemType = ::core::mem::transmute(__mi.method_ptr);
419 __inner(this.into(), ::core::option::Option::None)
420 }
421
422 #[doc = "Direct (non-virtual) call to `ParameterInfo`'s own `get_Attributes`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
423 pub unsafe fn get_attributes(
424 this: impl ::core::convert::Into<::unity::IlInstance>,
425 ) -> crate::system::reflection::parameterattributes::ParameterAttributes {
426 let __mi = Self::get_attributes_method_info();
427 let __inner: extern "C" fn(
428 ::unity::IlInstance,
429 ::unity::OptionalMethod,
430 ) -> crate::system::reflection::parameterattributes::ParameterAttributes = ::core::mem::transmute(__mi.method_ptr);
431 __inner(this.into(), ::core::option::Option::None)
432 }
433
434 #[doc = "Direct (non-virtual) call to `ParameterInfo`'s own `get_Name`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
435 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
436 let __mi = Self::get_name_method_info();
437 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
438 __inner(this.into(), ::core::option::Option::None)
439 }
440
441 #[doc = "Direct (non-virtual) call to `ParameterInfo`'s own `get_Position`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
442 pub unsafe fn get_position(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
443 let __mi = Self::get_position_method_info();
444 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
445 __inner(this.into(), ::core::option::Option::None)
446 }
447
448 #[doc = "Direct (non-virtual) call to `ParameterInfo`'s own `get_DefaultValue`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
449 pub unsafe fn get_default_value(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::object::Object {
450 let __mi = Self::get_default_value_method_info();
451 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::object::Object =
452 ::core::mem::transmute(__mi.method_ptr);
453 __inner(this.into(), ::core::option::Option::None)
454 }
455
456 #[doc = "Direct (non-virtual) call to `ParameterInfo`'s own `GetCustomAttributes`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
457 pub unsafe fn get_custom_attributes(
458 this: impl ::core::convert::Into<::unity::IlInstance>,
459 attribute_type: ::unity::SystemType,
460 inherit: bool,
461 ) -> ::unity::Array<crate::system::object::Object> {
462 let __mi = Self::get_custom_attributes_method_info();
463 let __inner: extern "C" fn(
464 ::unity::IlInstance,
465 ::unity::SystemType,
466 bool,
467 ::unity::OptionalMethod,
468 ) -> ::unity::Array<crate::system::object::Object> = ::core::mem::transmute(__mi.method_ptr);
469 __inner(this.into(), attribute_type, inherit, ::core::option::Option::None)
470 }
471
472 #[doc = "Direct (non-virtual) call to `ParameterInfo`'s own `IsDefined`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
473 pub unsafe fn is_defined(this: impl ::core::convert::Into<::unity::IlInstance>, attribute_type: ::unity::SystemType, inherit: bool) -> bool {
474 let __mi = Self::is_defined_method_info();
475 let __inner: extern "C" fn(::unity::IlInstance, ::unity::SystemType, bool, ::unity::OptionalMethod) -> bool =
476 ::core::mem::transmute(__mi.method_ptr);
477 __inner(this.into(), attribute_type, inherit, ::core::option::Option::None)
478 }
479}
480
481#[cfg(feature = "system-reflection-parameterinfo")]
482#[doc(hidden)]
483pub mod prelude {
484 pub use super::{IParameterInfo, IParameterInfoMethods, ParameterInfo};
485 pub use crate::system::object::IObject;
486 #[cfg(feature = "system-object")]
487 pub use crate::system::object::IObjectMethods;
488}