Skip to main content

engage/generated/system/reflection/
introspectionextensions.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-reflection-introspectionextensions-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/introspectionextensions/IntrospectionExtensions.md"))]
11    #[::unity::class(namespace = "System.Reflection", name = "IntrospectionExtensions")]
12    #[parent(crate::system::object::Object)]
13    pub struct IntrospectionExtensions {}
14}
15
16#[cfg(feature = "system-reflection-introspectionextensions-types")]
17pub use __types::*;
18
19#[cfg(feature = "system-reflection-introspectionextensions")]
20impl IntrospectionExtensions {
21    #[doc = "`GetTypeInfo(::unity::SystemType)` overload"]
22    pub fn get_type_info(r#type: impl ::core::convert::Into<::unity::SystemType>) -> crate::system::reflection::typeinfo::TypeInfo {
23        unsafe {
24            ::unity::il2cpp_call!((::unity::module_base()+0x3263860usize)as*mut u8,crate::system::reflection::typeinfo::TypeInfo;
25(::unity::SystemType)::core::convert::Into::into(r#type))
26        }
27    }
28}
29
30#[cfg(feature = "system-reflection-introspectionextensions")]
31impl IntrospectionExtensions {
32    pub fn get_type_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
33        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
34    }
35}
36
37#[cfg(feature = "system-reflection-introspectionextensions")]
38#[doc(hidden)]
39pub mod prelude {
40    pub use super::{IIntrospectionExtensions, IntrospectionExtensions};
41    pub use crate::system::object::IObject;
42    #[cfg(feature = "system-object")]
43    pub use crate::system::object::IObjectMethods;
44}