1#[cfg(feature = "unity_engine-ilogger_interface-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8
9 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ilogger_interface/ILogger_Interface.md"))]
10 #[::unity::class(namespace = "UnityEngine", name = "ILogger")]
11 pub struct ILogger_Interface {}
12}
13
14#[cfg(feature = "unity_engine-ilogger_interface-types")]
15pub use __types::*;
16
17#[cfg(feature = "unity_engine-ilogger_interface")]
18pub trait IILogger_InterfaceMethods: IILogger_Interface {
19 #[doc = "`get_logHandler()` overload"]
20 fn get_log_handler(self) -> crate::unity_engine::iloghandler::ILogHandler {
21 unsafe {
22 let __receiver = <ILogger_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
23 {
24 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
25 let __vi = *__vt.get(0usize).unwrap_or_else(|| {
26 panic!(
27 "unity: virtual slot {}
28 out of range (vtable len {}
29) on the runtime class behind {}
30 (method `{}
31`)",
32 0usize,
33 __vt.len(),
34 <ILogger_Interface as ::unity::ClassIdentity>::NAME,
35 "get_logHandler",
36 )
37 });
38 let __inner: extern "C" fn(ILogger_Interface, ::unity::OptionalMethod) -> crate::unity_engine::iloghandler::ILogHandler =
39 ::core::mem::transmute(__vi.method_ptr);
40 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
41 __inner(__receiver, __mi)
42 }
43 }
44 }
45 #[doc = "`get_logEnabled()` overload"]
46 fn get_log_enabled(self) -> bool {
47 unsafe {
48 let __receiver = <ILogger_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49 {
50 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
51 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
52 panic!(
53 "unity: virtual slot {}
54 out of range (vtable len {}
55) on the runtime class behind {}
56 (method `{}
57`)",
58 1usize,
59 __vt.len(),
60 <ILogger_Interface as ::unity::ClassIdentity>::NAME,
61 "get_logEnabled",
62 )
63 });
64 let __inner: extern "C" fn(ILogger_Interface, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
65 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
66 __inner(__receiver, __mi)
67 }
68 }
69 }
70 #[doc = "`set_logEnabled(bool)` overload"]
71 fn set_log_enabled(self, value: impl ::core::convert::Into<bool>) -> () {
72 unsafe {
73 let __receiver = <ILogger_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74 {
75 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
76 let __vi = *__vt.get(2usize).unwrap_or_else(|| {
77 panic!(
78 "unity: virtual slot {}
79 out of range (vtable len {}
80) on the runtime class behind {}
81 (method `{}
82`)",
83 2usize,
84 __vt.len(),
85 <ILogger_Interface as ::unity::ClassIdentity>::NAME,
86 "set_logEnabled",
87 )
88 });
89 let __inner: extern "C" fn(ILogger_Interface, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
90 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
91 __inner(__receiver, ::core::convert::Into::into(value), __mi)
92 }
93 }
94 }
95 #[doc = "`Log(crate::unity_engine::logtype::LogType, crate::system::object::Object)` overload"]
96 fn log(
97 self,
98 log_type: impl ::core::convert::Into<crate::unity_engine::logtype::LogType>,
99 message: impl ::core::convert::Into<crate::system::object::Object>,
100 ) -> () {
101 unsafe {
102 let __receiver = <ILogger_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103 {
104 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
105 let __vi = *__vt.get(3usize).unwrap_or_else(|| {
106 panic!(
107 "unity: virtual slot {}
108 out of range (vtable len {}
109) on the runtime class behind {}
110 (method `{}
111`)",
112 3usize,
113 __vt.len(),
114 <ILogger_Interface as ::unity::ClassIdentity>::NAME,
115 "Log",
116 )
117 });
118 let __inner: extern "C" fn(
119 ILogger_Interface,
120 crate::unity_engine::logtype::LogType,
121 crate::system::object::Object,
122 ::unity::OptionalMethod,
123 ) -> () = ::core::mem::transmute(__vi.method_ptr);
124 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
125 __inner(
126 __receiver,
127 ::core::convert::Into::into(log_type),
128 ::core::convert::Into::into(message),
129 __mi,
130 )
131 }
132 }
133 }
134 #[doc = "`Log(crate::unity_engine::logtype::LogType, crate::system::object::Object, crate::unity_engine::object_2::Object_2)` overload"]
135 fn log_2(
136 self,
137 log_type: impl ::core::convert::Into<crate::unity_engine::logtype::LogType>,
138 message: impl ::core::convert::Into<crate::system::object::Object>,
139 context: impl ::core::convert::Into<crate::unity_engine::object_2::Object_2>,
140 ) -> () {
141 unsafe {
142 let __receiver = <ILogger_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143 {
144 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
145 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
146 panic!(
147 "unity: virtual slot {}
148 out of range (vtable len {}
149) on the runtime class behind {}
150 (method `{}
151`)",
152 4usize,
153 __vt.len(),
154 <ILogger_Interface as ::unity::ClassIdentity>::NAME,
155 "Log",
156 )
157 });
158 let __inner: extern "C" fn(
159 ILogger_Interface,
160 crate::unity_engine::logtype::LogType,
161 crate::system::object::Object,
162 crate::unity_engine::object_2::Object_2,
163 ::unity::OptionalMethod,
164 ) -> () = ::core::mem::transmute(__vi.method_ptr);
165 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
166 __inner(
167 __receiver,
168 ::core::convert::Into::into(log_type),
169 ::core::convert::Into::into(message),
170 ::core::convert::Into::into(context),
171 __mi,
172 )
173 }
174 }
175 }
176 #[doc = "`LogError(::unity::Il2CppString, crate::system::object::Object)` overload"]
177 fn log_error(
178 self,
179 tag: impl ::core::convert::Into<::unity::Il2CppString>,
180 message: impl ::core::convert::Into<crate::system::object::Object>,
181 ) -> () {
182 unsafe {
183 let __receiver = <ILogger_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
184 {
185 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
186 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
187 panic!(
188 "unity: virtual slot {}
189 out of range (vtable len {}
190) on the runtime class behind {}
191 (method `{}
192`)",
193 5usize,
194 __vt.len(),
195 <ILogger_Interface as ::unity::ClassIdentity>::NAME,
196 "LogError",
197 )
198 });
199 let __inner: extern "C" fn(ILogger_Interface, ::unity::Il2CppString, crate::system::object::Object, ::unity::OptionalMethod) -> () =
200 ::core::mem::transmute(__vi.method_ptr);
201 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
202 __inner(__receiver, ::core::convert::Into::into(tag), ::core::convert::Into::into(message), __mi)
203 }
204 }
205 }
206 #[doc = "`LogFormat(crate::unity_engine::logtype::LogType, ::unity::Il2CppString, ::unity::Array<crate::system::object::Object>)` overload"]
207 fn log_format(
208 self,
209 log_type: impl ::core::convert::Into<crate::unity_engine::logtype::LogType>,
210 format: impl ::core::convert::Into<::unity::Il2CppString>,
211 args: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
212 ) -> () {
213 unsafe {
214 let __receiver = <ILogger_Interface as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
215 {
216 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
217 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
218 panic!(
219 "unity: virtual slot {}
220 out of range (vtable len {}
221) on the runtime class behind {}
222 (method `{}
223`)",
224 6usize,
225 __vt.len(),
226 <ILogger_Interface as ::unity::ClassIdentity>::NAME,
227 "LogFormat",
228 )
229 });
230 let __inner: extern "C" fn(
231 ILogger_Interface,
232 crate::unity_engine::logtype::LogType,
233 ::unity::Il2CppString,
234 ::unity::Array<crate::system::object::Object>,
235 ::unity::OptionalMethod,
236 ) -> () = ::core::mem::transmute(__vi.method_ptr);
237 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
238 __inner(
239 __receiver,
240 ::core::convert::Into::into(log_type),
241 ::core::convert::Into::into(format),
242 ::core::convert::Into::into(args),
243 __mi,
244 )
245 }
246 }
247 }
248}
249
250#[cfg(feature = "unity_engine-ilogger_interface")]
251impl<__T: IILogger_Interface> IILogger_InterfaceMethods for __T {}
252
253#[cfg(feature = "unity_engine-ilogger_interface")]
254impl ILogger_Interface {
255 pub fn get_log_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
257 }
258
259 pub fn get_log_enabled_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
261 }
262
263 pub fn set_log_enabled_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
265 }
266
267 pub fn log_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
269 }
270
271 pub fn log_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
272 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
273 }
274
275 pub fn log_error_method_info() -> &'static ::unity::il2cpp::MethodInfo {
276 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
277 }
278
279 pub fn log_format_method_info() -> &'static ::unity::il2cpp::MethodInfo {
280 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
281 }
282}
283
284#[cfg(feature = "unity_engine-ilogger_interface")]
285impl ILogger_Interface {
286 #[doc = "Direct (non-virtual) call to `ILogger_Interface`'s own `get_logHandler`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
287 pub unsafe fn get_log_handler(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::iloghandler::ILogHandler {
288 let __mi = Self::get_log_handler_method_info();
289 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::iloghandler::ILogHandler =
290 ::core::mem::transmute(__mi.method_ptr);
291 __inner(this.into(), ::core::option::Option::None)
292 }
293
294 #[doc = "Direct (non-virtual) call to `ILogger_Interface`'s own `get_logEnabled`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
295 pub unsafe fn get_log_enabled(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
296 let __mi = Self::get_log_enabled_method_info();
297 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
298 __inner(this.into(), ::core::option::Option::None)
299 }
300
301 #[doc = "Direct (non-virtual) call to `ILogger_Interface`'s own `set_logEnabled`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
302 pub unsafe fn set_log_enabled(this: impl ::core::convert::Into<::unity::IlInstance>, value: bool) -> () {
303 let __mi = Self::set_log_enabled_method_info();
304 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
305 __inner(this.into(), value, ::core::option::Option::None)
306 }
307
308 #[doc = "Direct (non-virtual) call to `ILogger_Interface`'s own `Log`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
309 pub unsafe fn log(
310 this: impl ::core::convert::Into<::unity::IlInstance>,
311 log_type: crate::unity_engine::logtype::LogType,
312 message: crate::system::object::Object,
313 ) -> () {
314 let __mi = Self::log_method_info();
315 let __inner: extern "C" fn(
316 ::unity::IlInstance,
317 crate::unity_engine::logtype::LogType,
318 crate::system::object::Object,
319 ::unity::OptionalMethod,
320 ) -> () = ::core::mem::transmute(__mi.method_ptr);
321 __inner(this.into(), log_type, message, ::core::option::Option::None)
322 }
323
324 #[doc = "Direct (non-virtual) call to `ILogger_Interface`'s own `Log`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
325 pub unsafe fn log_2(
326 this: impl ::core::convert::Into<::unity::IlInstance>,
327 log_type: crate::unity_engine::logtype::LogType,
328 message: crate::system::object::Object,
329 context: crate::unity_engine::object_2::Object_2,
330 ) -> () {
331 let __mi = Self::log_2_method_info();
332 let __inner: extern "C" fn(
333 ::unity::IlInstance,
334 crate::unity_engine::logtype::LogType,
335 crate::system::object::Object,
336 crate::unity_engine::object_2::Object_2,
337 ::unity::OptionalMethod,
338 ) -> () = ::core::mem::transmute(__mi.method_ptr);
339 __inner(this.into(), log_type, message, context, ::core::option::Option::None)
340 }
341
342 #[doc = "Direct (non-virtual) call to `ILogger_Interface`'s own `LogError`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
343 pub unsafe fn log_error(
344 this: impl ::core::convert::Into<::unity::IlInstance>,
345 tag: ::unity::Il2CppString,
346 message: crate::system::object::Object,
347 ) -> () {
348 let __mi = Self::log_error_method_info();
349 let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, crate::system::object::Object, ::unity::OptionalMethod) -> () =
350 ::core::mem::transmute(__mi.method_ptr);
351 __inner(this.into(), tag, message, ::core::option::Option::None)
352 }
353
354 #[doc = "Direct (non-virtual) call to `ILogger_Interface`'s own `LogFormat`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
355 pub unsafe fn log_format(
356 this: impl ::core::convert::Into<::unity::IlInstance>,
357 log_type: crate::unity_engine::logtype::LogType,
358 format: ::unity::Il2CppString,
359 args: ::unity::Array<crate::system::object::Object>,
360 ) -> () {
361 let __mi = Self::log_format_method_info();
362 let __inner: extern "C" fn(
363 ::unity::IlInstance,
364 crate::unity_engine::logtype::LogType,
365 ::unity::Il2CppString,
366 ::unity::Array<crate::system::object::Object>,
367 ::unity::OptionalMethod,
368 ) -> () = ::core::mem::transmute(__mi.method_ptr);
369 __inner(this.into(), log_type, format, args, ::core::option::Option::None)
370 }
371}
372
373#[cfg(feature = "unity_engine-ilogger_interface")]
374#[doc(hidden)]
375pub mod prelude {
376 pub use super::{IILogger_Interface, IILogger_InterfaceMethods, ILogger_Interface};
377}