engage/generated/root/
akmonitoringcallbackinfo.rs1#[cfg(feature = "root-akmonitoringcallbackinfo-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/akmonitoringcallbackinfo/AkMonitoringCallbackInfo.md"))]
11 #[::unity::class(namespace = "", name = "AkMonitoringCallbackInfo")]
12 #[parent(crate::system::object::Object)]
13 pub struct AkMonitoringCallbackInfo {
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-akmonitoringcallbackinfo-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-akmonitoringcallbackinfo")]
27impl AkMonitoringCallbackInfo {
28 #[doc = "`getCPtr(crate::root::akmonitoringcallbackinfo::AkMonitoringCallbackInfo)` overload"]
29 pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::akmonitoringcallbackinfo::AkMonitoringCallbackInfo>) -> ::unity::IntPtr {
30 unsafe {
31 ::unity::il2cpp_call!((::unity::module_base()+0x2f27560usize)as*mut u8, ::unity::IntPtr;
32(crate::root::akmonitoringcallbackinfo::AkMonitoringCallbackInfo)::core::convert::Into::into(obj))
33 }
34 }
35}
36
37#[cfg(feature = "root-akmonitoringcallbackinfo")]
38pub trait IAkMonitoringCallbackInfoMethods: IAkMonitoringCallbackInfo {
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 <AkMonitoringCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44 ::unity::il2cpp_call!((::unity::module_base()+0x2f27520usize)as*mut u8,();
45(AkMonitoringCallbackInfo)__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 <AkMonitoringCallbackInfo 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 <AkMonitoringCallbackInfo as ::unity::ClassIdentity>::NAME,
65 "setCPtr",
66 )
67 });
68 let __inner: extern "C" fn(AkMonitoringCallbackInfo, ::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 <AkMonitoringCallbackInfo 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 <AkMonitoringCallbackInfo as ::unity::ClassIdentity>::NAME,
92 "Finalize",
93 )
94 });
95 let __inner: extern "C" fn(AkMonitoringCallbackInfo, ::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 <AkMonitoringCallbackInfo 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 <AkMonitoringCallbackInfo as ::unity::ClassIdentity>::NAME,
118 "Dispose",
119 )
120 });
121 let __inner: extern "C" fn(AkMonitoringCallbackInfo, ::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_errorCode()` overload"]
128 fn get_error_code(self) -> crate::root::akmonitorerrorcode::AkMonitorErrorCode {
129 unsafe {
130 let __receiver =
131 <AkMonitoringCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132 ::unity::il2cpp_call!((::unity::module_base()+0x2f277f0usize)as*mut u8,crate::root::akmonitorerrorcode::AkMonitorErrorCode;
133(AkMonitoringCallbackInfo)__receiver)
134 }
135 }
136 #[doc = "`get_errorLevel()` overload"]
137 fn get_error_level(self) -> crate::root::akmonitorerrorlevel::AkMonitorErrorLevel {
138 unsafe {
139 let __receiver =
140 <AkMonitoringCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141 ::unity::il2cpp_call!((::unity::module_base()+0x2f27860usize)as*mut u8,crate::root::akmonitorerrorlevel::AkMonitorErrorLevel;
142(AkMonitoringCallbackInfo)__receiver)
143 }
144 }
145 #[doc = "`get_playingID()` overload"]
146 fn get_playing_id(self) -> u32 {
147 unsafe {
148 let __receiver =
149 <AkMonitoringCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150 ::unity::il2cpp_call!((::unity::module_base()+0x2f278d0usize)as*mut u8,u32;
151(AkMonitoringCallbackInfo)__receiver)
152 }
153 }
154 #[doc = "`get_gameObjID()` overload"]
155 fn get_game_obj_id(self) -> u64 {
156 unsafe {
157 let __receiver =
158 <AkMonitoringCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159 ::unity::il2cpp_call!((::unity::module_base()+0x2f27940usize)as*mut u8,u64;
160(AkMonitoringCallbackInfo)__receiver)
161 }
162 }
163 #[doc = "`get_message()` overload"]
164 fn get_message(self) -> ::unity::Il2CppString {
165 unsafe {
166 let __receiver =
167 <AkMonitoringCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
168 ::unity::il2cpp_call!((::unity::module_base()+0x2f279b0usize)as*mut u8, ::unity::Il2CppString;
169(AkMonitoringCallbackInfo)__receiver)
170 }
171 }
172 #[doc = "`.ctor()` overload"]
173 fn ctor_2(self) -> () {
174 unsafe {
175 let __receiver =
176 <AkMonitoringCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
177 ::unity::il2cpp_call!((::unity::module_base()+0x2f27a60usize)as*mut u8,();
178(AkMonitoringCallbackInfo)__receiver)
179 }
180 }
181}
182
183#[cfg(feature = "root-akmonitoringcallbackinfo")]
184impl<__T: IAkMonitoringCallbackInfo> IAkMonitoringCallbackInfoMethods for __T {}
185
186#[cfg(feature = "root-akmonitoringcallbackinfo")]
187impl AkMonitoringCallbackInfo {
188 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
190 }
191
192 pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
194 }
195
196 pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
198 }
199
200 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
202 }
203
204 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
206 }
207
208 pub fn get_error_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
210 }
211
212 pub fn get_error_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
213 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
214 }
215
216 pub fn get_playing_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
217 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
218 }
219
220 pub fn get_game_obj_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
221 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
222 }
223
224 pub fn get_message_method_info() -> &'static ::unity::il2cpp::MethodInfo {
225 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
226 }
227
228 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
229 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
230 }
231}
232
233#[cfg(feature = "root-akmonitoringcallbackinfo")]
234impl AkMonitoringCallbackInfo {
235 #[doc = "Direct (non-virtual) call to `AkMonitoringCallbackInfo`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
236 pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
237 let __mi = Self::set_c_ptr_method_info();
238 let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
239 __inner(this.into(), c_ptr, ::core::option::Option::None)
240 }
241
242 #[doc = "Direct (non-virtual) call to `AkMonitoringCallbackInfo`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
243 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
244 let __mi = Self::finalize_method_info();
245 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
246 __inner(this.into(), ::core::option::Option::None)
247 }
248
249 #[doc = "Direct (non-virtual) call to `AkMonitoringCallbackInfo`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
250 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
251 let __mi = Self::dispose_method_info();
252 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
253 __inner(this.into(), ::core::option::Option::None)
254 }
255}
256
257#[cfg(feature = "root-akmonitoringcallbackinfo")]
258impl AkMonitoringCallbackInfo {
259 #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
260 pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
261 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
262 panic!(
263 "{}
264::{}
265 failed to instantiate",
266 ::core::stringify!(AkMonitoringCallbackInfo),
267 ::core::stringify!(new),
268 )
269 });
270 <Self as IAkMonitoringCallbackInfoMethods>::ctor(this, c_ptr, c_memory_own);
271 this
272 }
273
274 #[doc = "`.ctor()` — no args"]
275 pub fn new_2() -> Self {
276 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
277 panic!(
278 "{}
279::{}
280 failed to instantiate",
281 ::core::stringify!(AkMonitoringCallbackInfo),
282 ::core::stringify!(new_2),
283 )
284 });
285 <Self as IAkMonitoringCallbackInfoMethods>::ctor_2(this);
286 this
287 }
288}
289
290#[cfg(feature = "root-akmonitoringcallbackinfo")]
291#[doc(hidden)]
292pub mod prelude {
293 pub use super::{AkMonitoringCallbackInfo, IAkMonitoringCallbackInfo, IAkMonitoringCallbackInfoMethods};
294 pub use crate::system::object::IObject;
295 #[cfg(feature = "system-object")]
296 pub use crate::system::object::IObjectMethods;
297}