Skip to main content

engage/generated/root/
akmarkercallbackinfo.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-akmarkercallbackinfo-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        root::{
10            akcallbackinfo::{AkCallbackInfo, IAkCallbackInfo},
11            akeventcallbackinfo::{AkEventCallbackInfo, IAkEventCallbackInfo},
12        },
13        system::object::{IObject, Object},
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/akmarkercallbackinfo/AkMarkerCallbackInfo.md"))]
17    #[::unity::class(namespace = "", name = "AkMarkerCallbackInfo")]
18    #[parent(crate::root::akeventcallbackinfo::AkEventCallbackInfo)]
19    pub struct AkMarkerCallbackInfo {
20        #[offset(40)]
21        #[rename(name = "swigCPtr")]
22        pub swig_c_ptr: ::unity::IntPtr,
23    }
24}
25
26#[cfg(feature = "root-akmarkercallbackinfo-types")]
27pub use __types::*;
28
29#[cfg(feature = "root-akmarkercallbackinfo")]
30impl AkMarkerCallbackInfo {
31    #[doc = "`getCPtr(crate::root::akmarkercallbackinfo::AkMarkerCallbackInfo)` overload"]
32    pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::akmarkercallbackinfo::AkMarkerCallbackInfo>) -> ::unity::IntPtr {
33        unsafe {
34            ::unity::il2cpp_call!((::unity::module_base()+0x2f26730usize)as*mut u8, ::unity::IntPtr;
35(crate::root::akmarkercallbackinfo::AkMarkerCallbackInfo)::core::convert::Into::into(obj))
36        }
37    }
38}
39
40#[cfg(feature = "root-akmarkercallbackinfo")]
41pub trait IAkMarkerCallbackInfoMethods: IAkMarkerCallbackInfo {
42    #[doc = "`.ctor(::unity::IntPtr, bool)` overload"]
43    fn ctor(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>, c_memory_own: impl ::core::convert::Into<bool>) -> () {
44        unsafe {
45            let __receiver = <AkMarkerCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46            ::unity::il2cpp_call!((::unity::module_base()+0x2f26650usize)as*mut u8,();
47(AkMarkerCallbackInfo)__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 = <AkMarkerCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54            {
55                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
56                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
57                    panic!(
58                        "unity: virtual slot {}
59 out of range (vtable len {}
60) on the runtime class behind {}
61 (method `{}
62`)",
63                        5usize,
64                        __vt.len(),
65                        <AkMarkerCallbackInfo as ::unity::ClassIdentity>::NAME,
66                        "setCPtr",
67                    )
68                });
69                let __inner: extern "C" fn(AkMarkerCallbackInfo, ::unity::IntPtr, ::unity::OptionalMethod) -> () =
70                    ::core::mem::transmute(__vi.method_ptr);
71                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
72                __inner(__receiver, ::core::convert::Into::into(c_ptr), __mi)
73            }
74        }
75    }
76    #[doc = "`Finalize()` overload"]
77    fn finalize(self) -> () {
78        unsafe {
79            let __receiver = <AkMarkerCallbackInfo 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                        <AkMarkerCallbackInfo as ::unity::ClassIdentity>::NAME,
92                        "Finalize",
93                    )
94                });
95                let __inner: extern "C" fn(AkMarkerCallbackInfo, ::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 = <AkMarkerCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
105            {
106                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
107                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
108                    panic!(
109                        "unity: virtual slot {}
110 out of range (vtable len {}
111) on the runtime class behind {}
112 (method `{}
113`)",
114                        6usize,
115                        __vt.len(),
116                        <AkMarkerCallbackInfo as ::unity::ClassIdentity>::NAME,
117                        "Dispose",
118                    )
119                });
120                let __inner: extern "C" fn(AkMarkerCallbackInfo, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
121                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
122                __inner(__receiver, __mi)
123            }
124        }
125    }
126    #[doc = "`get_uIdentifier()` overload"]
127    fn get_u_identifier(self) -> u32 {
128        unsafe {
129            let __receiver = <AkMarkerCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
130            ::unity::il2cpp_call!((::unity::module_base()+0x2f26af0usize)as*mut u8,u32;
131(AkMarkerCallbackInfo)__receiver)
132        }
133    }
134    #[doc = "`get_uPosition()` overload"]
135    fn get_u_position(self) -> u32 {
136        unsafe {
137            let __receiver = <AkMarkerCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
138            ::unity::il2cpp_call!((::unity::module_base()+0x2f26b60usize)as*mut u8,u32;
139(AkMarkerCallbackInfo)__receiver)
140        }
141    }
142    #[doc = "`get_strLabel()` overload"]
143    fn get_str_label(self) -> ::unity::Il2CppString {
144        unsafe {
145            let __receiver = <AkMarkerCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
146            ::unity::il2cpp_call!((::unity::module_base()+0x2f26bd0usize)as*mut u8, ::unity::Il2CppString;
147(AkMarkerCallbackInfo)__receiver)
148        }
149    }
150    #[doc = "`.ctor()` overload"]
151    fn ctor_2(self) -> () {
152        unsafe {
153            let __receiver = <AkMarkerCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
154            ::unity::il2cpp_call!((::unity::module_base()+0x2f26c80usize)as*mut u8,();
155(AkMarkerCallbackInfo)__receiver)
156        }
157    }
158}
159
160#[cfg(feature = "root-akmarkercallbackinfo")]
161impl<__T: IAkMarkerCallbackInfo> IAkMarkerCallbackInfoMethods for __T {}
162
163#[cfg(feature = "root-akmarkercallbackinfo")]
164impl AkMarkerCallbackInfo {
165    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
167    }
168
169    pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
171    }
172
173    pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
175    }
176
177    pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
179    }
180
181    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
183    }
184
185    pub fn get_u_identifier_method_info() -> &'static ::unity::il2cpp::MethodInfo {
186        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
187    }
188
189    pub fn get_u_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
191    }
192
193    pub fn get_str_label_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
195    }
196
197    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
199    }
200}
201
202#[cfg(feature = "root-akmarkercallbackinfo")]
203impl AkMarkerCallbackInfo {
204    #[doc = "Direct (non-virtual) call to `AkMarkerCallbackInfo`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
205    pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
206        let __mi = Self::set_c_ptr_method_info();
207        let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
208        __inner(this.into(), c_ptr, ::core::option::Option::None)
209    }
210
211    #[doc = "Direct (non-virtual) call to `AkMarkerCallbackInfo`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
212    pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
213        let __mi = Self::finalize_method_info();
214        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
215        __inner(this.into(), ::core::option::Option::None)
216    }
217
218    #[doc = "Direct (non-virtual) call to `AkMarkerCallbackInfo`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
219    pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
220        let __mi = Self::dispose_method_info();
221        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
222        __inner(this.into(), ::core::option::Option::None)
223    }
224}
225
226#[cfg(feature = "root-akmarkercallbackinfo")]
227impl AkMarkerCallbackInfo {
228    #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
229    pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
230        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
231            panic!(
232                "{}
233::{}
234 failed to instantiate",
235                ::core::stringify!(AkMarkerCallbackInfo),
236                ::core::stringify!(new),
237            )
238        });
239        <Self as IAkMarkerCallbackInfoMethods>::ctor(this, c_ptr, c_memory_own);
240        this
241    }
242
243    #[doc = "`.ctor()` — no args"]
244    pub fn new_2() -> Self {
245        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
246            panic!(
247                "{}
248::{}
249 failed to instantiate",
250                ::core::stringify!(AkMarkerCallbackInfo),
251                ::core::stringify!(new_2),
252            )
253        });
254        <Self as IAkMarkerCallbackInfoMethods>::ctor_2(this);
255        this
256    }
257}
258
259#[cfg(feature = "root-akmarkercallbackinfo")]
260#[doc(hidden)]
261pub mod prelude {
262    pub use super::{AkMarkerCallbackInfo, IAkMarkerCallbackInfo, IAkMarkerCallbackInfoMethods};
263    #[cfg(feature = "root-akcallbackinfo")]
264    pub use crate::root::akcallbackinfo::IAkCallbackInfoMethods;
265    #[cfg(feature = "root-akeventcallbackinfo")]
266    pub use crate::root::akeventcallbackinfo::IAkEventCallbackInfoMethods;
267    #[cfg(feature = "system-object")]
268    pub use crate::system::object::IObjectMethods;
269    pub use crate::{
270        root::{akcallbackinfo::IAkCallbackInfo, akeventcallbackinfo::IAkEventCallbackInfo},
271        system::object::IObject,
272    };
273}