Skip to main content

engage/generated/system/reflection/
eventinfo.rs

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