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