engage/generated/root/
akeventcallbackinfo.rs1#[cfg(feature = "root-akeventcallbackinfo-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 root::akcallbackinfo::{AkCallbackInfo, IAkCallbackInfo},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/akeventcallbackinfo/AkEventCallbackInfo.md"))]
14 #[::unity::class(namespace = "", name = "AkEventCallbackInfo")]
15 #[parent(crate::root::akcallbackinfo::AkCallbackInfo)]
16 pub struct AkEventCallbackInfo {
17 #[offset(32)]
18 #[rename(name = "swigCPtr")]
19 pub swig_c_ptr: ::unity::IntPtr,
20 }
21}
22
23#[cfg(feature = "root-akeventcallbackinfo-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-akeventcallbackinfo")]
27impl AkEventCallbackInfo {
28 #[doc = "`getCPtr(crate::root::akeventcallbackinfo::AkEventCallbackInfo)` overload"]
29 pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::akeventcallbackinfo::AkEventCallbackInfo>) -> ::unity::IntPtr {
30 unsafe {
31 ::unity::il2cpp_call!((::unity::module_base()+0x2f1ae20usize)as*mut u8, ::unity::IntPtr;
32(crate::root::akeventcallbackinfo::AkEventCallbackInfo)::core::convert::Into::into(obj))
33 }
34 }
35}
36
37#[cfg(feature = "root-akeventcallbackinfo")]
38pub trait IAkEventCallbackInfoMethods: IAkEventCallbackInfo {
39 #[doc = "`.ctor(::unity::IntPtr, bool)` overload"]
40 fn ctor(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>, c_memory_own: impl ::core::convert::Into<bool>) -> () {
41 unsafe {
42 let __receiver = <AkEventCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43 ::unity::il2cpp_call!((::unity::module_base()+0x2f186b0usize)as*mut u8,();
44(AkEventCallbackInfo)__receiver,(::unity::IntPtr)::core::convert::Into::into(c_ptr),(bool)::core::convert::Into::into(c_memory_own))
45 }
46 }
47 #[doc = "`setCPtr(::unity::IntPtr)` overload"]
48 fn set_c_ptr(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
49 unsafe {
50 let __receiver = <AkEventCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 {
52 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
53 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
54 panic!(
55 "unity: virtual slot {}
56 out of range (vtable len {}
57) on the runtime class behind {}
58 (method `{}
59`)",
60 5usize,
61 __vt.len(),
62 <AkEventCallbackInfo as ::unity::ClassIdentity>::NAME,
63 "setCPtr",
64 )
65 });
66 let __inner: extern "C" fn(AkEventCallbackInfo, ::unity::IntPtr, ::unity::OptionalMethod) -> () =
67 ::core::mem::transmute(__vi.method_ptr);
68 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
69 __inner(__receiver, ::core::convert::Into::into(c_ptr), __mi)
70 }
71 }
72 }
73 #[doc = "`Finalize()` overload"]
74 fn finalize(self) -> () {
75 unsafe {
76 let __receiver = <AkEventCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
77 {
78 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
79 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
80 panic!(
81 "unity: virtual slot {}
82 out of range (vtable len {}
83) on the runtime class behind {}
84 (method `{}
85`)",
86 1usize,
87 __vt.len(),
88 <AkEventCallbackInfo as ::unity::ClassIdentity>::NAME,
89 "Finalize",
90 )
91 });
92 let __inner: extern "C" fn(AkEventCallbackInfo, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
93 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
94 __inner(__receiver, __mi)
95 }
96 }
97 }
98 #[doc = "`Dispose()` overload"]
99 fn dispose(self) -> () {
100 unsafe {
101 let __receiver = <AkEventCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102 {
103 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
104 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
105 panic!(
106 "unity: virtual slot {}
107 out of range (vtable len {}
108) on the runtime class behind {}
109 (method `{}
110`)",
111 6usize,
112 __vt.len(),
113 <AkEventCallbackInfo as ::unity::ClassIdentity>::NAME,
114 "Dispose",
115 )
116 });
117 let __inner: extern "C" fn(AkEventCallbackInfo, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
118 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
119 __inner(__receiver, __mi)
120 }
121 }
122 }
123 #[doc = "`get_playingID()` overload"]
124 fn get_playing_id(self) -> u32 {
125 unsafe {
126 let __receiver = <AkEventCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127 ::unity::il2cpp_call!((::unity::module_base()+0x2f1ae80usize)as*mut u8,u32;
128(AkEventCallbackInfo)__receiver)
129 }
130 }
131 #[doc = "`get_eventID()` overload"]
132 fn get_event_id(self) -> u32 {
133 unsafe {
134 let __receiver = <AkEventCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135 ::unity::il2cpp_call!((::unity::module_base()+0x2f1aef0usize)as*mut u8,u32;
136(AkEventCallbackInfo)__receiver)
137 }
138 }
139 #[doc = "`.ctor()` overload"]
140 fn ctor_2(self) -> () {
141 unsafe {
142 let __receiver = <AkEventCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143 ::unity::il2cpp_call!((::unity::module_base()+0x2f1af60usize)as*mut u8,();
144(AkEventCallbackInfo)__receiver)
145 }
146 }
147}
148
149#[cfg(feature = "root-akeventcallbackinfo")]
150impl<__T: IAkEventCallbackInfo> IAkEventCallbackInfoMethods for __T {}
151
152#[cfg(feature = "root-akeventcallbackinfo")]
153impl AkEventCallbackInfo {
154 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
156 }
157
158 pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
160 }
161
162 pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
164 }
165
166 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
168 }
169
170 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
171 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
172 }
173
174 pub fn get_playing_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
175 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
176 }
177
178 pub fn get_event_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
179 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
180 }
181
182 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
183 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
184 }
185}
186
187#[cfg(feature = "root-akeventcallbackinfo")]
188impl AkEventCallbackInfo {
189 #[doc = "Direct (non-virtual) call to `AkEventCallbackInfo`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
190 pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
191 let __mi = Self::set_c_ptr_method_info();
192 let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
193 __inner(this.into(), c_ptr, ::core::option::Option::None)
194 }
195
196 #[doc = "Direct (non-virtual) call to `AkEventCallbackInfo`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
197 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
198 let __mi = Self::finalize_method_info();
199 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
200 __inner(this.into(), ::core::option::Option::None)
201 }
202
203 #[doc = "Direct (non-virtual) call to `AkEventCallbackInfo`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
204 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
205 let __mi = Self::dispose_method_info();
206 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
207 __inner(this.into(), ::core::option::Option::None)
208 }
209}
210
211#[cfg(feature = "root-akeventcallbackinfo")]
212impl AkEventCallbackInfo {
213 #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
214 pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
215 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
216 panic!(
217 "{}
218::{}
219 failed to instantiate",
220 ::core::stringify!(AkEventCallbackInfo),
221 ::core::stringify!(new),
222 )
223 });
224 <Self as IAkEventCallbackInfoMethods>::ctor(this, c_ptr, c_memory_own);
225 this
226 }
227
228 #[doc = "`.ctor()` — no args"]
229 pub fn new_2() -> Self {
230 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
231 panic!(
232 "{}
233::{}
234 failed to instantiate",
235 ::core::stringify!(AkEventCallbackInfo),
236 ::core::stringify!(new_2),
237 )
238 });
239 <Self as IAkEventCallbackInfoMethods>::ctor_2(this);
240 this
241 }
242}
243
244#[cfg(feature = "root-akeventcallbackinfo")]
245#[doc(hidden)]
246pub mod prelude {
247 pub use super::{AkEventCallbackInfo, IAkEventCallbackInfo, IAkEventCallbackInfoMethods};
248 #[cfg(feature = "root-akcallbackinfo")]
249 pub use crate::root::akcallbackinfo::IAkCallbackInfoMethods;
250 #[cfg(feature = "system-object")]
251 pub use crate::system::object::IObjectMethods;
252 pub use crate::{root::akcallbackinfo::IAkCallbackInfo, system::object::IObject};
253}