engage/generated/moon_sharp/interpreter/core_lib/
ossystemmodule.rs1#[cfg(feature = "moon_sharp-interpreter-core_lib-ossystemmodule-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/moon_sharp/interpreter/core_lib/ossystemmodule/OsSystemModule.md"))]
11 #[::unity::class(namespace = "MoonSharp.Interpreter.CoreLib", name = "OsSystemModule")]
12 #[parent(crate::system::object::Object)]
13 pub struct OsSystemModule {}
14}
15
16#[cfg(feature = "moon_sharp-interpreter-core_lib-ossystemmodule-types")]
17pub use __types::*;
18
19#[cfg(feature = "moon_sharp-interpreter-core_lib-ossystemmodule")]
20#[doc(hidden)]
21#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
22mod __OsSystemModule_unity_raw {
23 use super::*;
24 #[doc(hidden)]
25 #[allow(non_snake_case)]
26 pub mod __lookup_execute {
27 use super::*;
28 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
29 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
30 <crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext as ::unity::IlType>::il_type(),
31 <crate::moon_sharp::interpreter::callbackarguments::CallbackArguments as ::unity::IlType>::il_type(),
32 ];
33 ::unity::lookup::method_info_on_class_with_signature(<OsSystemModule as ::unity::ClassIdentity>::class(), "execute", 2, param_types, true)
34 });
35 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
36 match &*METHOD {
37 ::core::result::Result::Ok(mi) => *mi,
38 ::core::result::Result::Err(e) => {
39 panic!(
40 "method lookup failed: {}
41::{}
42: {}
43",
44 <OsSystemModule as ::unity::ClassIdentity>::NAME,
45 "execute",
46 e
47 )
48 },
49 }
50 }
51 }
52 #[doc(hidden)]
53 #[allow(non_snake_case)]
54 pub mod __lookup_exit {
55 use super::*;
56 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
57 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
58 <crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext as ::unity::IlType>::il_type(),
59 <crate::moon_sharp::interpreter::callbackarguments::CallbackArguments as ::unity::IlType>::il_type(),
60 ];
61 ::unity::lookup::method_info_on_class_with_signature(<OsSystemModule as ::unity::ClassIdentity>::class(), "exit", 2, param_types, true)
62 });
63 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
64 match &*METHOD {
65 ::core::result::Result::Ok(mi) => *mi,
66 ::core::result::Result::Err(e) => {
67 panic!(
68 "method lookup failed: {}
69::{}
70: {}
71",
72 <OsSystemModule as ::unity::ClassIdentity>::NAME,
73 "exit",
74 e
75 )
76 },
77 }
78 }
79 }
80 #[doc(hidden)]
81 #[allow(non_snake_case)]
82 pub mod __lookup_getenv {
83 use super::*;
84 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
85 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
86 <crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext as ::unity::IlType>::il_type(),
87 <crate::moon_sharp::interpreter::callbackarguments::CallbackArguments as ::unity::IlType>::il_type(),
88 ];
89 ::unity::lookup::method_info_on_class_with_signature(<OsSystemModule as ::unity::ClassIdentity>::class(), "getenv", 2, param_types, true)
90 });
91 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
92 match &*METHOD {
93 ::core::result::Result::Ok(mi) => *mi,
94 ::core::result::Result::Err(e) => {
95 panic!(
96 "method lookup failed: {}
97::{}
98: {}
99",
100 <OsSystemModule as ::unity::ClassIdentity>::NAME,
101 "getenv",
102 e
103 )
104 },
105 }
106 }
107 }
108 #[doc(hidden)]
109 #[allow(non_snake_case)]
110 pub mod __lookup_remove {
111 use super::*;
112 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
113 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
114 <crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext as ::unity::IlType>::il_type(),
115 <crate::moon_sharp::interpreter::callbackarguments::CallbackArguments as ::unity::IlType>::il_type(),
116 ];
117 ::unity::lookup::method_info_on_class_with_signature(<OsSystemModule as ::unity::ClassIdentity>::class(), "remove", 2, param_types, true)
118 });
119 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
120 match &*METHOD {
121 ::core::result::Result::Ok(mi) => *mi,
122 ::core::result::Result::Err(e) => {
123 panic!(
124 "method lookup failed: {}
125::{}
126: {}
127",
128 <OsSystemModule as ::unity::ClassIdentity>::NAME,
129 "remove",
130 e
131 )
132 },
133 }
134 }
135 }
136 #[doc(hidden)]
137 #[allow(non_snake_case)]
138 pub mod __lookup_rename {
139 use super::*;
140 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
141 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
142 <crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext as ::unity::IlType>::il_type(),
143 <crate::moon_sharp::interpreter::callbackarguments::CallbackArguments as ::unity::IlType>::il_type(),
144 ];
145 ::unity::lookup::method_info_on_class_with_signature(<OsSystemModule as ::unity::ClassIdentity>::class(), "rename", 2, param_types, true)
146 });
147 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148 match &*METHOD {
149 ::core::result::Result::Ok(mi) => *mi,
150 ::core::result::Result::Err(e) => {
151 panic!(
152 "method lookup failed: {}
153::{}
154: {}
155",
156 <OsSystemModule as ::unity::ClassIdentity>::NAME,
157 "rename",
158 e
159 )
160 },
161 }
162 }
163 }
164 #[doc(hidden)]
165 #[allow(non_snake_case)]
166 pub mod __lookup_setlocale {
167 use super::*;
168 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
169 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
170 <crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext as ::unity::IlType>::il_type(),
171 <crate::moon_sharp::interpreter::callbackarguments::CallbackArguments as ::unity::IlType>::il_type(),
172 ];
173 ::unity::lookup::method_info_on_class_with_signature(
174 <OsSystemModule as ::unity::ClassIdentity>::class(),
175 "setlocale",
176 2,
177 param_types,
178 true,
179 )
180 });
181 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182 match &*METHOD {
183 ::core::result::Result::Ok(mi) => *mi,
184 ::core::result::Result::Err(e) => {
185 panic!(
186 "method lookup failed: {}
187::{}
188: {}
189",
190 <OsSystemModule as ::unity::ClassIdentity>::NAME,
191 "setlocale",
192 e
193 )
194 },
195 }
196 }
197 }
198 #[doc(hidden)]
199 #[allow(non_snake_case)]
200 pub mod __lookup_tmpname {
201 use super::*;
202 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
203 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
204 <crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext as ::unity::IlType>::il_type(),
205 <crate::moon_sharp::interpreter::callbackarguments::CallbackArguments as ::unity::IlType>::il_type(),
206 ];
207 ::unity::lookup::method_info_on_class_with_signature(<OsSystemModule as ::unity::ClassIdentity>::class(), "tmpname", 2, param_types, true)
208 });
209 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
210 match &*METHOD {
211 ::core::result::Result::Ok(mi) => *mi,
212 ::core::result::Result::Err(e) => {
213 panic!(
214 "method lookup failed: {}
215::{}
216: {}
217",
218 <OsSystemModule as ::unity::ClassIdentity>::NAME,
219 "tmpname",
220 e
221 )
222 },
223 }
224 }
225 }
226 #[doc(hidden)]
227 #[allow(non_snake_case)]
228 pub mod __lookup_ctor {
229 use super::*;
230 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
231 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
232 ::unity::lookup::method_info_on_class_with_signature(<OsSystemModule as ::unity::ClassIdentity>::class(), ".ctor", 0, param_types, false)
233 });
234 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235 match &*METHOD {
236 ::core::result::Result::Ok(mi) => *mi,
237 ::core::result::Result::Err(e) => {
238 panic!(
239 "method lookup failed: {}
240::{}
241: {}
242",
243 <OsSystemModule as ::unity::ClassIdentity>::NAME,
244 ".ctor",
245 e
246 )
247 },
248 }
249 }
250 }
251}
252
253#[cfg(feature = "moon_sharp-interpreter-core_lib-ossystemmodule")]
254impl OsSystemModule {
255 #[doc = "`execute(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)` overload"]
256 pub fn execute(
257 execution_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
258 args: impl ::core::convert::Into<crate::moon_sharp::interpreter::callbackarguments::CallbackArguments>,
259 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
260 unsafe {
261 ::unity::il2cpp_call!(__OsSystemModule_unity_raw::__lookup_execute::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
262(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)::core::convert::Into::into(execution_context),(crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)::core::convert::Into::into(args))
263 }
264 }
265
266 #[doc = "`exit(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)` overload"]
267 pub fn exit(
268 execution_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
269 args: impl ::core::convert::Into<crate::moon_sharp::interpreter::callbackarguments::CallbackArguments>,
270 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
271 unsafe {
272 ::unity::il2cpp_call!(__OsSystemModule_unity_raw::__lookup_exit::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
273(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)::core::convert::Into::into(execution_context),(crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)::core::convert::Into::into(args))
274 }
275 }
276
277 #[doc = "`getenv(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)` overload"]
278 pub fn getenv(
279 execution_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
280 args: impl ::core::convert::Into<crate::moon_sharp::interpreter::callbackarguments::CallbackArguments>,
281 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
282 unsafe {
283 ::unity::il2cpp_call!(__OsSystemModule_unity_raw::__lookup_getenv::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
284(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)::core::convert::Into::into(execution_context),(crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)::core::convert::Into::into(args))
285 }
286 }
287
288 #[doc = "`remove(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)` overload"]
289 pub fn remove(
290 execution_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
291 args: impl ::core::convert::Into<crate::moon_sharp::interpreter::callbackarguments::CallbackArguments>,
292 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
293 unsafe {
294 ::unity::il2cpp_call!(__OsSystemModule_unity_raw::__lookup_remove::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
295(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)::core::convert::Into::into(execution_context),(crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)::core::convert::Into::into(args))
296 }
297 }
298
299 #[doc = "`rename(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)` overload"]
300 pub fn rename(
301 execution_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
302 args: impl ::core::convert::Into<crate::moon_sharp::interpreter::callbackarguments::CallbackArguments>,
303 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
304 unsafe {
305 ::unity::il2cpp_call!(__OsSystemModule_unity_raw::__lookup_rename::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
306(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)::core::convert::Into::into(execution_context),(crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)::core::convert::Into::into(args))
307 }
308 }
309
310 #[doc = "`setlocale(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)` overload"]
311 pub fn setlocale(
312 execution_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
313 args: impl ::core::convert::Into<crate::moon_sharp::interpreter::callbackarguments::CallbackArguments>,
314 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
315 unsafe {
316 ::unity::il2cpp_call!(__OsSystemModule_unity_raw::__lookup_setlocale::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
317(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)::core::convert::Into::into(execution_context),(crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)::core::convert::Into::into(args))
318 }
319 }
320
321 #[doc = "`tmpname(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)` overload"]
322 pub fn tmpname(
323 execution_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
324 args: impl ::core::convert::Into<crate::moon_sharp::interpreter::callbackarguments::CallbackArguments>,
325 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
326 unsafe {
327 ::unity::il2cpp_call!(__OsSystemModule_unity_raw::__lookup_tmpname::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
328(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)::core::convert::Into::into(execution_context),(crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)::core::convert::Into::into(args))
329 }
330 }
331}
332
333#[cfg(feature = "moon_sharp-interpreter-core_lib-ossystemmodule")]
334pub trait IOsSystemModuleMethods: IOsSystemModule {
335 #[doc = "`.ctor()` overload"]
336 fn ctor(self) -> () {
337 unsafe {
338 let __receiver = <OsSystemModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
339 ::unity::il2cpp_call!(__OsSystemModule_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
340(OsSystemModule)__receiver)
341 }
342 }
343}
344
345#[cfg(feature = "moon_sharp-interpreter-core_lib-ossystemmodule")]
346impl<__T: IOsSystemModule> IOsSystemModuleMethods for __T {}
347
348#[cfg(feature = "moon_sharp-interpreter-core_lib-ossystemmodule")]
349impl OsSystemModule {
350 pub fn execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
351 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
352 }
353
354 pub fn exit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
355 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
356 }
357
358 pub fn getenv_method_info() -> &'static ::unity::il2cpp::MethodInfo {
359 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
360 }
361
362 pub fn remove_method_info() -> &'static ::unity::il2cpp::MethodInfo {
363 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
364 }
365
366 pub fn rename_method_info() -> &'static ::unity::il2cpp::MethodInfo {
367 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
368 }
369
370 pub fn setlocale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
371 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
372 }
373
374 pub fn tmpname_method_info() -> &'static ::unity::il2cpp::MethodInfo {
375 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
376 }
377
378 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
379 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
380 }
381}
382
383#[cfg(feature = "moon_sharp-interpreter-core_lib-ossystemmodule")]
384impl OsSystemModule {
385 #[doc = "`.ctor()` — no args"]
386 pub fn new() -> Self {
387 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
388 panic!(
389 "{}
390::{}
391 failed to instantiate",
392 ::core::stringify!(OsSystemModule),
393 ::core::stringify!(new),
394 )
395 });
396 <Self as IOsSystemModuleMethods>::ctor(this);
397 this
398 }
399}
400
401#[cfg(feature = "moon_sharp-interpreter-core_lib-ossystemmodule")]
402#[doc(hidden)]
403pub mod prelude {
404 pub use super::{IOsSystemModule, IOsSystemModuleMethods, OsSystemModule};
405 pub use crate::system::object::IObject;
406 #[cfg(feature = "system-object")]
407 pub use crate::system::object::IObjectMethods;
408}