Skip to main content

engage/generated/root/
akmusicsynccallbackinfo.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-akmusicsynccallbackinfo-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        root::akcallbackinfo::{AkCallbackInfo, IAkCallbackInfo},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/akmusicsynccallbackinfo/AkMusicSyncCallbackInfo.md"))]
14    #[::unity::class(namespace = "", name = "AkMusicSyncCallbackInfo")]
15    #[parent(crate::root::akcallbackinfo::AkCallbackInfo)]
16    pub struct AkMusicSyncCallbackInfo {
17        #[offset(32)]
18        #[rename(name = "swigCPtr")]
19        pub swig_c_ptr: ::unity::IntPtr,
20    }
21}
22
23#[cfg(feature = "root-akmusicsynccallbackinfo-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-akmusicsynccallbackinfo")]
27impl AkMusicSyncCallbackInfo {
28    #[doc = "`getCPtr(crate::root::akmusicsynccallbackinfo::AkMusicSyncCallbackInfo)` overload"]
29    pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::akmusicsynccallbackinfo::AkMusicSyncCallbackInfo>) -> ::unity::IntPtr {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x2f285b0usize)as*mut u8, ::unity::IntPtr;
32(crate::root::akmusicsynccallbackinfo::AkMusicSyncCallbackInfo)::core::convert::Into::into(obj))
33        }
34    }
35}
36
37#[cfg(feature = "root-akmusicsynccallbackinfo")]
38pub trait IAkMusicSyncCallbackInfoMethods: IAkMusicSyncCallbackInfo {
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 =
43                <AkMusicSyncCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44            ::unity::il2cpp_call!((::unity::module_base()+0x2f28510usize)as*mut u8,();
45(AkMusicSyncCallbackInfo)__receiver,(::unity::IntPtr)::core::convert::Into::into(c_ptr),(bool)::core::convert::Into::into(c_memory_own))
46        }
47    }
48    #[doc = "`setCPtr(::unity::IntPtr)` overload"]
49    fn set_c_ptr(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
50        unsafe {
51            let __receiver =
52                <AkMusicSyncCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
53            {
54                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
55                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
56                    panic!(
57                        "unity: virtual slot {}
58 out of range (vtable len {}
59) on the runtime class behind {}
60 (method `{}
61`)",
62                        5usize,
63                        __vt.len(),
64                        <AkMusicSyncCallbackInfo as ::unity::ClassIdentity>::NAME,
65                        "setCPtr",
66                    )
67                });
68                let __inner: extern "C" fn(AkMusicSyncCallbackInfo, ::unity::IntPtr, ::unity::OptionalMethod) -> () =
69                    ::core::mem::transmute(__vi.method_ptr);
70                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
71                __inner(__receiver, ::core::convert::Into::into(c_ptr), __mi)
72            }
73        }
74    }
75    #[doc = "`Finalize()` overload"]
76    fn finalize(self) -> () {
77        unsafe {
78            let __receiver =
79                <AkMusicSyncCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80            {
81                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
82                let __vi = *__vt.get(1usize).unwrap_or_else(|| {
83                    panic!(
84                        "unity: virtual slot {}
85 out of range (vtable len {}
86) on the runtime class behind {}
87 (method `{}
88`)",
89                        1usize,
90                        __vt.len(),
91                        <AkMusicSyncCallbackInfo as ::unity::ClassIdentity>::NAME,
92                        "Finalize",
93                    )
94                });
95                let __inner: extern "C" fn(AkMusicSyncCallbackInfo, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
96                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
97                __inner(__receiver, __mi)
98            }
99        }
100    }
101    #[doc = "`Dispose()` overload"]
102    fn dispose(self) -> () {
103        unsafe {
104            let __receiver =
105                <AkMusicSyncCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106            {
107                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
108                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
109                    panic!(
110                        "unity: virtual slot {}
111 out of range (vtable len {}
112) on the runtime class behind {}
113 (method `{}
114`)",
115                        6usize,
116                        __vt.len(),
117                        <AkMusicSyncCallbackInfo as ::unity::ClassIdentity>::NAME,
118                        "Dispose",
119                    )
120                });
121                let __inner: extern "C" fn(AkMusicSyncCallbackInfo, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
122                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
123                __inner(__receiver, __mi)
124            }
125        }
126    }
127    #[doc = "`get_playingID()` overload"]
128    fn get_playing_id(self) -> u32 {
129        unsafe {
130            let __receiver =
131                <AkMusicSyncCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132            ::unity::il2cpp_call!((::unity::module_base()+0x2f288a0usize)as*mut u8,u32;
133(AkMusicSyncCallbackInfo)__receiver)
134        }
135    }
136    #[doc = "`get_segmentInfo_iCurrentPosition()` overload"]
137    fn get_segment_info_i_current_position(self) -> i32 {
138        unsafe {
139            let __receiver =
140                <AkMusicSyncCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141            ::unity::il2cpp_call!((::unity::module_base()+0x2f28910usize)as*mut u8,i32;
142(AkMusicSyncCallbackInfo)__receiver)
143        }
144    }
145    #[doc = "`get_segmentInfo_iPreEntryDuration()` overload"]
146    fn get_segment_info_i_pre_entry_duration(self) -> i32 {
147        unsafe {
148            let __receiver =
149                <AkMusicSyncCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150            ::unity::il2cpp_call!((::unity::module_base()+0x2f28980usize)as*mut u8,i32;
151(AkMusicSyncCallbackInfo)__receiver)
152        }
153    }
154    #[doc = "`get_segmentInfo_iActiveDuration()` overload"]
155    fn get_segment_info_i_active_duration(self) -> i32 {
156        unsafe {
157            let __receiver =
158                <AkMusicSyncCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159            ::unity::il2cpp_call!((::unity::module_base()+0x2f289f0usize)as*mut u8,i32;
160(AkMusicSyncCallbackInfo)__receiver)
161        }
162    }
163    #[doc = "`get_segmentInfo_iPostExitDuration()` overload"]
164    fn get_segment_info_i_post_exit_duration(self) -> i32 {
165        unsafe {
166            let __receiver =
167                <AkMusicSyncCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
168            ::unity::il2cpp_call!((::unity::module_base()+0x2f28a60usize)as*mut u8,i32;
169(AkMusicSyncCallbackInfo)__receiver)
170        }
171    }
172    #[doc = "`get_segmentInfo_iRemainingLookAheadTime()` overload"]
173    fn get_segment_info_i_remaining_look_ahead_time(self) -> i32 {
174        unsafe {
175            let __receiver =
176                <AkMusicSyncCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
177            ::unity::il2cpp_call!((::unity::module_base()+0x2f28ad0usize)as*mut u8,i32;
178(AkMusicSyncCallbackInfo)__receiver)
179        }
180    }
181    #[doc = "`get_segmentInfo_fBeatDuration()` overload"]
182    fn get_segment_info_f_beat_duration(self) -> f32 {
183        unsafe {
184            let __receiver =
185                <AkMusicSyncCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
186            ::unity::il2cpp_call!((::unity::module_base()+0x2f28b40usize)as*mut u8,f32;
187(AkMusicSyncCallbackInfo)__receiver)
188        }
189    }
190    #[doc = "`get_segmentInfo_fBarDuration()` overload"]
191    fn get_segment_info_f_bar_duration(self) -> f32 {
192        unsafe {
193            let __receiver =
194                <AkMusicSyncCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
195            ::unity::il2cpp_call!((::unity::module_base()+0x2f28bb0usize)as*mut u8,f32;
196(AkMusicSyncCallbackInfo)__receiver)
197        }
198    }
199    #[doc = "`get_segmentInfo_fGridDuration()` overload"]
200    fn get_segment_info_f_grid_duration(self) -> f32 {
201        unsafe {
202            let __receiver =
203                <AkMusicSyncCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
204            ::unity::il2cpp_call!((::unity::module_base()+0x2f28c20usize)as*mut u8,f32;
205(AkMusicSyncCallbackInfo)__receiver)
206        }
207    }
208    #[doc = "`get_segmentInfo_fGridOffset()` overload"]
209    fn get_segment_info_f_grid_offset(self) -> f32 {
210        unsafe {
211            let __receiver =
212                <AkMusicSyncCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
213            ::unity::il2cpp_call!((::unity::module_base()+0x2f28c90usize)as*mut u8,f32;
214(AkMusicSyncCallbackInfo)__receiver)
215        }
216    }
217    #[doc = "`get_musicSyncType()` overload"]
218    fn get_music_sync_type(self) -> crate::root::akcallbacktype::AkCallbackType {
219        unsafe {
220            let __receiver =
221                <AkMusicSyncCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
222            ::unity::il2cpp_call!((::unity::module_base()+0x2f28d00usize)as*mut u8,crate::root::akcallbacktype::AkCallbackType;
223(AkMusicSyncCallbackInfo)__receiver)
224        }
225    }
226    #[doc = "`get_userCueName()` overload"]
227    fn get_user_cue_name(self) -> ::unity::Il2CppString {
228        unsafe {
229            let __receiver =
230                <AkMusicSyncCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
231            ::unity::il2cpp_call!((::unity::module_base()+0x2f28d70usize)as*mut u8, ::unity::Il2CppString;
232(AkMusicSyncCallbackInfo)__receiver)
233        }
234    }
235    #[doc = "`.ctor()` overload"]
236    fn ctor_2(self) -> () {
237        unsafe {
238            let __receiver =
239                <AkMusicSyncCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
240            ::unity::il2cpp_call!((::unity::module_base()+0x2f28e20usize)as*mut u8,();
241(AkMusicSyncCallbackInfo)__receiver)
242        }
243    }
244}
245
246#[cfg(feature = "root-akmusicsynccallbackinfo")]
247impl<__T: IAkMusicSyncCallbackInfo> IAkMusicSyncCallbackInfoMethods for __T {}
248
249#[cfg(feature = "root-akmusicsynccallbackinfo")]
250impl AkMusicSyncCallbackInfo {
251    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
253    }
254
255    pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
257    }
258
259    pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
261    }
262
263    pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
265    }
266
267    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
269    }
270
271    pub fn get_playing_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
272        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
273    }
274
275    pub fn get_segment_info_i_current_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
276        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
277    }
278
279    pub fn get_segment_info_i_pre_entry_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
280        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
281    }
282
283    pub fn get_segment_info_i_active_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
284        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
285    }
286
287    pub fn get_segment_info_i_post_exit_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
288        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
289    }
290
291    pub fn get_segment_info_i_remaining_look_ahead_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
292        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
293    }
294
295    pub fn get_segment_info_f_beat_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
296        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
297    }
298
299    pub fn get_segment_info_f_bar_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
300        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
301    }
302
303    pub fn get_segment_info_f_grid_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
304        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
305    }
306
307    pub fn get_segment_info_f_grid_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
308        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
309    }
310
311    pub fn get_music_sync_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
312        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
313    }
314
315    pub fn get_user_cue_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
316        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
317    }
318
319    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
320        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
321    }
322}
323
324#[cfg(feature = "root-akmusicsynccallbackinfo")]
325impl AkMusicSyncCallbackInfo {
326    #[doc = "Direct (non-virtual) call to `AkMusicSyncCallbackInfo`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
327    pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
328        let __mi = Self::set_c_ptr_method_info();
329        let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
330        __inner(this.into(), c_ptr, ::core::option::Option::None)
331    }
332
333    #[doc = "Direct (non-virtual) call to `AkMusicSyncCallbackInfo`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
334    pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
335        let __mi = Self::finalize_method_info();
336        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
337        __inner(this.into(), ::core::option::Option::None)
338    }
339
340    #[doc = "Direct (non-virtual) call to `AkMusicSyncCallbackInfo`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
341    pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
342        let __mi = Self::dispose_method_info();
343        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
344        __inner(this.into(), ::core::option::Option::None)
345    }
346}
347
348#[cfg(feature = "root-akmusicsynccallbackinfo")]
349impl AkMusicSyncCallbackInfo {
350    #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
351    pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
352        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
353            panic!(
354                "{}
355::{}
356 failed to instantiate",
357                ::core::stringify!(AkMusicSyncCallbackInfo),
358                ::core::stringify!(new),
359            )
360        });
361        <Self as IAkMusicSyncCallbackInfoMethods>::ctor(this, c_ptr, c_memory_own);
362        this
363    }
364
365    #[doc = "`.ctor()` — no args"]
366    pub fn new_2() -> Self {
367        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
368            panic!(
369                "{}
370::{}
371 failed to instantiate",
372                ::core::stringify!(AkMusicSyncCallbackInfo),
373                ::core::stringify!(new_2),
374            )
375        });
376        <Self as IAkMusicSyncCallbackInfoMethods>::ctor_2(this);
377        this
378    }
379}
380
381#[cfg(feature = "root-akmusicsynccallbackinfo")]
382#[doc(hidden)]
383pub mod prelude {
384    pub use super::{AkMusicSyncCallbackInfo, IAkMusicSyncCallbackInfo, IAkMusicSyncCallbackInfoMethods};
385    #[cfg(feature = "root-akcallbackinfo")]
386    pub use crate::root::akcallbackinfo::IAkCallbackInfoMethods;
387    #[cfg(feature = "system-object")]
388    pub use crate::system::object::IObjectMethods;
389    pub use crate::{root::akcallbackinfo::IAkCallbackInfo, system::object::IObject};
390}