Skip to main content

engage/generated/root/
akmusicplaylistcallbackinfo.rs

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