1#[cfg(feature = "root-akchannelconfig-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/akchannelconfig/AkChannelConfig.md"))]
11 #[::unity::class(namespace = "", name = "AkChannelConfig")]
12 #[parent(crate::system::object::Object)]
13 pub struct AkChannelConfig {
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-akchannelconfig-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-akchannelconfig")]
27impl AkChannelConfig {
28 #[doc = "`getCPtr(crate::root::akchannelconfig::AkChannelConfig)` overload"]
29 pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::akchannelconfig::AkChannelConfig>) -> ::unity::IntPtr {
30 unsafe {
31 ::unity::il2cpp_call!((::unity::module_base()+0x2f0ffc0usize)as*mut u8, ::unity::IntPtr;
32(crate::root::akchannelconfig::AkChannelConfig)::core::convert::Into::into(obj))
33 }
34 }
35}
36
37#[cfg(feature = "root-akchannelconfig")]
38pub trait IAkChannelConfigMethods: IAkChannelConfig {
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 = <AkChannelConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43 ::unity::il2cpp_call!((::unity::module_base()+0x2f0ff80usize)as*mut u8,();
44(AkChannelConfig)__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 = <AkChannelConfig 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 <AkChannelConfig as ::unity::ClassIdentity>::NAME,
63 "setCPtr",
64 )
65 });
66 let __inner: extern "C" fn(AkChannelConfig, ::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 = <AkChannelConfig 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 <AkChannelConfig as ::unity::ClassIdentity>::NAME,
88 "Finalize",
89 )
90 });
91 let __inner: extern "C" fn(AkChannelConfig, ::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 = <AkChannelConfig 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 <AkChannelConfig as ::unity::ClassIdentity>::NAME,
113 "Dispose",
114 )
115 });
116 let __inner: extern "C" fn(AkChannelConfig, ::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 = "`set_uNumChannels(u32)` overload"]
123 fn set_u_num_channels(self, value: impl ::core::convert::Into<u32>) -> () {
124 unsafe {
125 let __receiver = <AkChannelConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126 ::unity::il2cpp_call!((::unity::module_base()+0x2f10250usize)as*mut u8,();
127(AkChannelConfig)__receiver,(u32)::core::convert::Into::into(value))
128 }
129 }
130 #[doc = "`get_uNumChannels()` overload"]
131 fn get_u_num_channels(self) -> u32 {
132 unsafe {
133 let __receiver = <AkChannelConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134 ::unity::il2cpp_call!((::unity::module_base()+0x2f102d0usize)as*mut u8,u32;
135(AkChannelConfig)__receiver)
136 }
137 }
138 #[doc = "`set_eConfigType(u32)` overload"]
139 fn set_e_config_type(self, value: impl ::core::convert::Into<u32>) -> () {
140 unsafe {
141 let __receiver = <AkChannelConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142 ::unity::il2cpp_call!((::unity::module_base()+0x2f10340usize)as*mut u8,();
143(AkChannelConfig)__receiver,(u32)::core::convert::Into::into(value))
144 }
145 }
146 #[doc = "`get_eConfigType()` overload"]
147 fn get_e_config_type(self) -> u32 {
148 unsafe {
149 let __receiver = <AkChannelConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150 ::unity::il2cpp_call!((::unity::module_base()+0x2f103c0usize)as*mut u8,u32;
151(AkChannelConfig)__receiver)
152 }
153 }
154 #[doc = "`set_uChannelMask(u32)` overload"]
155 fn set_u_channel_mask(self, value: impl ::core::convert::Into<u32>) -> () {
156 unsafe {
157 let __receiver = <AkChannelConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
158 ::unity::il2cpp_call!((::unity::module_base()+0x2f10430usize)as*mut u8,();
159(AkChannelConfig)__receiver,(u32)::core::convert::Into::into(value))
160 }
161 }
162 #[doc = "`get_uChannelMask()` overload"]
163 fn get_u_channel_mask(self) -> u32 {
164 unsafe {
165 let __receiver = <AkChannelConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
166 ::unity::il2cpp_call!((::unity::module_base()+0x2f104b0usize)as*mut u8,u32;
167(AkChannelConfig)__receiver)
168 }
169 }
170 #[doc = "`.ctor()` overload"]
171 fn ctor_2(self) -> () {
172 unsafe {
173 let __receiver = <AkChannelConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
174 ::unity::il2cpp_call!((::unity::module_base()+0x2f10520usize)as*mut u8,();
175(AkChannelConfig)__receiver)
176 }
177 }
178 #[doc = "`.ctor(u32, u32)` overload"]
179 fn ctor_3(self, in_u_num_channels: impl ::core::convert::Into<u32>, in_u_channel_mask: impl ::core::convert::Into<u32>) -> () {
180 unsafe {
181 let __receiver = <AkChannelConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
182 ::unity::il2cpp_call!((::unity::module_base()+0x2f105b0usize)as*mut u8,();
183(AkChannelConfig)__receiver,(u32)::core::convert::Into::into(in_u_num_channels),(u32)::core::convert::Into::into(in_u_channel_mask))
184 }
185 }
186 #[doc = "`Clear()` overload"]
187 fn clear(self) -> () {
188 unsafe {
189 let __receiver = <AkChannelConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
190 ::unity::il2cpp_call!((::unity::module_base()+0x2f10650usize)as*mut u8,();
191(AkChannelConfig)__receiver)
192 }
193 }
194 #[doc = "`SetStandard(u32)` overload"]
195 fn set_standard(self, in_u_channel_mask: impl ::core::convert::Into<u32>) -> () {
196 unsafe {
197 let __receiver = <AkChannelConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
198 ::unity::il2cpp_call!((::unity::module_base()+0x2f106c0usize)as*mut u8,();
199(AkChannelConfig)__receiver,(u32)::core::convert::Into::into(in_u_channel_mask))
200 }
201 }
202 #[doc = "`SetStandardOrAnonymous(u32, u32)` overload"]
203 fn set_standard_or_anonymous(self, in_u_num_channels: impl ::core::convert::Into<u32>, in_u_channel_mask: impl ::core::convert::Into<u32>) -> () {
204 unsafe {
205 let __receiver = <AkChannelConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
206 ::unity::il2cpp_call!((::unity::module_base()+0x2f10740usize)as*mut u8,();
207(AkChannelConfig)__receiver,(u32)::core::convert::Into::into(in_u_num_channels),(u32)::core::convert::Into::into(in_u_channel_mask))
208 }
209 }
210 #[doc = "`SetAnonymous(u32)` overload"]
211 fn set_anonymous(self, in_u_num_channels: impl ::core::convert::Into<u32>) -> () {
212 unsafe {
213 let __receiver = <AkChannelConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
214 ::unity::il2cpp_call!((::unity::module_base()+0x2f107d0usize)as*mut u8,();
215(AkChannelConfig)__receiver,(u32)::core::convert::Into::into(in_u_num_channels))
216 }
217 }
218 #[doc = "`SetAmbisonic(u32)` overload"]
219 fn set_ambisonic(self, in_u_num_channels: impl ::core::convert::Into<u32>) -> () {
220 unsafe {
221 let __receiver = <AkChannelConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
222 ::unity::il2cpp_call!((::unity::module_base()+0x2f10850usize)as*mut u8,();
223(AkChannelConfig)__receiver,(u32)::core::convert::Into::into(in_u_num_channels))
224 }
225 }
226 #[doc = "`IsValid()` overload"]
227 fn is_valid(self) -> bool {
228 unsafe {
229 let __receiver = <AkChannelConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
230 ::unity::il2cpp_call!((::unity::module_base()+0x2f108d0usize)as*mut u8,bool;
231(AkChannelConfig)__receiver)
232 }
233 }
234 #[doc = "`Serialize()` overload"]
235 fn serialize(self) -> u32 {
236 unsafe {
237 let __receiver = <AkChannelConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
238 ::unity::il2cpp_call!((::unity::module_base()+0x2f10940usize)as*mut u8,u32;
239(AkChannelConfig)__receiver)
240 }
241 }
242 #[doc = "`Deserialize(u32)` overload"]
243 fn deserialize(self, in_u_channel_config: impl ::core::convert::Into<u32>) -> () {
244 unsafe {
245 let __receiver = <AkChannelConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
246 ::unity::il2cpp_call!((::unity::module_base()+0x2f109b0usize)as*mut u8,();
247(AkChannelConfig)__receiver,(u32)::core::convert::Into::into(in_u_channel_config))
248 }
249 }
250 #[doc = "`RemoveLFE()` overload"]
251 fn remove_lfe(self) -> crate::root::akchannelconfig::AkChannelConfig {
252 unsafe {
253 let __receiver = <AkChannelConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
254 ::unity::il2cpp_call!((::unity::module_base()+0x2f10a30usize)as*mut u8,crate::root::akchannelconfig::AkChannelConfig;
255(AkChannelConfig)__receiver)
256 }
257 }
258 #[doc = "`RemoveCenter()` overload"]
259 fn remove_center(self) -> crate::root::akchannelconfig::AkChannelConfig {
260 unsafe {
261 let __receiver = <AkChannelConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
262 ::unity::il2cpp_call!((::unity::module_base()+0x2f10ae0usize)as*mut u8,crate::root::akchannelconfig::AkChannelConfig;
263(AkChannelConfig)__receiver)
264 }
265 }
266 #[doc = "`IsChannelConfigSupported()` overload"]
267 fn is_channel_config_supported(self) -> bool {
268 unsafe {
269 let __receiver = <AkChannelConfig as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
270 ::unity::il2cpp_call!((::unity::module_base()+0x2f10b90usize)as*mut u8,bool;
271(AkChannelConfig)__receiver)
272 }
273 }
274}
275
276#[cfg(feature = "root-akchannelconfig")]
277impl<__T: IAkChannelConfig> IAkChannelConfigMethods for __T {}
278
279#[cfg(feature = "root-akchannelconfig")]
280impl AkChannelConfig {
281 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
283 }
284
285 pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
287 }
288
289 pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
291 }
292
293 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
295 }
296
297 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
299 }
300
301 pub fn set_u_num_channels_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
303 }
304
305 pub fn get_u_num_channels_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
307 }
308
309 pub fn set_e_config_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
311 }
312
313 pub fn get_e_config_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
315 }
316
317 pub fn set_u_channel_mask_method_info() -> &'static ::unity::il2cpp::MethodInfo {
318 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
319 }
320
321 pub fn get_u_channel_mask_method_info() -> &'static ::unity::il2cpp::MethodInfo {
322 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
323 }
324
325 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
326 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
327 }
328
329 pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
330 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
331 }
332
333 pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
334 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
335 }
336
337 pub fn set_standard_method_info() -> &'static ::unity::il2cpp::MethodInfo {
338 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
339 }
340
341 pub fn set_standard_or_anonymous_method_info() -> &'static ::unity::il2cpp::MethodInfo {
342 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
343 }
344
345 pub fn set_anonymous_method_info() -> &'static ::unity::il2cpp::MethodInfo {
346 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
347 }
348
349 pub fn set_ambisonic_method_info() -> &'static ::unity::il2cpp::MethodInfo {
350 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
351 }
352
353 pub fn is_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
354 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
355 }
356
357 pub fn serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
358 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
359 }
360
361 pub fn deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
362 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
363 }
364
365 pub fn remove_lfe_method_info() -> &'static ::unity::il2cpp::MethodInfo {
366 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
367 }
368
369 pub fn remove_center_method_info() -> &'static ::unity::il2cpp::MethodInfo {
370 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
371 }
372
373 pub fn is_channel_config_supported_method_info() -> &'static ::unity::il2cpp::MethodInfo {
374 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
375 }
376}
377
378#[cfg(feature = "root-akchannelconfig")]
379impl AkChannelConfig {
380 #[doc = "Direct (non-virtual) call to `AkChannelConfig`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
381 pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
382 let __mi = Self::set_c_ptr_method_info();
383 let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
384 __inner(this.into(), c_ptr, ::core::option::Option::None)
385 }
386
387 #[doc = "Direct (non-virtual) call to `AkChannelConfig`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
388 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
389 let __mi = Self::finalize_method_info();
390 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
391 __inner(this.into(), ::core::option::Option::None)
392 }
393
394 #[doc = "Direct (non-virtual) call to `AkChannelConfig`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
395 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
396 let __mi = Self::dispose_method_info();
397 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
398 __inner(this.into(), ::core::option::Option::None)
399 }
400}
401
402#[cfg(feature = "root-akchannelconfig")]
403impl AkChannelConfig {
404 #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
405 pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
406 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
407 panic!(
408 "{}
409::{}
410 failed to instantiate",
411 ::core::stringify!(AkChannelConfig),
412 ::core::stringify!(new),
413 )
414 });
415 <Self as IAkChannelConfigMethods>::ctor(this, c_ptr, c_memory_own);
416 this
417 }
418
419 #[doc = "`.ctor()` — no args"]
420 pub fn new_2() -> Self {
421 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
422 panic!(
423 "{}
424::{}
425 failed to instantiate",
426 ::core::stringify!(AkChannelConfig),
427 ::core::stringify!(new_2),
428 )
429 });
430 <Self as IAkChannelConfigMethods>::ctor_2(this);
431 this
432 }
433
434 #[doc = "`.ctor(u32, u32)` — overload selector"]
435 pub fn new_3(in_u_num_channels: u32, in_u_channel_mask: u32) -> Self {
436 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
437 panic!(
438 "{}
439::{}
440 failed to instantiate",
441 ::core::stringify!(AkChannelConfig),
442 ::core::stringify!(new_3),
443 )
444 });
445 <Self as IAkChannelConfigMethods>::ctor_3(this, in_u_num_channels, in_u_channel_mask);
446 this
447 }
448}
449
450#[cfg(feature = "root-akchannelconfig")]
451#[doc(hidden)]
452pub mod prelude {
453 pub use super::{AkChannelConfig, IAkChannelConfig, IAkChannelConfigMethods};
454 pub use crate::system::object::IObject;
455 #[cfg(feature = "system-object")]
456 pub use crate::system::object::IObjectMethods;
457}