Skip to main content

engage/generated/system/reflection/
monoevent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-reflection-monoevent-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            eventinfo::{EventInfo, IEventInfo},
12            memberinfo::{IMemberInfo, MemberInfo},
13            runtimeeventinfo::{IRuntimeEventInfo, RuntimeEventInfo},
14        },
15    };
16
17    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/reflection/monoevent/MonoEvent.md"))]
18    #[::unity::class(namespace = "System.Reflection", name = "MonoEvent")]
19    #[parent(crate::system::reflection::runtimeeventinfo::RuntimeEventInfo)]
20    pub struct MonoEvent {
21        #[offset(24)]
22        #[rename(name = "klass")]
23        pub klass: ::unity::IntPtr,
24        #[offset(32)]
25        #[rename(name = "handle")]
26        pub handle: ::unity::IntPtr,
27    }
28}
29
30#[cfg(feature = "system-reflection-monoevent-types")]
31pub use __types::*;
32
33#[cfg(feature = "system-reflection-monoevent")]
34pub trait IMonoEventMethods: IMonoEvent {
35    #[doc = "`get_Attributes()` overload"]
36    fn get_attributes(self) -> crate::system::reflection::eventattributes::EventAttributes {
37        unsafe {
38            let __receiver = <MonoEvent 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(16usize).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                        16usize,
49                        __vt.len(),
50                        <MonoEvent as ::unity::ClassIdentity>::NAME,
51                        "get_Attributes",
52                    )
53                });
54                let __inner: extern "C" fn(MonoEvent, ::unity::OptionalMethod) -> crate::system::reflection::eventattributes::EventAttributes =
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 = "`GetAddMethod(bool)` overload"]
62    fn get_add_method(self, non_public: impl ::core::convert::Into<bool>) -> crate::system::reflection::methodinfo::MethodInfo {
63        unsafe {
64            let __receiver = <MonoEvent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65            {
66                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
67                let __vi = *__vt.get(19usize).unwrap_or_else(|| {
68                    panic!(
69                        "unity: virtual slot {}
70 out of range (vtable len {}
71) on the runtime class behind {}
72 (method `{}
73`)",
74                        19usize,
75                        __vt.len(),
76                        <MonoEvent as ::unity::ClassIdentity>::NAME,
77                        "GetAddMethod",
78                    )
79                });
80                let __inner: extern "C" fn(MonoEvent, bool, ::unity::OptionalMethod) -> crate::system::reflection::methodinfo::MethodInfo =
81                    ::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, ::core::convert::Into::into(non_public), __mi)
84            }
85        }
86    }
87    #[doc = "`GetRaiseMethod(bool)` overload"]
88    fn get_raise_method(self, non_public: impl ::core::convert::Into<bool>) -> crate::system::reflection::methodinfo::MethodInfo {
89        unsafe {
90            let __receiver = <MonoEvent 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(20usize).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                        20usize,
101                        __vt.len(),
102                        <MonoEvent as ::unity::ClassIdentity>::NAME,
103                        "GetRaiseMethod",
104                    )
105                });
106                let __inner: extern "C" fn(MonoEvent, bool, ::unity::OptionalMethod) -> crate::system::reflection::methodinfo::MethodInfo =
107                    ::core::mem::transmute(__vi.method_ptr);
108                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
109                __inner(__receiver, ::core::convert::Into::into(non_public), __mi)
110            }
111        }
112    }
113    #[doc = "`GetRemoveMethod(bool)` overload"]
114    fn get_remove_method(self, non_public: impl ::core::convert::Into<bool>) -> crate::system::reflection::methodinfo::MethodInfo {
115        unsafe {
116            let __receiver = <MonoEvent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
117            {
118                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
119                let __vi = *__vt.get(21usize).unwrap_or_else(|| {
120                    panic!(
121                        "unity: virtual slot {}
122 out of range (vtable len {}
123) on the runtime class behind {}
124 (method `{}
125`)",
126                        21usize,
127                        __vt.len(),
128                        <MonoEvent as ::unity::ClassIdentity>::NAME,
129                        "GetRemoveMethod",
130                    )
131                });
132                let __inner: extern "C" fn(MonoEvent, bool, ::unity::OptionalMethod) -> crate::system::reflection::methodinfo::MethodInfo =
133                    ::core::mem::transmute(__vi.method_ptr);
134                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
135                __inner(__receiver, ::core::convert::Into::into(non_public), __mi)
136            }
137        }
138    }
139    #[doc = "`get_DeclaringType()` overload"]
140    fn get_declaring_type(self) -> ::unity::SystemType {
141        unsafe {
142            let __receiver = <MonoEvent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143            {
144                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
145                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
146                    panic!(
147                        "unity: virtual slot {}
148 out of range (vtable len {}
149) on the runtime class behind {}
150 (method `{}
151`)",
152                        8usize,
153                        __vt.len(),
154                        <MonoEvent as ::unity::ClassIdentity>::NAME,
155                        "get_DeclaringType",
156                    )
157                });
158                let __inner: extern "C" fn(MonoEvent, ::unity::OptionalMethod) -> ::unity::SystemType = ::core::mem::transmute(__vi.method_ptr);
159                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
160                __inner(__receiver, __mi)
161            }
162        }
163    }
164    #[doc = "`get_ReflectedType()` overload"]
165    fn get_reflected_type(self) -> ::unity::SystemType {
166        unsafe {
167            let __receiver = <MonoEvent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
168            {
169                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
170                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
171                    panic!(
172                        "unity: virtual slot {}
173 out of range (vtable len {}
174) on the runtime class behind {}
175 (method `{}
176`)",
177                        9usize,
178                        __vt.len(),
179                        <MonoEvent as ::unity::ClassIdentity>::NAME,
180                        "get_ReflectedType",
181                    )
182                });
183                let __inner: extern "C" fn(MonoEvent, ::unity::OptionalMethod) -> ::unity::SystemType = ::core::mem::transmute(__vi.method_ptr);
184                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
185                __inner(__receiver, __mi)
186            }
187        }
188    }
189    #[doc = "`get_Name()` overload"]
190    fn get_name(self) -> ::unity::Il2CppString {
191        unsafe {
192            let __receiver = <MonoEvent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
193            {
194                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
195                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
196                    panic!(
197                        "unity: virtual slot {}
198 out of range (vtable len {}
199) on the runtime class behind {}
200 (method `{}
201`)",
202                        7usize,
203                        __vt.len(),
204                        <MonoEvent as ::unity::ClassIdentity>::NAME,
205                        "get_Name",
206                    )
207                });
208                let __inner: extern "C" fn(MonoEvent, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
209                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
210                __inner(__receiver, __mi)
211            }
212        }
213    }
214    #[doc = "`ToString()` overload"]
215    fn to_string(self) -> ::unity::Il2CppString {
216        unsafe {
217            let __receiver = <MonoEvent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
218            {
219                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
220                let __vi = *__vt.get(3usize).unwrap_or_else(|| {
221                    panic!(
222                        "unity: virtual slot {}
223 out of range (vtable len {}
224) on the runtime class behind {}
225 (method `{}
226`)",
227                        3usize,
228                        __vt.len(),
229                        <MonoEvent as ::unity::ClassIdentity>::NAME,
230                        "ToString",
231                    )
232                });
233                let __inner: extern "C" fn(MonoEvent, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
234                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
235                __inner(__receiver, __mi)
236            }
237        }
238    }
239    #[doc = "`IsDefined(::unity::SystemType, bool)` overload"]
240    fn is_defined(self, attribute_type: impl ::core::convert::Into<::unity::SystemType>, inherit: impl ::core::convert::Into<bool>) -> bool {
241        unsafe {
242            let __receiver = <MonoEvent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
243            {
244                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
245                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
246                    panic!(
247                        "unity: virtual slot {}
248 out of range (vtable len {}
249) on the runtime class behind {}
250 (method `{}
251`)",
252                        12usize,
253                        __vt.len(),
254                        <MonoEvent as ::unity::ClassIdentity>::NAME,
255                        "IsDefined",
256                    )
257                });
258                let __inner: extern "C" fn(MonoEvent, ::unity::SystemType, bool, ::unity::OptionalMethod) -> bool =
259                    ::core::mem::transmute(__vi.method_ptr);
260                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
261                __inner(
262                    __receiver,
263                    ::core::convert::Into::into(attribute_type),
264                    ::core::convert::Into::into(inherit),
265                    __mi,
266                )
267            }
268        }
269    }
270    #[doc = "`GetCustomAttributes(bool)` overload"]
271    fn get_custom_attributes(self, inherit: impl ::core::convert::Into<bool>) -> ::unity::Array<crate::system::object::Object> {
272        unsafe {
273            let __receiver = <MonoEvent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
274            {
275                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
276                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
277                    panic!(
278                        "unity: virtual slot {}
279 out of range (vtable len {}
280) on the runtime class behind {}
281 (method `{}
282`)",
283                        10usize,
284                        __vt.len(),
285                        <MonoEvent as ::unity::ClassIdentity>::NAME,
286                        "GetCustomAttributes",
287                    )
288                });
289                let __inner: extern "C" fn(MonoEvent, bool, ::unity::OptionalMethod) -> ::unity::Array<crate::system::object::Object> =
290                    ::core::mem::transmute(__vi.method_ptr);
291                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
292                __inner(__receiver, ::core::convert::Into::into(inherit), __mi)
293            }
294        }
295    }
296    #[doc = "`GetCustomAttributes(::unity::SystemType, bool)` overload"]
297    fn get_custom_attributes_2(
298        self,
299        attribute_type: impl ::core::convert::Into<::unity::SystemType>,
300        inherit: impl ::core::convert::Into<bool>,
301    ) -> ::unity::Array<crate::system::object::Object> {
302        unsafe {
303            let __receiver = <MonoEvent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
304            {
305                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
306                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
307                    panic!(
308                        "unity: virtual slot {}
309 out of range (vtable len {}
310) on the runtime class behind {}
311 (method `{}
312`)",
313                        11usize,
314                        __vt.len(),
315                        <MonoEvent as ::unity::ClassIdentity>::NAME,
316                        "GetCustomAttributes",
317                    )
318                });
319                let __inner: extern "C" fn(
320                    MonoEvent,
321                    ::unity::SystemType,
322                    bool,
323                    ::unity::OptionalMethod,
324                ) -> ::unity::Array<crate::system::object::Object> = ::core::mem::transmute(__vi.method_ptr);
325                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
326                __inner(
327                    __receiver,
328                    ::core::convert::Into::into(attribute_type),
329                    ::core::convert::Into::into(inherit),
330                    __mi,
331                )
332            }
333        }
334    }
335    #[doc = "`GetCustomAttributesData()` overload"]
336    fn get_custom_attributes_data(
337        self,
338    ) -> crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::system::reflection::customattributedata::CustomAttributeData>
339    {
340        unsafe {
341            let __receiver = <MonoEvent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
342            {
343                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
344                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
345                    panic!(
346                        "unity: virtual slot {}
347 out of range (vtable len {}
348) on the runtime class behind {}
349 (method `{}
350`)",
351                        13usize,
352                        __vt.len(),
353                        <MonoEvent as ::unity::ClassIdentity>::NAME,
354                        "GetCustomAttributesData",
355                    )
356                });
357                let __inner: extern "C" fn(
358                    MonoEvent,
359                    ::unity::OptionalMethod,
360                ) -> crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
361                    crate::system::reflection::customattributedata::CustomAttributeData,
362                > = ::core::mem::transmute(__vi.method_ptr);
363                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
364                __inner(__receiver, __mi)
365            }
366        }
367    }
368    #[doc = "`.ctor()` overload"]
369    fn ctor(self) -> () {
370        unsafe {
371            let __receiver = <MonoEvent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
372            ::unity::il2cpp_call!((::unity::module_base()+0x337f130usize)as*mut u8,();
373(MonoEvent)__receiver)
374        }
375    }
376}
377
378#[cfg(feature = "system-reflection-monoevent")]
379impl<__T: IMonoEvent> IMonoEventMethods for __T {}
380
381#[cfg(feature = "system-reflection-monoevent")]
382impl MonoEvent {
383    pub fn get_attributes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
384        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
385    }
386
387    pub fn get_add_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
388        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
389    }
390
391    pub fn get_raise_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
392        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
393    }
394
395    pub fn get_remove_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
396        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
397    }
398
399    pub fn get_declaring_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
400        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
401    }
402
403    pub fn get_reflected_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
404        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
405    }
406
407    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
408        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
409    }
410
411    pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
412        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
413    }
414
415    pub fn is_defined_method_info() -> &'static ::unity::il2cpp::MethodInfo {
416        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
417    }
418
419    pub fn get_custom_attributes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
420        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
421    }
422
423    pub fn get_custom_attributes_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
424        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
425    }
426
427    pub fn get_custom_attributes_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
428        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
429    }
430
431    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
432        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
433    }
434}
435
436#[cfg(feature = "system-reflection-monoevent")]
437impl MonoEvent {
438    #[doc = "Direct (non-virtual) call to `MonoEvent`'s own `get_Attributes`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
439    pub unsafe fn get_attributes(
440        this: impl ::core::convert::Into<::unity::IlInstance>,
441    ) -> crate::system::reflection::eventattributes::EventAttributes {
442        let __mi = Self::get_attributes_method_info();
443        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::reflection::eventattributes::EventAttributes =
444            ::core::mem::transmute(__mi.method_ptr);
445        __inner(this.into(), ::core::option::Option::None)
446    }
447
448    #[doc = "Direct (non-virtual) call to `MonoEvent`'s own `GetAddMethod`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
449    pub unsafe fn get_add_method(
450        this: impl ::core::convert::Into<::unity::IlInstance>,
451        non_public: bool,
452    ) -> crate::system::reflection::methodinfo::MethodInfo {
453        let __mi = Self::get_add_method_method_info();
454        let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> crate::system::reflection::methodinfo::MethodInfo =
455            ::core::mem::transmute(__mi.method_ptr);
456        __inner(this.into(), non_public, ::core::option::Option::None)
457    }
458
459    #[doc = "Direct (non-virtual) call to `MonoEvent`'s own `GetRaiseMethod`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
460    pub unsafe fn get_raise_method(
461        this: impl ::core::convert::Into<::unity::IlInstance>,
462        non_public: bool,
463    ) -> crate::system::reflection::methodinfo::MethodInfo {
464        let __mi = Self::get_raise_method_method_info();
465        let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> crate::system::reflection::methodinfo::MethodInfo =
466            ::core::mem::transmute(__mi.method_ptr);
467        __inner(this.into(), non_public, ::core::option::Option::None)
468    }
469
470    #[doc = "Direct (non-virtual) call to `MonoEvent`'s own `GetRemoveMethod`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
471    pub unsafe fn get_remove_method(
472        this: impl ::core::convert::Into<::unity::IlInstance>,
473        non_public: bool,
474    ) -> crate::system::reflection::methodinfo::MethodInfo {
475        let __mi = Self::get_remove_method_method_info();
476        let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> crate::system::reflection::methodinfo::MethodInfo =
477            ::core::mem::transmute(__mi.method_ptr);
478        __inner(this.into(), non_public, ::core::option::Option::None)
479    }
480
481    #[doc = "Direct (non-virtual) call to `MonoEvent`'s own `get_DeclaringType`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
482    pub unsafe fn get_declaring_type(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::SystemType {
483        let __mi = Self::get_declaring_type_method_info();
484        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::SystemType = ::core::mem::transmute(__mi.method_ptr);
485        __inner(this.into(), ::core::option::Option::None)
486    }
487
488    #[doc = "Direct (non-virtual) call to `MonoEvent`'s own `get_ReflectedType`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
489    pub unsafe fn get_reflected_type(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::SystemType {
490        let __mi = Self::get_reflected_type_method_info();
491        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::SystemType = ::core::mem::transmute(__mi.method_ptr);
492        __inner(this.into(), ::core::option::Option::None)
493    }
494
495    #[doc = "Direct (non-virtual) call to `MonoEvent`'s own `get_Name`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
496    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
497        let __mi = Self::get_name_method_info();
498        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
499        __inner(this.into(), ::core::option::Option::None)
500    }
501
502    #[doc = "Direct (non-virtual) call to `MonoEvent`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
503    pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
504        let __mi = Self::to_string_method_info();
505        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
506        __inner(this.into(), ::core::option::Option::None)
507    }
508
509    #[doc = "Direct (non-virtual) call to `MonoEvent`'s own `IsDefined`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
510    pub unsafe fn is_defined(this: impl ::core::convert::Into<::unity::IlInstance>, attribute_type: ::unity::SystemType, inherit: bool) -> bool {
511        let __mi = Self::is_defined_method_info();
512        let __inner: extern "C" fn(::unity::IlInstance, ::unity::SystemType, bool, ::unity::OptionalMethod) -> bool =
513            ::core::mem::transmute(__mi.method_ptr);
514        __inner(this.into(), attribute_type, inherit, ::core::option::Option::None)
515    }
516
517    #[doc = "Direct (non-virtual) call to `MonoEvent`'s own `GetCustomAttributes`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
518    pub unsafe fn get_custom_attributes(
519        this: impl ::core::convert::Into<::unity::IlInstance>,
520        inherit: bool,
521    ) -> ::unity::Array<crate::system::object::Object> {
522        let __mi = Self::get_custom_attributes_method_info();
523        let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> ::unity::Array<crate::system::object::Object> =
524            ::core::mem::transmute(__mi.method_ptr);
525        __inner(this.into(), inherit, ::core::option::Option::None)
526    }
527
528    #[doc = "Direct (non-virtual) call to `MonoEvent`'s own `GetCustomAttributes`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
529    pub unsafe fn get_custom_attributes_2(
530        this: impl ::core::convert::Into<::unity::IlInstance>,
531        attribute_type: ::unity::SystemType,
532        inherit: bool,
533    ) -> ::unity::Array<crate::system::object::Object> {
534        let __mi = Self::get_custom_attributes_2_method_info();
535        let __inner: extern "C" fn(
536            ::unity::IlInstance,
537            ::unity::SystemType,
538            bool,
539            ::unity::OptionalMethod,
540        ) -> ::unity::Array<crate::system::object::Object> = ::core::mem::transmute(__mi.method_ptr);
541        __inner(this.into(), attribute_type, inherit, ::core::option::Option::None)
542    }
543
544    #[doc = "Direct (non-virtual) call to `MonoEvent`'s own `GetCustomAttributesData`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
545    pub unsafe fn get_custom_attributes_data(
546        this: impl ::core::convert::Into<::unity::IlInstance>,
547    ) -> crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::system::reflection::customattributedata::CustomAttributeData>
548    {
549        let __mi = Self::get_custom_attributes_data_method_info();
550        let __inner: extern "C" fn(
551            ::unity::IlInstance,
552            ::unity::OptionalMethod,
553        ) -> crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
554            crate::system::reflection::customattributedata::CustomAttributeData,
555        > = ::core::mem::transmute(__mi.method_ptr);
556        __inner(this.into(), ::core::option::Option::None)
557    }
558}
559
560#[cfg(feature = "system-reflection-monoevent")]
561impl MonoEvent {
562    #[doc = "`.ctor()` — no args"]
563    pub fn new() -> Self {
564        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
565            panic!(
566                "{}
567::{}
568 failed to instantiate",
569                ::core::stringify!(MonoEvent),
570                ::core::stringify!(new),
571            )
572        });
573        <Self as IMonoEventMethods>::ctor(this);
574        this
575    }
576}
577
578#[cfg(feature = "system-reflection-monoevent")]
579#[doc(hidden)]
580pub mod prelude {
581    pub use super::{IMonoEvent, IMonoEventMethods, MonoEvent};
582    #[cfg(feature = "system-object")]
583    pub use crate::system::object::IObjectMethods;
584    #[cfg(feature = "system-reflection-eventinfo")]
585    pub use crate::system::reflection::eventinfo::IEventInfoMethods;
586    #[cfg(feature = "system-reflection-memberinfo")]
587    pub use crate::system::reflection::memberinfo::IMemberInfoMethods;
588    #[cfg(feature = "system-reflection-runtimeeventinfo")]
589    pub use crate::system::reflection::runtimeeventinfo::IRuntimeEventInfoMethods;
590    pub use crate::system::{
591        object::IObject,
592        reflection::{eventinfo::IEventInfo, memberinfo::IMemberInfo, runtimeeventinfo::IRuntimeEventInfo},
593    };
594}