Skip to main content

engage/generated/root/
aksegmentinfo.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-aksegmentinfo-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/aksegmentinfo/AkSegmentInfo.md"))]
11    #[::unity::class(namespace = "", name = "AkSegmentInfo")]
12    #[parent(crate::system::object::Object)]
13    pub struct AkSegmentInfo {
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-aksegmentinfo-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-aksegmentinfo")]
27impl AkSegmentInfo {
28    #[doc = "`getCPtr(crate::root::aksegmentinfo::AkSegmentInfo)` overload"]
29    pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::aksegmentinfo::AkSegmentInfo>) -> ::unity::IntPtr {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x1d03a50usize)as*mut u8, ::unity::IntPtr;
32(crate::root::aksegmentinfo::AkSegmentInfo)::core::convert::Into::into(obj))
33        }
34    }
35}
36
37#[cfg(feature = "root-aksegmentinfo")]
38pub trait IAkSegmentInfoMethods: IAkSegmentInfo {
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 = <AkSegmentInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            ::unity::il2cpp_call!((::unity::module_base()+0x1d03a10usize)as*mut u8,();
44(AkSegmentInfo)__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 = <AkSegmentInfo 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                        <AkSegmentInfo as ::unity::ClassIdentity>::NAME,
63                        "setCPtr",
64                    )
65                });
66                let __inner: extern "C" fn(AkSegmentInfo, ::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 = <AkSegmentInfo 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                        <AkSegmentInfo as ::unity::ClassIdentity>::NAME,
88                        "Finalize",
89                    )
90                });
91                let __inner: extern "C" fn(AkSegmentInfo, ::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 = <AkSegmentInfo 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                        <AkSegmentInfo as ::unity::ClassIdentity>::NAME,
113                        "Dispose",
114                    )
115                });
116                let __inner: extern "C" fn(AkSegmentInfo, ::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 = "`set_iCurrentPosition(i32)` overload"]
123    fn set_i_current_position(self, value: impl ::core::convert::Into<i32>) -> () {
124        unsafe {
125            let __receiver = <AkSegmentInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126            ::unity::il2cpp_call!((::unity::module_base()+0x1d03ce0usize)as*mut u8,();
127(AkSegmentInfo)__receiver,(i32)::core::convert::Into::into(value))
128        }
129    }
130    #[doc = "`get_iCurrentPosition()` overload"]
131    fn get_i_current_position(self) -> i32 {
132        unsafe {
133            let __receiver = <AkSegmentInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134            ::unity::il2cpp_call!((::unity::module_base()+0x1d03d70usize)as*mut u8,i32;
135(AkSegmentInfo)__receiver)
136        }
137    }
138    #[doc = "`set_iPreEntryDuration(i32)` overload"]
139    fn set_i_pre_entry_duration(self, value: impl ::core::convert::Into<i32>) -> () {
140        unsafe {
141            let __receiver = <AkSegmentInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142            ::unity::il2cpp_call!((::unity::module_base()+0x1d03df0usize)as*mut u8,();
143(AkSegmentInfo)__receiver,(i32)::core::convert::Into::into(value))
144        }
145    }
146    #[doc = "`get_iPreEntryDuration()` overload"]
147    fn get_i_pre_entry_duration(self) -> i32 {
148        unsafe {
149            let __receiver = <AkSegmentInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150            ::unity::il2cpp_call!((::unity::module_base()+0x1d03e80usize)as*mut u8,i32;
151(AkSegmentInfo)__receiver)
152        }
153    }
154    #[doc = "`set_iActiveDuration(i32)` overload"]
155    fn set_i_active_duration(self, value: impl ::core::convert::Into<i32>) -> () {
156        unsafe {
157            let __receiver = <AkSegmentInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
158            ::unity::il2cpp_call!((::unity::module_base()+0x1d03f00usize)as*mut u8,();
159(AkSegmentInfo)__receiver,(i32)::core::convert::Into::into(value))
160        }
161    }
162    #[doc = "`get_iActiveDuration()` overload"]
163    fn get_i_active_duration(self) -> i32 {
164        unsafe {
165            let __receiver = <AkSegmentInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
166            ::unity::il2cpp_call!((::unity::module_base()+0x1d03f90usize)as*mut u8,i32;
167(AkSegmentInfo)__receiver)
168        }
169    }
170    #[doc = "`set_iPostExitDuration(i32)` overload"]
171    fn set_i_post_exit_duration(self, value: impl ::core::convert::Into<i32>) -> () {
172        unsafe {
173            let __receiver = <AkSegmentInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
174            ::unity::il2cpp_call!((::unity::module_base()+0x1d04010usize)as*mut u8,();
175(AkSegmentInfo)__receiver,(i32)::core::convert::Into::into(value))
176        }
177    }
178    #[doc = "`get_iPostExitDuration()` overload"]
179    fn get_i_post_exit_duration(self) -> i32 {
180        unsafe {
181            let __receiver = <AkSegmentInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
182            ::unity::il2cpp_call!((::unity::module_base()+0x1d040a0usize)as*mut u8,i32;
183(AkSegmentInfo)__receiver)
184        }
185    }
186    #[doc = "`set_iRemainingLookAheadTime(i32)` overload"]
187    fn set_i_remaining_look_ahead_time(self, value: impl ::core::convert::Into<i32>) -> () {
188        unsafe {
189            let __receiver = <AkSegmentInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
190            ::unity::il2cpp_call!((::unity::module_base()+0x1d04120usize)as*mut u8,();
191(AkSegmentInfo)__receiver,(i32)::core::convert::Into::into(value))
192        }
193    }
194    #[doc = "`get_iRemainingLookAheadTime()` overload"]
195    fn get_i_remaining_look_ahead_time(self) -> i32 {
196        unsafe {
197            let __receiver = <AkSegmentInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
198            ::unity::il2cpp_call!((::unity::module_base()+0x1d041b0usize)as*mut u8,i32;
199(AkSegmentInfo)__receiver)
200        }
201    }
202    #[doc = "`set_fBeatDuration(f32)` overload"]
203    fn set_f_beat_duration(self, value: impl ::core::convert::Into<f32>) -> () {
204        unsafe {
205            let __receiver = <AkSegmentInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
206            ::unity::il2cpp_call!((::unity::module_base()+0x1d04230usize)as*mut u8,();
207(AkSegmentInfo)__receiver,(f32)::core::convert::Into::into(value))
208        }
209    }
210    #[doc = "`get_fBeatDuration()` overload"]
211    fn get_f_beat_duration(self) -> f32 {
212        unsafe {
213            let __receiver = <AkSegmentInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
214            ::unity::il2cpp_call!((::unity::module_base()+0x1d042c0usize)as*mut u8,f32;
215(AkSegmentInfo)__receiver)
216        }
217    }
218    #[doc = "`set_fBarDuration(f32)` overload"]
219    fn set_f_bar_duration(self, value: impl ::core::convert::Into<f32>) -> () {
220        unsafe {
221            let __receiver = <AkSegmentInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
222            ::unity::il2cpp_call!((::unity::module_base()+0x1d04340usize)as*mut u8,();
223(AkSegmentInfo)__receiver,(f32)::core::convert::Into::into(value))
224        }
225    }
226    #[doc = "`get_fBarDuration()` overload"]
227    fn get_f_bar_duration(self) -> f32 {
228        unsafe {
229            let __receiver = <AkSegmentInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
230            ::unity::il2cpp_call!((::unity::module_base()+0x1d043d0usize)as*mut u8,f32;
231(AkSegmentInfo)__receiver)
232        }
233    }
234    #[doc = "`set_fGridDuration(f32)` overload"]
235    fn set_f_grid_duration(self, value: impl ::core::convert::Into<f32>) -> () {
236        unsafe {
237            let __receiver = <AkSegmentInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
238            ::unity::il2cpp_call!((::unity::module_base()+0x1d04450usize)as*mut u8,();
239(AkSegmentInfo)__receiver,(f32)::core::convert::Into::into(value))
240        }
241    }
242    #[doc = "`get_fGridDuration()` overload"]
243    fn get_f_grid_duration(self) -> f32 {
244        unsafe {
245            let __receiver = <AkSegmentInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
246            ::unity::il2cpp_call!((::unity::module_base()+0x1d044e0usize)as*mut u8,f32;
247(AkSegmentInfo)__receiver)
248        }
249    }
250    #[doc = "`set_fGridOffset(f32)` overload"]
251    fn set_f_grid_offset(self, value: impl ::core::convert::Into<f32>) -> () {
252        unsafe {
253            let __receiver = <AkSegmentInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
254            ::unity::il2cpp_call!((::unity::module_base()+0x1d04560usize)as*mut u8,();
255(AkSegmentInfo)__receiver,(f32)::core::convert::Into::into(value))
256        }
257    }
258    #[doc = "`get_fGridOffset()` overload"]
259    fn get_f_grid_offset(self) -> f32 {
260        unsafe {
261            let __receiver = <AkSegmentInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
262            ::unity::il2cpp_call!((::unity::module_base()+0x1d045f0usize)as*mut u8,f32;
263(AkSegmentInfo)__receiver)
264        }
265    }
266    #[doc = "`.ctor()` overload"]
267    fn ctor_2(self) -> () {
268        unsafe {
269            let __receiver = <AkSegmentInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
270            ::unity::il2cpp_call!((::unity::module_base()+0x1d04670usize)as*mut u8,();
271(AkSegmentInfo)__receiver)
272        }
273    }
274}
275
276#[cfg(feature = "root-aksegmentinfo")]
277impl<__T: IAkSegmentInfo> IAkSegmentInfoMethods for __T {}
278
279#[cfg(feature = "root-aksegmentinfo")]
280impl AkSegmentInfo {
281    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
283    }
284
285    pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
287    }
288
289    pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
291    }
292
293    pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
295    }
296
297    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
299    }
300
301    pub fn set_i_current_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
303    }
304
305    pub fn get_i_current_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
307    }
308
309    pub fn set_i_pre_entry_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
311    }
312
313    pub fn get_i_pre_entry_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
315    }
316
317    pub fn set_i_active_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
318        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
319    }
320
321    pub fn get_i_active_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
322        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
323    }
324
325    pub fn set_i_post_exit_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
326        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
327    }
328
329    pub fn get_i_post_exit_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
330        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
331    }
332
333    pub fn set_i_remaining_look_ahead_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
334        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
335    }
336
337    pub fn get_i_remaining_look_ahead_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
338        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
339    }
340
341    pub fn set_f_beat_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
342        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
343    }
344
345    pub fn get_f_beat_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
346        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
347    }
348
349    pub fn set_f_bar_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
350        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
351    }
352
353    pub fn get_f_bar_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
354        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
355    }
356
357    pub fn set_f_grid_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
358        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
359    }
360
361    pub fn get_f_grid_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
362        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
363    }
364
365    pub fn set_f_grid_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
366        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
367    }
368
369    pub fn get_f_grid_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
370        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
371    }
372
373    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
374        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
375    }
376}
377
378#[cfg(feature = "root-aksegmentinfo")]
379impl AkSegmentInfo {
380    #[doc = "Direct (non-virtual) call to `AkSegmentInfo`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
381    pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
382        let __mi = Self::set_c_ptr_method_info();
383        let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
384        __inner(this.into(), c_ptr, ::core::option::Option::None)
385    }
386
387    #[doc = "Direct (non-virtual) call to `AkSegmentInfo`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
388    pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
389        let __mi = Self::finalize_method_info();
390        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
391        __inner(this.into(), ::core::option::Option::None)
392    }
393
394    #[doc = "Direct (non-virtual) call to `AkSegmentInfo`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
395    pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
396        let __mi = Self::dispose_method_info();
397        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
398        __inner(this.into(), ::core::option::Option::None)
399    }
400}
401
402#[cfg(feature = "root-aksegmentinfo")]
403impl AkSegmentInfo {
404    #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
405    pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
406        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
407            panic!(
408                "{}
409::{}
410 failed to instantiate",
411                ::core::stringify!(AkSegmentInfo),
412                ::core::stringify!(new),
413            )
414        });
415        <Self as IAkSegmentInfoMethods>::ctor(this, c_ptr, c_memory_own);
416        this
417    }
418
419    #[doc = "`.ctor()` — no args"]
420    pub fn new_2() -> Self {
421        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
422            panic!(
423                "{}
424::{}
425 failed to instantiate",
426                ::core::stringify!(AkSegmentInfo),
427                ::core::stringify!(new_2),
428            )
429        });
430        <Self as IAkSegmentInfoMethods>::ctor_2(this);
431        this
432    }
433}
434
435#[cfg(feature = "root-aksegmentinfo")]
436#[doc(hidden)]
437pub mod prelude {
438    pub use super::{AkSegmentInfo, IAkSegmentInfo, IAkSegmentInfoMethods};
439    pub use crate::system::object::IObject;
440    #[cfg(feature = "system-object")]
441    pub use crate::system::object::IObjectMethods;
442}