engage/generated/app/
debughost.rs1#[cfg(feature = "app-debughost-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/debughost/DebugHost.md"))]
11 #[::unity::class(namespace = "App", name = "DebugHost")]
12 #[parent(crate::system::object::Object)]
13 pub struct DebugHost {}
14}
15
16#[cfg(feature = "app-debughost-types")]
17pub use __types::*;
18
19#[cfg(feature = "app-debughost")]
20impl DebugHost {
21 #[doc = "`Setup(::unity::Il2CppString)` overload"]
22 pub fn setup(root: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
23 unsafe {
24 ::unity::il2cpp_call!((::unity::module_base()+0x2a04980usize)as*mut u8,();
25(::unity::Il2CppString)::core::convert::Into::into(root))
26 }
27 }
28
29 #[doc = "`Cleanup()` overload"]
30 pub fn cleanup() -> () {
31 unsafe {
32 ::unity::il2cpp_call!((::unity::module_base()+0x2a04990usize)as*mut u8,();
33 )
34 }
35 }
36
37 #[doc = "`HasEnv(::unity::Il2CppString)` overload"]
38 pub fn has_env(name: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
39 unsafe {
40 ::unity::il2cpp_call!((::unity::module_base()+0x2a049a0usize)as*mut u8,bool;
41(::unity::Il2CppString)::core::convert::Into::into(name))
42 }
43 }
44
45 #[doc = "`GetEnv(::unity::Il2CppString)` overload"]
46 pub fn get_env(name: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
47 unsafe {
48 ::unity::il2cpp_call!((::unity::module_base()+0x2a049b0usize)as*mut u8, ::unity::Il2CppString;
49(::unity::Il2CppString)::core::convert::Into::into(name))
50 }
51 }
52
53 #[doc = "`GetUserName()` overload"]
54 pub fn get_user_name() -> ::unity::Il2CppString {
55 unsafe {
56 ::unity::il2cpp_call!((::unity::module_base()+0x2a049c0usize)as*mut u8, ::unity::Il2CppString;
57 )
58 }
59 }
60
61 #[doc = "`get_IsConnected()` overload"]
62 pub fn get_is_connected() -> bool {
63 unsafe {
64 ::unity::il2cpp_call!((::unity::module_base()+0x2a049d0usize)as*mut u8,bool;
65 )
66 }
67 }
68
69 #[doc = "`get_Root()` overload"]
70 pub fn get_root() -> ::unity::Il2CppString {
71 unsafe {
72 ::unity::il2cpp_call!((::unity::module_base()+0x2a049e0usize)as*mut u8, ::unity::Il2CppString;
73 )
74 }
75 }
76
77 #[doc = "`WriteToHost(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
78 pub fn write_to_host(path: impl ::core::convert::Into<::unity::Il2CppString>, text: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
79 unsafe {
80 ::unity::il2cpp_call!((::unity::module_base()+0x2a049f0usize)as*mut u8,bool;
81(::unity::Il2CppString)::core::convert::Into::into(path),(::unity::Il2CppString)::core::convert::Into::into(text))
82 }
83 }
84
85 #[doc = "`WriteToHost(::unity::Il2CppString, ::unity::Array<u8>)` overload"]
86 pub fn write_to_host_2(path: impl ::core::convert::Into<::unity::Il2CppString>, data: impl ::core::convert::Into<::unity::Array<u8>>) -> bool {
87 unsafe {
88 ::unity::il2cpp_call!((::unity::module_base()+0x2a04a00usize)as*mut u8,bool;
89(::unity::Il2CppString)::core::convert::Into::into(path),(::unity::Array<u8>)::core::convert::Into::into(data))
90 }
91 }
92
93 #[doc = "`WriteToSdCard(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
94 pub fn write_to_sd_card(
95 path: impl ::core::convert::Into<::unity::Il2CppString>,
96 text: impl ::core::convert::Into<::unity::Il2CppString>,
97 ) -> bool {
98 unsafe {
99 ::unity::il2cpp_call!((::unity::module_base()+0x2a04a10usize)as*mut u8,bool;
100(::unity::Il2CppString)::core::convert::Into::into(path),(::unity::Il2CppString)::core::convert::Into::into(text))
101 }
102 }
103
104 #[doc = "`WriteToSdCard(::unity::Il2CppString, ::unity::Array<u8>)` overload"]
105 pub fn write_to_sd_card_2(path: impl ::core::convert::Into<::unity::Il2CppString>, data: impl ::core::convert::Into<::unity::Array<u8>>) -> bool {
106 unsafe {
107 ::unity::il2cpp_call!((::unity::module_base()+0x2a04a20usize)as*mut u8,bool;
108(::unity::Il2CppString)::core::convert::Into::into(path),(::unity::Array<u8>)::core::convert::Into::into(data))
109 }
110 }
111
112 #[doc = "`Exists(::unity::Il2CppString)` overload"]
113 pub fn exists(path: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
114 unsafe {
115 ::unity::il2cpp_call!((::unity::module_base()+0x2a04a30usize)as*mut u8,bool;
116(::unity::Il2CppString)::core::convert::Into::into(path))
117 }
118 }
119
120 #[doc = "`Load(::unity::Il2CppString)` overload"]
121 pub fn load(path: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Array<u8> {
122 unsafe {
123 ::unity::il2cpp_call!((::unity::module_base()+0x2a04a40usize)as*mut u8, ::unity::Array<u8> ;
124(::unity::Il2CppString)::core::convert::Into::into(path))
125 }
126 }
127}
128
129#[cfg(feature = "app-debughost")]
130impl DebugHost {
131 pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
133 }
134
135 pub fn cleanup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
137 }
138
139 pub fn has_env_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
141 }
142
143 pub fn get_env_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
145 }
146
147 pub fn get_user_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
149 }
150
151 pub fn get_is_connected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
153 }
154
155 pub fn get_root_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
157 }
158
159 pub fn write_to_host_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
161 }
162
163 pub fn write_to_host_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
165 }
166
167 pub fn write_to_sd_card_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
169 }
170
171 pub fn write_to_sd_card_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
173 }
174
175 pub fn exists_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
177 }
178
179 pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
180 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
181 }
182}
183
184#[cfg(feature = "app-debughost")]
185#[doc(hidden)]
186pub mod prelude {
187 pub use super::{DebugHost, IDebugHost};
188 pub use crate::system::object::IObject;
189 #[cfg(feature = "system-object")]
190 pub use crate::system::object::IObjectMethods;
191}