Skip to main content

engage/generated/root/
akbankcallbackinfo.rs

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