engage/generated/root/
akdevicedescription.rs1#[cfg(feature = "root-akdevicedescription-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/akdevicedescription/AkDeviceDescription.md"))]
11 #[::unity::class(namespace = "", name = "AkDeviceDescription")]
12 #[parent(crate::system::object::Object)]
13 pub struct AkDeviceDescription {
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-akdevicedescription-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-akdevicedescription")]
27impl AkDeviceDescription {
28 #[doc = "`getCPtr(crate::root::akdevicedescription::AkDeviceDescription)` overload"]
29 pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::akdevicedescription::AkDeviceDescription>) -> ::unity::IntPtr {
30 unsafe {
31 ::unity::il2cpp_call!((::unity::module_base()+0x2f16210usize)as*mut u8, ::unity::IntPtr;
32(crate::root::akdevicedescription::AkDeviceDescription)::core::convert::Into::into(obj))
33 }
34 }
35
36 #[doc = "`GetSizeOf()` overload"]
37 pub fn get_size_of() -> i32 {
38 unsafe {
39 ::unity::il2cpp_call!((::unity::module_base()+0x2f16910usize)as*mut u8,i32;
40 )
41 }
42 }
43}
44
45#[cfg(feature = "root-akdevicedescription")]
46pub trait IAkDeviceDescriptionMethods: IAkDeviceDescription {
47 #[doc = "`.ctor(::unity::IntPtr, bool)` overload"]
48 fn ctor(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>, c_memory_own: impl ::core::convert::Into<bool>) -> () {
49 unsafe {
50 let __receiver = <AkDeviceDescription as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 ::unity::il2cpp_call!((::unity::module_base()+0x2f161d0usize)as*mut u8,();
52(AkDeviceDescription)__receiver,(::unity::IntPtr)::core::convert::Into::into(c_ptr),(bool)::core::convert::Into::into(c_memory_own))
53 }
54 }
55 #[doc = "`setCPtr(::unity::IntPtr)` overload"]
56 fn set_c_ptr(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
57 unsafe {
58 let __receiver = <AkDeviceDescription as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59 {
60 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
61 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
62 panic!(
63 "unity: virtual slot {}
64 out of range (vtable len {}
65) on the runtime class behind {}
66 (method `{}
67`)",
68 5usize,
69 __vt.len(),
70 <AkDeviceDescription as ::unity::ClassIdentity>::NAME,
71 "setCPtr",
72 )
73 });
74 let __inner: extern "C" fn(AkDeviceDescription, ::unity::IntPtr, ::unity::OptionalMethod) -> () =
75 ::core::mem::transmute(__vi.method_ptr);
76 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
77 __inner(__receiver, ::core::convert::Into::into(c_ptr), __mi)
78 }
79 }
80 }
81 #[doc = "`Finalize()` overload"]
82 fn finalize(self) -> () {
83 unsafe {
84 let __receiver = <AkDeviceDescription as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
85 {
86 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
87 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
88 panic!(
89 "unity: virtual slot {}
90 out of range (vtable len {}
91) on the runtime class behind {}
92 (method `{}
93`)",
94 1usize,
95 __vt.len(),
96 <AkDeviceDescription as ::unity::ClassIdentity>::NAME,
97 "Finalize",
98 )
99 });
100 let __inner: extern "C" fn(AkDeviceDescription, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
101 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
102 __inner(__receiver, __mi)
103 }
104 }
105 }
106 #[doc = "`Dispose()` overload"]
107 fn dispose(self) -> () {
108 unsafe {
109 let __receiver = <AkDeviceDescription as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
110 {
111 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
112 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
113 panic!(
114 "unity: virtual slot {}
115 out of range (vtable len {}
116) on the runtime class behind {}
117 (method `{}
118`)",
119 6usize,
120 __vt.len(),
121 <AkDeviceDescription as ::unity::ClassIdentity>::NAME,
122 "Dispose",
123 )
124 });
125 let __inner: extern "C" fn(AkDeviceDescription, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
126 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
127 __inner(__receiver, __mi)
128 }
129 }
130 }
131 #[doc = "`set_idDevice(u32)` overload"]
132 fn set_id_device(self, value: impl ::core::convert::Into<u32>) -> () {
133 unsafe {
134 let __receiver = <AkDeviceDescription as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135 ::unity::il2cpp_call!((::unity::module_base()+0x2f164a0usize)as*mut u8,();
136(AkDeviceDescription)__receiver,(u32)::core::convert::Into::into(value))
137 }
138 }
139 #[doc = "`get_idDevice()` overload"]
140 fn get_id_device(self) -> u32 {
141 unsafe {
142 let __receiver = <AkDeviceDescription as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143 ::unity::il2cpp_call!((::unity::module_base()+0x2f16520usize)as*mut u8,u32;
144(AkDeviceDescription)__receiver)
145 }
146 }
147 #[doc = "`set_deviceName(::unity::Il2CppString)` overload"]
148 fn set_device_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
149 unsafe {
150 let __receiver = <AkDeviceDescription as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151 ::unity::il2cpp_call!((::unity::module_base()+0x2f16590usize)as*mut u8,();
152(AkDeviceDescription)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
153 }
154 }
155 #[doc = "`get_deviceName()` overload"]
156 fn get_device_name(self) -> ::unity::Il2CppString {
157 unsafe {
158 let __receiver = <AkDeviceDescription as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159 ::unity::il2cpp_call!((::unity::module_base()+0x2f16610usize)as*mut u8, ::unity::Il2CppString;
160(AkDeviceDescription)__receiver)
161 }
162 }
163 #[doc = "`set_deviceStateMask(crate::root::akaudiodevicestate::AkAudioDeviceState)` overload"]
164 fn set_device_state_mask(self, value: impl ::core::convert::Into<crate::root::akaudiodevicestate::AkAudioDeviceState>) -> () {
165 unsafe {
166 let __receiver = <AkDeviceDescription as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
167 ::unity::il2cpp_call!((::unity::module_base()+0x2f166c0usize)as*mut u8,();
168(AkDeviceDescription)__receiver,(crate::root::akaudiodevicestate::AkAudioDeviceState)::core::convert::Into::into(value))
169 }
170 }
171 #[doc = "`get_deviceStateMask()` overload"]
172 fn get_device_state_mask(self) -> crate::root::akaudiodevicestate::AkAudioDeviceState {
173 unsafe {
174 let __receiver = <AkDeviceDescription as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
175 ::unity::il2cpp_call!((::unity::module_base()+0x2f16740usize)as*mut u8,crate::root::akaudiodevicestate::AkAudioDeviceState;
176(AkDeviceDescription)__receiver)
177 }
178 }
179 #[doc = "`set_isDefaultDevice(bool)` overload"]
180 fn set_is_default_device(self, value: impl ::core::convert::Into<bool>) -> () {
181 unsafe {
182 let __receiver = <AkDeviceDescription as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
183 ::unity::il2cpp_call!((::unity::module_base()+0x2f167b0usize)as*mut u8,();
184(AkDeviceDescription)__receiver,(bool)::core::convert::Into::into(value))
185 }
186 }
187 #[doc = "`get_isDefaultDevice()` overload"]
188 fn get_is_default_device(self) -> bool {
189 unsafe {
190 let __receiver = <AkDeviceDescription as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
191 ::unity::il2cpp_call!((::unity::module_base()+0x2f16830usize)as*mut u8,bool;
192(AkDeviceDescription)__receiver)
193 }
194 }
195 #[doc = "`Clear()` overload"]
196 fn clear(self) -> () {
197 unsafe {
198 let __receiver = <AkDeviceDescription as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
199 ::unity::il2cpp_call!((::unity::module_base()+0x2f168a0usize)as*mut u8,();
200(AkDeviceDescription)__receiver)
201 }
202 }
203 #[doc = "`Clone(crate::root::akdevicedescription::AkDeviceDescription)` overload"]
204 fn clone(self, other: impl ::core::convert::Into<crate::root::akdevicedescription::AkDeviceDescription>) -> () {
205 unsafe {
206 let __receiver = <AkDeviceDescription as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207 ::unity::il2cpp_call!((::unity::module_base()+0x2f16980usize)as*mut u8,();
208(AkDeviceDescription)__receiver,(crate::root::akdevicedescription::AkDeviceDescription)::core::convert::Into::into(other))
209 }
210 }
211 #[doc = "`.ctor()` overload"]
212 fn ctor_2(self) -> () {
213 unsafe {
214 let __receiver = <AkDeviceDescription as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
215 ::unity::il2cpp_call!((::unity::module_base()+0x2f16a40usize)as*mut u8,();
216(AkDeviceDescription)__receiver)
217 }
218 }
219}
220
221#[cfg(feature = "root-akdevicedescription")]
222impl<__T: IAkDeviceDescription> IAkDeviceDescriptionMethods for __T {}
223
224#[cfg(feature = "root-akdevicedescription")]
225impl AkDeviceDescription {
226 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
227 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
228 }
229
230 pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
232 }
233
234 pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
236 }
237
238 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
240 }
241
242 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
244 }
245
246 pub fn set_id_device_method_info() -> &'static ::unity::il2cpp::MethodInfo {
247 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
248 }
249
250 pub fn get_id_device_method_info() -> &'static ::unity::il2cpp::MethodInfo {
251 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
252 }
253
254 pub fn set_device_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
255 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
256 }
257
258 pub fn get_device_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
259 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
260 }
261
262 pub fn set_device_state_mask_method_info() -> &'static ::unity::il2cpp::MethodInfo {
263 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
264 }
265
266 pub fn get_device_state_mask_method_info() -> &'static ::unity::il2cpp::MethodInfo {
267 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
268 }
269
270 pub fn set_is_default_device_method_info() -> &'static ::unity::il2cpp::MethodInfo {
271 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
272 }
273
274 pub fn get_is_default_device_method_info() -> &'static ::unity::il2cpp::MethodInfo {
275 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
276 }
277
278 pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
280 }
281
282 pub fn get_size_of_method_info() -> &'static ::unity::il2cpp::MethodInfo {
283 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
284 }
285
286 pub fn clone_method_info() -> &'static ::unity::il2cpp::MethodInfo {
287 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
288 }
289
290 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
291 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
292 }
293}
294
295#[cfg(feature = "root-akdevicedescription")]
296impl AkDeviceDescription {
297 #[doc = "Direct (non-virtual) call to `AkDeviceDescription`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
298 pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
299 let __mi = Self::set_c_ptr_method_info();
300 let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
301 __inner(this.into(), c_ptr, ::core::option::Option::None)
302 }
303
304 #[doc = "Direct (non-virtual) call to `AkDeviceDescription`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
305 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
306 let __mi = Self::finalize_method_info();
307 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
308 __inner(this.into(), ::core::option::Option::None)
309 }
310
311 #[doc = "Direct (non-virtual) call to `AkDeviceDescription`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
312 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
313 let __mi = Self::dispose_method_info();
314 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
315 __inner(this.into(), ::core::option::Option::None)
316 }
317}
318
319#[cfg(feature = "root-akdevicedescription")]
320impl AkDeviceDescription {
321 #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
322 pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
323 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
324 panic!(
325 "{}
326::{}
327 failed to instantiate",
328 ::core::stringify!(AkDeviceDescription),
329 ::core::stringify!(new),
330 )
331 });
332 <Self as IAkDeviceDescriptionMethods>::ctor(this, c_ptr, c_memory_own);
333 this
334 }
335
336 #[doc = "`.ctor()` — no args"]
337 pub fn new_2() -> Self {
338 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
339 panic!(
340 "{}
341::{}
342 failed to instantiate",
343 ::core::stringify!(AkDeviceDescription),
344 ::core::stringify!(new_2),
345 )
346 });
347 <Self as IAkDeviceDescriptionMethods>::ctor_2(this);
348 this
349 }
350}
351
352#[cfg(feature = "root-akdevicedescription")]
353#[doc(hidden)]
354pub mod prelude {
355 pub use super::{AkDeviceDescription, IAkDeviceDescription, IAkDeviceDescriptionMethods};
356 pub use crate::system::object::IObject;
357 #[cfg(feature = "system-object")]
358 pub use crate::system::object::IObjectMethods;
359}