engage/generated/system/reflection/
monoeventinfo.rs1#[cfg(feature = "system-reflection-monoeventinfo-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/system/reflection/monoeventinfo/MonoEventInfo.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct MonoEventInfo {
17 pub declaring_type: ::unity::SystemType,
18 pub reflected_type: ::unity::SystemType,
19 pub name: ::unity::Il2CppString,
20 pub add_method: crate::system::reflection::methodinfo::MethodInfo,
21 pub remove_method: crate::system::reflection::methodinfo::MethodInfo,
22 pub raise_method: crate::system::reflection::methodinfo::MethodInfo,
23 pub attrs: crate::system::reflection::eventattributes::EventAttributes,
24 pub other_methods: ::unity::Array<crate::system::reflection::methodinfo::MethodInfo>,
25 }
26 impl ::unity::ClassIdentity for MonoEventInfo {
27 const NAME: &'static str = "MonoEventInfo";
28 const NAMESPACE: &'static str = "System.Reflection";
29
30 fn class() -> ::unity::Class {
31 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
32 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
33 }
34 }
35 impl ::unity::IlType for MonoEventInfo {
36 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
37 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
38 }
39 }
40}
41
42#[cfg(feature = "system-reflection-monoeventinfo-types")]
43pub use __types::*;
44
45#[cfg(feature = "system-reflection-monoeventinfo")]
46impl MonoEventInfo {
47 #[doc = "`get_event_info(crate::system::reflection::monoevent::MonoEvent, *mutcrate::system::reflection::monoeventinfo::MonoEventInfo)` overload"]
48 pub fn get_event_info(
49 ev: impl ::core::convert::Into<crate::system::reflection::monoevent::MonoEvent>,
50 ) -> crate::system::reflection::monoeventinfo::MonoEventInfo {
51 unsafe {
52 let mut __out_0 = ::core::mem::MaybeUninit::<crate::system::reflection::monoeventinfo::MonoEventInfo>::uninit();
53 ::unity::il2cpp_call!((::unity::module_base()+0x337f140usize)as*mut u8,();
54(crate::system::reflection::monoevent::MonoEvent)::core::convert::Into::into(ev),(*mut crate::system::reflection::monoeventinfo::MonoEventInfo)__out_0.as_mut_ptr());
55 __out_0.assume_init()
56 }
57 }
58
59 #[doc = "`GetEventInfo(crate::system::reflection::monoevent::MonoEvent)` overload"]
60 pub fn get_event_info_2(
61 ev: impl ::core::convert::Into<crate::system::reflection::monoevent::MonoEvent>,
62 ) -> crate::system::reflection::monoeventinfo::MonoEventInfo {
63 unsafe {
64 ::unity::il2cpp_call!((::unity::module_base()+0x337ec50usize)as*mut u8,crate::system::reflection::monoeventinfo::MonoEventInfo;
65(crate::system::reflection::monoevent::MonoEvent)::core::convert::Into::into(ev))
66 }
67 }
68}
69
70#[cfg(feature = "system-reflection-monoeventinfo")]
71impl MonoEventInfo {
72 pub fn get_event_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
73 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
74 }
75
76 pub fn get_event_info_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
77 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
78 }
79}
80
81#[cfg(feature = "system-reflection-monoeventinfo")]
82#[doc(hidden)]
83pub mod prelude {
84 pub use super::MonoEventInfo;
85 #[cfg(feature = "system-object")]
86 pub use crate::system::object::IObjectMethods;
87 #[cfg(feature = "system-valuetype")]
88 pub use crate::system::valuetype::IValueTypeMethods;
89 pub use crate::system::{object::IObject, valuetype::IValueType};
90}