engage/generated/root/
akauxsendarray.rs1#[cfg(feature = "root-akauxsendarray-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/akauxsendarray/AkAuxSendArray.md"))]
11 #[::unity::class(namespace = "", name = "AkAuxSendArray")]
12 #[parent(crate::system::object::Object)]
13 pub struct AkAuxSendArray {
14 #[static_field]
15 #[rename(name = "MAX_COUNT")]
16 pub max_count: i32,
17 #[offset(16)]
18 #[rename(name = "SIZE_OF_AKAUXSENDVALUE")]
19 pub size_of_akauxsendvalue: i32,
20 #[offset(24)]
21 #[rename(name = "m_Buffer")]
22 pub m_buffer: ::unity::IntPtr,
23 #[offset(32)]
24 #[rename(name = "m_Count")]
25 pub m_count: i32,
26 }
27}
28
29#[cfg(feature = "root-akauxsendarray-types")]
30pub use __types::*;
31
32#[cfg(feature = "root-akauxsendarray")]
33pub trait IAkAuxSendArrayMethods: IAkAuxSendArray {
34 #[doc = "`.ctor()` overload"]
35 fn ctor(self) -> () {
36 unsafe {
37 let __receiver = <AkAuxSendArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38 ::unity::il2cpp_call!((::unity::module_base()+0x2bd08a0usize)as*mut u8,();
39(AkAuxSendArray)__receiver)
40 }
41 }
42 #[doc = "`get_Item(i32)` overload"]
43 fn get_item(self, index: impl ::core::convert::Into<i32>) -> crate::root::akauxsendvalue::AkAuxSendValue {
44 unsafe {
45 let __receiver = <AkAuxSendArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46 ::unity::il2cpp_call!((::unity::module_base()+0x2bd0960usize)as*mut u8,crate::root::akauxsendvalue::AkAuxSendValue;
47(AkAuxSendArray)__receiver,(i32)::core::convert::Into::into(index))
48 }
49 }
50 #[doc = "`get_isFull()` overload"]
51 fn get_is_full(self) -> bool {
52 unsafe {
53 let __receiver = <AkAuxSendArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54 ::unity::il2cpp_call!((::unity::module_base()+0x2bd0ad0usize)as*mut u8,bool;
55(AkAuxSendArray)__receiver)
56 }
57 }
58 #[doc = "`Dispose()` overload"]
59 fn dispose(self) -> () {
60 unsafe {
61 let __receiver = <AkAuxSendArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62 {
63 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
64 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
65 panic!(
66 "unity: virtual slot {}
67 out of range (vtable len {}
68) on the runtime class behind {}
69 (method `{}
70`)",
71 4usize,
72 __vt.len(),
73 <AkAuxSendArray as ::unity::ClassIdentity>::NAME,
74 "Dispose",
75 )
76 });
77 let __inner: extern "C" fn(AkAuxSendArray, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
78 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
79 __inner(__receiver, __mi)
80 }
81 }
82 }
83 #[doc = "`Finalize()` overload"]
84 fn finalize(self) -> () {
85 unsafe {
86 let __receiver = <AkAuxSendArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87 {
88 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
89 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
90 panic!(
91 "unity: virtual slot {}
92 out of range (vtable len {}
93) on the runtime class behind {}
94 (method `{}
95`)",
96 1usize,
97 __vt.len(),
98 <AkAuxSendArray as ::unity::ClassIdentity>::NAME,
99 "Finalize",
100 )
101 });
102 let __inner: extern "C" fn(AkAuxSendArray, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
103 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
104 __inner(__receiver, __mi)
105 }
106 }
107 }
108 #[doc = "`Reset()` overload"]
109 fn reset(self) -> () {
110 unsafe {
111 let __receiver = <AkAuxSendArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
112 ::unity::il2cpp_call!((::unity::module_base()+0x2bd0cc0usize)as*mut u8,();
113(AkAuxSendArray)__receiver)
114 }
115 }
116 #[doc = "`Add(crate::unity_engine::gameobject::GameObject, u32, f32)` overload"]
117 fn add(
118 self,
119 in_listener_game_obj: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
120 in_aux_bus_id: impl ::core::convert::Into<u32>,
121 in_f_value: impl ::core::convert::Into<f32>,
122 ) -> bool {
123 unsafe {
124 let __receiver = <AkAuxSendArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125 ::unity::il2cpp_call!((::unity::module_base()+0x2bd0cd0usize)as*mut u8,bool;
126(AkAuxSendArray)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(in_listener_game_obj),(u32)::core::convert::Into::into(in_aux_bus_id),(f32)::core::convert::Into::into(in_f_value))
127 }
128 }
129 #[doc = "`Add(u32, f32)` overload"]
130 fn add_2(self, in_aux_bus_id: impl ::core::convert::Into<u32>, in_f_value: impl ::core::convert::Into<f32>) -> bool {
131 unsafe {
132 let __receiver = <AkAuxSendArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133 ::unity::il2cpp_call!((::unity::module_base()+0x2bd0e50usize)as*mut u8,bool;
134(AkAuxSendArray)__receiver,(u32)::core::convert::Into::into(in_aux_bus_id),(f32)::core::convert::Into::into(in_f_value))
135 }
136 }
137 #[doc = "`Contains(crate::unity_engine::gameobject::GameObject, u32)` overload"]
138 fn contains(
139 self,
140 in_listener_game_obj: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
141 in_aux_bus_id: impl ::core::convert::Into<u32>,
142 ) -> bool {
143 unsafe {
144 let __receiver = <AkAuxSendArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
145 ::unity::il2cpp_call!((::unity::module_base()+0x2bd0f80usize)as*mut u8,bool;
146(AkAuxSendArray)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(in_listener_game_obj),(u32)::core::convert::Into::into(in_aux_bus_id))
147 }
148 }
149 #[doc = "`Contains(u32)` overload"]
150 fn contains_2(self, in_aux_bus_id: impl ::core::convert::Into<u32>) -> bool {
151 unsafe {
152 let __receiver = <AkAuxSendArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153 ::unity::il2cpp_call!((::unity::module_base()+0x2bd10d0usize)as*mut u8,bool;
154(AkAuxSendArray)__receiver,(u32)::core::convert::Into::into(in_aux_bus_id))
155 }
156 }
157 #[doc = "`SetValues(crate::unity_engine::gameobject::GameObject)` overload"]
158 fn set_values(self, game_object: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> crate::root::akresult::AKRESULT {
159 unsafe {
160 let __receiver = <AkAuxSendArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161 ::unity::il2cpp_call!((::unity::module_base()+0x2bd11e0usize)as*mut u8,crate::root::akresult::AKRESULT;
162(AkAuxSendArray)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(game_object))
163 }
164 }
165 #[doc = "`GetValues(crate::unity_engine::gameobject::GameObject)` overload"]
166 fn get_values(self, game_object: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> crate::root::akresult::AKRESULT {
167 unsafe {
168 let __receiver = <AkAuxSendArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
169 ::unity::il2cpp_call!((::unity::module_base()+0x2bd12a0usize)as*mut u8,crate::root::akresult::AKRESULT;
170(AkAuxSendArray)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(game_object))
171 }
172 }
173 #[doc = "`GetBuffer()` overload"]
174 fn get_buffer(self) -> ::unity::IntPtr {
175 unsafe {
176 let __receiver = <AkAuxSendArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
177 ::unity::il2cpp_call!((::unity::module_base()+0x2bd1380usize)as*mut u8, ::unity::IntPtr;
178(AkAuxSendArray)__receiver)
179 }
180 }
181 #[doc = "`Count()` overload"]
182 fn count(self) -> i32 {
183 unsafe {
184 let __receiver = <AkAuxSendArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
185 ::unity::il2cpp_call!((::unity::module_base()+0x2bd1390usize)as*mut u8,i32;
186(AkAuxSendArray)__receiver)
187 }
188 }
189 #[doc = "`GetObjectPtr(i32)` overload"]
190 fn get_object_ptr(self, index: impl ::core::convert::Into<i32>) -> ::unity::IntPtr {
191 unsafe {
192 let __receiver = <AkAuxSendArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
193 ::unity::il2cpp_call!((::unity::module_base()+0x2bd0a50usize)as*mut u8, ::unity::IntPtr;
194(AkAuxSendArray)__receiver,(i32)::core::convert::Into::into(index))
195 }
196 }
197}
198
199#[cfg(feature = "root-akauxsendarray")]
200impl<__T: IAkAuxSendArray> IAkAuxSendArrayMethods for __T {}
201
202#[cfg(feature = "root-akauxsendarray")]
203impl AkAuxSendArray {
204 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
206 }
207
208 pub fn get_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
210 }
211
212 pub fn get_is_full_method_info() -> &'static ::unity::il2cpp::MethodInfo {
213 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
214 }
215
216 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
217 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
218 }
219
220 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
221 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
222 }
223
224 pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
225 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
226 }
227
228 pub fn add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
229 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
230 }
231
232 pub fn add_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
233 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
234 }
235
236 pub fn contains_method_info() -> &'static ::unity::il2cpp::MethodInfo {
237 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
238 }
239
240 pub fn contains_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
241 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
242 }
243
244 pub fn set_values_method_info() -> &'static ::unity::il2cpp::MethodInfo {
245 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
246 }
247
248 pub fn get_values_method_info() -> &'static ::unity::il2cpp::MethodInfo {
249 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
250 }
251
252 pub fn get_buffer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
253 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
254 }
255
256 pub fn count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
257 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
258 }
259
260 pub fn get_object_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
261 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
262 }
263}
264
265#[cfg(feature = "root-akauxsendarray")]
266impl AkAuxSendArray {
267 #[doc = "Direct (non-virtual) call to `AkAuxSendArray`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
268 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
269 let __mi = Self::dispose_method_info();
270 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
271 __inner(this.into(), ::core::option::Option::None)
272 }
273
274 #[doc = "Direct (non-virtual) call to `AkAuxSendArray`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
275 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
276 let __mi = Self::finalize_method_info();
277 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
278 __inner(this.into(), ::core::option::Option::None)
279 }
280}
281
282#[cfg(feature = "root-akauxsendarray")]
283impl AkAuxSendArray {
284 #[doc = "`.ctor()` — no args"]
285 pub fn new() -> Self {
286 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
287 panic!(
288 "{}
289::{}
290 failed to instantiate",
291 ::core::stringify!(AkAuxSendArray),
292 ::core::stringify!(new),
293 )
294 });
295 <Self as IAkAuxSendArrayMethods>::ctor(this);
296 this
297 }
298}
299
300#[cfg(feature = "root-akauxsendarray")]
301#[doc(hidden)]
302pub mod prelude {
303 pub use super::{AkAuxSendArray, IAkAuxSendArray, IAkAuxSendArrayMethods};
304 pub use crate::system::object::IObject;
305 #[cfg(feature = "system-object")]
306 pub use crate::system::object::IObjectMethods;
307}