Skip to main content

engage/generated/root/
akoutputsettings.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-akoutputsettings-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/akoutputsettings/AkOutputSettings.md"))]
11    #[::unity::class(namespace = "", name = "AkOutputSettings")]
12    #[parent(crate::system::object::Object)]
13    pub struct AkOutputSettings {
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-akoutputsettings-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-akoutputsettings")]
27impl AkOutputSettings {
28    #[doc = "`getCPtr(crate::root::akoutputsettings::AkOutputSettings)` overload"]
29    pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::akoutputsettings::AkOutputSettings>) -> ::unity::IntPtr {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x2f20df0usize)as*mut u8, ::unity::IntPtr;
32(crate::root::akoutputsettings::AkOutputSettings)::core::convert::Into::into(obj))
33        }
34    }
35}
36
37#[cfg(feature = "root-akoutputsettings")]
38pub trait IAkOutputSettingsMethods: IAkOutputSettings {
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 = <AkOutputSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            ::unity::il2cpp_call!((::unity::module_base()+0x2f20e50usize)as*mut u8,();
44(AkOutputSettings)__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 = <AkOutputSettings 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                        <AkOutputSettings as ::unity::ClassIdentity>::NAME,
63                        "setCPtr",
64                    )
65                });
66                let __inner: extern "C" fn(AkOutputSettings, ::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 = <AkOutputSettings 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                        <AkOutputSettings as ::unity::ClassIdentity>::NAME,
89                        "Finalize",
90                    )
91                });
92                let __inner: extern "C" fn(AkOutputSettings, ::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 = <AkOutputSettings 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                        <AkOutputSettings as ::unity::ClassIdentity>::NAME,
114                        "Dispose",
115                    )
116                });
117                let __inner: extern "C" fn(AkOutputSettings, ::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 = "`.ctor()` overload"]
124    fn ctor_2(self) -> () {
125        unsafe {
126            let __receiver = <AkOutputSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127            ::unity::il2cpp_call!((::unity::module_base()+0x2f2abd0usize)as*mut u8,();
128(AkOutputSettings)__receiver)
129        }
130    }
131    #[doc = "`.ctor(::unity::Il2CppString, u32, crate::root::akchannelconfig::AkChannelConfig, crate::root::akpanningrule::AkPanningRule)` overload"]
132    fn ctor_3(
133        self,
134        in_sz_device_share_set: impl ::core::convert::Into<::unity::Il2CppString>,
135        in_id_device: impl ::core::convert::Into<u32>,
136        in_channel_config: impl ::core::convert::Into<crate::root::akchannelconfig::AkChannelConfig>,
137        in_e_panning: impl ::core::convert::Into<crate::root::akpanningrule::AkPanningRule>,
138    ) -> () {
139        unsafe {
140            let __receiver = <AkOutputSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141            ::unity::il2cpp_call!((::unity::module_base()+0x2f2ac60usize)as*mut u8,();
142(AkOutputSettings)__receiver,(::unity::Il2CppString)::core::convert::Into::into(in_sz_device_share_set),(u32)::core::convert::Into::into(in_id_device),(crate::root::akchannelconfig::AkChannelConfig)::core::convert::Into::into(in_channel_config),(crate::root::akpanningrule::AkPanningRule)::core::convert::Into::into(in_e_panning))
143        }
144    }
145    #[doc = "`.ctor(::unity::Il2CppString, u32, crate::root::akchannelconfig::AkChannelConfig)` overload"]
146    fn ctor_4(
147        self,
148        in_sz_device_share_set: impl ::core::convert::Into<::unity::Il2CppString>,
149        in_id_device: impl ::core::convert::Into<u32>,
150        in_channel_config: impl ::core::convert::Into<crate::root::akchannelconfig::AkChannelConfig>,
151    ) -> () {
152        unsafe {
153            let __receiver = <AkOutputSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
154            ::unity::il2cpp_call!((::unity::module_base()+0x2f2ad60usize)as*mut u8,();
155(AkOutputSettings)__receiver,(::unity::Il2CppString)::core::convert::Into::into(in_sz_device_share_set),(u32)::core::convert::Into::into(in_id_device),(crate::root::akchannelconfig::AkChannelConfig)::core::convert::Into::into(in_channel_config))
156        }
157    }
158    #[doc = "`.ctor(::unity::Il2CppString, u32)` overload"]
159    fn ctor_5(self, in_sz_device_share_set: impl ::core::convert::Into<::unity::Il2CppString>, in_id_device: impl ::core::convert::Into<u32>) -> () {
160        unsafe {
161            let __receiver = <AkOutputSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162            ::unity::il2cpp_call!((::unity::module_base()+0x2f2ae50usize)as*mut u8,();
163(AkOutputSettings)__receiver,(::unity::Il2CppString)::core::convert::Into::into(in_sz_device_share_set),(u32)::core::convert::Into::into(in_id_device))
164        }
165    }
166    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
167    fn ctor_6(self, in_sz_device_share_set: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
168        unsafe {
169            let __receiver = <AkOutputSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
170            ::unity::il2cpp_call!((::unity::module_base()+0x2f2aef0usize)as*mut u8,();
171(AkOutputSettings)__receiver,(::unity::Il2CppString)::core::convert::Into::into(in_sz_device_share_set))
172        }
173    }
174    #[doc = "`set_audioDeviceShareset(u32)` overload"]
175    fn set_audio_device_shareset(self, value: impl ::core::convert::Into<u32>) -> () {
176        unsafe {
177            let __receiver = <AkOutputSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
178            ::unity::il2cpp_call!((::unity::module_base()+0x2f12ac0usize)as*mut u8,();
179(AkOutputSettings)__receiver,(u32)::core::convert::Into::into(value))
180        }
181    }
182    #[doc = "`get_audioDeviceShareset()` overload"]
183    fn get_audio_device_shareset(self) -> u32 {
184        unsafe {
185            let __receiver = <AkOutputSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
186            ::unity::il2cpp_call!((::unity::module_base()+0x2f2af80usize)as*mut u8,u32;
187(AkOutputSettings)__receiver)
188        }
189    }
190    #[doc = "`set_idDevice(u32)` overload"]
191    fn set_id_device(self, value: impl ::core::convert::Into<u32>) -> () {
192        unsafe {
193            let __receiver = <AkOutputSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
194            ::unity::il2cpp_call!((::unity::module_base()+0x2f12b40usize)as*mut u8,();
195(AkOutputSettings)__receiver,(u32)::core::convert::Into::into(value))
196        }
197    }
198    #[doc = "`get_idDevice()` overload"]
199    fn get_id_device(self) -> u32 {
200        unsafe {
201            let __receiver = <AkOutputSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
202            ::unity::il2cpp_call!((::unity::module_base()+0x2f2aff0usize)as*mut u8,u32;
203(AkOutputSettings)__receiver)
204        }
205    }
206    #[doc = "`set_ePanningRule(crate::root::akpanningrule::AkPanningRule)` overload"]
207    fn set_e_panning_rule(self, value: impl ::core::convert::Into<crate::root::akpanningrule::AkPanningRule>) -> () {
208        unsafe {
209            let __receiver = <AkOutputSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
210            ::unity::il2cpp_call!((::unity::module_base()+0x2f12bc0usize)as*mut u8,();
211(AkOutputSettings)__receiver,(crate::root::akpanningrule::AkPanningRule)::core::convert::Into::into(value))
212        }
213    }
214    #[doc = "`get_ePanningRule()` overload"]
215    fn get_e_panning_rule(self) -> crate::root::akpanningrule::AkPanningRule {
216        unsafe {
217            let __receiver = <AkOutputSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
218            ::unity::il2cpp_call!((::unity::module_base()+0x2f2b060usize)as*mut u8,crate::root::akpanningrule::AkPanningRule;
219(AkOutputSettings)__receiver)
220        }
221    }
222    #[doc = "`set_channelConfig(crate::root::akchannelconfig::AkChannelConfig)` overload"]
223    fn set_channel_config(self, value: impl ::core::convert::Into<crate::root::akchannelconfig::AkChannelConfig>) -> () {
224        unsafe {
225            let __receiver = <AkOutputSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
226            ::unity::il2cpp_call!((::unity::module_base()+0x2f2b0d0usize)as*mut u8,();
227(AkOutputSettings)__receiver,(crate::root::akchannelconfig::AkChannelConfig)::core::convert::Into::into(value))
228        }
229    }
230    #[doc = "`get_channelConfig()` overload"]
231    fn get_channel_config(self) -> crate::root::akchannelconfig::AkChannelConfig {
232        unsafe {
233            let __receiver = <AkOutputSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
234            ::unity::il2cpp_call!((::unity::module_base()+0x2f12c40usize)as*mut u8,crate::root::akchannelconfig::AkChannelConfig;
235(AkOutputSettings)__receiver)
236        }
237    }
238}
239
240#[cfg(feature = "root-akoutputsettings")]
241impl<__T: IAkOutputSettings> IAkOutputSettingsMethods for __T {}
242
243#[cfg(feature = "root-akoutputsettings")]
244impl AkOutputSettings {
245    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
246        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
247    }
248
249    pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
250        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
251    }
252
253    pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
254        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
255    }
256
257    pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
258        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
259    }
260
261    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
262        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
263    }
264
265    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
266        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
267    }
268
269    pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
270        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
271    }
272
273    pub fn ctor_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
274        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
275    }
276
277    pub fn ctor_5_method_info() -> &'static ::unity::il2cpp::MethodInfo {
278        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
279    }
280
281    pub fn ctor_6_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
283    }
284
285    pub fn set_audio_device_shareset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
287    }
288
289    pub fn get_audio_device_shareset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
291    }
292
293    pub fn set_id_device_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
295    }
296
297    pub fn get_id_device_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
299    }
300
301    pub fn set_e_panning_rule_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
303    }
304
305    pub fn get_e_panning_rule_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
307    }
308
309    pub fn set_channel_config_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
311    }
312
313    pub fn get_channel_config_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
315    }
316}
317
318#[cfg(feature = "root-akoutputsettings")]
319impl AkOutputSettings {
320    #[doc = "Direct (non-virtual) call to `AkOutputSettings`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
321    pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
322        let __mi = Self::set_c_ptr_method_info();
323        let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
324        __inner(this.into(), c_ptr, ::core::option::Option::None)
325    }
326
327    #[doc = "Direct (non-virtual) call to `AkOutputSettings`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
328    pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
329        let __mi = Self::finalize_method_info();
330        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
331        __inner(this.into(), ::core::option::Option::None)
332    }
333
334    #[doc = "Direct (non-virtual) call to `AkOutputSettings`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
335    pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
336        let __mi = Self::dispose_method_info();
337        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
338        __inner(this.into(), ::core::option::Option::None)
339    }
340}
341
342#[cfg(feature = "root-akoutputsettings")]
343impl AkOutputSettings {
344    #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
345    pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
346        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
347            panic!(
348                "{}
349::{}
350 failed to instantiate",
351                ::core::stringify!(AkOutputSettings),
352                ::core::stringify!(new),
353            )
354        });
355        <Self as IAkOutputSettingsMethods>::ctor(this, c_ptr, c_memory_own);
356        this
357    }
358
359    #[doc = "`.ctor()` — no args"]
360    pub fn new_2() -> Self {
361        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
362            panic!(
363                "{}
364::{}
365 failed to instantiate",
366                ::core::stringify!(AkOutputSettings),
367                ::core::stringify!(new_2),
368            )
369        });
370        <Self as IAkOutputSettingsMethods>::ctor_2(this);
371        this
372    }
373
374    #[doc = "`.ctor(::unity::Il2CppString, u32, crate::root::akchannelconfig::AkChannelConfig, crate::root::akpanningrule::AkPanningRule)` — overload selector"]
375    pub fn new_3(
376        in_sz_device_share_set: ::unity::Il2CppString,
377        in_id_device: u32,
378        in_channel_config: crate::root::akchannelconfig::AkChannelConfig,
379        in_e_panning: crate::root::akpanningrule::AkPanningRule,
380    ) -> Self {
381        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
382            panic!(
383                "{}
384::{}
385 failed to instantiate",
386                ::core::stringify!(AkOutputSettings),
387                ::core::stringify!(new_3),
388            )
389        });
390        <Self as IAkOutputSettingsMethods>::ctor_3(this, in_sz_device_share_set, in_id_device, in_channel_config, in_e_panning);
391        this
392    }
393
394    #[doc = "`.ctor(::unity::Il2CppString, u32, crate::root::akchannelconfig::AkChannelConfig)` — overload selector"]
395    pub fn new_4(
396        in_sz_device_share_set: ::unity::Il2CppString,
397        in_id_device: u32,
398        in_channel_config: crate::root::akchannelconfig::AkChannelConfig,
399    ) -> Self {
400        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
401            panic!(
402                "{}
403::{}
404 failed to instantiate",
405                ::core::stringify!(AkOutputSettings),
406                ::core::stringify!(new_4),
407            )
408        });
409        <Self as IAkOutputSettingsMethods>::ctor_4(this, in_sz_device_share_set, in_id_device, in_channel_config);
410        this
411    }
412
413    #[doc = "`.ctor(::unity::Il2CppString, u32)` — overload selector"]
414    pub fn new_5(in_sz_device_share_set: ::unity::Il2CppString, in_id_device: u32) -> Self {
415        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
416            panic!(
417                "{}
418::{}
419 failed to instantiate",
420                ::core::stringify!(AkOutputSettings),
421                ::core::stringify!(new_5),
422            )
423        });
424        <Self as IAkOutputSettingsMethods>::ctor_5(this, in_sz_device_share_set, in_id_device);
425        this
426    }
427
428    #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
429    pub fn new_6(in_sz_device_share_set: ::unity::Il2CppString) -> Self {
430        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
431            panic!(
432                "{}
433::{}
434 failed to instantiate",
435                ::core::stringify!(AkOutputSettings),
436                ::core::stringify!(new_6),
437            )
438        });
439        <Self as IAkOutputSettingsMethods>::ctor_6(this, in_sz_device_share_set);
440        this
441    }
442}
443
444#[cfg(feature = "root-akoutputsettings")]
445#[doc(hidden)]
446pub mod prelude {
447    pub use super::{AkOutputSettings, IAkOutputSettings, IAkOutputSettingsMethods};
448    pub use crate::system::object::IObject;
449    #[cfg(feature = "system-object")]
450    pub use crate::system::object::IObjectMethods;
451}