engage/generated/moon_sharp/interpreter/
moonsharpmoduleattribute.rs1#[cfg(feature = "moon_sharp-interpreter-moonsharpmoduleattribute-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8
9 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/moonsharpmoduleattribute/MoonSharpModuleAttribute.md"))]
10 #[::unity::class(namespace = "MoonSharp.Interpreter", name = "MoonSharpModuleAttribute")]
11 pub struct MoonSharpModuleAttribute {}
12}
13
14#[cfg(feature = "moon_sharp-interpreter-moonsharpmoduleattribute-types")]
15pub use __types::*;
16
17#[cfg(feature = "moon_sharp-interpreter-moonsharpmoduleattribute")]
18#[doc(hidden)]
19#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
20mod __MoonSharpModuleAttribute_unity_raw {
21 use super::*;
22 #[doc(hidden)]
23 #[allow(non_snake_case)]
24 pub mod __lookup_get_namespace {
25 use super::*;
26 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
27 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
28 ::unity::lookup::method_info_on_class_with_signature(
29 <MoonSharpModuleAttribute as ::unity::ClassIdentity>::class(),
30 "get_Namespace",
31 0,
32 param_types,
33 false,
34 )
35 });
36 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
37 match &*METHOD {
38 ::core::result::Result::Ok(mi) => *mi,
39 ::core::result::Result::Err(e) => {
40 panic!(
41 "method lookup failed: {}
42::{}
43: {}
44",
45 <MoonSharpModuleAttribute as ::unity::ClassIdentity>::NAME,
46 "get_Namespace",
47 e
48 )
49 },
50 }
51 }
52 }
53 #[doc(hidden)]
54 #[allow(non_snake_case)]
55 pub mod __lookup_set_namespace {
56 use super::*;
57 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
58 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
59 ::unity::lookup::method_info_on_class_with_signature(
60 <MoonSharpModuleAttribute as ::unity::ClassIdentity>::class(),
61 "set_Namespace",
62 1,
63 param_types,
64 false,
65 )
66 });
67 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
68 match &*METHOD {
69 ::core::result::Result::Ok(mi) => *mi,
70 ::core::result::Result::Err(e) => {
71 panic!(
72 "method lookup failed: {}
73::{}
74: {}
75",
76 <MoonSharpModuleAttribute as ::unity::ClassIdentity>::NAME,
77 "set_Namespace",
78 e
79 )
80 },
81 }
82 }
83 }
84 #[doc(hidden)]
85 #[allow(non_snake_case)]
86 pub mod __lookup_ctor {
87 use super::*;
88 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
89 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
90 ::unity::lookup::method_info_on_class_with_signature(
91 <MoonSharpModuleAttribute as ::unity::ClassIdentity>::class(),
92 ".ctor",
93 0,
94 param_types,
95 false,
96 )
97 });
98 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
99 match &*METHOD {
100 ::core::result::Result::Ok(mi) => *mi,
101 ::core::result::Result::Err(e) => {
102 panic!(
103 "method lookup failed: {}
104::{}
105: {}
106",
107 <MoonSharpModuleAttribute as ::unity::ClassIdentity>::NAME,
108 ".ctor",
109 e
110 )
111 },
112 }
113 }
114 }
115}
116
117#[cfg(feature = "moon_sharp-interpreter-moonsharpmoduleattribute")]
118pub trait IMoonSharpModuleAttributeMethods: IMoonSharpModuleAttribute {
119 #[doc = "`get_Namespace()` overload"]
120 fn get_namespace(self) -> ::unity::Il2CppString {
121 unsafe {
122 let __receiver =
123 <MoonSharpModuleAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
124 ::unity::il2cpp_call!(__MoonSharpModuleAttribute_unity_raw::__lookup_get_namespace::get_method_info().method_ptr, ::unity::Il2CppString;
125(MoonSharpModuleAttribute)__receiver)
126 }
127 }
128 #[doc = "`set_Namespace(::unity::Il2CppString)` overload"]
129 fn set_namespace(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
130 unsafe {
131 let __receiver =
132 <MoonSharpModuleAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133 ::unity::il2cpp_call!(__MoonSharpModuleAttribute_unity_raw::__lookup_set_namespace::get_method_info().method_ptr,();
134(MoonSharpModuleAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
135 }
136 }
137 #[doc = "`.ctor()` overload"]
138 fn ctor(self) -> () {
139 unsafe {
140 let __receiver =
141 <MoonSharpModuleAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142 ::unity::il2cpp_call!(__MoonSharpModuleAttribute_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
143(MoonSharpModuleAttribute)__receiver)
144 }
145 }
146}
147
148#[cfg(feature = "moon_sharp-interpreter-moonsharpmoduleattribute")]
149impl<__T: IMoonSharpModuleAttribute> IMoonSharpModuleAttributeMethods for __T {}
150
151#[cfg(feature = "moon_sharp-interpreter-moonsharpmoduleattribute")]
152impl MoonSharpModuleAttribute {
153 pub fn get_namespace_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
155 }
156
157 pub fn set_namespace_method_info() -> &'static ::unity::il2cpp::MethodInfo {
158 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
159 }
160
161 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
163 }
164}
165
166#[cfg(feature = "moon_sharp-interpreter-moonsharpmoduleattribute")]
167impl MoonSharpModuleAttribute {
168 #[doc = "`.ctor()` — no args"]
169 pub fn new() -> Self {
170 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
171 panic!(
172 "{}
173::{}
174 failed to instantiate",
175 ::core::stringify!(MoonSharpModuleAttribute),
176 ::core::stringify!(new),
177 )
178 });
179 <Self as IMoonSharpModuleAttributeMethods>::ctor(this);
180 this
181 }
182}
183
184#[cfg(feature = "moon_sharp-interpreter-moonsharpmoduleattribute")]
185#[doc(hidden)]
186pub mod prelude {
187 pub use super::{IMoonSharpModuleAttribute, IMoonSharpModuleAttributeMethods, MoonSharpModuleAttribute};
188}