engage/generated/root/
aklogger.rs1#[cfg(feature = "root-aklogger-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 delegate::{Delegate, IDelegate},
10 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
11 object::{IObject, Object},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/aklogger/AkLogger.md"))]
15 #[::unity::class(namespace = "", name = "AkLogger")]
16 #[parent(crate::system::object::Object)]
17 pub struct AkLogger {
18 #[static_field]
19 #[rename(name = "ms_Instance")]
20 pub ms_instance: crate::root::aklogger::AkLogger,
21 #[offset(16)]
22 #[rename(name = "errorLoggerDelegate")]
23 pub error_logger_delegate: crate::root::aklogger::AkLogger_ErrorLoggerInteropDelegate,
24 }
25
26 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/aklogger/AkLogger_ErrorLoggerInteropDelegate.md"))]
27 #[::unity::class(namespace = "", name = "AkLogger.ErrorLoggerInteropDelegate")]
28 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
29 pub struct AkLogger_ErrorLoggerInteropDelegate {}
30}
31
32#[cfg(feature = "root-aklogger-types")]
33pub use __types::*;
34
35#[cfg(feature = "root-aklogger")]
36impl AkLogger {
37 #[doc = "`get_Instance()` overload"]
38 pub fn get_instance() -> crate::root::aklogger::AkLogger {
39 unsafe {
40 ::unity::il2cpp_call!((::unity::module_base()+0x2f22ee0usize)as*mut u8,crate::root::aklogger::AkLogger;
41 )
42 }
43 }
44
45 #[doc = "`WwiseInternalLogError(::unity::Il2CppString)` overload"]
46 pub fn wwise_internal_log_error(message: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
47 unsafe {
48 ::unity::il2cpp_call!((::unity::module_base()+0x2f22c90usize)as*mut u8,();
49(::unity::Il2CppString)::core::convert::Into::into(message))
50 }
51 }
52
53 #[doc = "`Message(::unity::Il2CppString)` overload"]
54 pub fn message(message: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
55 unsafe {
56 ::unity::il2cpp_call!((::unity::module_base()+0x2f230b0usize)as*mut u8,();
57(::unity::Il2CppString)::core::convert::Into::into(message))
58 }
59 }
60
61 #[doc = "`Warning(::unity::Il2CppString)` overload"]
62 pub fn warning(message: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
63 unsafe {
64 ::unity::il2cpp_call!((::unity::module_base()+0x2f231a0usize)as*mut u8,();
65(::unity::Il2CppString)::core::convert::Into::into(message))
66 }
67 }
68
69 #[doc = "`Error(::unity::Il2CppString)` overload"]
70 pub fn error(message: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
71 unsafe {
72 ::unity::il2cpp_call!((::unity::module_base()+0x2f23290usize)as*mut u8,();
73(::unity::Il2CppString)::core::convert::Into::into(message))
74 }
75 }
76
77 #[doc = "`.cctor()` overload"]
78 pub fn cctor() -> () {
79 unsafe {
80 ::unity::il2cpp_call!((::unity::module_base()+0x2f23380usize)as*mut u8,();
81 )
82 }
83 }
84}
85
86#[cfg(feature = "root-aklogger")]
87pub trait IAkLoggerMethods: IAkLogger {
88 #[doc = "`.ctor()` overload"]
89 fn ctor(self) -> () {
90 unsafe {
91 let __receiver = <AkLogger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92 ::unity::il2cpp_call!((::unity::module_base()+0x2f22d80usize)as*mut u8,();
93(AkLogger)__receiver)
94 }
95 }
96 #[doc = "`Finalize()` overload"]
97 fn finalize(self) -> () {
98 unsafe {
99 let __receiver = <AkLogger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100 {
101 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
102 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
103 panic!(
104 "unity: virtual slot {}
105 out of range (vtable len {}
106) on the runtime class behind {}
107 (method `{}
108`)",
109 1usize,
110 __vt.len(),
111 <AkLogger as ::unity::ClassIdentity>::NAME,
112 "Finalize",
113 )
114 });
115 let __inner: extern "C" fn(AkLogger, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
116 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
117 __inner(__receiver, __mi)
118 }
119 }
120 }
121 #[doc = "`Init()` overload"]
122 fn init(self) -> () {
123 unsafe {
124 let __receiver = <AkLogger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125 ::unity::il2cpp_call!((::unity::module_base()+0x2f230a0usize)as*mut u8,();
126(AkLogger)__receiver)
127 }
128 }
129}
130
131#[cfg(feature = "root-aklogger")]
132impl<__T: IAkLogger> IAkLoggerMethods for __T {}
133
134#[cfg(feature = "root-aklogger")]
135impl AkLogger {
136 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
137 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
138 }
139
140 pub fn get_instance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
141 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
142 }
143
144 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
145 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
146 }
147
148 pub fn init_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
150 }
151
152 pub fn wwise_internal_log_error_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
154 }
155
156 pub fn message_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
158 }
159
160 pub fn warning_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
162 }
163
164 pub fn error_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
166 }
167
168 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
170 }
171}
172
173#[cfg(feature = "root-aklogger")]
174impl AkLogger {
175 #[doc = "Direct (non-virtual) call to `AkLogger`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
176 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
177 let __mi = Self::finalize_method_info();
178 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
179 __inner(this.into(), ::core::option::Option::None)
180 }
181}
182
183#[cfg(feature = "root-aklogger")]
184impl AkLogger {
185 #[doc = "`.ctor()` — no args"]
186 pub fn new() -> Self {
187 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
188 panic!(
189 "{}
190::{}
191 failed to instantiate",
192 ::core::stringify!(AkLogger),
193 ::core::stringify!(new),
194 )
195 });
196 <Self as IAkLoggerMethods>::ctor(this);
197 this
198 }
199}
200
201#[cfg(feature = "root-aklogger")]
202pub trait IAkLogger_ErrorLoggerInteropDelegateMethods: IAkLogger_ErrorLoggerInteropDelegate {
203 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
204 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
205 unsafe {
206 let __receiver = <AkLogger_ErrorLoggerInteropDelegate as ::unity::FromIlInstance>::from_il_instance(
207 <Self as ::unity::SystemObject>::as_instance(self),
208 );
209 ::unity::il2cpp_call!((::unity::module_base()+0x1b9e7f0usize)as*mut u8,();
210(AkLogger_ErrorLoggerInteropDelegate)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
211 }
212 }
213 #[doc = "`Invoke(::unity::Il2CppString)` overload"]
214 fn invoke(self, message: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
215 unsafe {
216 let __receiver = <AkLogger_ErrorLoggerInteropDelegate as ::unity::FromIlInstance>::from_il_instance(
217 <Self as ::unity::SystemObject>::as_instance(self),
218 );
219 {
220 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
221 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
222 panic!(
223 "unity: virtual slot {}
224 out of range (vtable len {}
225) on the runtime class behind {}
226 (method `{}
227`)",
228 13usize,
229 __vt.len(),
230 <AkLogger_ErrorLoggerInteropDelegate as ::unity::ClassIdentity>::NAME,
231 "Invoke",
232 )
233 });
234 let __inner: extern "C" fn(AkLogger_ErrorLoggerInteropDelegate, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
235 ::core::mem::transmute(__vi.method_ptr);
236 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
237 __inner(__receiver, ::core::convert::Into::into(message), __mi)
238 }
239 }
240 }
241}
242
243#[cfg(feature = "root-aklogger")]
244impl<__T: IAkLogger_ErrorLoggerInteropDelegate> IAkLogger_ErrorLoggerInteropDelegateMethods for __T {}
245
246#[cfg(feature = "root-aklogger")]
247impl AkLogger_ErrorLoggerInteropDelegate {
248 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
249 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
250 }
251
252 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
253 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
254 }
255}
256
257#[cfg(feature = "root-aklogger")]
258impl AkLogger_ErrorLoggerInteropDelegate {
259 #[doc = "Direct (non-virtual) call to `AkLogger_ErrorLoggerInteropDelegate`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
260 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, message: ::unity::Il2CppString) -> () {
261 let __mi = Self::invoke_method_info();
262 let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
263 ::core::mem::transmute(__mi.method_ptr);
264 __inner(this.into(), message, ::core::option::Option::None)
265 }
266}
267
268#[cfg(feature = "root-aklogger")]
269impl AkLogger_ErrorLoggerInteropDelegate {
270 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
271 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
272 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
273 panic!(
274 "{}
275::{}
276 failed to instantiate",
277 ::core::stringify!(AkLogger_ErrorLoggerInteropDelegate),
278 ::core::stringify!(new),
279 )
280 });
281 <Self as IAkLogger_ErrorLoggerInteropDelegateMethods>::ctor(this, object, method);
282 this
283 }
284}
285
286#[cfg(feature = "root-aklogger")]
287#[doc(hidden)]
288pub mod prelude {
289 pub use super::{
290 AkLogger, AkLogger_ErrorLoggerInteropDelegate, IAkLogger, IAkLoggerMethods, IAkLogger_ErrorLoggerInteropDelegate,
291 IAkLogger_ErrorLoggerInteropDelegateMethods,
292 };
293 #[cfg(feature = "system-delegate")]
294 pub use crate::system::delegate::IDelegateMethods;
295 #[cfg(feature = "system-multicastdelegate")]
296 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
297 #[cfg(feature = "system-object")]
298 pub use crate::system::object::IObjectMethods;
299 pub use crate::system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject};
300}