Skip to main content

engage/generated/root/
akaudiosettings.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-akaudiosettings-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/akaudiosettings/AkAudioSettings.md"))]
11    #[::unity::class(namespace = "", name = "AkAudioSettings")]
12    #[parent(crate::system::object::Object)]
13    pub struct AkAudioSettings {
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-akaudiosettings-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-akaudiosettings")]
27impl AkAudioSettings {
28    #[doc = "`getCPtr(crate::root::akaudiosettings::AkAudioSettings)` overload"]
29    pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::akaudiosettings::AkAudioSettings>) -> ::unity::IntPtr {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x2bcffd0usize)as*mut u8, ::unity::IntPtr;
32(crate::root::akaudiosettings::AkAudioSettings)::core::convert::Into::into(obj))
33        }
34    }
35}
36
37#[cfg(feature = "root-akaudiosettings")]
38pub trait IAkAudioSettingsMethods: IAkAudioSettings {
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 = <AkAudioSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            ::unity::il2cpp_call!((::unity::module_base()+0x2bcff90usize)as*mut u8,();
44(AkAudioSettings)__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 = <AkAudioSettings 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                        <AkAudioSettings as ::unity::ClassIdentity>::NAME,
63                        "setCPtr",
64                    )
65                });
66                let __inner: extern "C" fn(AkAudioSettings, ::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 = <AkAudioSettings 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                        <AkAudioSettings as ::unity::ClassIdentity>::NAME,
88                        "Finalize",
89                    )
90                });
91                let __inner: extern "C" fn(AkAudioSettings, ::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 = <AkAudioSettings 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                        <AkAudioSettings as ::unity::ClassIdentity>::NAME,
113                        "Dispose",
114                    )
115                });
116                let __inner: extern "C" fn(AkAudioSettings, ::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_uNumSamplesPerFrame(u32)` overload"]
123    fn set_u_num_samples_per_frame(self, value: impl ::core::convert::Into<u32>) -> () {
124        unsafe {
125            let __receiver = <AkAudioSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126            ::unity::il2cpp_call!((::unity::module_base()+0x2bd0260usize)as*mut u8,();
127(AkAudioSettings)__receiver,(u32)::core::convert::Into::into(value))
128        }
129    }
130    #[doc = "`get_uNumSamplesPerFrame()` overload"]
131    fn get_u_num_samples_per_frame(self) -> u32 {
132        unsafe {
133            let __receiver = <AkAudioSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134            ::unity::il2cpp_call!((::unity::module_base()+0x2bd02e0usize)as*mut u8,u32;
135(AkAudioSettings)__receiver)
136        }
137    }
138    #[doc = "`set_uNumSamplesPerSecond(u32)` overload"]
139    fn set_u_num_samples_per_second(self, value: impl ::core::convert::Into<u32>) -> () {
140        unsafe {
141            let __receiver = <AkAudioSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142            ::unity::il2cpp_call!((::unity::module_base()+0x2bd0350usize)as*mut u8,();
143(AkAudioSettings)__receiver,(u32)::core::convert::Into::into(value))
144        }
145    }
146    #[doc = "`get_uNumSamplesPerSecond()` overload"]
147    fn get_u_num_samples_per_second(self) -> u32 {
148        unsafe {
149            let __receiver = <AkAudioSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150            ::unity::il2cpp_call!((::unity::module_base()+0x2bd03d0usize)as*mut u8,u32;
151(AkAudioSettings)__receiver)
152        }
153    }
154    #[doc = "`.ctor()` overload"]
155    fn ctor_2(self) -> () {
156        unsafe {
157            let __receiver = <AkAudioSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
158            ::unity::il2cpp_call!((::unity::module_base()+0x2bd0440usize)as*mut u8,();
159(AkAudioSettings)__receiver)
160        }
161    }
162}
163
164#[cfg(feature = "root-akaudiosettings")]
165impl<__T: IAkAudioSettings> IAkAudioSettingsMethods for __T {}
166
167#[cfg(feature = "root-akaudiosettings")]
168impl AkAudioSettings {
169    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
171    }
172
173    pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
175    }
176
177    pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
179    }
180
181    pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
183    }
184
185    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
186        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
187    }
188
189    pub fn set_u_num_samples_per_frame_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
191    }
192
193    pub fn get_u_num_samples_per_frame_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
195    }
196
197    pub fn set_u_num_samples_per_second_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
199    }
200
201    pub fn get_u_num_samples_per_second_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
203    }
204
205    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
206        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
207    }
208}
209
210#[cfg(feature = "root-akaudiosettings")]
211impl AkAudioSettings {
212    #[doc = "Direct (non-virtual) call to `AkAudioSettings`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
213    pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
214        let __mi = Self::set_c_ptr_method_info();
215        let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
216        __inner(this.into(), c_ptr, ::core::option::Option::None)
217    }
218
219    #[doc = "Direct (non-virtual) call to `AkAudioSettings`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
220    pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
221        let __mi = Self::finalize_method_info();
222        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
223        __inner(this.into(), ::core::option::Option::None)
224    }
225
226    #[doc = "Direct (non-virtual) call to `AkAudioSettings`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
227    pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
228        let __mi = Self::dispose_method_info();
229        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
230        __inner(this.into(), ::core::option::Option::None)
231    }
232}
233
234#[cfg(feature = "root-akaudiosettings")]
235impl AkAudioSettings {
236    #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
237    pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
238        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
239            panic!(
240                "{}
241::{}
242 failed to instantiate",
243                ::core::stringify!(AkAudioSettings),
244                ::core::stringify!(new),
245            )
246        });
247        <Self as IAkAudioSettingsMethods>::ctor(this, c_ptr, c_memory_own);
248        this
249    }
250
251    #[doc = "`.ctor()` — no args"]
252    pub fn new_2() -> Self {
253        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
254            panic!(
255                "{}
256::{}
257 failed to instantiate",
258                ::core::stringify!(AkAudioSettings),
259                ::core::stringify!(new_2),
260            )
261        });
262        <Self as IAkAudioSettingsMethods>::ctor_2(this);
263        this
264    }
265}
266
267#[cfg(feature = "root-akaudiosettings")]
268#[doc(hidden)]
269pub mod prelude {
270    pub use super::{AkAudioSettings, IAkAudioSettings, IAkAudioSettingsMethods};
271    pub use crate::system::object::IObject;
272    #[cfg(feature = "system-object")]
273    pub use crate::system::object::IObjectMethods;
274}