Skip to main content

engage/generated/root/
akaudiosourcechangecallbackinfo.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-akaudiosourcechangecallbackinfo-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/akaudiosourcechangecallbackinfo/AkAudioSourceChangeCallbackInfo.md"))]
11    #[::unity::class(namespace = "", name = "AkAudioSourceChangeCallbackInfo")]
12    #[parent(crate::system::object::Object)]
13    pub struct AkAudioSourceChangeCallbackInfo {
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-akaudiosourcechangecallbackinfo-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-akaudiosourcechangecallbackinfo")]
27impl AkAudioSourceChangeCallbackInfo {
28    #[doc = "`getCPtr(crate::root::akaudiosourcechangecallbackinfo::AkAudioSourceChangeCallbackInfo)` overload"]
29    pub fn get_c_ptr(
30        obj: impl ::core::convert::Into<crate::root::akaudiosourcechangecallbackinfo::AkAudioSourceChangeCallbackInfo>,
31    ) -> ::unity::IntPtr {
32        unsafe {
33            ::unity::il2cpp_call!((::unity::module_base()+0x2bd0510usize)as*mut u8, ::unity::IntPtr;
34(crate::root::akaudiosourcechangecallbackinfo::AkAudioSourceChangeCallbackInfo)::core::convert::Into::into(obj))
35        }
36    }
37}
38
39#[cfg(feature = "root-akaudiosourcechangecallbackinfo")]
40pub trait IAkAudioSourceChangeCallbackInfoMethods: IAkAudioSourceChangeCallbackInfo {
41    #[doc = "`.ctor(::unity::IntPtr, bool)` overload"]
42    fn ctor(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>, c_memory_own: impl ::core::convert::Into<bool>) -> () {
43        unsafe {
44            let __receiver =
45                <AkAudioSourceChangeCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46            ::unity::il2cpp_call!((::unity::module_base()+0x2bd04d0usize)as*mut u8,();
47(AkAudioSourceChangeCallbackInfo)__receiver,(::unity::IntPtr)::core::convert::Into::into(c_ptr),(bool)::core::convert::Into::into(c_memory_own))
48        }
49    }
50    #[doc = "`setCPtr(::unity::IntPtr)` overload"]
51    fn set_c_ptr(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
52        unsafe {
53            let __receiver =
54                <AkAudioSourceChangeCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
55            {
56                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
57                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
58                    panic!(
59                        "unity: virtual slot {}
60 out of range (vtable len {}
61) on the runtime class behind {}
62 (method `{}
63`)",
64                        5usize,
65                        __vt.len(),
66                        <AkAudioSourceChangeCallbackInfo as ::unity::ClassIdentity>::NAME,
67                        "setCPtr",
68                    )
69                });
70                let __inner: extern "C" fn(AkAudioSourceChangeCallbackInfo, ::unity::IntPtr, ::unity::OptionalMethod) -> () =
71                    ::core::mem::transmute(__vi.method_ptr);
72                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
73                __inner(__receiver, ::core::convert::Into::into(c_ptr), __mi)
74            }
75        }
76    }
77    #[doc = "`Finalize()` overload"]
78    fn finalize(self) -> () {
79        unsafe {
80            let __receiver =
81                <AkAudioSourceChangeCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
82            {
83                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
84                let __vi = *__vt.get(1usize).unwrap_or_else(|| {
85                    panic!(
86                        "unity: virtual slot {}
87 out of range (vtable len {}
88) on the runtime class behind {}
89 (method `{}
90`)",
91                        1usize,
92                        __vt.len(),
93                        <AkAudioSourceChangeCallbackInfo as ::unity::ClassIdentity>::NAME,
94                        "Finalize",
95                    )
96                });
97                let __inner: extern "C" fn(AkAudioSourceChangeCallbackInfo, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
98                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
99                __inner(__receiver, __mi)
100            }
101        }
102    }
103    #[doc = "`Dispose()` overload"]
104    fn dispose(self) -> () {
105        unsafe {
106            let __receiver =
107                <AkAudioSourceChangeCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108            {
109                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
110                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
111                    panic!(
112                        "unity: virtual slot {}
113 out of range (vtable len {}
114) on the runtime class behind {}
115 (method `{}
116`)",
117                        6usize,
118                        __vt.len(),
119                        <AkAudioSourceChangeCallbackInfo as ::unity::ClassIdentity>::NAME,
120                        "Dispose",
121                    )
122                });
123                let __inner: extern "C" fn(AkAudioSourceChangeCallbackInfo, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
124                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
125                __inner(__receiver, __mi)
126            }
127        }
128    }
129    #[doc = "`get_bOtherAudioPlaying()` overload"]
130    fn get_b_other_audio_playing(self) -> bool {
131        unsafe {
132            let __receiver =
133                <AkAudioSourceChangeCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134            ::unity::il2cpp_call!((::unity::module_base()+0x2bd07a0usize)as*mut u8,bool;
135(AkAudioSourceChangeCallbackInfo)__receiver)
136        }
137    }
138    #[doc = "`.ctor()` overload"]
139    fn ctor_2(self) -> () {
140        unsafe {
141            let __receiver =
142                <AkAudioSourceChangeCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143            ::unity::il2cpp_call!((::unity::module_base()+0x2bd0810usize)as*mut u8,();
144(AkAudioSourceChangeCallbackInfo)__receiver)
145        }
146    }
147}
148
149#[cfg(feature = "root-akaudiosourcechangecallbackinfo")]
150impl<__T: IAkAudioSourceChangeCallbackInfo> IAkAudioSourceChangeCallbackInfoMethods for __T {}
151
152#[cfg(feature = "root-akaudiosourcechangecallbackinfo")]
153impl AkAudioSourceChangeCallbackInfo {
154    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
156    }
157
158    pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
160    }
161
162    pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
164    }
165
166    pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
168    }
169
170    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
171        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
172    }
173
174    pub fn get_b_other_audio_playing_method_info() -> &'static ::unity::il2cpp::MethodInfo {
175        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
176    }
177
178    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
179        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
180    }
181}
182
183#[cfg(feature = "root-akaudiosourcechangecallbackinfo")]
184impl AkAudioSourceChangeCallbackInfo {
185    #[doc = "Direct (non-virtual) call to `AkAudioSourceChangeCallbackInfo`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
186    pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
187        let __mi = Self::set_c_ptr_method_info();
188        let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
189        __inner(this.into(), c_ptr, ::core::option::Option::None)
190    }
191
192    #[doc = "Direct (non-virtual) call to `AkAudioSourceChangeCallbackInfo`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
193    pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
194        let __mi = Self::finalize_method_info();
195        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
196        __inner(this.into(), ::core::option::Option::None)
197    }
198
199    #[doc = "Direct (non-virtual) call to `AkAudioSourceChangeCallbackInfo`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
200    pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
201        let __mi = Self::dispose_method_info();
202        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
203        __inner(this.into(), ::core::option::Option::None)
204    }
205}
206
207#[cfg(feature = "root-akaudiosourcechangecallbackinfo")]
208impl AkAudioSourceChangeCallbackInfo {
209    #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
210    pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
211        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
212            panic!(
213                "{}
214::{}
215 failed to instantiate",
216                ::core::stringify!(AkAudioSourceChangeCallbackInfo),
217                ::core::stringify!(new),
218            )
219        });
220        <Self as IAkAudioSourceChangeCallbackInfoMethods>::ctor(this, c_ptr, c_memory_own);
221        this
222    }
223
224    #[doc = "`.ctor()` — no args"]
225    pub fn new_2() -> Self {
226        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
227            panic!(
228                "{}
229::{}
230 failed to instantiate",
231                ::core::stringify!(AkAudioSourceChangeCallbackInfo),
232                ::core::stringify!(new_2),
233            )
234        });
235        <Self as IAkAudioSourceChangeCallbackInfoMethods>::ctor_2(this);
236        this
237    }
238}
239
240#[cfg(feature = "root-akaudiosourcechangecallbackinfo")]
241#[doc(hidden)]
242pub mod prelude {
243    pub use super::{AkAudioSourceChangeCallbackInfo, IAkAudioSourceChangeCallbackInfo, IAkAudioSourceChangeCallbackInfoMethods};
244    pub use crate::system::object::IObject;
245    #[cfg(feature = "system-object")]
246    pub use crate::system::object::IObjectMethods;
247}