Skip to main content

engage/generated/app/
debugautoplay.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-debugautoplay-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/app/debugautoplay/DebugAutoPlay.md"))]
11    #[::unity::class(namespace = "App", name = "DebugAutoPlay")]
12    #[parent(crate::system::object::Object)]
13    pub struct DebugAutoPlay {}
14}
15
16#[cfg(feature = "app-debugautoplay-types")]
17pub use __types::*;
18
19#[cfg(feature = "app-debugautoplay")]
20impl DebugAutoPlay {
21    #[doc = "`SetEnable(bool)` overload"]
22    pub fn set_enable(enable: impl ::core::convert::Into<bool>) -> () {
23        unsafe {
24            ::unity::il2cpp_call!((::unity::module_base()+0x2a028f0usize)as*mut u8,();
25(bool)::core::convert::Into::into(enable))
26        }
27    }
28
29    #[doc = "`IsEnable()` overload"]
30    pub fn is_enable() -> bool {
31        unsafe {
32            ::unity::il2cpp_call!((::unity::module_base()+0x2a02900usize)as*mut u8,bool;
33            )
34        }
35    }
36
37    #[doc = "`IsSkip()` overload"]
38    pub fn is_skip() -> bool {
39        unsafe {
40            ::unity::il2cpp_call!((::unity::module_base()+0x2a02910usize)as*mut u8,bool;
41            )
42        }
43    }
44
45    #[doc = "`IsMonitor()` overload"]
46    pub fn is_monitor() -> bool {
47        unsafe {
48            ::unity::il2cpp_call!((::unity::module_base()+0x2a02920usize)as*mut u8,bool;
49            )
50        }
51    }
52
53    #[doc = "`Update()` overload"]
54    pub fn update() -> () {
55        unsafe {
56            ::unity::il2cpp_call!((::unity::module_base()+0x2a02930usize)as*mut u8,();
57            )
58        }
59    }
60
61    #[doc = "`GetName()` overload"]
62    pub fn get_name() -> ::unity::Il2CppString {
63        unsafe {
64            ::unity::il2cpp_call!((::unity::module_base()+0x2a02940usize)as*mut u8, ::unity::Il2CppString;
65            )
66        }
67    }
68}
69
70#[cfg(feature = "app-debugautoplay")]
71pub trait IDebugAutoPlayMethods: IDebugAutoPlay {
72    #[doc = "`.ctor()` overload"]
73    fn ctor(self) -> () {
74        unsafe {
75            let __receiver = <DebugAutoPlay as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76            ::unity::il2cpp_call!((::unity::module_base()+0x2a02950usize)as*mut u8,();
77(DebugAutoPlay)__receiver)
78        }
79    }
80}
81
82#[cfg(feature = "app-debugautoplay")]
83impl<__T: IDebugAutoPlay> IDebugAutoPlayMethods for __T {}
84
85#[cfg(feature = "app-debugautoplay")]
86impl DebugAutoPlay {
87    pub fn set_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
88        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
89    }
90
91    pub fn is_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
92        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
93    }
94
95    pub fn is_skip_method_info() -> &'static ::unity::il2cpp::MethodInfo {
96        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
97    }
98
99    pub fn is_monitor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
101    }
102
103    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
104        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
105    }
106
107    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
108        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
109    }
110
111    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
112        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
113    }
114}
115
116#[cfg(feature = "app-debugautoplay")]
117impl DebugAutoPlay {
118    #[doc = "`.ctor()` — no args"]
119    pub fn new() -> Self {
120        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
121            panic!(
122                "{}
123::{}
124 failed to instantiate",
125                ::core::stringify!(DebugAutoPlay),
126                ::core::stringify!(new),
127            )
128        });
129        <Self as IDebugAutoPlayMethods>::ctor(this);
130        this
131    }
132}
133
134#[cfg(feature = "app-debugautoplay")]
135#[doc(hidden)]
136pub mod prelude {
137    pub use super::{DebugAutoPlay, IDebugAutoPlay, IDebugAutoPlayMethods};
138    pub use crate::system::object::IObject;
139    #[cfg(feature = "system-object")]
140    pub use crate::system::object::IObjectMethods;
141}