Skip to main content

engage/generated/root/
akroomparams.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-akroomparams-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/akroomparams/AkRoomParams.md"))]
11    #[::unity::class(namespace = "", name = "AkRoomParams")]
12    #[parent(crate::system::object::Object)]
13    pub struct AkRoomParams {
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-akroomparams-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-akroomparams")]
27impl AkRoomParams {
28    #[doc = "`getCPtr(crate::root::akroomparams::AkRoomParams)` overload"]
29    pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::akroomparams::AkRoomParams>) -> ::unity::IntPtr {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x2f35380usize)as*mut u8, ::unity::IntPtr;
32(crate::root::akroomparams::AkRoomParams)::core::convert::Into::into(obj))
33        }
34    }
35}
36
37#[cfg(feature = "root-akroomparams")]
38pub trait IAkRoomParamsMethods: IAkRoomParams {
39    #[doc = "`.ctor(::unity::IntPtr, bool)` overload"]
40    fn ctor(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>, c_memory_own: impl ::core::convert::Into<bool>) -> () {
41        unsafe {
42            let __receiver = <AkRoomParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            ::unity::il2cpp_call!((::unity::module_base()+0x2f35340usize)as*mut u8,();
44(AkRoomParams)__receiver,(::unity::IntPtr)::core::convert::Into::into(c_ptr),(bool)::core::convert::Into::into(c_memory_own))
45        }
46    }
47    #[doc = "`setCPtr(::unity::IntPtr)` overload"]
48    fn set_c_ptr(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
49        unsafe {
50            let __receiver = <AkRoomParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51            {
52                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
53                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
54                    panic!(
55                        "unity: virtual slot {}
56 out of range (vtable len {}
57) on the runtime class behind {}
58 (method `{}
59`)",
60                        5usize,
61                        __vt.len(),
62                        <AkRoomParams as ::unity::ClassIdentity>::NAME,
63                        "setCPtr",
64                    )
65                });
66                let __inner: extern "C" fn(AkRoomParams, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
67                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
68                __inner(__receiver, ::core::convert::Into::into(c_ptr), __mi)
69            }
70        }
71    }
72    #[doc = "`Finalize()` overload"]
73    fn finalize(self) -> () {
74        unsafe {
75            let __receiver = <AkRoomParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76            {
77                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
78                let __vi = *__vt.get(1usize).unwrap_or_else(|| {
79                    panic!(
80                        "unity: virtual slot {}
81 out of range (vtable len {}
82) on the runtime class behind {}
83 (method `{}
84`)",
85                        1usize,
86                        __vt.len(),
87                        <AkRoomParams as ::unity::ClassIdentity>::NAME,
88                        "Finalize",
89                    )
90                });
91                let __inner: extern "C" fn(AkRoomParams, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
92                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
93                __inner(__receiver, __mi)
94            }
95        }
96    }
97    #[doc = "`Dispose()` overload"]
98    fn dispose(self) -> () {
99        unsafe {
100            let __receiver = <AkRoomParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
101            {
102                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
103                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
104                    panic!(
105                        "unity: virtual slot {}
106 out of range (vtable len {}
107) on the runtime class behind {}
108 (method `{}
109`)",
110                        6usize,
111                        __vt.len(),
112                        <AkRoomParams as ::unity::ClassIdentity>::NAME,
113                        "Dispose",
114                    )
115                });
116                let __inner: extern "C" fn(AkRoomParams, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
117                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
118                __inner(__receiver, __mi)
119            }
120        }
121    }
122    #[doc = "`.ctor()` overload"]
123    fn ctor_2(self) -> () {
124        unsafe {
125            let __receiver = <AkRoomParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126            ::unity::il2cpp_call!((::unity::module_base()+0x2f32a00usize)as*mut u8,();
127(AkRoomParams)__receiver)
128        }
129    }
130    #[doc = "`.ctor(crate::root::akroomparams::AkRoomParams)` overload"]
131    fn ctor_3(self, in_rhs: impl ::core::convert::Into<crate::root::akroomparams::AkRoomParams>) -> () {
132        unsafe {
133            let __receiver = <AkRoomParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134            ::unity::il2cpp_call!((::unity::module_base()+0x2f35610usize)as*mut u8,();
135(AkRoomParams)__receiver,(crate::root::akroomparams::AkRoomParams)::core::convert::Into::into(in_rhs))
136        }
137    }
138    #[doc = "`set_Up(crate::unity_engine::vector3::Vector3)` overload"]
139    fn set_up(self, value: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
140        unsafe {
141            let __receiver = <AkRoomParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142            ::unity::il2cpp_call!((::unity::module_base()+0x2f32a90usize)as*mut u8,();
143(AkRoomParams)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(value))
144        }
145    }
146    #[doc = "`get_Up()` overload"]
147    fn get_up(self) -> crate::unity_engine::vector3::Vector3 {
148        unsafe {
149            let __receiver = <AkRoomParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150            ::unity::il2cpp_call!((::unity::module_base()+0x2f356f0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
151(AkRoomParams)__receiver)
152        }
153    }
154    #[doc = "`set_Front(crate::unity_engine::vector3::Vector3)` overload"]
155    fn set_front(self, value: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
156        unsafe {
157            let __receiver = <AkRoomParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
158            ::unity::il2cpp_call!((::unity::module_base()+0x2f32b30usize)as*mut u8,();
159(AkRoomParams)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(value))
160        }
161    }
162    #[doc = "`get_Front()` overload"]
163    fn get_front(self) -> crate::unity_engine::vector3::Vector3 {
164        unsafe {
165            let __receiver = <AkRoomParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
166            ::unity::il2cpp_call!((::unity::module_base()+0x2f35760usize)as*mut u8,crate::unity_engine::vector3::Vector3;
167(AkRoomParams)__receiver)
168        }
169    }
170    #[doc = "`set_ReverbAuxBus(u32)` overload"]
171    fn set_reverb_aux_bus(self, value: impl ::core::convert::Into<u32>) -> () {
172        unsafe {
173            let __receiver = <AkRoomParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
174            ::unity::il2cpp_call!((::unity::module_base()+0x2f32bd0usize)as*mut u8,();
175(AkRoomParams)__receiver,(u32)::core::convert::Into::into(value))
176        }
177    }
178    #[doc = "`get_ReverbAuxBus()` overload"]
179    fn get_reverb_aux_bus(self) -> u32 {
180        unsafe {
181            let __receiver = <AkRoomParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
182            ::unity::il2cpp_call!((::unity::module_base()+0x2f357d0usize)as*mut u8,u32;
183(AkRoomParams)__receiver)
184        }
185    }
186    #[doc = "`set_ReverbLevel(f32)` overload"]
187    fn set_reverb_level(self, value: impl ::core::convert::Into<f32>) -> () {
188        unsafe {
189            let __receiver = <AkRoomParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
190            ::unity::il2cpp_call!((::unity::module_base()+0x2f32c50usize)as*mut u8,();
191(AkRoomParams)__receiver,(f32)::core::convert::Into::into(value))
192        }
193    }
194    #[doc = "`get_ReverbLevel()` overload"]
195    fn get_reverb_level(self) -> f32 {
196        unsafe {
197            let __receiver = <AkRoomParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
198            ::unity::il2cpp_call!((::unity::module_base()+0x2f35840usize)as*mut u8,f32;
199(AkRoomParams)__receiver)
200        }
201    }
202    #[doc = "`set_WallOcclusion(f32)` overload"]
203    fn set_wall_occlusion(self, value: impl ::core::convert::Into<f32>) -> () {
204        unsafe {
205            let __receiver = <AkRoomParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
206            ::unity::il2cpp_call!((::unity::module_base()+0x2f32cd0usize)as*mut u8,();
207(AkRoomParams)__receiver,(f32)::core::convert::Into::into(value))
208        }
209    }
210    #[doc = "`get_WallOcclusion()` overload"]
211    fn get_wall_occlusion(self) -> f32 {
212        unsafe {
213            let __receiver = <AkRoomParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
214            ::unity::il2cpp_call!((::unity::module_base()+0x2f358b0usize)as*mut u8,f32;
215(AkRoomParams)__receiver)
216        }
217    }
218    #[doc = "`set_RoomGameObj_AuxSendLevelToSelf(f32)` overload"]
219    fn set_room_game_obj_aux_send_level_to_self(self, value: impl ::core::convert::Into<f32>) -> () {
220        unsafe {
221            let __receiver = <AkRoomParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
222            ::unity::il2cpp_call!((::unity::module_base()+0x2f32d50usize)as*mut u8,();
223(AkRoomParams)__receiver,(f32)::core::convert::Into::into(value))
224        }
225    }
226    #[doc = "`get_RoomGameObj_AuxSendLevelToSelf()` overload"]
227    fn get_room_game_obj_aux_send_level_to_self(self) -> f32 {
228        unsafe {
229            let __receiver = <AkRoomParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
230            ::unity::il2cpp_call!((::unity::module_base()+0x2f35920usize)as*mut u8,f32;
231(AkRoomParams)__receiver)
232        }
233    }
234    #[doc = "`set_RoomGameObj_KeepRegistered(bool)` overload"]
235    fn set_room_game_obj_keep_registered(self, value: impl ::core::convert::Into<bool>) -> () {
236        unsafe {
237            let __receiver = <AkRoomParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
238            ::unity::il2cpp_call!((::unity::module_base()+0x2f32dd0usize)as*mut u8,();
239(AkRoomParams)__receiver,(bool)::core::convert::Into::into(value))
240        }
241    }
242    #[doc = "`get_RoomGameObj_KeepRegistered()` overload"]
243    fn get_room_game_obj_keep_registered(self) -> bool {
244        unsafe {
245            let __receiver = <AkRoomParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
246            ::unity::il2cpp_call!((::unity::module_base()+0x2f35990usize)as*mut u8,bool;
247(AkRoomParams)__receiver)
248        }
249    }
250}
251
252#[cfg(feature = "root-akroomparams")]
253impl<__T: IAkRoomParams> IAkRoomParamsMethods for __T {}
254
255#[cfg(feature = "root-akroomparams")]
256impl AkRoomParams {
257    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
258        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
259    }
260
261    pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
262        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
263    }
264
265    pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
266        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
267    }
268
269    pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
270        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
271    }
272
273    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
274        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
275    }
276
277    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
278        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
279    }
280
281    pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
283    }
284
285    pub fn set_up_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
287    }
288
289    pub fn get_up_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
291    }
292
293    pub fn set_front_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
295    }
296
297    pub fn get_front_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
299    }
300
301    pub fn set_reverb_aux_bus_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
303    }
304
305    pub fn get_reverb_aux_bus_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
307    }
308
309    pub fn set_reverb_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
311    }
312
313    pub fn get_reverb_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
315    }
316
317    pub fn set_wall_occlusion_method_info() -> &'static ::unity::il2cpp::MethodInfo {
318        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
319    }
320
321    pub fn get_wall_occlusion_method_info() -> &'static ::unity::il2cpp::MethodInfo {
322        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
323    }
324
325    pub fn set_room_game_obj_aux_send_level_to_self_method_info() -> &'static ::unity::il2cpp::MethodInfo {
326        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
327    }
328
329    pub fn get_room_game_obj_aux_send_level_to_self_method_info() -> &'static ::unity::il2cpp::MethodInfo {
330        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
331    }
332
333    pub fn set_room_game_obj_keep_registered_method_info() -> &'static ::unity::il2cpp::MethodInfo {
334        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
335    }
336
337    pub fn get_room_game_obj_keep_registered_method_info() -> &'static ::unity::il2cpp::MethodInfo {
338        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
339    }
340}
341
342#[cfg(feature = "root-akroomparams")]
343impl AkRoomParams {
344    #[doc = "Direct (non-virtual) call to `AkRoomParams`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
345    pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
346        let __mi = Self::set_c_ptr_method_info();
347        let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
348        __inner(this.into(), c_ptr, ::core::option::Option::None)
349    }
350
351    #[doc = "Direct (non-virtual) call to `AkRoomParams`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
352    pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
353        let __mi = Self::finalize_method_info();
354        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
355        __inner(this.into(), ::core::option::Option::None)
356    }
357
358    #[doc = "Direct (non-virtual) call to `AkRoomParams`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
359    pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
360        let __mi = Self::dispose_method_info();
361        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
362        __inner(this.into(), ::core::option::Option::None)
363    }
364}
365
366#[cfg(feature = "root-akroomparams")]
367impl AkRoomParams {
368    #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
369    pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
370        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
371            panic!(
372                "{}
373::{}
374 failed to instantiate",
375                ::core::stringify!(AkRoomParams),
376                ::core::stringify!(new),
377            )
378        });
379        <Self as IAkRoomParamsMethods>::ctor(this, c_ptr, c_memory_own);
380        this
381    }
382
383    #[doc = "`.ctor()` — no args"]
384    pub fn new_2() -> Self {
385        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
386            panic!(
387                "{}
388::{}
389 failed to instantiate",
390                ::core::stringify!(AkRoomParams),
391                ::core::stringify!(new_2),
392            )
393        });
394        <Self as IAkRoomParamsMethods>::ctor_2(this);
395        this
396    }
397
398    #[doc = "`.ctor(crate::root::akroomparams::AkRoomParams)` — overload selector"]
399    pub fn new_3(in_rhs: crate::root::akroomparams::AkRoomParams) -> Self {
400        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
401            panic!(
402                "{}
403::{}
404 failed to instantiate",
405                ::core::stringify!(AkRoomParams),
406                ::core::stringify!(new_3),
407            )
408        });
409        <Self as IAkRoomParamsMethods>::ctor_3(this, in_rhs);
410        this
411    }
412}
413
414#[cfg(feature = "root-akroomparams")]
415#[doc(hidden)]
416pub mod prelude {
417    pub use super::{AkRoomParams, IAkRoomParams, IAkRoomParamsMethods};
418    pub use crate::system::object::IObject;
419    #[cfg(feature = "system-object")]
420    pub use crate::system::object::IObjectMethods;
421}