Skip to main content

engage/generated/system/reflection/
runtimepropertyinfo.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-reflection-runtimepropertyinfo-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        reflection::{
11            memberinfo::{IMemberInfo, MemberInfo},
12            propertyinfo::{IPropertyInfo, PropertyInfo},
13        },
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/reflection/runtimepropertyinfo/RuntimePropertyInfo.md"))]
17    #[::unity::class(namespace = "System.Reflection", name = "RuntimePropertyInfo")]
18    #[parent(crate::system::reflection::propertyinfo::PropertyInfo)]
19    pub struct RuntimePropertyInfo {}
20}
21
22#[cfg(feature = "system-reflection-runtimepropertyinfo-types")]
23pub use __types::*;
24
25#[cfg(feature = "system-reflection-runtimepropertyinfo")]
26pub trait IRuntimePropertyInfoMethods: IRuntimePropertyInfo {
27    #[doc = "`get_BindingFlags()` overload"]
28    fn get_binding_flags(self) -> crate::system::reflection::bindingflags::BindingFlags {
29        unsafe {
30            let __receiver = <RuntimePropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
31            ::unity::il2cpp_call!((::unity::module_base()+0x2fd6320usize)as*mut u8,crate::system::reflection::bindingflags::BindingFlags;
32(RuntimePropertyInfo)__receiver)
33        }
34    }
35    #[doc = "`get_Module()` overload"]
36    fn get_module(self) -> crate::system::reflection::module::Module {
37        unsafe {
38            let __receiver = <RuntimePropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
39            {
40                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
41                let __vi = *__vt.get(15usize).unwrap_or_else(|| {
42                    panic!(
43                        "unity: virtual slot {}
44 out of range (vtable len {}
45) on the runtime class behind {}
46 (method `{}
47`)",
48                        15usize,
49                        __vt.len(),
50                        <RuntimePropertyInfo as ::unity::ClassIdentity>::NAME,
51                        "get_Module",
52                    )
53                });
54                let __inner: extern "C" fn(RuntimePropertyInfo, ::unity::OptionalMethod) -> crate::system::reflection::module::Module =
55                    ::core::mem::transmute(__vi.method_ptr);
56                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
57                __inner(__receiver, __mi)
58            }
59        }
60    }
61    #[doc = "`GetDeclaringTypeInternal()` overload"]
62    fn get_declaring_type_internal(self) -> crate::system::runtimetype::RuntimeType {
63        unsafe {
64            let __receiver = <RuntimePropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65            ::unity::il2cpp_call!((::unity::module_base()+0x2fd6450usize)as*mut u8,crate::system::runtimetype::RuntimeType;
66(RuntimePropertyInfo)__receiver)
67        }
68    }
69    #[doc = "`get_ReflectedTypeInternal()` overload"]
70    fn get_reflected_type_internal(self) -> crate::system::runtimetype::RuntimeType {
71        unsafe {
72            let __receiver = <RuntimePropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73            ::unity::il2cpp_call!((::unity::module_base()+0x2fd64e0usize)as*mut u8,crate::system::runtimetype::RuntimeType;
74(RuntimePropertyInfo)__receiver)
75        }
76    }
77    #[doc = "`GetRuntimeModule()` overload"]
78    fn get_runtime_module(self) -> crate::system::reflection::runtimemodule::RuntimeModule {
79        unsafe {
80            let __receiver = <RuntimePropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81            ::unity::il2cpp_call!((::unity::module_base()+0x2fd63c0usize)as*mut u8,crate::system::reflection::runtimemodule::RuntimeModule;
82(RuntimePropertyInfo)__receiver)
83        }
84    }
85    #[doc = "`ToString()` overload"]
86    fn to_string(self) -> ::unity::Il2CppString {
87        unsafe {
88            let __receiver = <RuntimePropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89            {
90                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
91                let __vi = *__vt.get(3usize).unwrap_or_else(|| {
92                    panic!(
93                        "unity: virtual slot {}
94 out of range (vtable len {}
95) on the runtime class behind {}
96 (method `{}
97`)",
98                        3usize,
99                        __vt.len(),
100                        <RuntimePropertyInfo as ::unity::ClassIdentity>::NAME,
101                        "ToString",
102                    )
103                });
104                let __inner: extern "C" fn(RuntimePropertyInfo, ::unity::OptionalMethod) -> ::unity::Il2CppString =
105                    ::core::mem::transmute(__vi.method_ptr);
106                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
107                __inner(__receiver, __mi)
108            }
109        }
110    }
111    #[doc = "`FormatNameAndSig(bool)` overload"]
112    fn format_name_and_sig(self, serialization: impl ::core::convert::Into<bool>) -> ::unity::Il2CppString {
113        unsafe {
114            let __receiver = <RuntimePropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115            ::unity::il2cpp_call!((::unity::module_base()+0x2fd6580usize)as*mut u8, ::unity::Il2CppString;
116(RuntimePropertyInfo)__receiver,(bool)::core::convert::Into::into(serialization))
117        }
118    }
119    #[doc = "`SerializationToString()` overload"]
120    fn serialization_to_string(self) -> ::unity::Il2CppString {
121        unsafe {
122            let __receiver = <RuntimePropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123            ::unity::il2cpp_call!((::unity::module_base()+0x2fd6830usize)as*mut u8, ::unity::Il2CppString;
124(RuntimePropertyInfo)__receiver)
125        }
126    }
127    #[doc = "`.ctor()` overload"]
128    fn ctor(self) -> () {
129        unsafe {
130            let __receiver = <RuntimePropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131            ::unity::il2cpp_call!((::unity::module_base()+0x2fd6840usize)as*mut u8,();
132(RuntimePropertyInfo)__receiver)
133        }
134    }
135}
136
137#[cfg(feature = "system-reflection-runtimepropertyinfo")]
138impl<__T: IRuntimePropertyInfo> IRuntimePropertyInfoMethods for __T {}
139
140#[cfg(feature = "system-reflection-runtimepropertyinfo")]
141impl RuntimePropertyInfo {
142    pub fn get_binding_flags_method_info() -> &'static ::unity::il2cpp::MethodInfo {
143        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
144    }
145
146    pub fn get_module_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
148    }
149
150    pub fn get_declaring_type_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
151        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
152    }
153
154    pub fn get_reflected_type_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
156    }
157
158    pub fn get_runtime_module_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
160    }
161
162    pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
164    }
165
166    pub fn format_name_and_sig_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
168    }
169
170    pub fn serialization_to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
171        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
172    }
173
174    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
175        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
176    }
177}
178
179#[cfg(feature = "system-reflection-runtimepropertyinfo")]
180impl RuntimePropertyInfo {
181    #[doc = "Direct (non-virtual) call to `RuntimePropertyInfo`'s own `get_Module`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
182    pub unsafe fn get_module(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::reflection::module::Module {
183        let __mi = Self::get_module_method_info();
184        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::reflection::module::Module =
185            ::core::mem::transmute(__mi.method_ptr);
186        __inner(this.into(), ::core::option::Option::None)
187    }
188
189    #[doc = "Direct (non-virtual) call to `RuntimePropertyInfo`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
190    pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
191        let __mi = Self::to_string_method_info();
192        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
193        __inner(this.into(), ::core::option::Option::None)
194    }
195}
196
197#[cfg(feature = "system-reflection-runtimepropertyinfo")]
198impl RuntimePropertyInfo {
199    #[doc = "`.ctor()` — no args"]
200    pub fn new() -> Self {
201        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
202            panic!(
203                "{}
204::{}
205 failed to instantiate",
206                ::core::stringify!(RuntimePropertyInfo),
207                ::core::stringify!(new),
208            )
209        });
210        <Self as IRuntimePropertyInfoMethods>::ctor(this);
211        this
212    }
213}
214
215#[cfg(feature = "system-reflection-runtimepropertyinfo")]
216#[doc(hidden)]
217pub mod prelude {
218    pub use super::{IRuntimePropertyInfo, IRuntimePropertyInfoMethods, RuntimePropertyInfo};
219    #[cfg(feature = "system-object")]
220    pub use crate::system::object::IObjectMethods;
221    #[cfg(feature = "system-reflection-memberinfo")]
222    pub use crate::system::reflection::memberinfo::IMemberInfoMethods;
223    #[cfg(feature = "system-reflection-propertyinfo")]
224    pub use crate::system::reflection::propertyinfo::IPropertyInfoMethods;
225    pub use crate::system::{
226        object::IObject,
227        reflection::{memberinfo::IMemberInfo, propertyinfo::IPropertyInfo},
228    };
229}