Skip to main content

engage/generated/root/
akcallbackinfo.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-akcallbackinfo-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/akcallbackinfo/AkCallbackInfo.md"))]
11    #[::unity::class(namespace = "", name = "AkCallbackInfo")]
12    #[parent(crate::system::object::Object)]
13    pub struct AkCallbackInfo {
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-akcallbackinfo-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-akcallbackinfo")]
27impl AkCallbackInfo {
28    #[doc = "`getCPtr(crate::root::akcallbackinfo::AkCallbackInfo)` overload"]
29    pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::akcallbackinfo::AkCallbackInfo>) -> ::unity::IntPtr {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x2bd3f40usize)as*mut u8, ::unity::IntPtr;
32(crate::root::akcallbackinfo::AkCallbackInfo)::core::convert::Into::into(obj))
33        }
34    }
35}
36
37#[cfg(feature = "root-akcallbackinfo")]
38pub trait IAkCallbackInfoMethods: IAkCallbackInfo {
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 = <AkCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            ::unity::il2cpp_call!((::unity::module_base()+0x2bd3f00usize)as*mut u8,();
44(AkCallbackInfo)__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 = <AkCallbackInfo 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                        <AkCallbackInfo as ::unity::ClassIdentity>::NAME,
63                        "setCPtr",
64                    )
65                });
66                let __inner: extern "C" fn(AkCallbackInfo, ::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 = <AkCallbackInfo 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                        <AkCallbackInfo as ::unity::ClassIdentity>::NAME,
88                        "Finalize",
89                    )
90                });
91                let __inner: extern "C" fn(AkCallbackInfo, ::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 = <AkCallbackInfo 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                        <AkCallbackInfo as ::unity::ClassIdentity>::NAME,
113                        "Dispose",
114                    )
115                });
116                let __inner: extern "C" fn(AkCallbackInfo, ::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 = "`get_pCookie()` overload"]
123    fn get_p_cookie(self) -> ::unity::IntPtr {
124        unsafe {
125            let __receiver = <AkCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126            ::unity::il2cpp_call!((::unity::module_base()+0x2bd41d0usize)as*mut u8, ::unity::IntPtr;
127(AkCallbackInfo)__receiver)
128        }
129    }
130    #[doc = "`get_gameObjID()` overload"]
131    fn get_game_obj_id(self) -> u64 {
132        unsafe {
133            let __receiver = <AkCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134            ::unity::il2cpp_call!((::unity::module_base()+0x2bd4240usize)as*mut u8,u64;
135(AkCallbackInfo)__receiver)
136        }
137    }
138    #[doc = "`.ctor()` overload"]
139    fn ctor_2(self) -> () {
140        unsafe {
141            let __receiver = <AkCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142            ::unity::il2cpp_call!((::unity::module_base()+0x2bd42b0usize)as*mut u8,();
143(AkCallbackInfo)__receiver)
144        }
145    }
146}
147
148#[cfg(feature = "root-akcallbackinfo")]
149impl<__T: IAkCallbackInfo> IAkCallbackInfoMethods for __T {}
150
151#[cfg(feature = "root-akcallbackinfo")]
152impl AkCallbackInfo {
153    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
155    }
156
157    pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
158        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
159    }
160
161    pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
163    }
164
165    pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
167    }
168
169    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
171    }
172
173    pub fn get_p_cookie_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
175    }
176
177    pub fn get_game_obj_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
179    }
180
181    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
183    }
184}
185
186#[cfg(feature = "root-akcallbackinfo")]
187impl AkCallbackInfo {
188    #[doc = "Direct (non-virtual) call to `AkCallbackInfo`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
189    pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
190        let __mi = Self::set_c_ptr_method_info();
191        let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
192        __inner(this.into(), c_ptr, ::core::option::Option::None)
193    }
194
195    #[doc = "Direct (non-virtual) call to `AkCallbackInfo`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
196    pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
197        let __mi = Self::finalize_method_info();
198        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
199        __inner(this.into(), ::core::option::Option::None)
200    }
201
202    #[doc = "Direct (non-virtual) call to `AkCallbackInfo`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
203    pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
204        let __mi = Self::dispose_method_info();
205        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
206        __inner(this.into(), ::core::option::Option::None)
207    }
208}
209
210#[cfg(feature = "root-akcallbackinfo")]
211impl AkCallbackInfo {
212    #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
213    pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
214        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
215            panic!(
216                "{}
217::{}
218 failed to instantiate",
219                ::core::stringify!(AkCallbackInfo),
220                ::core::stringify!(new),
221            )
222        });
223        <Self as IAkCallbackInfoMethods>::ctor(this, c_ptr, c_memory_own);
224        this
225    }
226
227    #[doc = "`.ctor()` — no args"]
228    pub fn new_2() -> Self {
229        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
230            panic!(
231                "{}
232::{}
233 failed to instantiate",
234                ::core::stringify!(AkCallbackInfo),
235                ::core::stringify!(new_2),
236            )
237        });
238        <Self as IAkCallbackInfoMethods>::ctor_2(this);
239        this
240    }
241}
242
243#[cfg(feature = "root-akcallbackinfo")]
244#[doc(hidden)]
245pub mod prelude {
246    pub use super::{AkCallbackInfo, IAkCallbackInfo, IAkCallbackInfoMethods};
247    pub use crate::system::object::IObject;
248    #[cfg(feature = "system-object")]
249    pub use crate::system::object::IObjectMethods;
250}