Skip to main content

engage/generated/root/
akbaseplatformsettings.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-akbaseplatformsettings-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::{
11            object_2::{IObject_2, Object_2},
12            scriptableobject::{IScriptableObject, ScriptableObject},
13        },
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/akbaseplatformsettings/AkBasePlatformSettings.md"))]
17    #[::unity::class(namespace = "", name = "AkBasePlatformSettings")]
18    #[parent(crate::unity_engine::scriptableobject::ScriptableObject)]
19    pub struct AkBasePlatformSettings {}
20}
21
22#[cfg(feature = "root-akbaseplatformsettings-types")]
23pub use __types::*;
24
25#[cfg(feature = "root-akbaseplatformsettings")]
26pub trait IAkBasePlatformSettingsMethods: IAkBasePlatformSettings {
27    #[doc = "`get_AkInitializationSettings()` overload"]
28    fn get_ak_initialization_settings(self) -> crate::root::akinitializationsettings::AkInitializationSettings {
29        unsafe {
30            let __receiver =
31                <AkBasePlatformSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32            {
33                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
34                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
35                    panic!(
36                        "unity: virtual slot {}
37 out of range (vtable len {}
38) on the runtime class behind {}
39 (method `{}
40`)",
41                        4usize,
42                        __vt.len(),
43                        <AkBasePlatformSettings as ::unity::ClassIdentity>::NAME,
44                        "get_AkInitializationSettings",
45                    )
46                });
47                let __inner: extern "C" fn(
48                    AkBasePlatformSettings,
49                    ::unity::OptionalMethod,
50                ) -> crate::root::akinitializationsettings::AkInitializationSettings = ::core::mem::transmute(__vi.method_ptr);
51                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
52                __inner(__receiver, __mi)
53            }
54        }
55    }
56    #[doc = "`get_AkSpatialAudioInitSettings()` overload"]
57    fn get_ak_spatial_audio_init_settings(self) -> crate::root::akspatialaudioinitsettings::AkSpatialAudioInitSettings {
58        unsafe {
59            let __receiver =
60                <AkBasePlatformSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
61            {
62                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
63                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
64                    panic!(
65                        "unity: virtual slot {}
66 out of range (vtable len {}
67) on the runtime class behind {}
68 (method `{}
69`)",
70                        5usize,
71                        __vt.len(),
72                        <AkBasePlatformSettings as ::unity::ClassIdentity>::NAME,
73                        "get_AkSpatialAudioInitSettings",
74                    )
75                });
76                let __inner: extern "C" fn(
77                    AkBasePlatformSettings,
78                    ::unity::OptionalMethod,
79                ) -> crate::root::akspatialaudioinitsettings::AkSpatialAudioInitSettings = ::core::mem::transmute(__vi.method_ptr);
80                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
81                __inner(__receiver, __mi)
82            }
83        }
84    }
85    #[doc = "`get_CallbackManagerInitializationSettings()` overload"]
86    fn get_callback_manager_initialization_settings(self) -> crate::root::akcallbackmanager::AkCallbackManager_InitializationSettings {
87        unsafe {
88            let __receiver =
89                <AkBasePlatformSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90            {
91                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
92                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
93                    panic!(
94                        "unity: virtual slot {}
95 out of range (vtable len {}
96) on the runtime class behind {}
97 (method `{}
98`)",
99                        6usize,
100                        __vt.len(),
101                        <AkBasePlatformSettings as ::unity::ClassIdentity>::NAME,
102                        "get_CallbackManagerInitializationSettings",
103                    )
104                });
105                let __inner: extern "C" fn(
106                    AkBasePlatformSettings,
107                    ::unity::OptionalMethod,
108                ) -> crate::root::akcallbackmanager::AkCallbackManager_InitializationSettings = ::core::mem::transmute(__vi.method_ptr);
109                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
110                __inner(__receiver, __mi)
111            }
112        }
113    }
114    #[doc = "`get_SoundBankPersistentDataPath()` overload"]
115    fn get_sound_bank_persistent_data_path(self) -> ::unity::Il2CppString {
116        unsafe {
117            let __receiver =
118                <AkBasePlatformSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
119            {
120                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
121                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
122                    panic!(
123                        "unity: virtual slot {}
124 out of range (vtable len {}
125) on the runtime class behind {}
126 (method `{}
127`)",
128                        7usize,
129                        __vt.len(),
130                        <AkBasePlatformSettings as ::unity::ClassIdentity>::NAME,
131                        "get_SoundBankPersistentDataPath",
132                    )
133                });
134                let __inner: extern "C" fn(AkBasePlatformSettings, ::unity::OptionalMethod) -> ::unity::Il2CppString =
135                    ::core::mem::transmute(__vi.method_ptr);
136                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
137                __inner(__receiver, __mi)
138            }
139        }
140    }
141    #[doc = "`get_InitialLanguage()` overload"]
142    fn get_initial_language(self) -> ::unity::Il2CppString {
143        unsafe {
144            let __receiver =
145                <AkBasePlatformSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
146            {
147                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
148                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
149                    panic!(
150                        "unity: virtual slot {}
151 out of range (vtable len {}
152) on the runtime class behind {}
153 (method `{}
154`)",
155                        8usize,
156                        __vt.len(),
157                        <AkBasePlatformSettings as ::unity::ClassIdentity>::NAME,
158                        "get_InitialLanguage",
159                    )
160                });
161                let __inner: extern "C" fn(AkBasePlatformSettings, ::unity::OptionalMethod) -> ::unity::Il2CppString =
162                    ::core::mem::transmute(__vi.method_ptr);
163                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
164                __inner(__receiver, __mi)
165            }
166        }
167    }
168    #[doc = "`get_RenderDuringFocusLoss()` overload"]
169    fn get_render_during_focus_loss(self) -> bool {
170        unsafe {
171            let __receiver =
172                <AkBasePlatformSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
173            {
174                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
175                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
176                    panic!(
177                        "unity: virtual slot {}
178 out of range (vtable len {}
179) on the runtime class behind {}
180 (method `{}
181`)",
182                        9usize,
183                        __vt.len(),
184                        <AkBasePlatformSettings as ::unity::ClassIdentity>::NAME,
185                        "get_RenderDuringFocusLoss",
186                    )
187                });
188                let __inner: extern "C" fn(AkBasePlatformSettings, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
189                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
190                __inner(__receiver, __mi)
191            }
192        }
193    }
194    #[doc = "`get_SoundbankPath()` overload"]
195    fn get_soundbank_path(self) -> ::unity::Il2CppString {
196        unsafe {
197            let __receiver =
198                <AkBasePlatformSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
199            {
200                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
201                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
202                    panic!(
203                        "unity: virtual slot {}
204 out of range (vtable len {}
205) on the runtime class behind {}
206 (method `{}
207`)",
208                        10usize,
209                        __vt.len(),
210                        <AkBasePlatformSettings as ::unity::ClassIdentity>::NAME,
211                        "get_SoundbankPath",
212                    )
213                });
214                let __inner: extern "C" fn(AkBasePlatformSettings, ::unity::OptionalMethod) -> ::unity::Il2CppString =
215                    ::core::mem::transmute(__vi.method_ptr);
216                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
217                __inner(__receiver, __mi)
218            }
219        }
220    }
221    #[doc = "`get_AkCommunicationSettings()` overload"]
222    fn get_ak_communication_settings(self) -> crate::root::akcommunicationsettings::AkCommunicationSettings {
223        unsafe {
224            let __receiver =
225                <AkBasePlatformSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
226            {
227                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
228                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
229                    panic!(
230                        "unity: virtual slot {}
231 out of range (vtable len {}
232) on the runtime class behind {}
233 (method `{}
234`)",
235                        11usize,
236                        __vt.len(),
237                        <AkBasePlatformSettings as ::unity::ClassIdentity>::NAME,
238                        "get_AkCommunicationSettings",
239                    )
240                });
241                let __inner: extern "C" fn(
242                    AkBasePlatformSettings,
243                    ::unity::OptionalMethod,
244                ) -> crate::root::akcommunicationsettings::AkCommunicationSettings = ::core::mem::transmute(__vi.method_ptr);
245                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
246                __inner(__receiver, __mi)
247            }
248        }
249    }
250    #[doc = "`get_UseAsyncOpen()` overload"]
251    fn get_use_async_open(self) -> bool {
252        unsafe {
253            let __receiver =
254                <AkBasePlatformSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
255            {
256                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
257                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
258                    panic!(
259                        "unity: virtual slot {}
260 out of range (vtable len {}
261) on the runtime class behind {}
262 (method `{}
263`)",
264                        12usize,
265                        __vt.len(),
266                        <AkBasePlatformSettings as ::unity::ClassIdentity>::NAME,
267                        "get_UseAsyncOpen",
268                    )
269                });
270                let __inner: extern "C" fn(AkBasePlatformSettings, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
271                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
272                __inner(__receiver, __mi)
273            }
274        }
275    }
276    #[doc = "`.ctor()` overload"]
277    fn ctor(self) -> () {
278        unsafe {
279            let __receiver =
280                <AkBasePlatformSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
281            ::unity::il2cpp_call!((::unity::module_base()+0x2bd3ef0usize)as*mut u8,();
282(AkBasePlatformSettings)__receiver)
283        }
284    }
285}
286
287#[cfg(feature = "root-akbaseplatformsettings")]
288impl<__T: IAkBasePlatformSettings> IAkBasePlatformSettingsMethods for __T {}
289
290#[cfg(feature = "root-akbaseplatformsettings")]
291impl AkBasePlatformSettings {
292    pub fn get_ak_initialization_settings_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
294    }
295
296    pub fn get_ak_spatial_audio_init_settings_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
298    }
299
300    pub fn get_callback_manager_initialization_settings_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
302    }
303
304    pub fn get_sound_bank_persistent_data_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
306    }
307
308    pub fn get_initial_language_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
310    }
311
312    pub fn get_render_during_focus_loss_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
314    }
315
316    pub fn get_soundbank_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
318    }
319
320    pub fn get_ak_communication_settings_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
322    }
323
324    pub fn get_use_async_open_method_info() -> &'static ::unity::il2cpp::MethodInfo {
325        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
326    }
327
328    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
329        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
330    }
331}
332
333#[cfg(feature = "root-akbaseplatformsettings")]
334impl AkBasePlatformSettings {
335    #[doc = "Direct (non-virtual) call to `AkBasePlatformSettings`'s own `get_AkInitializationSettings`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
336    pub unsafe fn get_ak_initialization_settings(
337        this: impl ::core::convert::Into<::unity::IlInstance>,
338    ) -> crate::root::akinitializationsettings::AkInitializationSettings {
339        let __mi = Self::get_ak_initialization_settings_method_info();
340        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::root::akinitializationsettings::AkInitializationSettings =
341            ::core::mem::transmute(__mi.method_ptr);
342        __inner(this.into(), ::core::option::Option::None)
343    }
344
345    #[doc = "Direct (non-virtual) call to `AkBasePlatformSettings`'s own `get_AkSpatialAudioInitSettings`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
346    pub unsafe fn get_ak_spatial_audio_init_settings(
347        this: impl ::core::convert::Into<::unity::IlInstance>,
348    ) -> crate::root::akspatialaudioinitsettings::AkSpatialAudioInitSettings {
349        let __mi = Self::get_ak_spatial_audio_init_settings_method_info();
350        let __inner: extern "C" fn(
351            ::unity::IlInstance,
352            ::unity::OptionalMethod,
353        ) -> crate::root::akspatialaudioinitsettings::AkSpatialAudioInitSettings = ::core::mem::transmute(__mi.method_ptr);
354        __inner(this.into(), ::core::option::Option::None)
355    }
356
357    #[doc = "Direct (non-virtual) call to `AkBasePlatformSettings`'s own `get_CallbackManagerInitializationSettings`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
358    pub unsafe fn get_callback_manager_initialization_settings(
359        this: impl ::core::convert::Into<::unity::IlInstance>,
360    ) -> crate::root::akcallbackmanager::AkCallbackManager_InitializationSettings {
361        let __mi = Self::get_callback_manager_initialization_settings_method_info();
362        let __inner: extern "C" fn(
363            ::unity::IlInstance,
364            ::unity::OptionalMethod,
365        ) -> crate::root::akcallbackmanager::AkCallbackManager_InitializationSettings = ::core::mem::transmute(__mi.method_ptr);
366        __inner(this.into(), ::core::option::Option::None)
367    }
368
369    #[doc = "Direct (non-virtual) call to `AkBasePlatformSettings`'s own `get_SoundBankPersistentDataPath`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
370    pub unsafe fn get_sound_bank_persistent_data_path(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
371        let __mi = Self::get_sound_bank_persistent_data_path_method_info();
372        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
373        __inner(this.into(), ::core::option::Option::None)
374    }
375
376    #[doc = "Direct (non-virtual) call to `AkBasePlatformSettings`'s own `get_InitialLanguage`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
377    pub unsafe fn get_initial_language(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
378        let __mi = Self::get_initial_language_method_info();
379        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
380        __inner(this.into(), ::core::option::Option::None)
381    }
382
383    #[doc = "Direct (non-virtual) call to `AkBasePlatformSettings`'s own `get_RenderDuringFocusLoss`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
384    pub unsafe fn get_render_during_focus_loss(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
385        let __mi = Self::get_render_during_focus_loss_method_info();
386        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
387        __inner(this.into(), ::core::option::Option::None)
388    }
389
390    #[doc = "Direct (non-virtual) call to `AkBasePlatformSettings`'s own `get_SoundbankPath`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
391    pub unsafe fn get_soundbank_path(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
392        let __mi = Self::get_soundbank_path_method_info();
393        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
394        __inner(this.into(), ::core::option::Option::None)
395    }
396
397    #[doc = "Direct (non-virtual) call to `AkBasePlatformSettings`'s own `get_AkCommunicationSettings`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
398    pub unsafe fn get_ak_communication_settings(
399        this: impl ::core::convert::Into<::unity::IlInstance>,
400    ) -> crate::root::akcommunicationsettings::AkCommunicationSettings {
401        let __mi = Self::get_ak_communication_settings_method_info();
402        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::root::akcommunicationsettings::AkCommunicationSettings =
403            ::core::mem::transmute(__mi.method_ptr);
404        __inner(this.into(), ::core::option::Option::None)
405    }
406
407    #[doc = "Direct (non-virtual) call to `AkBasePlatformSettings`'s own `get_UseAsyncOpen`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
408    pub unsafe fn get_use_async_open(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
409        let __mi = Self::get_use_async_open_method_info();
410        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
411        __inner(this.into(), ::core::option::Option::None)
412    }
413}
414
415#[cfg(feature = "root-akbaseplatformsettings")]
416impl AkBasePlatformSettings {
417    #[doc = "`.ctor()` — no args"]
418    pub fn new() -> Self {
419        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
420            panic!(
421                "{}
422::{}
423 failed to instantiate",
424                ::core::stringify!(AkBasePlatformSettings),
425                ::core::stringify!(new),
426            )
427        });
428        <Self as IAkBasePlatformSettingsMethods>::ctor(this);
429        this
430    }
431}
432
433#[cfg(feature = "root-akbaseplatformsettings")]
434#[doc(hidden)]
435pub mod prelude {
436    pub use super::{AkBasePlatformSettings, IAkBasePlatformSettings, IAkBasePlatformSettingsMethods};
437    #[cfg(feature = "system-object")]
438    pub use crate::system::object::IObjectMethods;
439    #[cfg(feature = "unity_engine-object_2")]
440    pub use crate::unity_engine::object_2::IObject_2Methods;
441    #[cfg(feature = "unity_engine-scriptableobject")]
442    pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
443    pub use crate::{
444        system::object::IObject,
445        unity_engine::{object_2::IObject_2, scriptableobject::IScriptableObject},
446    };
447}