engage/generated/app/
debugmonitor.rs1#[cfg(feature = "app-debugmonitor-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::singletonmonobehaviour_1::{ISingletonMonoBehaviour_1, SingletonMonoBehaviour_1},
10 system::object::{IObject, Object},
11 unity_engine::{
12 behaviour::{Behaviour, IBehaviour},
13 component::{Component, IComponent},
14 monobehaviour::{IMonoBehaviour, MonoBehaviour},
15 object_2::{IObject_2, Object_2},
16 },
17 };
18
19 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/debugmonitor/DebugMonitor.md"))]
20 #[::unity::class(namespace = "App", name = "DebugMonitor")]
21 #[parent(crate::app::singletonmonobehaviour_1::SingletonMonoBehaviour_1<crate::app::debugmonitor::DebugMonitor>)]
22 pub struct DebugMonitor {}
23}
24
25#[cfg(feature = "app-debugmonitor-types")]
26pub use __types::*;
27
28#[cfg(feature = "app-debugmonitor")]
29impl DebugMonitor {
30 #[doc = "`IsShow()` overload"]
31 pub fn is_show() -> bool {
32 unsafe {
33 ::unity::il2cpp_call!((::unity::module_base()+0x2a0ee70usize)as*mut u8,bool;
34 )
35 }
36 }
37}
38
39#[cfg(feature = "app-debugmonitor")]
40pub trait IDebugMonitorMethods: IDebugMonitor {
41 #[doc = "`.ctor()` overload"]
42 fn ctor(self) -> () {
43 unsafe {
44 let __receiver = <DebugMonitor as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
45 ::unity::il2cpp_call!((::unity::module_base()+0x2a0ee80usize)as*mut u8,();
46(DebugMonitor)__receiver)
47 }
48 }
49}
50
51#[cfg(feature = "app-debugmonitor")]
52impl<__T: IDebugMonitor> IDebugMonitorMethods for __T {}
53
54#[cfg(feature = "app-debugmonitor")]
55impl DebugMonitor {
56 pub fn is_show_method_info() -> &'static ::unity::il2cpp::MethodInfo {
57 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
58 }
59
60 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
61 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
62 }
63}
64
65#[cfg(feature = "app-debugmonitor")]
66impl DebugMonitor {
67 #[doc = "`.ctor()` — no args"]
68 pub fn new() -> Self {
69 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
70 panic!(
71 "{}
72::{}
73 failed to instantiate",
74 ::core::stringify!(DebugMonitor),
75 ::core::stringify!(new),
76 )
77 });
78 <Self as IDebugMonitorMethods>::ctor(this);
79 this
80 }
81}
82
83#[cfg(feature = "app-debugmonitor")]
84#[doc(hidden)]
85pub mod prelude {
86 pub use super::{DebugMonitor, IDebugMonitor, IDebugMonitorMethods};
87 #[cfg(feature = "app-singletonmonobehaviour_1")]
88 pub use crate::app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1Methods;
89 #[cfg(feature = "system-object")]
90 pub use crate::system::object::IObjectMethods;
91 #[cfg(feature = "unity_engine-behaviour")]
92 pub use crate::unity_engine::behaviour::IBehaviourMethods;
93 #[cfg(feature = "unity_engine-component")]
94 pub use crate::unity_engine::component::IComponentMethods;
95 #[cfg(feature = "unity_engine-monobehaviour")]
96 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
97 #[cfg(feature = "unity_engine-object_2")]
98 pub use crate::unity_engine::object_2::IObject_2Methods;
99 pub use crate::{
100 app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1,
101 system::object::IObject,
102 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
103 };
104}