1#[cfg(feature = "root-akreflectionpathinfo-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/akreflectionpathinfo/AkReflectionPathInfo.md"))]
11 #[::unity::class(namespace = "", name = "AkReflectionPathInfo")]
12 #[parent(crate::system::object::Object)]
13 pub struct AkReflectionPathInfo {
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-akreflectionpathinfo-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-akreflectionpathinfo")]
27impl AkReflectionPathInfo {
28 #[doc = "`getCPtr(crate::root::akreflectionpathinfo::AkReflectionPathInfo)` overload"]
29 pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::akreflectionpathinfo::AkReflectionPathInfo>) -> ::unity::IntPtr {
30 unsafe {
31 ::unity::il2cpp_call!((::unity::module_base()+0x2f309d0usize)as*mut u8, ::unity::IntPtr;
32(crate::root::akreflectionpathinfo::AkReflectionPathInfo)::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()+0x2f31130usize)as*mut u8,i32;
40 )
41 }
42 }
43}
44
45#[cfg(feature = "root-akreflectionpathinfo")]
46pub trait IAkReflectionPathInfoMethods: IAkReflectionPathInfo {
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 = <AkReflectionPathInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 ::unity::il2cpp_call!((::unity::module_base()+0x2f30990usize)as*mut u8,();
52(AkReflectionPathInfo)__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 = <AkReflectionPathInfo 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 <AkReflectionPathInfo as ::unity::ClassIdentity>::NAME,
71 "setCPtr",
72 )
73 });
74 let __inner: extern "C" fn(AkReflectionPathInfo, ::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 = <AkReflectionPathInfo 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 <AkReflectionPathInfo as ::unity::ClassIdentity>::NAME,
97 "Finalize",
98 )
99 });
100 let __inner: extern "C" fn(AkReflectionPathInfo, ::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 = <AkReflectionPathInfo 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 <AkReflectionPathInfo as ::unity::ClassIdentity>::NAME,
122 "Dispose",
123 )
124 });
125 let __inner: extern "C" fn(AkReflectionPathInfo, ::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_imageSource(crate::unity_engine::vector3::Vector3)` overload"]
132 fn set_image_source(self, value: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
133 unsafe {
134 let __receiver = <AkReflectionPathInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135 ::unity::il2cpp_call!((::unity::module_base()+0x2f30c60usize)as*mut u8,();
136(AkReflectionPathInfo)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(value))
137 }
138 }
139 #[doc = "`get_imageSource()` overload"]
140 fn get_image_source(self) -> crate::unity_engine::vector3::Vector3 {
141 unsafe {
142 let __receiver = <AkReflectionPathInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143 ::unity::il2cpp_call!((::unity::module_base()+0x2f30d00usize)as*mut u8,crate::unity_engine::vector3::Vector3;
144(AkReflectionPathInfo)__receiver)
145 }
146 }
147 #[doc = "`set_numPathPoints(u32)` overload"]
148 fn set_num_path_points(self, value: impl ::core::convert::Into<u32>) -> () {
149 unsafe {
150 let __receiver = <AkReflectionPathInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151 ::unity::il2cpp_call!((::unity::module_base()+0x2f30d70usize)as*mut u8,();
152(AkReflectionPathInfo)__receiver,(u32)::core::convert::Into::into(value))
153 }
154 }
155 #[doc = "`get_numPathPoints()` overload"]
156 fn get_num_path_points(self) -> u32 {
157 unsafe {
158 let __receiver = <AkReflectionPathInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159 ::unity::il2cpp_call!((::unity::module_base()+0x2f30df0usize)as*mut u8,u32;
160(AkReflectionPathInfo)__receiver)
161 }
162 }
163 #[doc = "`set_numReflections(u32)` overload"]
164 fn set_num_reflections(self, value: impl ::core::convert::Into<u32>) -> () {
165 unsafe {
166 let __receiver = <AkReflectionPathInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
167 ::unity::il2cpp_call!((::unity::module_base()+0x2f30e60usize)as*mut u8,();
168(AkReflectionPathInfo)__receiver,(u32)::core::convert::Into::into(value))
169 }
170 }
171 #[doc = "`get_numReflections()` overload"]
172 fn get_num_reflections(self) -> u32 {
173 unsafe {
174 let __receiver = <AkReflectionPathInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
175 ::unity::il2cpp_call!((::unity::module_base()+0x2f30ee0usize)as*mut u8,u32;
176(AkReflectionPathInfo)__receiver)
177 }
178 }
179 #[doc = "`set_level(f32)` overload"]
180 fn set_level(self, value: impl ::core::convert::Into<f32>) -> () {
181 unsafe {
182 let __receiver = <AkReflectionPathInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
183 ::unity::il2cpp_call!((::unity::module_base()+0x2f30f50usize)as*mut u8,();
184(AkReflectionPathInfo)__receiver,(f32)::core::convert::Into::into(value))
185 }
186 }
187 #[doc = "`get_level()` overload"]
188 fn get_level(self) -> f32 {
189 unsafe {
190 let __receiver = <AkReflectionPathInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
191 ::unity::il2cpp_call!((::unity::module_base()+0x2f30fd0usize)as*mut u8,f32;
192(AkReflectionPathInfo)__receiver)
193 }
194 }
195 #[doc = "`set_isOccluded(bool)` overload"]
196 fn set_is_occluded(self, value: impl ::core::convert::Into<bool>) -> () {
197 unsafe {
198 let __receiver = <AkReflectionPathInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
199 ::unity::il2cpp_call!((::unity::module_base()+0x2f31040usize)as*mut u8,();
200(AkReflectionPathInfo)__receiver,(bool)::core::convert::Into::into(value))
201 }
202 }
203 #[doc = "`get_isOccluded()` overload"]
204 fn get_is_occluded(self) -> bool {
205 unsafe {
206 let __receiver = <AkReflectionPathInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207 ::unity::il2cpp_call!((::unity::module_base()+0x2f310c0usize)as*mut u8,bool;
208(AkReflectionPathInfo)__receiver)
209 }
210 }
211 #[doc = "`GetPathPoint(u32)` overload"]
212 fn get_path_point(self, idx: impl ::core::convert::Into<u32>) -> crate::unity_engine::vector3::Vector3 {
213 unsafe {
214 let __receiver = <AkReflectionPathInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
215 ::unity::il2cpp_call!((::unity::module_base()+0x2f311a0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
216(AkReflectionPathInfo)__receiver,(u32)::core::convert::Into::into(idx))
217 }
218 }
219 #[doc = "`GetAcousticSurface(u32)` overload"]
220 fn get_acoustic_surface(self, idx: impl ::core::convert::Into<u32>) -> crate::root::akacousticsurface::AkAcousticSurface {
221 unsafe {
222 let __receiver = <AkReflectionPathInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
223 ::unity::il2cpp_call!((::unity::module_base()+0x2f31220usize)as*mut u8,crate::root::akacousticsurface::AkAcousticSurface;
224(AkReflectionPathInfo)__receiver,(u32)::core::convert::Into::into(idx))
225 }
226 }
227 #[doc = "`GetDiffraction(u32)` overload"]
228 fn get_diffraction(self, idx: impl ::core::convert::Into<u32>) -> f32 {
229 unsafe {
230 let __receiver = <AkReflectionPathInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
231 ::unity::il2cpp_call!((::unity::module_base()+0x2f312e0usize)as*mut u8,f32;
232(AkReflectionPathInfo)__receiver,(u32)::core::convert::Into::into(idx))
233 }
234 }
235 #[doc = "`Clone(crate::root::akreflectionpathinfo::AkReflectionPathInfo)` overload"]
236 fn clone(self, other: impl ::core::convert::Into<crate::root::akreflectionpathinfo::AkReflectionPathInfo>) -> () {
237 unsafe {
238 let __receiver = <AkReflectionPathInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
239 ::unity::il2cpp_call!((::unity::module_base()+0x2f31360usize)as*mut u8,();
240(AkReflectionPathInfo)__receiver,(crate::root::akreflectionpathinfo::AkReflectionPathInfo)::core::convert::Into::into(other))
241 }
242 }
243 #[doc = "`.ctor()` overload"]
244 fn ctor_2(self) -> () {
245 unsafe {
246 let __receiver = <AkReflectionPathInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
247 ::unity::il2cpp_call!((::unity::module_base()+0x2f31420usize)as*mut u8,();
248(AkReflectionPathInfo)__receiver)
249 }
250 }
251}
252
253#[cfg(feature = "root-akreflectionpathinfo")]
254impl<__T: IAkReflectionPathInfo> IAkReflectionPathInfoMethods for __T {}
255
256#[cfg(feature = "root-akreflectionpathinfo")]
257impl AkReflectionPathInfo {
258 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
259 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
260 }
261
262 pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
263 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
264 }
265
266 pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
267 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
268 }
269
270 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
271 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
272 }
273
274 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
275 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
276 }
277
278 pub fn set_image_source_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
280 }
281
282 pub fn get_image_source_method_info() -> &'static ::unity::il2cpp::MethodInfo {
283 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
284 }
285
286 pub fn set_num_path_points_method_info() -> &'static ::unity::il2cpp::MethodInfo {
287 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
288 }
289
290 pub fn get_num_path_points_method_info() -> &'static ::unity::il2cpp::MethodInfo {
291 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
292 }
293
294 pub fn set_num_reflections_method_info() -> &'static ::unity::il2cpp::MethodInfo {
295 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
296 }
297
298 pub fn get_num_reflections_method_info() -> &'static ::unity::il2cpp::MethodInfo {
299 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
300 }
301
302 pub fn set_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
303 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
304 }
305
306 pub fn get_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
307 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
308 }
309
310 pub fn set_is_occluded_method_info() -> &'static ::unity::il2cpp::MethodInfo {
311 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
312 }
313
314 pub fn get_is_occluded_method_info() -> &'static ::unity::il2cpp::MethodInfo {
315 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
316 }
317
318 pub fn get_size_of_method_info() -> &'static ::unity::il2cpp::MethodInfo {
319 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
320 }
321
322 pub fn get_path_point_method_info() -> &'static ::unity::il2cpp::MethodInfo {
323 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
324 }
325
326 pub fn get_acoustic_surface_method_info() -> &'static ::unity::il2cpp::MethodInfo {
327 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
328 }
329
330 pub fn get_diffraction_method_info() -> &'static ::unity::il2cpp::MethodInfo {
331 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
332 }
333
334 pub fn clone_method_info() -> &'static ::unity::il2cpp::MethodInfo {
335 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
336 }
337
338 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
339 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
340 }
341}
342
343#[cfg(feature = "root-akreflectionpathinfo")]
344impl AkReflectionPathInfo {
345 #[doc = "Direct (non-virtual) call to `AkReflectionPathInfo`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
346 pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
347 let __mi = Self::set_c_ptr_method_info();
348 let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
349 __inner(this.into(), c_ptr, ::core::option::Option::None)
350 }
351
352 #[doc = "Direct (non-virtual) call to `AkReflectionPathInfo`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
353 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
354 let __mi = Self::finalize_method_info();
355 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
356 __inner(this.into(), ::core::option::Option::None)
357 }
358
359 #[doc = "Direct (non-virtual) call to `AkReflectionPathInfo`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
360 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
361 let __mi = Self::dispose_method_info();
362 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
363 __inner(this.into(), ::core::option::Option::None)
364 }
365}
366
367#[cfg(feature = "root-akreflectionpathinfo")]
368impl AkReflectionPathInfo {
369 #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
370 pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
371 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
372 panic!(
373 "{}
374::{}
375 failed to instantiate",
376 ::core::stringify!(AkReflectionPathInfo),
377 ::core::stringify!(new),
378 )
379 });
380 <Self as IAkReflectionPathInfoMethods>::ctor(this, c_ptr, c_memory_own);
381 this
382 }
383
384 #[doc = "`.ctor()` — no args"]
385 pub fn new_2() -> Self {
386 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
387 panic!(
388 "{}
389::{}
390 failed to instantiate",
391 ::core::stringify!(AkReflectionPathInfo),
392 ::core::stringify!(new_2),
393 )
394 });
395 <Self as IAkReflectionPathInfoMethods>::ctor_2(this);
396 this
397 }
398}
399
400#[cfg(feature = "root-akreflectionpathinfo")]
401#[doc(hidden)]
402pub mod prelude {
403 pub use super::{AkReflectionPathInfo, IAkReflectionPathInfo, IAkReflectionPathInfoMethods};
404 pub use crate::system::object::IObject;
405 #[cfg(feature = "system-object")]
406 pub use crate::system::object::IObjectMethods;
407}