Skip to main content

engage/generated/app/
debuginfo.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-debuginfo-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::singletonscriptableobject_1::{ISingletonScriptableObject_1, SingletonScriptableObject_1},
10        system::object::{IObject, Object},
11        unity_engine::{
12            object_2::{IObject_2, Object_2},
13            scriptableobject::{IScriptableObject, ScriptableObject},
14        },
15    };
16
17    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/debuginfo/DebugInfo.md"))]
18    #[::unity::class(namespace = "App", name = "DebugInfo")]
19    #[parent(crate::app::singletonscriptableobject_1::SingletonScriptableObject_1<crate::app::debuginfo::DebugInfo>)]
20    pub struct DebugInfo {
21        #[offset(24)]
22        #[rename(name = "SkipWarnings")]
23        pub skip_warnings: ::unity::Array<::unity::Il2CppString>,
24    }
25}
26
27#[cfg(feature = "app-debuginfo-types")]
28pub use __types::*;
29
30#[cfg(feature = "app-debuginfo")]
31impl DebugInfo {
32    #[doc = "`IsSkip(::unity::Il2CppString)` overload"]
33    pub fn is_skip(log_text: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
34        unsafe {
35            ::unity::il2cpp_call!((::unity::module_base()+0x2a04a50usize)as*mut u8,bool;
36(::unity::Il2CppString)::core::convert::Into::into(log_text))
37        }
38    }
39}
40
41#[cfg(feature = "app-debuginfo")]
42pub trait IDebugInfoMethods: IDebugInfo {
43    #[doc = "`.ctor()` overload"]
44    fn ctor(self) -> () {
45        unsafe {
46            let __receiver = <DebugInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
47            ::unity::il2cpp_call!((::unity::module_base()+0x2a04ba0usize)as*mut u8,();
48(DebugInfo)__receiver)
49        }
50    }
51}
52
53#[cfg(feature = "app-debuginfo")]
54impl<__T: IDebugInfo> IDebugInfoMethods for __T {}
55
56#[cfg(feature = "app-debuginfo")]
57impl DebugInfo {
58    pub fn is_skip_method_info() -> &'static ::unity::il2cpp::MethodInfo {
59        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
60    }
61
62    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
63        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
64    }
65}
66
67#[cfg(feature = "app-debuginfo")]
68impl DebugInfo {
69    #[doc = "`.ctor()` — no args"]
70    pub fn new() -> Self {
71        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
72            panic!(
73                "{}
74::{}
75 failed to instantiate",
76                ::core::stringify!(DebugInfo),
77                ::core::stringify!(new),
78            )
79        });
80        <Self as IDebugInfoMethods>::ctor(this);
81        this
82    }
83}
84
85#[cfg(feature = "app-debuginfo")]
86#[doc(hidden)]
87pub mod prelude {
88    pub use super::{DebugInfo, IDebugInfo, IDebugInfoMethods};
89    #[cfg(feature = "app-singletonscriptableobject_1")]
90    pub use crate::app::singletonscriptableobject_1::ISingletonScriptableObject_1Methods;
91    #[cfg(feature = "system-object")]
92    pub use crate::system::object::IObjectMethods;
93    #[cfg(feature = "unity_engine-object_2")]
94    pub use crate::unity_engine::object_2::IObject_2Methods;
95    #[cfg(feature = "unity_engine-scriptableobject")]
96    pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
97    pub use crate::{
98        app::singletonscriptableobject_1::ISingletonScriptableObject_1,
99        system::object::IObject,
100        unity_engine::{object_2::IObject_2, scriptableobject::IScriptableObject},
101    };
102}