Skip to main content

engage/generated/unity_engine/event_systems/
abstracteventdata.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-event_systems-abstracteventdata-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/unity_engine/event_systems/abstracteventdata/AbstractEventData.md"))]
11    #[::unity::class(namespace = "UnityEngine.EventSystems", name = "AbstractEventData")]
12    #[parent(crate::system::object::Object)]
13    pub struct AbstractEventData {
14        #[offset(16)]
15        #[rename(name = "m_Used")]
16        pub m_used: bool,
17    }
18}
19
20#[cfg(feature = "unity_engine-event_systems-abstracteventdata-types")]
21pub use __types::*;
22
23#[cfg(feature = "unity_engine-event_systems-abstracteventdata")]
24pub trait IAbstractEventDataMethods: IAbstractEventData {
25    #[doc = "`Reset()` overload"]
26    fn reset(self) -> () {
27        unsafe {
28            let __receiver = <AbstractEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
29            {
30                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
31                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
32                    panic!(
33                        "unity: virtual slot {}
34 out of range (vtable len {}
35) on the runtime class behind {}
36 (method `{}
37`)",
38                        4usize,
39                        __vt.len(),
40                        <AbstractEventData as ::unity::ClassIdentity>::NAME,
41                        "Reset",
42                    )
43                });
44                let __inner: extern "C" fn(AbstractEventData, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
45                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
46                __inner(__receiver, __mi)
47            }
48        }
49    }
50    #[doc = "`Use()` overload"]
51    fn r#use(self) -> () {
52        unsafe {
53            let __receiver = <AbstractEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54            {
55                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
56                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
57                    panic!(
58                        "unity: virtual slot {}
59 out of range (vtable len {}
60) on the runtime class behind {}
61 (method `{}
62`)",
63                        5usize,
64                        __vt.len(),
65                        <AbstractEventData as ::unity::ClassIdentity>::NAME,
66                        "Use",
67                    )
68                });
69                let __inner: extern "C" fn(AbstractEventData, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
70                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
71                __inner(__receiver, __mi)
72            }
73        }
74    }
75    #[doc = "`get_used()` overload"]
76    fn get_used(self) -> bool {
77        unsafe {
78            let __receiver = <AbstractEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79            {
80                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
81                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
82                    panic!(
83                        "unity: virtual slot {}
84 out of range (vtable len {}
85) on the runtime class behind {}
86 (method `{}
87`)",
88                        6usize,
89                        __vt.len(),
90                        <AbstractEventData as ::unity::ClassIdentity>::NAME,
91                        "get_used",
92                    )
93                });
94                let __inner: extern "C" fn(AbstractEventData, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
95                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
96                __inner(__receiver, __mi)
97            }
98        }
99    }
100    #[doc = "`.ctor()` overload"]
101    fn ctor(self) -> () {
102        unsafe {
103            let __receiver = <AbstractEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
104            ::unity::il2cpp_call!((::unity::module_base()+0x31793f0usize)as*mut u8,();
105(AbstractEventData)__receiver)
106        }
107    }
108}
109
110#[cfg(feature = "unity_engine-event_systems-abstracteventdata")]
111impl<__T: IAbstractEventData> IAbstractEventDataMethods for __T {}
112
113#[cfg(feature = "unity_engine-event_systems-abstracteventdata")]
114impl AbstractEventData {
115    pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
116        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
117    }
118
119    pub fn use_method_info() -> &'static ::unity::il2cpp::MethodInfo {
120        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
121    }
122
123    pub fn get_used_method_info() -> &'static ::unity::il2cpp::MethodInfo {
124        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
125    }
126
127    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
129    }
130}
131
132#[cfg(feature = "unity_engine-event_systems-abstracteventdata")]
133impl AbstractEventData {
134    #[doc = "Direct (non-virtual) call to `AbstractEventData`'s own `Reset`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
135    pub unsafe fn reset(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
136        let __mi = Self::reset_method_info();
137        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
138        __inner(this.into(), ::core::option::Option::None)
139    }
140
141    #[doc = "Direct (non-virtual) call to `AbstractEventData`'s own `Use`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
142    pub unsafe fn r#use(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
143        let __mi = Self::use_method_info();
144        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
145        __inner(this.into(), ::core::option::Option::None)
146    }
147
148    #[doc = "Direct (non-virtual) call to `AbstractEventData`'s own `get_used`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
149    pub unsafe fn get_used(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
150        let __mi = Self::get_used_method_info();
151        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
152        __inner(this.into(), ::core::option::Option::None)
153    }
154}
155
156#[cfg(feature = "unity_engine-event_systems-abstracteventdata")]
157impl AbstractEventData {
158    #[doc = "`.ctor()` — no args"]
159    pub fn new() -> Self {
160        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
161            panic!(
162                "{}
163::{}
164 failed to instantiate",
165                ::core::stringify!(AbstractEventData),
166                ::core::stringify!(new),
167            )
168        });
169        <Self as IAbstractEventDataMethods>::ctor(this);
170        this
171    }
172}
173
174#[cfg(feature = "unity_engine-event_systems-abstracteventdata")]
175#[doc(hidden)]
176pub mod prelude {
177    pub use super::{AbstractEventData, IAbstractEventData, IAbstractEventDataMethods};
178    pub use crate::system::object::IObject;
179    #[cfg(feature = "system-object")]
180    pub use crate::system::object::IObjectMethods;
181}