engage/generated/unity_engine/
debug.rs1#[cfg(feature = "unity_engine-debug-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/debug/Debug.md"))]
11 #[::unity::class(namespace = "UnityEngine", name = "Debug")]
12 #[parent(crate::system::object::Object)]
13 pub struct Debug {
14 #[static_field]
15 #[rename(name = "s_DefaultLogger")]
16 pub s_default_logger: crate::unity_engine::ilogger_interface::ILogger_Interface,
17 #[static_field]
18 #[rename(name = "s_Logger")]
19 pub s_logger: crate::unity_engine::ilogger_interface::ILogger_Interface,
20 }
21}
22
23#[cfg(feature = "unity_engine-debug-types")]
24pub use __types::*;
25
26#[cfg(feature = "unity_engine-debug")]
27impl Debug {
28 #[doc = "`get_unityLogger()` overload"]
29 pub fn get_unity_logger() -> crate::unity_engine::ilogger_interface::ILogger_Interface {
30 unsafe {
31 ::unity::il2cpp_call!((::unity::module_base()+0x2c4a550usize)as*mut u8,crate::unity_engine::ilogger_interface::ILogger_Interface;
32 )
33 }
34 }
35
36 #[doc = "`Break()` overload"]
37 pub fn r#break() -> () {
38 unsafe {
39 ::unity::il2cpp_call!((::unity::module_base()+0x2c4a5c0usize)as*mut u8,();
40 )
41 }
42 }
43
44 #[doc = "`Log(crate::system::object::Object)` overload"]
45 pub fn log(message: impl ::core::convert::Into<crate::system::object::Object>) -> () {
46 unsafe {
47 ::unity::il2cpp_call!((::unity::module_base()+0x2c4a660usize)as*mut u8,();
48(crate::system::object::Object)::core::convert::Into::into(message))
49 }
50 }
51
52 #[doc = "`Log(crate::system::object::Object, crate::unity_engine::object_2::Object_2)` overload"]
53 pub fn log_2(
54 message: impl ::core::convert::Into<crate::system::object::Object>,
55 context: impl ::core::convert::Into<crate::unity_engine::object_2::Object_2>,
56 ) -> () {
57 unsafe {
58 ::unity::il2cpp_call!((::unity::module_base()+0x2c4a7a0usize)as*mut u8,();
59(crate::system::object::Object)::core::convert::Into::into(message),(crate::unity_engine::object_2::Object_2)::core::convert::Into::into(context))
60 }
61 }
62
63 #[doc = "`LogFormat(::unity::Il2CppString, ::unity::Array<crate::system::object::Object>)` overload"]
64 pub fn log_format(
65 format: impl ::core::convert::Into<::unity::Il2CppString>,
66 args: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
67 ) -> () {
68 unsafe {
69 ::unity::il2cpp_call!((::unity::module_base()+0x2c4a8e0usize)as*mut u8,();
70(::unity::Il2CppString)::core::convert::Into::into(format),(::unity::Array<crate::system::object::Object>)::core::convert::Into::into(args))
71 }
72 }
73
74 #[doc = "`LogError(crate::system::object::Object)` overload"]
75 pub fn log_error(message: impl ::core::convert::Into<crate::system::object::Object>) -> () {
76 unsafe {
77 ::unity::il2cpp_call!((::unity::module_base()+0x2c4aa20usize)as*mut u8,();
78(crate::system::object::Object)::core::convert::Into::into(message))
79 }
80 }
81
82 #[doc = "`LogError(crate::system::object::Object, crate::unity_engine::object_2::Object_2)` overload"]
83 pub fn log_error_2(
84 message: impl ::core::convert::Into<crate::system::object::Object>,
85 context: impl ::core::convert::Into<crate::unity_engine::object_2::Object_2>,
86 ) -> () {
87 unsafe {
88 ::unity::il2cpp_call!((::unity::module_base()+0x2c4ab60usize)as*mut u8,();
89(crate::system::object::Object)::core::convert::Into::into(message),(crate::unity_engine::object_2::Object_2)::core::convert::Into::into(context))
90 }
91 }
92
93 #[doc = "`LogErrorFormat(::unity::Il2CppString, ::unity::Array<crate::system::object::Object>)` overload"]
94 pub fn log_error_format(
95 format: impl ::core::convert::Into<::unity::Il2CppString>,
96 args: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
97 ) -> () {
98 unsafe {
99 ::unity::il2cpp_call!((::unity::module_base()+0x2c4aca0usize)as*mut u8,();
100(::unity::Il2CppString)::core::convert::Into::into(format),(::unity::Array<crate::system::object::Object>)::core::convert::Into::into(args))
101 }
102 }
103
104 #[doc = "`LogErrorFormat(crate::unity_engine::object_2::Object_2, ::unity::Il2CppString, ::unity::Array<crate::system::object::Object>)` overload"]
105 pub fn log_error_format_2(
106 context: impl ::core::convert::Into<crate::unity_engine::object_2::Object_2>,
107 format: impl ::core::convert::Into<::unity::Il2CppString>,
108 args: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
109 ) -> () {
110 unsafe {
111 ::unity::il2cpp_call!((::unity::module_base()+0x2c4ade0usize)as*mut u8,();
112(crate::unity_engine::object_2::Object_2)::core::convert::Into::into(context),(::unity::Il2CppString)::core::convert::Into::into(format),(::unity::Array<crate::system::object::Object>)::core::convert::Into::into(args))
113 }
114 }
115
116 #[doc = "`LogWarning(crate::system::object::Object)` overload"]
117 pub fn log_warning(message: impl ::core::convert::Into<crate::system::object::Object>) -> () {
118 unsafe {
119 ::unity::il2cpp_call!((::unity::module_base()+0x2c3e5d0usize)as*mut u8,();
120(crate::system::object::Object)::core::convert::Into::into(message))
121 }
122 }
123
124 #[doc = "`LogWarning(crate::system::object::Object, crate::unity_engine::object_2::Object_2)` overload"]
125 pub fn log_warning_2(
126 message: impl ::core::convert::Into<crate::system::object::Object>,
127 context: impl ::core::convert::Into<crate::unity_engine::object_2::Object_2>,
128 ) -> () {
129 unsafe {
130 ::unity::il2cpp_call!((::unity::module_base()+0x2c4b070usize)as*mut u8,();
131(crate::system::object::Object)::core::convert::Into::into(message),(crate::unity_engine::object_2::Object_2)::core::convert::Into::into(context))
132 }
133 }
134
135 #[doc = "`LogWarningFormat(::unity::Il2CppString, ::unity::Array<crate::system::object::Object>)` overload"]
136 pub fn log_warning_format(
137 format: impl ::core::convert::Into<::unity::Il2CppString>,
138 args: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
139 ) -> () {
140 unsafe {
141 ::unity::il2cpp_call!((::unity::module_base()+0x2c4b1b0usize)as*mut u8,();
142(::unity::Il2CppString)::core::convert::Into::into(format),(::unity::Array<crate::system::object::Object>)::core::convert::Into::into(args))
143 }
144 }
145
146 #[doc = "`LogWarningFormat(crate::unity_engine::object_2::Object_2, ::unity::Il2CppString, ::unity::Array<crate::system::object::Object>)` overload"]
147 pub fn log_warning_format_2(
148 context: impl ::core::convert::Into<crate::unity_engine::object_2::Object_2>,
149 format: impl ::core::convert::Into<::unity::Il2CppString>,
150 args: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
151 ) -> () {
152 unsafe {
153 ::unity::il2cpp_call!((::unity::module_base()+0x2c4b2f0usize)as*mut u8,();
154(crate::unity_engine::object_2::Object_2)::core::convert::Into::into(context),(::unity::Il2CppString)::core::convert::Into::into(format),(::unity::Array<crate::system::object::Object>)::core::convert::Into::into(args))
155 }
156 }
157
158 #[doc = "`get_isDebugBuild()` overload"]
159 pub fn get_is_debug_build() -> bool {
160 unsafe {
161 ::unity::il2cpp_call!((::unity::module_base()+0x2c4b440usize)as*mut u8,bool;
162 )
163 }
164 }
165
166 #[doc = "`IsLoggingEnabled()` overload"]
167 pub fn is_logging_enabled() -> bool {
168 unsafe {
169 ::unity::il2cpp_call!((::unity::module_base()+0x2c4b8f0usize)as*mut u8,bool;
170 )
171 }
172 }
173
174 #[doc = "`.cctor()` overload"]
175 pub fn cctor() -> () {
176 unsafe {
177 ::unity::il2cpp_call!((::unity::module_base()+0x2c4bb70usize)as*mut u8,();
178 )
179 }
180 }
181}
182
183#[cfg(feature = "unity_engine-debug")]
184impl Debug {
185 pub fn get_unity_logger_method_info() -> &'static ::unity::il2cpp::MethodInfo {
186 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
187 }
188
189 pub fn break_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
191 }
192
193 pub fn log_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
195 }
196
197 pub fn log_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
199 }
200
201 pub fn log_format_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
203 }
204
205 pub fn log_error_method_info() -> &'static ::unity::il2cpp::MethodInfo {
206 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
207 }
208
209 pub fn log_error_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
210 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
211 }
212
213 pub fn log_error_format_method_info() -> &'static ::unity::il2cpp::MethodInfo {
214 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
215 }
216
217 pub fn log_error_format_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
218 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
219 }
220
221 pub fn log_warning_method_info() -> &'static ::unity::il2cpp::MethodInfo {
222 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
223 }
224
225 pub fn log_warning_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
226 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
227 }
228
229 pub fn log_warning_format_method_info() -> &'static ::unity::il2cpp::MethodInfo {
230 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
231 }
232
233 pub fn log_warning_format_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
234 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
235 }
236
237 pub fn get_is_debug_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
238 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
239 }
240
241 pub fn is_logging_enabled_method_info() -> &'static ::unity::il2cpp::MethodInfo {
242 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
243 }
244
245 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
246 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
247 }
248}
249
250#[cfg(feature = "unity_engine-debug")]
251#[doc(hidden)]
252pub mod prelude {
253 pub use super::{Debug, IDebug};
254 pub use crate::system::object::IObject;
255 #[cfg(feature = "system-object")]
256 pub use crate::system::object::IObjectMethods;
257}