engage/generated/unity_engine/
debugloghandler.rs1#[cfg(feature = "unity_engine-debugloghandler-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/unity_engine/debugloghandler/DebugLogHandler.md"))]
11 #[::unity::class(namespace = "UnityEngine", name = "DebugLogHandler")]
12 #[parent(crate::system::object::Object)]
13 pub struct DebugLogHandler {}
14}
15
16#[cfg(feature = "unity_engine-debugloghandler-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-debugloghandler")]
20impl DebugLogHandler {
21 #[doc = "`Internal_Log(crate::unity_engine::logtype::LogType, crate::unity_engine::logoption::LogOption, ::unity::Il2CppString, crate::unity_engine::object_2::Object_2)` overload"]
22 pub fn internal_log(
23 level: impl ::core::convert::Into<crate::unity_engine::logtype::LogType>,
24 options: impl ::core::convert::Into<crate::unity_engine::logoption::LogOption>,
25 msg: impl ::core::convert::Into<::unity::Il2CppString>,
26 obj: impl ::core::convert::Into<crate::unity_engine::object_2::Object_2>,
27 ) -> () {
28 unsafe {
29 ::unity::il2cpp_call!((::unity::module_base()+0x2c4bc80usize)as*mut u8,();
30(crate::unity_engine::logtype::LogType)::core::convert::Into::into(level),(crate::unity_engine::logoption::LogOption)::core::convert::Into::into(options),(::unity::Il2CppString)::core::convert::Into::into(msg),(crate::unity_engine::object_2::Object_2)::core::convert::Into::into(obj))
31 }
32 }
33}
34
35#[cfg(feature = "unity_engine-debugloghandler")]
36pub trait IDebugLogHandlerMethods: IDebugLogHandler {
37 #[doc = "`LogFormat(crate::unity_engine::logtype::LogType, crate::unity_engine::object_2::Object_2, ::unity::Il2CppString, ::unity::Array<crate::system::object::Object>)` overload"]
38 fn log_format(
39 self,
40 log_type: impl ::core::convert::Into<crate::unity_engine::logtype::LogType>,
41 context: impl ::core::convert::Into<crate::unity_engine::object_2::Object_2>,
42 format: impl ::core::convert::Into<::unity::Il2CppString>,
43 args: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
44 ) -> () {
45 unsafe {
46 let __receiver = <DebugLogHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
47 {
48 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
49 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
50 panic!(
51 "unity: virtual slot {}
52 out of range (vtable len {}
53) on the runtime class behind {}
54 (method `{}
55`)",
56 4usize,
57 __vt.len(),
58 <DebugLogHandler as ::unity::ClassIdentity>::NAME,
59 "LogFormat",
60 )
61 });
62 let __inner: extern "C" fn(
63 DebugLogHandler,
64 crate::unity_engine::logtype::LogType,
65 crate::unity_engine::object_2::Object_2,
66 ::unity::Il2CppString,
67 ::unity::Array<crate::system::object::Object>,
68 ::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(
72 __receiver,
73 ::core::convert::Into::into(log_type),
74 ::core::convert::Into::into(context),
75 ::core::convert::Into::into(format),
76 ::core::convert::Into::into(args),
77 __mi,
78 )
79 }
80 }
81 }
82 #[doc = "`.ctor()` overload"]
83 fn ctor(self) -> () {
84 unsafe {
85 let __receiver = <DebugLogHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86 ::unity::il2cpp_call!((::unity::module_base()+0x2c4bc70usize)as*mut u8,();
87(DebugLogHandler)__receiver)
88 }
89 }
90}
91
92#[cfg(feature = "unity_engine-debugloghandler")]
93impl<__T: IDebugLogHandler> IDebugLogHandlerMethods for __T {}
94
95#[cfg(feature = "unity_engine-debugloghandler")]
96impl DebugLogHandler {
97 pub fn internal_log_method_info() -> &'static ::unity::il2cpp::MethodInfo {
98 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
99 }
100
101 pub fn log_format_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
103 }
104
105 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
107 }
108}
109
110#[cfg(feature = "unity_engine-debugloghandler")]
111impl DebugLogHandler {
112 #[doc = "Direct (non-virtual) call to `DebugLogHandler`'s own `LogFormat`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
113 pub unsafe fn log_format(
114 this: impl ::core::convert::Into<::unity::IlInstance>,
115 log_type: crate::unity_engine::logtype::LogType,
116 context: crate::unity_engine::object_2::Object_2,
117 format: ::unity::Il2CppString,
118 args: ::unity::Array<crate::system::object::Object>,
119 ) -> () {
120 let __mi = Self::log_format_method_info();
121 let __inner: extern "C" fn(
122 ::unity::IlInstance,
123 crate::unity_engine::logtype::LogType,
124 crate::unity_engine::object_2::Object_2,
125 ::unity::Il2CppString,
126 ::unity::Array<crate::system::object::Object>,
127 ::unity::OptionalMethod,
128 ) -> () = ::core::mem::transmute(__mi.method_ptr);
129 __inner(this.into(), log_type, context, format, args, ::core::option::Option::None)
130 }
131}
132
133#[cfg(feature = "unity_engine-debugloghandler")]
134impl DebugLogHandler {
135 #[doc = "`.ctor()` — no args"]
136 pub fn new() -> Self {
137 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
138 panic!(
139 "{}
140::{}
141 failed to instantiate",
142 ::core::stringify!(DebugLogHandler),
143 ::core::stringify!(new),
144 )
145 });
146 <Self as IDebugLogHandlerMethods>::ctor(this);
147 this
148 }
149}
150
151#[cfg(feature = "unity_engine-debugloghandler")]
152#[doc(hidden)]
153pub mod prelude {
154 pub use super::{DebugLogHandler, IDebugLogHandler, IDebugLogHandlerMethods};
155 pub use crate::system::object::IObject;
156 #[cfg(feature = "system-object")]
157 pub use crate::system::object::IObjectMethods;
158}