1#[cfg(feature = "app-debugmanager_2-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/app/debugmanager_2/DebugManager_2.md"))]
15 #[::unity::class(namespace = "App", name = "DebugManager")]
16 #[parent(crate::system::object::Object)]
17 pub struct DebugManager_2 {
18 #[static_field]
19 #[rename(name = "s_LogStack")]
20 pub s_log_stack: crate::system::collections::generic::stack_1::Stack_1<crate::app::debugmanager_2::DebugManager_LogArg>,
21 #[static_field]
22 #[rename(name = "s_LogLock")]
23 pub s_log_lock: bool,
24 }
25
26 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/debugmanager_2/DebugManager_LogArg.md"))]
27 #[::unity::class(namespace = "App", name = "DebugManager.LogArg")]
28 #[parent(crate::system::object::Object)]
29 pub struct DebugManager_LogArg {
30 #[offset(24)]
31 #[rename(name = "m_Func")]
32 pub m_func: crate::app::debugmanager_2::DebugManager_LogFunc,
33 #[offset(32)]
34 #[rename(name = "m_Args")]
35 pub m_args: ::unity::Array<::unity::Il2CppString>,
36 }
37
38 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/debugmanager_2/DebugManager_LogScope.md"))]
39 #[::unity::class(namespace = "App", name = "DebugManager.LogScope")]
40 #[parent(crate::system::object::Object)]
41 pub struct DebugManager_LogScope {
42 #[offset(16)]
43 #[rename(name = "m_Disposed")]
44 pub m_disposed: bool,
45 }
46
47 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/debugmanager_2/DebugManager_LogFunc.md"))]
48 #[::unity::class(namespace = "App", name = "DebugManager.LogFunc")]
49 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
50 pub struct DebugManager_LogFunc {}
51}
52
53#[cfg(feature = "app-debugmanager_2-types")]
54pub use __types::*;
55
56#[cfg(feature = "app-debugmanager_2")]
57impl DebugManager_2 {
58 #[doc = "`Initialize()` overload"]
59 pub fn initialize() -> () {
60 unsafe {
61 ::unity::il2cpp_call!((::unity::module_base()+0x2a05a10usize)as*mut u8,();
62 )
63 }
64 }
65
66 #[doc = "`OnMessage(::unity::Il2CppString, ::unity::Il2CppString, crate::unity_engine::logtype::LogType)` overload"]
67 pub fn on_message(
68 log_text: impl ::core::convert::Into<::unity::Il2CppString>,
69 stack_trace: impl ::core::convert::Into<::unity::Il2CppString>,
70 r#type: impl ::core::convert::Into<crate::unity_engine::logtype::LogType>,
71 ) -> () {
72 unsafe {
73 ::unity::il2cpp_call!((::unity::module_base()+0x2a05b40usize)as*mut u8,();
74(::unity::Il2CppString)::core::convert::Into::into(log_text),(::unity::Il2CppString)::core::convert::Into::into(stack_trace),(crate::unity_engine::logtype::LogType)::core::convert::Into::into(r#type))
75 }
76 }
77
78 #[doc = "`Clear()` overload"]
79 pub fn clear() -> () {
80 unsafe {
81 ::unity::il2cpp_call!((::unity::module_base()+0x2a05b50usize)as*mut u8,();
82 )
83 }
84 }
85
86 #[doc = "`GetStackMethodName(i32)` overload"]
87 pub fn get_stack_method_name(depth: impl ::core::convert::Into<i32>) -> ::unity::Il2CppString {
88 unsafe {
89 ::unity::il2cpp_call!((::unity::module_base()+0x2a05b60usize)as*mut u8, ::unity::Il2CppString;
90(i32)::core::convert::Into::into(depth))
91 }
92 }
93
94 #[doc = "`Stop(::unity::Il2CppString)` overload"]
95 pub fn stop(ex: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
96 unsafe {
97 ::unity::il2cpp_call!((::unity::module_base()+0x2a05bb0usize)as*mut u8,();
98(::unity::Il2CppString)::core::convert::Into::into(ex))
99 }
100 }
101
102 #[doc = "`.cctor()` overload"]
103 pub fn cctor() -> () {
104 unsafe {
105 ::unity::il2cpp_call!((::unity::module_base()+0x2a05c50usize)as*mut u8,();
106 )
107 }
108 }
109}
110
111#[cfg(feature = "app-debugmanager_2")]
112pub trait IDebugManager_2Methods: IDebugManager_2 {
113 #[doc = "`.ctor()` overload"]
114 fn ctor(self) -> () {
115 unsafe {
116 let __receiver = <DebugManager_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
117 ::unity::il2cpp_call!((::unity::module_base()+0x2a05c40usize)as*mut u8,();
118(DebugManager_2)__receiver)
119 }
120 }
121}
122
123#[cfg(feature = "app-debugmanager_2")]
124impl<__T: IDebugManager_2> IDebugManager_2Methods for __T {}
125
126#[cfg(feature = "app-debugmanager_2")]
127impl DebugManager_2 {
128 pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
129 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
130 }
131
132 pub fn on_message_method_info() -> &'static ::unity::il2cpp::MethodInfo {
133 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
134 }
135
136 pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
137 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
138 }
139
140 pub fn get_stack_method_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
141 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
142 }
143
144 pub fn stop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
145 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
146 }
147
148 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
150 }
151
152 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
154 }
155}
156
157#[cfg(feature = "app-debugmanager_2")]
158impl DebugManager_2 {
159 #[doc = "`.ctor()` — no args"]
160 pub fn new() -> Self {
161 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
162 panic!(
163 "{}
164::{}
165 failed to instantiate",
166 ::core::stringify!(DebugManager_2),
167 ::core::stringify!(new),
168 )
169 });
170 <Self as IDebugManager_2Methods>::ctor(this);
171 this
172 }
173}
174
175#[cfg(feature = "app-debugmanager_2")]
176pub trait IDebugManager_LogArgMethods: IDebugManager_LogArg {
177 #[doc = "`Call()` overload"]
178 fn call(self) -> ::unity::Il2CppString {
179 unsafe {
180 let __receiver = <DebugManager_LogArg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
181 ::unity::il2cpp_call!((::unity::module_base()+0x19d4690usize)as*mut u8, ::unity::Il2CppString;
182(DebugManager_LogArg)__receiver)
183 }
184 }
185 #[doc = "`Dispose()` overload"]
186 fn dispose(self) -> () {
187 unsafe {
188 let __receiver = <DebugManager_LogArg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
189 {
190 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
191 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
192 panic!(
193 "unity: virtual slot {}
194 out of range (vtable len {}
195) on the runtime class behind {}
196 (method `{}
197`)",
198 4usize,
199 __vt.len(),
200 <DebugManager_LogArg as ::unity::ClassIdentity>::NAME,
201 "Dispose",
202 )
203 });
204 let __inner: extern "C" fn(DebugManager_LogArg, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
205 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
206 __inner(__receiver, __mi)
207 }
208 }
209 }
210}
211
212#[cfg(feature = "app-debugmanager_2")]
213impl<__T: IDebugManager_LogArg> IDebugManager_LogArgMethods for __T {}
214
215#[cfg(feature = "app-debugmanager_2")]
216impl DebugManager_LogArg {
217 pub fn call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
218 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
219 }
220
221 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
222 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
223 }
224}
225
226#[cfg(feature = "app-debugmanager_2")]
227impl DebugManager_LogArg {
228 #[doc = "Direct (non-virtual) call to `DebugManager_LogArg`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
229 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
230 let __mi = Self::dispose_method_info();
231 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
232 __inner(this.into(), ::core::option::Option::None)
233 }
234}
235
236#[cfg(feature = "app-debugmanager_2")]
237pub trait IDebugManager_LogScopeMethods: IDebugManager_LogScope {
238 #[doc = "`.ctor(crate::app::debugmanager_2::DebugManager_LogFunc, ::unity::Array<::unity::Il2CppString>)` overload"]
239 fn ctor(
240 self,
241 func: impl ::core::convert::Into<crate::app::debugmanager_2::DebugManager_LogFunc>,
242 args: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>,
243 ) -> () {
244 unsafe {
245 let __receiver = <DebugManager_LogScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
246 ::unity::il2cpp_call!((::unity::module_base()+0x19d4b40usize)as*mut u8,();
247(DebugManager_LogScope)__receiver,(crate::app::debugmanager_2::DebugManager_LogFunc)::core::convert::Into::into(func),(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(args))
248 }
249 }
250 #[doc = "`.ctor(::unity::Array<::unity::Il2CppString>)` overload"]
251 fn ctor_2(self, args: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>) -> () {
252 unsafe {
253 let __receiver = <DebugManager_LogScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
254 ::unity::il2cpp_call!((::unity::module_base()+0x19d4b50usize)as*mut u8,();
255(DebugManager_LogScope)__receiver,(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(args))
256 }
257 }
258 #[doc = "`Finalize()` overload"]
259 fn finalize(self) -> () {
260 unsafe {
261 let __receiver = <DebugManager_LogScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
262 {
263 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
264 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
265 panic!(
266 "unity: virtual slot {}
267 out of range (vtable len {}
268) on the runtime class behind {}
269 (method `{}
270`)",
271 1usize,
272 __vt.len(),
273 <DebugManager_LogScope as ::unity::ClassIdentity>::NAME,
274 "Finalize",
275 )
276 });
277 let __inner: extern "C" fn(DebugManager_LogScope, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
278 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
279 __inner(__receiver, __mi)
280 }
281 }
282 }
283 #[doc = "`Dispose()` overload"]
284 fn dispose(self) -> () {
285 unsafe {
286 let __receiver = <DebugManager_LogScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
287 {
288 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
289 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
290 panic!(
291 "unity: virtual slot {}
292 out of range (vtable len {}
293) on the runtime class behind {}
294 (method `{}
295`)",
296 4usize,
297 __vt.len(),
298 <DebugManager_LogScope as ::unity::ClassIdentity>::NAME,
299 "Dispose",
300 )
301 });
302 let __inner: extern "C" fn(DebugManager_LogScope, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
303 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
304 __inner(__receiver, __mi)
305 }
306 }
307 }
308}
309
310#[cfg(feature = "app-debugmanager_2")]
311impl<__T: IDebugManager_LogScope> IDebugManager_LogScopeMethods for __T {}
312
313#[cfg(feature = "app-debugmanager_2")]
314impl DebugManager_LogScope {
315 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
316 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
317 }
318
319 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
320 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
321 }
322
323 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
324 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
325 }
326
327 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
328 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
329 }
330}
331
332#[cfg(feature = "app-debugmanager_2")]
333impl DebugManager_LogScope {
334 #[doc = "Direct (non-virtual) call to `DebugManager_LogScope`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
335 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
336 let __mi = Self::finalize_method_info();
337 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
338 __inner(this.into(), ::core::option::Option::None)
339 }
340
341 #[doc = "Direct (non-virtual) call to `DebugManager_LogScope`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
342 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
343 let __mi = Self::dispose_method_info();
344 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
345 __inner(this.into(), ::core::option::Option::None)
346 }
347}
348
349#[cfg(feature = "app-debugmanager_2")]
350impl DebugManager_LogScope {
351 #[doc = "`.ctor(crate::app::debugmanager_2::DebugManager_LogFunc, ::unity::Array<::unity::Il2CppString>)` — overload selector"]
352 pub fn new(func: crate::app::debugmanager_2::DebugManager_LogFunc, args: ::unity::Array<::unity::Il2CppString>) -> Self {
353 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
354 panic!(
355 "{}
356::{}
357 failed to instantiate",
358 ::core::stringify!(DebugManager_LogScope),
359 ::core::stringify!(new),
360 )
361 });
362 <Self as IDebugManager_LogScopeMethods>::ctor(this, func, args);
363 this
364 }
365
366 #[doc = "`.ctor(::unity::Array<::unity::Il2CppString>)` — overload selector"]
367 pub fn new_2(args: ::unity::Array<::unity::Il2CppString>) -> Self {
368 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
369 panic!(
370 "{}
371::{}
372 failed to instantiate",
373 ::core::stringify!(DebugManager_LogScope),
374 ::core::stringify!(new_2),
375 )
376 });
377 <Self as IDebugManager_LogScopeMethods>::ctor_2(this, args);
378 this
379 }
380}
381
382#[cfg(feature = "app-debugmanager_2")]
383pub trait IDebugManager_LogFuncMethods: IDebugManager_LogFunc {
384 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
385 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
386 unsafe {
387 let __receiver = <DebugManager_LogFunc as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
388 ::unity::il2cpp_call!((::unity::module_base()+0x19d4ae0usize)as*mut u8,();
389(DebugManager_LogFunc)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
390 }
391 }
392 #[doc = "`Invoke()` overload"]
393 fn invoke(self) -> ::unity::Il2CppString {
394 unsafe {
395 let __receiver = <DebugManager_LogFunc as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
396 {
397 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
398 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
399 panic!(
400 "unity: virtual slot {}
401 out of range (vtable len {}
402) on the runtime class behind {}
403 (method `{}
404`)",
405 13usize,
406 __vt.len(),
407 <DebugManager_LogFunc as ::unity::ClassIdentity>::NAME,
408 "Invoke",
409 )
410 });
411 let __inner: extern "C" fn(DebugManager_LogFunc, ::unity::OptionalMethod) -> ::unity::Il2CppString =
412 ::core::mem::transmute(__vi.method_ptr);
413 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
414 __inner(__receiver, __mi)
415 }
416 }
417 }
418}
419
420#[cfg(feature = "app-debugmanager_2")]
421impl<__T: IDebugManager_LogFunc> IDebugManager_LogFuncMethods for __T {}
422
423#[cfg(feature = "app-debugmanager_2")]
424impl DebugManager_LogFunc {
425 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
426 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
427 }
428
429 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
430 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
431 }
432}
433
434#[cfg(feature = "app-debugmanager_2")]
435impl DebugManager_LogFunc {
436 #[doc = "Direct (non-virtual) call to `DebugManager_LogFunc`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
437 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
438 let __mi = Self::invoke_method_info();
439 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
440 __inner(this.into(), ::core::option::Option::None)
441 }
442}
443
444#[cfg(feature = "app-debugmanager_2")]
445impl DebugManager_LogFunc {
446 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
447 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
448 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
449 panic!(
450 "{}
451::{}
452 failed to instantiate",
453 ::core::stringify!(DebugManager_LogFunc),
454 ::core::stringify!(new),
455 )
456 });
457 <Self as IDebugManager_LogFuncMethods>::ctor(this, object, method);
458 this
459 }
460}
461
462#[cfg(feature = "app-debugmanager_2")]
463#[doc(hidden)]
464pub mod prelude {
465 pub use super::{
466 DebugManager_2, DebugManager_LogArg, DebugManager_LogFunc, DebugManager_LogScope, IDebugManager_2, IDebugManager_2Methods,
467 IDebugManager_LogArg, IDebugManager_LogArgMethods, IDebugManager_LogFunc, IDebugManager_LogFuncMethods, IDebugManager_LogScope,
468 IDebugManager_LogScopeMethods,
469 };
470 #[cfg(feature = "system-delegate")]
471 pub use crate::system::delegate::IDelegateMethods;
472 #[cfg(feature = "system-multicastdelegate")]
473 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
474 #[cfg(feature = "system-object")]
475 pub use crate::system::object::IObjectMethods;
476 pub use crate::system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject};
477}