Skip to main content

engage/generated/unity_engine/
logger.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-logger-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/logger/Logger.md"))]
11    #[::unity::class(namespace = "UnityEngine", name = "Logger")]
12    #[parent(crate::system::object::Object)]
13    pub struct Logger {}
14}
15
16#[cfg(feature = "unity_engine-logger-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-logger")]
20impl Logger {
21    #[doc = "`GetString(crate::system::object::Object)` overload"]
22    pub fn get_string(message: impl ::core::convert::Into<crate::system::object::Object>) -> ::unity::Il2CppString {
23        unsafe {
24            ::unity::il2cpp_call!((::unity::module_base()+0x32d8150usize)as*mut u8, ::unity::Il2CppString;
25(crate::system::object::Object)::core::convert::Into::into(message))
26        }
27    }
28}
29
30#[cfg(feature = "unity_engine-logger")]
31pub trait ILoggerMethods: ILogger {
32    #[doc = "`.ctor(crate::unity_engine::iloghandler::ILogHandler)` overload"]
33    fn ctor(self, log_handler: impl ::core::convert::Into<crate::unity_engine::iloghandler::ILogHandler>) -> () {
34        unsafe {
35            let __receiver = <Logger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
36            ::unity::il2cpp_call!((::unity::module_base()+0x32d8060usize)as*mut u8,();
37(Logger)__receiver,(crate::unity_engine::iloghandler::ILogHandler)::core::convert::Into::into(log_handler))
38        }
39    }
40    #[doc = "`get_logHandler()` overload"]
41    fn get_log_handler(self) -> crate::unity_engine::iloghandler::ILogHandler {
42        unsafe {
43            let __receiver = <Logger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44            {
45                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
46                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
47                    panic!(
48                        "unity: virtual slot {}
49 out of range (vtable len {}
50) on the runtime class behind {}
51 (method `{}
52`)",
53                        4usize,
54                        __vt.len(),
55                        <Logger as ::unity::ClassIdentity>::NAME,
56                        "get_logHandler",
57                    )
58                });
59                let __inner: extern "C" fn(Logger, ::unity::OptionalMethod) -> crate::unity_engine::iloghandler::ILogHandler =
60                    ::core::mem::transmute(__vi.method_ptr);
61                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
62                __inner(__receiver, __mi)
63            }
64        }
65    }
66    #[doc = "`set_logHandler(crate::unity_engine::iloghandler::ILogHandler)` overload"]
67    fn set_log_handler(self, value: impl ::core::convert::Into<crate::unity_engine::iloghandler::ILogHandler>) -> () {
68        unsafe {
69            let __receiver = <Logger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
70            {
71                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
72                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
73                    panic!(
74                        "unity: virtual slot {}
75 out of range (vtable len {}
76) on the runtime class behind {}
77 (method `{}
78`)",
79                        13usize,
80                        __vt.len(),
81                        <Logger as ::unity::ClassIdentity>::NAME,
82                        "set_logHandler",
83                    )
84                });
85                let __inner: extern "C" fn(Logger, crate::unity_engine::iloghandler::ILogHandler, ::unity::OptionalMethod) -> () =
86                    ::core::mem::transmute(__vi.method_ptr);
87                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
88                __inner(__receiver, ::core::convert::Into::into(value), __mi)
89            }
90        }
91    }
92    #[doc = "`get_logEnabled()` overload"]
93    fn get_log_enabled(self) -> bool {
94        unsafe {
95            let __receiver = <Logger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96            {
97                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
98                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
99                    panic!(
100                        "unity: virtual slot {}
101 out of range (vtable len {}
102) on the runtime class behind {}
103 (method `{}
104`)",
105                        5usize,
106                        __vt.len(),
107                        <Logger as ::unity::ClassIdentity>::NAME,
108                        "get_logEnabled",
109                    )
110                });
111                let __inner: extern "C" fn(Logger, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
112                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
113                __inner(__receiver, __mi)
114            }
115        }
116    }
117    #[doc = "`set_logEnabled(bool)` overload"]
118    fn set_log_enabled(self, value: impl ::core::convert::Into<bool>) -> () {
119        unsafe {
120            let __receiver = <Logger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
121            {
122                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
123                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
124                    panic!(
125                        "unity: virtual slot {}
126 out of range (vtable len {}
127) on the runtime class behind {}
128 (method `{}
129`)",
130                        6usize,
131                        __vt.len(),
132                        <Logger as ::unity::ClassIdentity>::NAME,
133                        "set_logEnabled",
134                    )
135                });
136                let __inner: extern "C" fn(Logger, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
137                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
138                __inner(__receiver, ::core::convert::Into::into(value), __mi)
139            }
140        }
141    }
142    #[doc = "`get_filterLogType()` overload"]
143    fn get_filter_log_type(self) -> crate::unity_engine::logtype::LogType {
144        unsafe {
145            let __receiver = <Logger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
146            {
147                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
148                let __vi = *__vt.get(14usize).unwrap_or_else(|| {
149                    panic!(
150                        "unity: virtual slot {}
151 out of range (vtable len {}
152) on the runtime class behind {}
153 (method `{}
154`)",
155                        14usize,
156                        __vt.len(),
157                        <Logger as ::unity::ClassIdentity>::NAME,
158                        "get_filterLogType",
159                    )
160                });
161                let __inner: extern "C" fn(Logger, ::unity::OptionalMethod) -> crate::unity_engine::logtype::LogType =
162                    ::core::mem::transmute(__vi.method_ptr);
163                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
164                __inner(__receiver, __mi)
165            }
166        }
167    }
168    #[doc = "`set_filterLogType(crate::unity_engine::logtype::LogType)` overload"]
169    fn set_filter_log_type(self, value: impl ::core::convert::Into<crate::unity_engine::logtype::LogType>) -> () {
170        unsafe {
171            let __receiver = <Logger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
172            {
173                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
174                let __vi = *__vt.get(15usize).unwrap_or_else(|| {
175                    panic!(
176                        "unity: virtual slot {}
177 out of range (vtable len {}
178) on the runtime class behind {}
179 (method `{}
180`)",
181                        15usize,
182                        __vt.len(),
183                        <Logger as ::unity::ClassIdentity>::NAME,
184                        "set_filterLogType",
185                    )
186                });
187                let __inner: extern "C" fn(Logger, crate::unity_engine::logtype::LogType, ::unity::OptionalMethod) -> () =
188                    ::core::mem::transmute(__vi.method_ptr);
189                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
190                __inner(__receiver, ::core::convert::Into::into(value), __mi)
191            }
192        }
193    }
194    #[doc = "`IsLogTypeAllowed(crate::unity_engine::logtype::LogType)` overload"]
195    fn is_log_type_allowed(self, log_type: impl ::core::convert::Into<crate::unity_engine::logtype::LogType>) -> bool {
196        unsafe {
197            let __receiver = <Logger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
198            {
199                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
200                let __vi = *__vt.get(16usize).unwrap_or_else(|| {
201                    panic!(
202                        "unity: virtual slot {}
203 out of range (vtable len {}
204) on the runtime class behind {}
205 (method `{}
206`)",
207                        16usize,
208                        __vt.len(),
209                        <Logger as ::unity::ClassIdentity>::NAME,
210                        "IsLogTypeAllowed",
211                    )
212                });
213                let __inner: extern "C" fn(Logger, crate::unity_engine::logtype::LogType, ::unity::OptionalMethod) -> bool =
214                    ::core::mem::transmute(__vi.method_ptr);
215                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
216                __inner(__receiver, ::core::convert::Into::into(log_type), __mi)
217            }
218        }
219    }
220    #[doc = "`Log(crate::unity_engine::logtype::LogType, crate::system::object::Object)` overload"]
221    fn log(
222        self,
223        log_type: impl ::core::convert::Into<crate::unity_engine::logtype::LogType>,
224        message: impl ::core::convert::Into<crate::system::object::Object>,
225    ) -> () {
226        unsafe {
227            let __receiver = <Logger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
228            {
229                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
230                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
231                    panic!(
232                        "unity: virtual slot {}
233 out of range (vtable len {}
234) on the runtime class behind {}
235 (method `{}
236`)",
237                        7usize,
238                        __vt.len(),
239                        <Logger as ::unity::ClassIdentity>::NAME,
240                        "Log",
241                    )
242                });
243                let __inner: extern "C" fn(
244                    Logger,
245                    crate::unity_engine::logtype::LogType,
246                    crate::system::object::Object,
247                    ::unity::OptionalMethod,
248                ) -> () = ::core::mem::transmute(__vi.method_ptr);
249                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
250                __inner(
251                    __receiver,
252                    ::core::convert::Into::into(log_type),
253                    ::core::convert::Into::into(message),
254                    __mi,
255                )
256            }
257        }
258    }
259    #[doc = "`Log(crate::unity_engine::logtype::LogType, crate::system::object::Object, crate::unity_engine::object_2::Object_2)` overload"]
260    fn log_2(
261        self,
262        log_type: impl ::core::convert::Into<crate::unity_engine::logtype::LogType>,
263        message: impl ::core::convert::Into<crate::system::object::Object>,
264        context: impl ::core::convert::Into<crate::unity_engine::object_2::Object_2>,
265    ) -> () {
266        unsafe {
267            let __receiver = <Logger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
268            {
269                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
270                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
271                    panic!(
272                        "unity: virtual slot {}
273 out of range (vtable len {}
274) on the runtime class behind {}
275 (method `{}
276`)",
277                        8usize,
278                        __vt.len(),
279                        <Logger as ::unity::ClassIdentity>::NAME,
280                        "Log",
281                    )
282                });
283                let __inner: extern "C" fn(
284                    Logger,
285                    crate::unity_engine::logtype::LogType,
286                    crate::system::object::Object,
287                    crate::unity_engine::object_2::Object_2,
288                    ::unity::OptionalMethod,
289                ) -> () = ::core::mem::transmute(__vi.method_ptr);
290                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
291                __inner(
292                    __receiver,
293                    ::core::convert::Into::into(log_type),
294                    ::core::convert::Into::into(message),
295                    ::core::convert::Into::into(context),
296                    __mi,
297                )
298            }
299        }
300    }
301    #[doc = "`LogError(::unity::Il2CppString, crate::system::object::Object)` overload"]
302    fn log_error(
303        self,
304        tag: impl ::core::convert::Into<::unity::Il2CppString>,
305        message: impl ::core::convert::Into<crate::system::object::Object>,
306    ) -> () {
307        unsafe {
308            let __receiver = <Logger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
309            {
310                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
311                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
312                    panic!(
313                        "unity: virtual slot {}
314 out of range (vtable len {}
315) on the runtime class behind {}
316 (method `{}
317`)",
318                        9usize,
319                        __vt.len(),
320                        <Logger as ::unity::ClassIdentity>::NAME,
321                        "LogError",
322                    )
323                });
324                let __inner: extern "C" fn(Logger, ::unity::Il2CppString, crate::system::object::Object, ::unity::OptionalMethod) -> () =
325                    ::core::mem::transmute(__vi.method_ptr);
326                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
327                __inner(__receiver, ::core::convert::Into::into(tag), ::core::convert::Into::into(message), __mi)
328            }
329        }
330    }
331    #[doc = "`LogFormat(crate::unity_engine::logtype::LogType, ::unity::Il2CppString, ::unity::Array<crate::system::object::Object>)` overload"]
332    fn log_format(
333        self,
334        log_type: impl ::core::convert::Into<crate::unity_engine::logtype::LogType>,
335        format: impl ::core::convert::Into<::unity::Il2CppString>,
336        args: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
337    ) -> () {
338        unsafe {
339            let __receiver = <Logger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
340            {
341                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
342                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
343                    panic!(
344                        "unity: virtual slot {}
345 out of range (vtable len {}
346) on the runtime class behind {}
347 (method `{}
348`)",
349                        10usize,
350                        __vt.len(),
351                        <Logger as ::unity::ClassIdentity>::NAME,
352                        "LogFormat",
353                    )
354                });
355                let __inner: extern "C" fn(
356                    Logger,
357                    crate::unity_engine::logtype::LogType,
358                    ::unity::Il2CppString,
359                    ::unity::Array<crate::system::object::Object>,
360                    ::unity::OptionalMethod,
361                ) -> () = ::core::mem::transmute(__vi.method_ptr);
362                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
363                __inner(
364                    __receiver,
365                    ::core::convert::Into::into(log_type),
366                    ::core::convert::Into::into(format),
367                    ::core::convert::Into::into(args),
368                    __mi,
369                )
370            }
371        }
372    }
373    #[doc = "`LogFormat(crate::unity_engine::logtype::LogType, crate::unity_engine::object_2::Object_2, ::unity::Il2CppString, ::unity::Array<crate::system::object::Object>)` overload"]
374    fn log_format_2(
375        self,
376        log_type: impl ::core::convert::Into<crate::unity_engine::logtype::LogType>,
377        context: impl ::core::convert::Into<crate::unity_engine::object_2::Object_2>,
378        format: impl ::core::convert::Into<::unity::Il2CppString>,
379        args: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
380    ) -> () {
381        unsafe {
382            let __receiver = <Logger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
383            {
384                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
385                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
386                    panic!(
387                        "unity: virtual slot {}
388 out of range (vtable len {}
389) on the runtime class behind {}
390 (method `{}
391`)",
392                        11usize,
393                        __vt.len(),
394                        <Logger as ::unity::ClassIdentity>::NAME,
395                        "LogFormat",
396                    )
397                });
398                let __inner: extern "C" fn(
399                    Logger,
400                    crate::unity_engine::logtype::LogType,
401                    crate::unity_engine::object_2::Object_2,
402                    ::unity::Il2CppString,
403                    ::unity::Array<crate::system::object::Object>,
404                    ::unity::OptionalMethod,
405                ) -> () = ::core::mem::transmute(__vi.method_ptr);
406                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
407                __inner(
408                    __receiver,
409                    ::core::convert::Into::into(log_type),
410                    ::core::convert::Into::into(context),
411                    ::core::convert::Into::into(format),
412                    ::core::convert::Into::into(args),
413                    __mi,
414                )
415            }
416        }
417    }
418}
419
420#[cfg(feature = "unity_engine-logger")]
421impl<__T: ILogger> ILoggerMethods for __T {}
422
423#[cfg(feature = "unity_engine-logger")]
424impl Logger {
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 get_log_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
430        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
431    }
432
433    pub fn set_log_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
434        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
435    }
436
437    pub fn get_log_enabled_method_info() -> &'static ::unity::il2cpp::MethodInfo {
438        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
439    }
440
441    pub fn set_log_enabled_method_info() -> &'static ::unity::il2cpp::MethodInfo {
442        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
443    }
444
445    pub fn get_filter_log_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
446        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
447    }
448
449    pub fn set_filter_log_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
450        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
451    }
452
453    pub fn is_log_type_allowed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
454        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
455    }
456
457    pub fn get_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
458        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
459    }
460
461    pub fn log_method_info() -> &'static ::unity::il2cpp::MethodInfo {
462        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
463    }
464
465    pub fn log_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
466        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
467    }
468
469    pub fn log_error_method_info() -> &'static ::unity::il2cpp::MethodInfo {
470        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
471    }
472
473    pub fn log_format_method_info() -> &'static ::unity::il2cpp::MethodInfo {
474        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
475    }
476
477    pub fn log_format_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
478        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
479    }
480}
481
482#[cfg(feature = "unity_engine-logger")]
483impl Logger {
484    #[doc = "Direct (non-virtual) call to `Logger`'s own `get_logHandler`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
485    pub unsafe fn get_log_handler(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::iloghandler::ILogHandler {
486        let __mi = Self::get_log_handler_method_info();
487        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::iloghandler::ILogHandler =
488            ::core::mem::transmute(__mi.method_ptr);
489        __inner(this.into(), ::core::option::Option::None)
490    }
491
492    #[doc = "Direct (non-virtual) call to `Logger`'s own `set_logHandler`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
493    pub unsafe fn set_log_handler(this: impl ::core::convert::Into<::unity::IlInstance>, value: crate::unity_engine::iloghandler::ILogHandler) -> () {
494        let __mi = Self::set_log_handler_method_info();
495        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::iloghandler::ILogHandler, ::unity::OptionalMethod) -> () =
496            ::core::mem::transmute(__mi.method_ptr);
497        __inner(this.into(), value, ::core::option::Option::None)
498    }
499
500    #[doc = "Direct (non-virtual) call to `Logger`'s own `get_logEnabled`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
501    pub unsafe fn get_log_enabled(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
502        let __mi = Self::get_log_enabled_method_info();
503        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
504        __inner(this.into(), ::core::option::Option::None)
505    }
506
507    #[doc = "Direct (non-virtual) call to `Logger`'s own `set_logEnabled`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
508    pub unsafe fn set_log_enabled(this: impl ::core::convert::Into<::unity::IlInstance>, value: bool) -> () {
509        let __mi = Self::set_log_enabled_method_info();
510        let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
511        __inner(this.into(), value, ::core::option::Option::None)
512    }
513
514    #[doc = "Direct (non-virtual) call to `Logger`'s own `get_filterLogType`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
515    pub unsafe fn get_filter_log_type(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::logtype::LogType {
516        let __mi = Self::get_filter_log_type_method_info();
517        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::logtype::LogType =
518            ::core::mem::transmute(__mi.method_ptr);
519        __inner(this.into(), ::core::option::Option::None)
520    }
521
522    #[doc = "Direct (non-virtual) call to `Logger`'s own `set_filterLogType`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
523    pub unsafe fn set_filter_log_type(this: impl ::core::convert::Into<::unity::IlInstance>, value: crate::unity_engine::logtype::LogType) -> () {
524        let __mi = Self::set_filter_log_type_method_info();
525        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::logtype::LogType, ::unity::OptionalMethod) -> () =
526            ::core::mem::transmute(__mi.method_ptr);
527        __inner(this.into(), value, ::core::option::Option::None)
528    }
529
530    #[doc = "Direct (non-virtual) call to `Logger`'s own `IsLogTypeAllowed`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
531    pub unsafe fn is_log_type_allowed(
532        this: impl ::core::convert::Into<::unity::IlInstance>,
533        log_type: crate::unity_engine::logtype::LogType,
534    ) -> bool {
535        let __mi = Self::is_log_type_allowed_method_info();
536        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::logtype::LogType, ::unity::OptionalMethod) -> bool =
537            ::core::mem::transmute(__mi.method_ptr);
538        __inner(this.into(), log_type, ::core::option::Option::None)
539    }
540
541    #[doc = "Direct (non-virtual) call to `Logger`'s own `Log`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
542    pub unsafe fn log(
543        this: impl ::core::convert::Into<::unity::IlInstance>,
544        log_type: crate::unity_engine::logtype::LogType,
545        message: crate::system::object::Object,
546    ) -> () {
547        let __mi = Self::log_method_info();
548        let __inner: extern "C" fn(
549            ::unity::IlInstance,
550            crate::unity_engine::logtype::LogType,
551            crate::system::object::Object,
552            ::unity::OptionalMethod,
553        ) -> () = ::core::mem::transmute(__mi.method_ptr);
554        __inner(this.into(), log_type, message, ::core::option::Option::None)
555    }
556
557    #[doc = "Direct (non-virtual) call to `Logger`'s own `Log`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
558    pub unsafe fn log_2(
559        this: impl ::core::convert::Into<::unity::IlInstance>,
560        log_type: crate::unity_engine::logtype::LogType,
561        message: crate::system::object::Object,
562        context: crate::unity_engine::object_2::Object_2,
563    ) -> () {
564        let __mi = Self::log_2_method_info();
565        let __inner: extern "C" fn(
566            ::unity::IlInstance,
567            crate::unity_engine::logtype::LogType,
568            crate::system::object::Object,
569            crate::unity_engine::object_2::Object_2,
570            ::unity::OptionalMethod,
571        ) -> () = ::core::mem::transmute(__mi.method_ptr);
572        __inner(this.into(), log_type, message, context, ::core::option::Option::None)
573    }
574
575    #[doc = "Direct (non-virtual) call to `Logger`'s own `LogError`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
576    pub unsafe fn log_error(
577        this: impl ::core::convert::Into<::unity::IlInstance>,
578        tag: ::unity::Il2CppString,
579        message: crate::system::object::Object,
580    ) -> () {
581        let __mi = Self::log_error_method_info();
582        let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, crate::system::object::Object, ::unity::OptionalMethod) -> () =
583            ::core::mem::transmute(__mi.method_ptr);
584        __inner(this.into(), tag, message, ::core::option::Option::None)
585    }
586
587    #[doc = "Direct (non-virtual) call to `Logger`'s own `LogFormat`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
588    pub unsafe fn log_format(
589        this: impl ::core::convert::Into<::unity::IlInstance>,
590        log_type: crate::unity_engine::logtype::LogType,
591        format: ::unity::Il2CppString,
592        args: ::unity::Array<crate::system::object::Object>,
593    ) -> () {
594        let __mi = Self::log_format_method_info();
595        let __inner: extern "C" fn(
596            ::unity::IlInstance,
597            crate::unity_engine::logtype::LogType,
598            ::unity::Il2CppString,
599            ::unity::Array<crate::system::object::Object>,
600            ::unity::OptionalMethod,
601        ) -> () = ::core::mem::transmute(__mi.method_ptr);
602        __inner(this.into(), log_type, format, args, ::core::option::Option::None)
603    }
604
605    #[doc = "Direct (non-virtual) call to `Logger`'s own `LogFormat`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
606    pub unsafe fn log_format_2(
607        this: impl ::core::convert::Into<::unity::IlInstance>,
608        log_type: crate::unity_engine::logtype::LogType,
609        context: crate::unity_engine::object_2::Object_2,
610        format: ::unity::Il2CppString,
611        args: ::unity::Array<crate::system::object::Object>,
612    ) -> () {
613        let __mi = Self::log_format_2_method_info();
614        let __inner: extern "C" fn(
615            ::unity::IlInstance,
616            crate::unity_engine::logtype::LogType,
617            crate::unity_engine::object_2::Object_2,
618            ::unity::Il2CppString,
619            ::unity::Array<crate::system::object::Object>,
620            ::unity::OptionalMethod,
621        ) -> () = ::core::mem::transmute(__mi.method_ptr);
622        __inner(this.into(), log_type, context, format, args, ::core::option::Option::None)
623    }
624}
625
626#[cfg(feature = "unity_engine-logger")]
627impl Logger {
628    #[doc = "`.ctor(crate::unity_engine::iloghandler::ILogHandler)` — overload selector"]
629    pub fn new(log_handler: crate::unity_engine::iloghandler::ILogHandler) -> Self {
630        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
631            panic!(
632                "{}
633::{}
634 failed to instantiate",
635                ::core::stringify!(Logger),
636                ::core::stringify!(new),
637            )
638        });
639        <Self as ILoggerMethods>::ctor(this, log_handler);
640        this
641    }
642}
643
644#[cfg(feature = "unity_engine-logger")]
645#[doc(hidden)]
646pub mod prelude {
647    pub use super::{ILogger, ILoggerMethods, Logger};
648    pub use crate::system::object::IObject;
649    #[cfg(feature = "system-object")]
650    pub use crate::system::object::IObjectMethods;
651}