Skip to main content

engage/generated/root/
akmembankloader.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-akmembankloader-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            behaviour::{Behaviour, IBehaviour},
12            component::{Component, IComponent},
13            monobehaviour::{IMonoBehaviour, MonoBehaviour},
14            object_2::{IObject_2, Object_2},
15        },
16    };
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/akmembankloader/AkMemBankLoader.md"))]
19    #[::unity::class(namespace = "", name = "AkMemBankLoader")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct AkMemBankLoader {
22        #[static_field]
23        #[rename(name = "WaitMs")]
24        pub wait_ms: i32,
25        #[static_field]
26        #[rename(name = "AK_BANK_PLATFORM_DATA_ALIGNMENT")]
27        pub ak_bank_platform_data_alignment: i64,
28        #[static_field]
29        #[rename(name = "AK_BANK_PLATFORM_DATA_ALIGNMENT_MASK")]
30        pub ak_bank_platform_data_alignment_mask: i64,
31        #[offset(24)]
32        #[rename(name = "bankName")]
33        pub bank_name: ::unity::Il2CppString,
34        #[offset(32)]
35        #[rename(name = "isLocalizedBank")]
36        pub is_localized_bank: bool,
37        #[offset(40)]
38        #[rename(name = "m_bankPath")]
39        pub m_bank_path: ::unity::Il2CppString,
40        #[offset(48)]
41        #[rename(name = "ms_bankID")]
42        pub ms_bank_id: u32,
43        #[offset(56)]
44        #[rename(name = "ms_pInMemoryBankPtr")]
45        pub ms_p_in_memory_bank_ptr: ::unity::IntPtr,
46        #[offset(72)]
47        #[rename(name = "ms_www")]
48        pub ms_www: crate::unity_engine::networking::unitywebrequest::UnityWebRequest,
49    }
50}
51
52#[cfg(feature = "root-akmembankloader-types")]
53pub use __types::*;
54
55#[cfg(feature = "root-akmembankloader")]
56pub trait IAkMemBankLoaderMethods: IAkMemBankLoader {
57    #[doc = "`Start()` overload"]
58    fn start(self) -> () {
59        unsafe {
60            let __receiver = <AkMemBankLoader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
61            ::unity::il2cpp_call!((::unity::module_base()+0x2f26d00usize)as*mut u8,();
62(AkMemBankLoader)__receiver)
63        }
64    }
65    #[doc = "`LoadNonLocalizedBank(::unity::Il2CppString)` overload"]
66    fn load_non_localized_bank(self, in_bank_filename: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
67        unsafe {
68            let __receiver = <AkMemBankLoader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
69            ::unity::il2cpp_call!((::unity::module_base()+0x2f26f00usize)as*mut u8,();
70(AkMemBankLoader)__receiver,(::unity::Il2CppString)::core::convert::Into::into(in_bank_filename))
71        }
72    }
73    #[doc = "`LoadLocalizedBank(::unity::Il2CppString)` overload"]
74    fn load_localized_bank(self, in_bank_filename: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
75        unsafe {
76            let __receiver = <AkMemBankLoader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
77            ::unity::il2cpp_call!((::unity::module_base()+0x2f26d20usize)as*mut u8,();
78(AkMemBankLoader)__receiver,(::unity::Il2CppString)::core::convert::Into::into(in_bank_filename))
79        }
80    }
81    #[doc = "`AllocateAlignedBuffer(::unity::Array<u8>)` overload"]
82    fn allocate_aligned_buffer(self, data: impl ::core::convert::Into<::unity::Array<u8>>) -> u32 {
83        unsafe {
84            let __receiver = <AkMemBankLoader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
85            ::unity::il2cpp_call!((::unity::module_base()+0x2f27130usize)as*mut u8,u32;
86(AkMemBankLoader)__receiver,(::unity::Array<u8>)::core::convert::Into::into(data))
87        }
88    }
89    #[doc = "`LoadFile()` overload"]
90    fn load_file(self) -> crate::system::collections::ienumerator::IEnumerator {
91        unsafe {
92            let __receiver = <AkMemBankLoader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
93            ::unity::il2cpp_call!((::unity::module_base()+0x2f27360usize)as*mut u8,crate::system::collections::ienumerator::IEnumerator;
94(AkMemBankLoader)__receiver)
95        }
96    }
97    #[doc = "`DoLoadBank(::unity::Il2CppString)` overload"]
98    fn do_load_bank(self, in_bank_path: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
99        unsafe {
100            let __receiver = <AkMemBankLoader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
101            ::unity::il2cpp_call!((::unity::module_base()+0x2f270a0usize)as*mut u8,();
102(AkMemBankLoader)__receiver,(::unity::Il2CppString)::core::convert::Into::into(in_bank_path))
103        }
104    }
105    #[doc = "`OnDestroy()` overload"]
106    fn on_destroy(self) -> () {
107        unsafe {
108            let __receiver = <AkMemBankLoader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109            ::unity::il2cpp_call!((::unity::module_base()+0x2f273e0usize)as*mut u8,();
110(AkMemBankLoader)__receiver)
111        }
112    }
113    #[doc = "`.ctor()` overload"]
114    fn ctor(self) -> () {
115        unsafe {
116            let __receiver = <AkMemBankLoader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
117            ::unity::il2cpp_call!((::unity::module_base()+0x2f274a0usize)as*mut u8,();
118(AkMemBankLoader)__receiver)
119        }
120    }
121}
122
123#[cfg(feature = "root-akmembankloader")]
124impl<__T: IAkMemBankLoader> IAkMemBankLoaderMethods for __T {}
125
126#[cfg(feature = "root-akmembankloader")]
127impl AkMemBankLoader {
128    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
129        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
130    }
131
132    pub fn load_non_localized_bank_method_info() -> &'static ::unity::il2cpp::MethodInfo {
133        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
134    }
135
136    pub fn load_localized_bank_method_info() -> &'static ::unity::il2cpp::MethodInfo {
137        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
138    }
139
140    pub fn allocate_aligned_buffer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
141        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
142    }
143
144    pub fn load_file_method_info() -> &'static ::unity::il2cpp::MethodInfo {
145        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
146    }
147
148    pub fn do_load_bank_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
150    }
151
152    pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
154    }
155
156    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
158    }
159}
160
161#[cfg(feature = "root-akmembankloader")]
162impl AkMemBankLoader {
163    #[doc = "`.ctor()` — no args"]
164    pub fn new() -> Self {
165        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
166            panic!(
167                "{}
168::{}
169 failed to instantiate",
170                ::core::stringify!(AkMemBankLoader),
171                ::core::stringify!(new),
172            )
173        });
174        <Self as IAkMemBankLoaderMethods>::ctor(this);
175        this
176    }
177}
178
179#[cfg(feature = "root-akmembankloader")]
180#[doc(hidden)]
181pub mod prelude {
182    pub use super::{AkMemBankLoader, IAkMemBankLoader, IAkMemBankLoaderMethods};
183    #[cfg(feature = "system-object")]
184    pub use crate::system::object::IObjectMethods;
185    #[cfg(feature = "unity_engine-behaviour")]
186    pub use crate::unity_engine::behaviour::IBehaviourMethods;
187    #[cfg(feature = "unity_engine-component")]
188    pub use crate::unity_engine::component::IComponentMethods;
189    #[cfg(feature = "unity_engine-monobehaviour")]
190    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
191    #[cfg(feature = "unity_engine-object_2")]
192    pub use crate::unity_engine::object_2::IObject_2Methods;
193    pub use crate::{
194        system::object::IObject,
195        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
196    };
197}