engage/generated/root/
akobstructionocclusionvalues.rs1#[cfg(feature = "root-akobstructionocclusionvalues-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/akobstructionocclusionvalues/AkObstructionOcclusionValues.md"))]
11 #[::unity::class(namespace = "", name = "AkObstructionOcclusionValues")]
12 #[parent(crate::system::object::Object)]
13 pub struct AkObstructionOcclusionValues {
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-akobstructionocclusionvalues-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-akobstructionocclusionvalues")]
27impl AkObstructionOcclusionValues {
28 #[doc = "`getCPtr(crate::root::akobstructionocclusionvalues::AkObstructionOcclusionValues)` overload"]
29 pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::akobstructionocclusionvalues::AkObstructionOcclusionValues>) -> ::unity::IntPtr {
30 unsafe {
31 ::unity::il2cpp_call!((::unity::module_base()+0x2f2a090usize)as*mut u8, ::unity::IntPtr;
32(crate::root::akobstructionocclusionvalues::AkObstructionOcclusionValues)::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()+0x2f2a570usize)as*mut u8,i32;
40 )
41 }
42 }
43}
44
45#[cfg(feature = "root-akobstructionocclusionvalues")]
46pub trait IAkObstructionOcclusionValuesMethods: IAkObstructionOcclusionValues {
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 =
51 <AkObstructionOcclusionValues as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
52 ::unity::il2cpp_call!((::unity::module_base()+0x2f2a050usize)as*mut u8,();
53(AkObstructionOcclusionValues)__receiver,(::unity::IntPtr)::core::convert::Into::into(c_ptr),(bool)::core::convert::Into::into(c_memory_own))
54 }
55 }
56 #[doc = "`setCPtr(::unity::IntPtr)` overload"]
57 fn set_c_ptr(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
58 unsafe {
59 let __receiver =
60 <AkObstructionOcclusionValues as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
61 {
62 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
63 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
64 panic!(
65 "unity: virtual slot {}
66 out of range (vtable len {}
67) on the runtime class behind {}
68 (method `{}
69`)",
70 5usize,
71 __vt.len(),
72 <AkObstructionOcclusionValues as ::unity::ClassIdentity>::NAME,
73 "setCPtr",
74 )
75 });
76 let __inner: extern "C" fn(AkObstructionOcclusionValues, ::unity::IntPtr, ::unity::OptionalMethod) -> () =
77 ::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, ::core::convert::Into::into(c_ptr), __mi)
80 }
81 }
82 }
83 #[doc = "`Finalize()` overload"]
84 fn finalize(self) -> () {
85 unsafe {
86 let __receiver =
87 <AkObstructionOcclusionValues as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88 {
89 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
90 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
91 panic!(
92 "unity: virtual slot {}
93 out of range (vtable len {}
94) on the runtime class behind {}
95 (method `{}
96`)",
97 1usize,
98 __vt.len(),
99 <AkObstructionOcclusionValues as ::unity::ClassIdentity>::NAME,
100 "Finalize",
101 )
102 });
103 let __inner: extern "C" fn(AkObstructionOcclusionValues, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
104 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
105 __inner(__receiver, __mi)
106 }
107 }
108 }
109 #[doc = "`Dispose()` overload"]
110 fn dispose(self) -> () {
111 unsafe {
112 let __receiver =
113 <AkObstructionOcclusionValues as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114 {
115 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
116 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
117 panic!(
118 "unity: virtual slot {}
119 out of range (vtable len {}
120) on the runtime class behind {}
121 (method `{}
122`)",
123 6usize,
124 __vt.len(),
125 <AkObstructionOcclusionValues as ::unity::ClassIdentity>::NAME,
126 "Dispose",
127 )
128 });
129 let __inner: extern "C" fn(AkObstructionOcclusionValues, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
130 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
131 __inner(__receiver, __mi)
132 }
133 }
134 }
135 #[doc = "`set_occlusion(f32)` overload"]
136 fn set_occlusion(self, value: impl ::core::convert::Into<f32>) -> () {
137 unsafe {
138 let __receiver =
139 <AkObstructionOcclusionValues as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
140 ::unity::il2cpp_call!((::unity::module_base()+0x2f2a320usize)as*mut u8,();
141(AkObstructionOcclusionValues)__receiver,(f32)::core::convert::Into::into(value))
142 }
143 }
144 #[doc = "`get_occlusion()` overload"]
145 fn get_occlusion(self) -> f32 {
146 unsafe {
147 let __receiver =
148 <AkObstructionOcclusionValues as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
149 ::unity::il2cpp_call!((::unity::module_base()+0x2f2a3a0usize)as*mut u8,f32;
150(AkObstructionOcclusionValues)__receiver)
151 }
152 }
153 #[doc = "`set_obstruction(f32)` overload"]
154 fn set_obstruction(self, value: impl ::core::convert::Into<f32>) -> () {
155 unsafe {
156 let __receiver =
157 <AkObstructionOcclusionValues as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
158 ::unity::il2cpp_call!((::unity::module_base()+0x2f2a410usize)as*mut u8,();
159(AkObstructionOcclusionValues)__receiver,(f32)::core::convert::Into::into(value))
160 }
161 }
162 #[doc = "`get_obstruction()` overload"]
163 fn get_obstruction(self) -> f32 {
164 unsafe {
165 let __receiver =
166 <AkObstructionOcclusionValues as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
167 ::unity::il2cpp_call!((::unity::module_base()+0x2f2a490usize)as*mut u8,f32;
168(AkObstructionOcclusionValues)__receiver)
169 }
170 }
171 #[doc = "`Clear()` overload"]
172 fn clear(self) -> () {
173 unsafe {
174 let __receiver =
175 <AkObstructionOcclusionValues as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
176 ::unity::il2cpp_call!((::unity::module_base()+0x2f2a500usize)as*mut u8,();
177(AkObstructionOcclusionValues)__receiver)
178 }
179 }
180 #[doc = "`Clone(crate::root::akobstructionocclusionvalues::AkObstructionOcclusionValues)` overload"]
181 fn clone(self, other: impl ::core::convert::Into<crate::root::akobstructionocclusionvalues::AkObstructionOcclusionValues>) -> () {
182 unsafe {
183 let __receiver =
184 <AkObstructionOcclusionValues as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
185 ::unity::il2cpp_call!((::unity::module_base()+0x2f2a5e0usize)as*mut u8,();
186(AkObstructionOcclusionValues)__receiver,(crate::root::akobstructionocclusionvalues::AkObstructionOcclusionValues)::core::convert::Into::into(other))
187 }
188 }
189 #[doc = "`.ctor()` overload"]
190 fn ctor_2(self) -> () {
191 unsafe {
192 let __receiver =
193 <AkObstructionOcclusionValues as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
194 ::unity::il2cpp_call!((::unity::module_base()+0x2f2a6a0usize)as*mut u8,();
195(AkObstructionOcclusionValues)__receiver)
196 }
197 }
198}
199
200#[cfg(feature = "root-akobstructionocclusionvalues")]
201impl<__T: IAkObstructionOcclusionValues> IAkObstructionOcclusionValuesMethods for __T {}
202
203#[cfg(feature = "root-akobstructionocclusionvalues")]
204impl AkObstructionOcclusionValues {
205 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
206 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
207 }
208
209 pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
210 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
211 }
212
213 pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
214 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
215 }
216
217 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
218 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
219 }
220
221 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
222 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
223 }
224
225 pub fn set_occlusion_method_info() -> &'static ::unity::il2cpp::MethodInfo {
226 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
227 }
228
229 pub fn get_occlusion_method_info() -> &'static ::unity::il2cpp::MethodInfo {
230 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
231 }
232
233 pub fn set_obstruction_method_info() -> &'static ::unity::il2cpp::MethodInfo {
234 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
235 }
236
237 pub fn get_obstruction_method_info() -> &'static ::unity::il2cpp::MethodInfo {
238 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
239 }
240
241 pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
242 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
243 }
244
245 pub fn get_size_of_method_info() -> &'static ::unity::il2cpp::MethodInfo {
246 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
247 }
248
249 pub fn clone_method_info() -> &'static ::unity::il2cpp::MethodInfo {
250 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
251 }
252
253 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
254 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
255 }
256}
257
258#[cfg(feature = "root-akobstructionocclusionvalues")]
259impl AkObstructionOcclusionValues {
260 #[doc = "Direct (non-virtual) call to `AkObstructionOcclusionValues`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
261 pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
262 let __mi = Self::set_c_ptr_method_info();
263 let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
264 __inner(this.into(), c_ptr, ::core::option::Option::None)
265 }
266
267 #[doc = "Direct (non-virtual) call to `AkObstructionOcclusionValues`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
268 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
269 let __mi = Self::finalize_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 `AkObstructionOcclusionValues`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
275 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
276 let __mi = Self::dispose_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-akobstructionocclusionvalues")]
283impl AkObstructionOcclusionValues {
284 #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
285 pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
286 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
287 panic!(
288 "{}
289::{}
290 failed to instantiate",
291 ::core::stringify!(AkObstructionOcclusionValues),
292 ::core::stringify!(new),
293 )
294 });
295 <Self as IAkObstructionOcclusionValuesMethods>::ctor(this, c_ptr, c_memory_own);
296 this
297 }
298
299 #[doc = "`.ctor()` — no args"]
300 pub fn new_2() -> Self {
301 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
302 panic!(
303 "{}
304::{}
305 failed to instantiate",
306 ::core::stringify!(AkObstructionOcclusionValues),
307 ::core::stringify!(new_2),
308 )
309 });
310 <Self as IAkObstructionOcclusionValuesMethods>::ctor_2(this);
311 this
312 }
313}
314
315#[cfg(feature = "root-akobstructionocclusionvalues")]
316#[doc(hidden)]
317pub mod prelude {
318 pub use super::{AkObstructionOcclusionValues, IAkObstructionOcclusionValues, IAkObstructionOcclusionValuesMethods};
319 pub use crate::system::object::IObject;
320 #[cfg(feature = "system-object")]
321 pub use crate::system::object::IObjectMethods;
322}