Skip to main content

engage/generated/root/
akplaylist.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-akplaylist-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        root::akplaylistarray::{AkPlaylistArray, IAkPlaylistArray},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/akplaylist/AkPlaylist.md"))]
14    #[::unity::class(namespace = "", name = "AkPlaylist")]
15    #[parent(crate::root::akplaylistarray::AkPlaylistArray)]
16    pub struct AkPlaylist {
17        #[offset(32)]
18        #[rename(name = "swigCPtr")]
19        pub swig_c_ptr: ::unity::IntPtr,
20    }
21}
22
23#[cfg(feature = "root-akplaylist-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-akplaylist")]
27impl AkPlaylist {
28    #[doc = "`getCPtr(crate::root::akplaylist::AkPlaylist)` overload"]
29    pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::akplaylist::AkPlaylist>) -> ::unity::IntPtr {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x2f2b760usize)as*mut u8, ::unity::IntPtr;
32(crate::root::akplaylist::AkPlaylist)::core::convert::Into::into(obj))
33        }
34    }
35}
36
37#[cfg(feature = "root-akplaylist")]
38pub trait IAkPlaylistMethods: IAkPlaylist {
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 = <AkPlaylist as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            ::unity::il2cpp_call!((::unity::module_base()+0x2f2b680usize)as*mut u8,();
44(AkPlaylist)__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 = <AkPlaylist 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                        <AkPlaylist as ::unity::ClassIdentity>::NAME,
63                        "setCPtr",
64                    )
65                });
66                let __inner: extern "C" fn(AkPlaylist, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
67                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
68                __inner(__receiver, ::core::convert::Into::into(c_ptr), __mi)
69            }
70        }
71    }
72    #[doc = "`Finalize()` overload"]
73    fn finalize(self) -> () {
74        unsafe {
75            let __receiver = <AkPlaylist as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76            {
77                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
78                let __vi = *__vt.get(1usize).unwrap_or_else(|| {
79                    panic!(
80                        "unity: virtual slot {}
81 out of range (vtable len {}
82) on the runtime class behind {}
83 (method `{}
84`)",
85                        1usize,
86                        __vt.len(),
87                        <AkPlaylist as ::unity::ClassIdentity>::NAME,
88                        "Finalize",
89                    )
90                });
91                let __inner: extern "C" fn(AkPlaylist, ::unity::OptionalMethod) -> () = ::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 = "`Dispose()` overload"]
98    fn dispose(self) -> () {
99        unsafe {
100            let __receiver = <AkPlaylist 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(6usize).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                        6usize,
111                        __vt.len(),
112                        <AkPlaylist as ::unity::ClassIdentity>::NAME,
113                        "Dispose",
114                    )
115                });
116                let __inner: extern "C" fn(AkPlaylist, ::unity::OptionalMethod) -> () = ::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 = "`Enqueue(u32, i32, ::unity::IntPtr, u32, crate::root::akexternalsourceinfoarray::AkExternalSourceInfoArray)` overload"]
123    fn enqueue(
124        self,
125        in_audio_node_id: impl ::core::convert::Into<u32>,
126        in_ms_delay: impl ::core::convert::Into<i32>,
127        in_p_custom_info: impl ::core::convert::Into<::unity::IntPtr>,
128        in_c_externals: impl ::core::convert::Into<u32>,
129        in_p_external_sources: impl ::core::convert::Into<crate::root::akexternalsourceinfoarray::AkExternalSourceInfoArray>,
130    ) -> crate::root::akresult::AKRESULT {
131        unsafe {
132            let __receiver = <AkPlaylist as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133            ::unity::il2cpp_call!((::unity::module_base()+0x2f2bd00usize)as*mut u8,crate::root::akresult::AKRESULT;
134(AkPlaylist)__receiver,(u32)::core::convert::Into::into(in_audio_node_id),(i32)::core::convert::Into::into(in_ms_delay),(::unity::IntPtr)::core::convert::Into::into(in_p_custom_info),(u32)::core::convert::Into::into(in_c_externals),(crate::root::akexternalsourceinfoarray::AkExternalSourceInfoArray)::core::convert::Into::into(in_p_external_sources))
135        }
136    }
137    #[doc = "`Enqueue(u32, i32, ::unity::IntPtr, u32)` overload"]
138    fn enqueue_2(
139        self,
140        in_audio_node_id: impl ::core::convert::Into<u32>,
141        in_ms_delay: impl ::core::convert::Into<i32>,
142        in_p_custom_info: impl ::core::convert::Into<::unity::IntPtr>,
143        in_c_externals: impl ::core::convert::Into<u32>,
144    ) -> crate::root::akresult::AKRESULT {
145        unsafe {
146            let __receiver = <AkPlaylist as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147            ::unity::il2cpp_call!((::unity::module_base()+0x2f2bdc0usize)as*mut u8,crate::root::akresult::AKRESULT;
148(AkPlaylist)__receiver,(u32)::core::convert::Into::into(in_audio_node_id),(i32)::core::convert::Into::into(in_ms_delay),(::unity::IntPtr)::core::convert::Into::into(in_p_custom_info),(u32)::core::convert::Into::into(in_c_externals))
149        }
150    }
151    #[doc = "`Enqueue(u32, i32, ::unity::IntPtr)` overload"]
152    fn enqueue_3(
153        self,
154        in_audio_node_id: impl ::core::convert::Into<u32>,
155        in_ms_delay: impl ::core::convert::Into<i32>,
156        in_p_custom_info: impl ::core::convert::Into<::unity::IntPtr>,
157    ) -> crate::root::akresult::AKRESULT {
158        unsafe {
159            let __receiver = <AkPlaylist as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
160            ::unity::il2cpp_call!((::unity::module_base()+0x2f2be60usize)as*mut u8,crate::root::akresult::AKRESULT;
161(AkPlaylist)__receiver,(u32)::core::convert::Into::into(in_audio_node_id),(i32)::core::convert::Into::into(in_ms_delay),(::unity::IntPtr)::core::convert::Into::into(in_p_custom_info))
162        }
163    }
164    #[doc = "`Enqueue(u32, i32)` overload"]
165    fn enqueue_4(
166        self,
167        in_audio_node_id: impl ::core::convert::Into<u32>,
168        in_ms_delay: impl ::core::convert::Into<i32>,
169    ) -> crate::root::akresult::AKRESULT {
170        unsafe {
171            let __receiver = <AkPlaylist as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
172            ::unity::il2cpp_call!((::unity::module_base()+0x2f2bef0usize)as*mut u8,crate::root::akresult::AKRESULT;
173(AkPlaylist)__receiver,(u32)::core::convert::Into::into(in_audio_node_id),(i32)::core::convert::Into::into(in_ms_delay))
174        }
175    }
176    #[doc = "`Enqueue(u32)` overload"]
177    fn enqueue_5(self, in_audio_node_id: impl ::core::convert::Into<u32>) -> crate::root::akresult::AKRESULT {
178        unsafe {
179            let __receiver = <AkPlaylist as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
180            ::unity::il2cpp_call!((::unity::module_base()+0x2f2bf80usize)as*mut u8,crate::root::akresult::AKRESULT;
181(AkPlaylist)__receiver,(u32)::core::convert::Into::into(in_audio_node_id))
182        }
183    }
184    #[doc = "`.ctor()` overload"]
185    fn ctor_2(self) -> () {
186        unsafe {
187            let __receiver = <AkPlaylist as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
188            ::unity::il2cpp_call!((::unity::module_base()+0x2f2c000usize)as*mut u8,();
189(AkPlaylist)__receiver)
190        }
191    }
192}
193
194#[cfg(feature = "root-akplaylist")]
195impl<__T: IAkPlaylist> IAkPlaylistMethods for __T {}
196
197#[cfg(feature = "root-akplaylist")]
198impl AkPlaylist {
199    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
201    }
202
203    pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
205    }
206
207    pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
209    }
210
211    pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
212        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
213    }
214
215    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
217    }
218
219    pub fn enqueue_method_info() -> &'static ::unity::il2cpp::MethodInfo {
220        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
221    }
222
223    pub fn enqueue_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
224        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
225    }
226
227    pub fn enqueue_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
228        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
229    }
230
231    pub fn enqueue_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
232        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
233    }
234
235    pub fn enqueue_5_method_info() -> &'static ::unity::il2cpp::MethodInfo {
236        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
237    }
238
239    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
241    }
242}
243
244#[cfg(feature = "root-akplaylist")]
245impl AkPlaylist {
246    #[doc = "Direct (non-virtual) call to `AkPlaylist`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
247    pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
248        let __mi = Self::set_c_ptr_method_info();
249        let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
250        __inner(this.into(), c_ptr, ::core::option::Option::None)
251    }
252
253    #[doc = "Direct (non-virtual) call to `AkPlaylist`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
254    pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
255        let __mi = Self::finalize_method_info();
256        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
257        __inner(this.into(), ::core::option::Option::None)
258    }
259
260    #[doc = "Direct (non-virtual) call to `AkPlaylist`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
261    pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
262        let __mi = Self::dispose_method_info();
263        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
264        __inner(this.into(), ::core::option::Option::None)
265    }
266}
267
268#[cfg(feature = "root-akplaylist")]
269impl AkPlaylist {
270    #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
271    pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
272        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
273            panic!(
274                "{}
275::{}
276 failed to instantiate",
277                ::core::stringify!(AkPlaylist),
278                ::core::stringify!(new),
279            )
280        });
281        <Self as IAkPlaylistMethods>::ctor(this, c_ptr, c_memory_own);
282        this
283    }
284
285    #[doc = "`.ctor()` — no args"]
286    pub fn new_2() -> Self {
287        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
288            panic!(
289                "{}
290::{}
291 failed to instantiate",
292                ::core::stringify!(AkPlaylist),
293                ::core::stringify!(new_2),
294            )
295        });
296        <Self as IAkPlaylistMethods>::ctor_2(this);
297        this
298    }
299}
300
301#[cfg(feature = "root-akplaylist")]
302#[doc(hidden)]
303pub mod prelude {
304    pub use super::{AkPlaylist, IAkPlaylist, IAkPlaylistMethods};
305    #[cfg(feature = "root-akplaylistarray")]
306    pub use crate::root::akplaylistarray::IAkPlaylistArrayMethods;
307    #[cfg(feature = "system-object")]
308    pub use crate::system::object::IObjectMethods;
309    pub use crate::{root::akplaylistarray::IAkPlaylistArray, system::object::IObject};
310}