1#[cfg(feature = "root-akplaylistitem-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/root/akplaylistitem/AkPlaylistItem.md"))]
11 #[::unity::class(namespace = "", name = "AkPlaylistItem")]
12 #[parent(crate::system::object::Object)]
13 pub struct AkPlaylistItem {
14 #[offset(16)]
15 #[rename(name = "swigCPtr")]
16 pub swig_c_ptr: ::unity::IntPtr,
17 #[offset(24)]
18 #[rename(name = "swigCMemOwn")]
19 pub swig_c_mem_own: bool,
20 }
21}
22
23#[cfg(feature = "root-akplaylistitem-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-akplaylistitem")]
27impl AkPlaylistItem {
28 #[doc = "`getCPtr(crate::root::akplaylistitem::AkPlaylistItem)` overload"]
29 pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::akplaylistitem::AkPlaylistItem>) -> ::unity::IntPtr {
30 unsafe {
31 ::unity::il2cpp_call!((::unity::module_base()+0x2f22700usize)as*mut u8, ::unity::IntPtr;
32(crate::root::akplaylistitem::AkPlaylistItem)::core::convert::Into::into(obj))
33 }
34 }
35}
36
37#[cfg(feature = "root-akplaylistitem")]
38pub trait IAkPlaylistItemMethods: IAkPlaylistItem {
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 = <AkPlaylistItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43 ::unity::il2cpp_call!((::unity::module_base()+0x2f22830usize)as*mut u8,();
44(AkPlaylistItem)__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 = <AkPlaylistItem 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 <AkPlaylistItem as ::unity::ClassIdentity>::NAME,
63 "setCPtr",
64 )
65 });
66 let __inner: extern "C" fn(AkPlaylistItem, ::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 = <AkPlaylistItem 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 <AkPlaylistItem as ::unity::ClassIdentity>::NAME,
88 "Finalize",
89 )
90 });
91 let __inner: extern "C" fn(AkPlaylistItem, ::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 = <AkPlaylistItem 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 <AkPlaylistItem as ::unity::ClassIdentity>::NAME,
113 "Dispose",
114 )
115 });
116 let __inner: extern "C" fn(AkPlaylistItem, ::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 = "`.ctor()` overload"]
123 fn ctor_2(self) -> () {
124 unsafe {
125 let __receiver = <AkPlaylistItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126 ::unity::il2cpp_call!((::unity::module_base()+0x2f2d710usize)as*mut u8,();
127(AkPlaylistItem)__receiver)
128 }
129 }
130 #[doc = "`.ctor(crate::root::akplaylistitem::AkPlaylistItem)` overload"]
131 fn ctor_3(self, in_r_copy: impl ::core::convert::Into<crate::root::akplaylistitem::AkPlaylistItem>) -> () {
132 unsafe {
133 let __receiver = <AkPlaylistItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134 ::unity::il2cpp_call!((::unity::module_base()+0x2f2d7a0usize)as*mut u8,();
135(AkPlaylistItem)__receiver,(crate::root::akplaylistitem::AkPlaylistItem)::core::convert::Into::into(in_r_copy))
136 }
137 }
138 #[doc = "`Assign(crate::root::akplaylistitem::AkPlaylistItem)` overload"]
139 fn assign(
140 self,
141 in_r_copy: impl ::core::convert::Into<crate::root::akplaylistitem::AkPlaylistItem>,
142 ) -> crate::root::akplaylistitem::AkPlaylistItem {
143 unsafe {
144 let __receiver = <AkPlaylistItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
145 ::unity::il2cpp_call!((::unity::module_base()+0x2f2d880usize)as*mut u8,crate::root::akplaylistitem::AkPlaylistItem;
146(AkPlaylistItem)__receiver,(crate::root::akplaylistitem::AkPlaylistItem)::core::convert::Into::into(in_r_copy))
147 }
148 }
149 #[doc = "`IsEqualTo(crate::root::akplaylistitem::AkPlaylistItem)` overload"]
150 fn is_equal_to(self, in_r_copy: impl ::core::convert::Into<crate::root::akplaylistitem::AkPlaylistItem>) -> bool {
151 unsafe {
152 let __receiver = <AkPlaylistItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153 ::unity::il2cpp_call!((::unity::module_base()+0x2f2d980usize)as*mut u8,bool;
154(AkPlaylistItem)__receiver,(crate::root::akplaylistitem::AkPlaylistItem)::core::convert::Into::into(in_r_copy))
155 }
156 }
157 #[doc = "`SetExternalSources(u32, crate::root::akexternalsourceinfoarray::AkExternalSourceInfoArray)` overload"]
158 fn set_external_sources(
159 self,
160 in_n_external_src: impl ::core::convert::Into<u32>,
161 in_p_external_src: impl ::core::convert::Into<crate::root::akexternalsourceinfoarray::AkExternalSourceInfoArray>,
162 ) -> crate::root::akresult::AKRESULT {
163 unsafe {
164 let __receiver = <AkPlaylistItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
165 ::unity::il2cpp_call!((::unity::module_base()+0x2f2da40usize)as*mut u8,crate::root::akresult::AKRESULT;
166(AkPlaylistItem)__receiver,(u32)::core::convert::Into::into(in_n_external_src),(crate::root::akexternalsourceinfoarray::AkExternalSourceInfoArray)::core::convert::Into::into(in_p_external_src))
167 }
168 }
169 #[doc = "`set_audioNodeID(u32)` overload"]
170 fn set_audio_node_id(self, value: impl ::core::convert::Into<u32>) -> () {
171 unsafe {
172 let __receiver = <AkPlaylistItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
173 ::unity::il2cpp_call!((::unity::module_base()+0x2f2dae0usize)as*mut u8,();
174(AkPlaylistItem)__receiver,(u32)::core::convert::Into::into(value))
175 }
176 }
177 #[doc = "`get_audioNodeID()` overload"]
178 fn get_audio_node_id(self) -> u32 {
179 unsafe {
180 let __receiver = <AkPlaylistItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
181 ::unity::il2cpp_call!((::unity::module_base()+0x2f2db60usize)as*mut u8,u32;
182(AkPlaylistItem)__receiver)
183 }
184 }
185 #[doc = "`set_msDelay(i32)` overload"]
186 fn set_ms_delay(self, value: impl ::core::convert::Into<i32>) -> () {
187 unsafe {
188 let __receiver = <AkPlaylistItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
189 ::unity::il2cpp_call!((::unity::module_base()+0x2f2dbd0usize)as*mut u8,();
190(AkPlaylistItem)__receiver,(i32)::core::convert::Into::into(value))
191 }
192 }
193 #[doc = "`get_msDelay()` overload"]
194 fn get_ms_delay(self) -> i32 {
195 unsafe {
196 let __receiver = <AkPlaylistItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
197 ::unity::il2cpp_call!((::unity::module_base()+0x2f2dc50usize)as*mut u8,i32;
198(AkPlaylistItem)__receiver)
199 }
200 }
201 #[doc = "`set_pCustomInfo(::unity::IntPtr)` overload"]
202 fn set_p_custom_info(self, value: impl ::core::convert::Into<::unity::IntPtr>) -> () {
203 unsafe {
204 let __receiver = <AkPlaylistItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
205 ::unity::il2cpp_call!((::unity::module_base()+0x2f2dcc0usize)as*mut u8,();
206(AkPlaylistItem)__receiver,(::unity::IntPtr)::core::convert::Into::into(value))
207 }
208 }
209 #[doc = "`get_pCustomInfo()` overload"]
210 fn get_p_custom_info(self) -> ::unity::IntPtr {
211 unsafe {
212 let __receiver = <AkPlaylistItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
213 ::unity::il2cpp_call!((::unity::module_base()+0x2f2dd40usize)as*mut u8, ::unity::IntPtr;
214(AkPlaylistItem)__receiver)
215 }
216 }
217}
218
219#[cfg(feature = "root-akplaylistitem")]
220impl<__T: IAkPlaylistItem> IAkPlaylistItemMethods for __T {}
221
222#[cfg(feature = "root-akplaylistitem")]
223impl AkPlaylistItem {
224 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
225 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
226 }
227
228 pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
229 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
230 }
231
232 pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
233 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
234 }
235
236 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
237 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
238 }
239
240 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
241 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
242 }
243
244 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
245 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
246 }
247
248 pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
249 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
250 }
251
252 pub fn assign_method_info() -> &'static ::unity::il2cpp::MethodInfo {
253 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
254 }
255
256 pub fn is_equal_to_method_info() -> &'static ::unity::il2cpp::MethodInfo {
257 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
258 }
259
260 pub fn set_external_sources_method_info() -> &'static ::unity::il2cpp::MethodInfo {
261 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
262 }
263
264 pub fn set_audio_node_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
265 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
266 }
267
268 pub fn get_audio_node_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
269 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
270 }
271
272 pub fn set_ms_delay_method_info() -> &'static ::unity::il2cpp::MethodInfo {
273 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
274 }
275
276 pub fn get_ms_delay_method_info() -> &'static ::unity::il2cpp::MethodInfo {
277 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
278 }
279
280 pub fn set_p_custom_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
282 }
283
284 pub fn get_p_custom_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
286 }
287}
288
289#[cfg(feature = "root-akplaylistitem")]
290impl AkPlaylistItem {
291 #[doc = "Direct (non-virtual) call to `AkPlaylistItem`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
292 pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
293 let __mi = Self::set_c_ptr_method_info();
294 let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
295 __inner(this.into(), c_ptr, ::core::option::Option::None)
296 }
297
298 #[doc = "Direct (non-virtual) call to `AkPlaylistItem`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
299 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
300 let __mi = Self::finalize_method_info();
301 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
302 __inner(this.into(), ::core::option::Option::None)
303 }
304
305 #[doc = "Direct (non-virtual) call to `AkPlaylistItem`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
306 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
307 let __mi = Self::dispose_method_info();
308 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
309 __inner(this.into(), ::core::option::Option::None)
310 }
311}
312
313#[cfg(feature = "root-akplaylistitem")]
314impl AkPlaylistItem {
315 #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
316 pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
317 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
318 panic!(
319 "{}
320::{}
321 failed to instantiate",
322 ::core::stringify!(AkPlaylistItem),
323 ::core::stringify!(new),
324 )
325 });
326 <Self as IAkPlaylistItemMethods>::ctor(this, c_ptr, c_memory_own);
327 this
328 }
329
330 #[doc = "`.ctor()` — no args"]
331 pub fn new_2() -> Self {
332 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
333 panic!(
334 "{}
335::{}
336 failed to instantiate",
337 ::core::stringify!(AkPlaylistItem),
338 ::core::stringify!(new_2),
339 )
340 });
341 <Self as IAkPlaylistItemMethods>::ctor_2(this);
342 this
343 }
344
345 #[doc = "`.ctor(crate::root::akplaylistitem::AkPlaylistItem)` — overload selector"]
346 pub fn new_3(in_r_copy: crate::root::akplaylistitem::AkPlaylistItem) -> Self {
347 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
348 panic!(
349 "{}
350::{}
351 failed to instantiate",
352 ::core::stringify!(AkPlaylistItem),
353 ::core::stringify!(new_3),
354 )
355 });
356 <Self as IAkPlaylistItemMethods>::ctor_3(this, in_r_copy);
357 this
358 }
359}
360
361#[cfg(feature = "root-akplaylistitem")]
362#[doc(hidden)]
363pub mod prelude {
364 pub use super::{AkPlaylistItem, IAkPlaylistItem, IAkPlaylistItemMethods};
365 pub use crate::system::object::IObject;
366 #[cfg(feature = "system-object")]
367 pub use crate::system::object::IObjectMethods;
368}