engage/generated/root/
aksourcesettings.rs1#[cfg(feature = "root-aksourcesettings-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/aksourcesettings/AkSourceSettings.md"))]
11 #[::unity::class(namespace = "", name = "AkSourceSettings")]
12 #[parent(crate::system::object::Object)]
13 pub struct AkSourceSettings {
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-aksourcesettings-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-aksourcesettings")]
27impl AkSourceSettings {
28 #[doc = "`getCPtr(crate::root::aksourcesettings::AkSourceSettings)` overload"]
29 pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::aksourcesettings::AkSourceSettings>) -> ::unity::IntPtr {
30 unsafe {
31 ::unity::il2cpp_call!((::unity::module_base()+0x1d213b0usize)as*mut u8, ::unity::IntPtr;
32(crate::root::aksourcesettings::AkSourceSettings)::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()+0x1d21970usize)as*mut u8,i32;
40 )
41 }
42 }
43}
44
45#[cfg(feature = "root-aksourcesettings")]
46pub trait IAkSourceSettingsMethods: IAkSourceSettings {
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 = <AkSourceSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 ::unity::il2cpp_call!((::unity::module_base()+0x1d21370usize)as*mut u8,();
52(AkSourceSettings)__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 = <AkSourceSettings 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 <AkSourceSettings as ::unity::ClassIdentity>::NAME,
71 "setCPtr",
72 )
73 });
74 let __inner: extern "C" fn(AkSourceSettings, ::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 = <AkSourceSettings 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 <AkSourceSettings as ::unity::ClassIdentity>::NAME,
97 "Finalize",
98 )
99 });
100 let __inner: extern "C" fn(AkSourceSettings, ::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 = <AkSourceSettings 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 <AkSourceSettings as ::unity::ClassIdentity>::NAME,
122 "Dispose",
123 )
124 });
125 let __inner: extern "C" fn(AkSourceSettings, ::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_sourceID(u32)` overload"]
132 fn set_source_id(self, value: impl ::core::convert::Into<u32>) -> () {
133 unsafe {
134 let __receiver = <AkSourceSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135 ::unity::il2cpp_call!((::unity::module_base()+0x1d21630usize)as*mut u8,();
136(AkSourceSettings)__receiver,(u32)::core::convert::Into::into(value))
137 }
138 }
139 #[doc = "`get_sourceID()` overload"]
140 fn get_source_id(self) -> u32 {
141 unsafe {
142 let __receiver = <AkSourceSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143 ::unity::il2cpp_call!((::unity::module_base()+0x1d216b0usize)as*mut u8,u32;
144(AkSourceSettings)__receiver)
145 }
146 }
147 #[doc = "`set_pMediaMemory(::unity::IntPtr)` overload"]
148 fn set_p_media_memory(self, value: impl ::core::convert::Into<::unity::IntPtr>) -> () {
149 unsafe {
150 let __receiver = <AkSourceSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151 ::unity::il2cpp_call!((::unity::module_base()+0x1d21720usize)as*mut u8,();
152(AkSourceSettings)__receiver,(::unity::IntPtr)::core::convert::Into::into(value))
153 }
154 }
155 #[doc = "`get_pMediaMemory()` overload"]
156 fn get_p_media_memory(self) -> ::unity::IntPtr {
157 unsafe {
158 let __receiver = <AkSourceSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159 ::unity::il2cpp_call!((::unity::module_base()+0x1d217a0usize)as*mut u8, ::unity::IntPtr;
160(AkSourceSettings)__receiver)
161 }
162 }
163 #[doc = "`set_uMediaSize(u32)` overload"]
164 fn set_u_media_size(self, value: impl ::core::convert::Into<u32>) -> () {
165 unsafe {
166 let __receiver = <AkSourceSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
167 ::unity::il2cpp_call!((::unity::module_base()+0x1d21810usize)as*mut u8,();
168(AkSourceSettings)__receiver,(u32)::core::convert::Into::into(value))
169 }
170 }
171 #[doc = "`get_uMediaSize()` overload"]
172 fn get_u_media_size(self) -> u32 {
173 unsafe {
174 let __receiver = <AkSourceSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
175 ::unity::il2cpp_call!((::unity::module_base()+0x1d21890usize)as*mut u8,u32;
176(AkSourceSettings)__receiver)
177 }
178 }
179 #[doc = "`Clear()` overload"]
180 fn clear(self) -> () {
181 unsafe {
182 let __receiver = <AkSourceSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
183 ::unity::il2cpp_call!((::unity::module_base()+0x1d21900usize)as*mut u8,();
184(AkSourceSettings)__receiver)
185 }
186 }
187 #[doc = "`Clone(crate::root::aksourcesettings::AkSourceSettings)` overload"]
188 fn clone(self, other: impl ::core::convert::Into<crate::root::aksourcesettings::AkSourceSettings>) -> () {
189 unsafe {
190 let __receiver = <AkSourceSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
191 ::unity::il2cpp_call!((::unity::module_base()+0x1d219e0usize)as*mut u8,();
192(AkSourceSettings)__receiver,(crate::root::aksourcesettings::AkSourceSettings)::core::convert::Into::into(other))
193 }
194 }
195 #[doc = "`.ctor()` overload"]
196 fn ctor_2(self) -> () {
197 unsafe {
198 let __receiver = <AkSourceSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
199 ::unity::il2cpp_call!((::unity::module_base()+0x1d21aa0usize)as*mut u8,();
200(AkSourceSettings)__receiver)
201 }
202 }
203}
204
205#[cfg(feature = "root-aksourcesettings")]
206impl<__T: IAkSourceSettings> IAkSourceSettingsMethods for __T {}
207
208#[cfg(feature = "root-aksourcesettings")]
209impl AkSourceSettings {
210 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
211 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
212 }
213
214 pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
216 }
217
218 pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
220 }
221
222 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
224 }
225
226 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
227 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
228 }
229
230 pub fn set_source_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
232 }
233
234 pub fn get_source_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
236 }
237
238 pub fn set_p_media_memory_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
240 }
241
242 pub fn get_p_media_memory_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
244 }
245
246 pub fn set_u_media_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
247 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
248 }
249
250 pub fn get_u_media_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
251 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
252 }
253
254 pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
255 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
256 }
257
258 pub fn get_size_of_method_info() -> &'static ::unity::il2cpp::MethodInfo {
259 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
260 }
261
262 pub fn clone_method_info() -> &'static ::unity::il2cpp::MethodInfo {
263 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
264 }
265
266 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
267 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
268 }
269}
270
271#[cfg(feature = "root-aksourcesettings")]
272impl AkSourceSettings {
273 #[doc = "Direct (non-virtual) call to `AkSourceSettings`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
274 pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
275 let __mi = Self::set_c_ptr_method_info();
276 let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
277 __inner(this.into(), c_ptr, ::core::option::Option::None)
278 }
279
280 #[doc = "Direct (non-virtual) call to `AkSourceSettings`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
281 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
282 let __mi = Self::finalize_method_info();
283 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
284 __inner(this.into(), ::core::option::Option::None)
285 }
286
287 #[doc = "Direct (non-virtual) call to `AkSourceSettings`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
288 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
289 let __mi = Self::dispose_method_info();
290 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
291 __inner(this.into(), ::core::option::Option::None)
292 }
293}
294
295#[cfg(feature = "root-aksourcesettings")]
296impl AkSourceSettings {
297 #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
298 pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
299 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
300 panic!(
301 "{}
302::{}
303 failed to instantiate",
304 ::core::stringify!(AkSourceSettings),
305 ::core::stringify!(new),
306 )
307 });
308 <Self as IAkSourceSettingsMethods>::ctor(this, c_ptr, c_memory_own);
309 this
310 }
311
312 #[doc = "`.ctor()` — no args"]
313 pub fn new_2() -> Self {
314 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
315 panic!(
316 "{}
317::{}
318 failed to instantiate",
319 ::core::stringify!(AkSourceSettings),
320 ::core::stringify!(new_2),
321 )
322 });
323 <Self as IAkSourceSettingsMethods>::ctor_2(this);
324 this
325 }
326}
327
328#[cfg(feature = "root-aksourcesettings")]
329#[doc(hidden)]
330pub mod prelude {
331 pub use super::{AkSourceSettings, IAkSourceSettings, IAkSourceSettingsMethods};
332 pub use crate::system::object::IObject;
333 #[cfg(feature = "system-object")]
334 pub use crate::system::object::IObjectMethods;
335}