Skip to main content

engage/generated/moon_sharp/interpreter/
coremodules.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-coremodules-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        r#enum::{Enum, IEnum},
11        valuetype::{IValueType, ValueType},
12    };
13
14    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/coremodules/CoreModules.md"))]
15    #[repr(C)]
16    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17    pub struct CoreModules {
18        pub value: i32,
19    }
20    impl ::unity::ClassIdentity for CoreModules {
21        const NAME: &'static str = "CoreModules";
22        const NAMESPACE: &'static str = "MoonSharp.Interpreter";
23
24        fn class() -> ::unity::Class {
25            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27        }
28    }
29    impl ::unity::IlType for CoreModules {
30        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32        }
33    }
34    impl CoreModules {
35        pub fn none() -> Self {
36            Self { value: 0 }
37        }
38
39        pub fn basic() -> Self {
40            Self { value: 64 }
41        }
42
43        pub fn global_consts() -> Self {
44            Self { value: 1 }
45        }
46
47        pub fn table_iterators() -> Self {
48            Self { value: 2 }
49        }
50
51        pub fn metatables() -> Self {
52            Self { value: 4 }
53        }
54
55        pub fn string() -> Self {
56            Self { value: 8 }
57        }
58
59        pub fn load_methods() -> Self {
60            Self { value: 16 }
61        }
62
63        pub fn table() -> Self {
64            Self { value: 32 }
65        }
66
67        pub fn error_handling() -> Self {
68            Self { value: 128 }
69        }
70
71        pub fn math() -> Self {
72            Self { value: 256 }
73        }
74
75        pub fn coroutine() -> Self {
76            Self { value: 512 }
77        }
78
79        pub fn bit32() -> Self {
80            Self { value: 1024 }
81        }
82
83        pub fn os_time() -> Self {
84            Self { value: 2048 }
85        }
86
87        pub fn os_system() -> Self {
88            Self { value: 4096 }
89        }
90
91        pub fn io() -> Self {
92            Self { value: 8192 }
93        }
94
95        pub fn debug() -> Self {
96            Self { value: 16384 }
97        }
98
99        pub fn dynamic() -> Self {
100            Self { value: 32768 }
101        }
102
103        pub fn json() -> Self {
104            Self { value: 65536 }
105        }
106
107        pub fn preset_hard_sandbox() -> Self {
108            Self { value: 1387 }
109        }
110
111        pub fn preset_soft_sandbox() -> Self {
112            Self { value: 102383 }
113        }
114
115        pub fn preset_default() -> Self {
116            Self { value: 114687 }
117        }
118
119        pub fn preset_complete() -> Self {
120            Self { value: 131071 }
121        }
122    }
123}
124
125#[cfg(feature = "moon_sharp-interpreter-coremodules-types")]
126pub use __types::*;
127
128#[cfg(feature = "moon_sharp-interpreter-coremodules")]
129#[doc(hidden)]
130pub mod prelude {
131    pub use super::CoreModules;
132    #[cfg(feature = "system-object")]
133    pub use crate::system::object::IObjectMethods;
134    #[cfg(feature = "system-enum")]
135    pub use crate::system::r#enum::IEnumMethods;
136    #[cfg(feature = "system-valuetype")]
137    pub use crate::system::valuetype::IValueTypeMethods;
138    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
139}