engage/generated/moon_sharp/interpreter/execution/
closurecontext.rs1#[cfg(feature = "moon_sharp-interpreter-execution-closurecontext-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 collections::generic::list_1::{IList_1, List_1},
10 object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/execution/closurecontext/ClosureContext.md"))]
14 #[::unity::class(namespace = "MoonSharp.Interpreter.Execution", name = "ClosureContext")]
15 #[parent(crate::system::collections::generic::list_1::List_1<crate::moon_sharp::interpreter::dynvalue::DynValue>)]
16 pub struct ClosureContext {}
17}
18
19#[cfg(feature = "moon_sharp-interpreter-execution-closurecontext-types")]
20pub use __types::*;
21
22#[cfg(feature = "moon_sharp-interpreter-execution-closurecontext")]
23#[doc(hidden)]
24#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
25mod __ClosureContext_unity_raw {
26 use super::*;
27 #[doc(hidden)]
28 #[allow(non_snake_case)]
29 pub mod __lookup_get_symbols {
30 use super::*;
31 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
32 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
33 ::unity::lookup::method_info_on_class_with_signature(
34 <ClosureContext as ::unity::ClassIdentity>::class(),
35 "get_Symbols",
36 0,
37 param_types,
38 false,
39 )
40 });
41 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
42 match &*METHOD {
43 ::core::result::Result::Ok(mi) => *mi,
44 ::core::result::Result::Err(e) => {
45 panic!(
46 "method lookup failed: {}
47::{}
48: {}
49",
50 <ClosureContext as ::unity::ClassIdentity>::NAME,
51 "get_Symbols",
52 e
53 )
54 },
55 }
56 }
57 }
58 #[doc(hidden)]
59 #[allow(non_snake_case)]
60 pub mod __lookup_set_symbols {
61 use super::*;
62 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
63 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Array<::unity::Il2CppString> as ::unity::IlType>::il_type()];
64 ::unity::lookup::method_info_on_class_with_signature(
65 <ClosureContext as ::unity::ClassIdentity>::class(),
66 "set_Symbols",
67 1,
68 param_types,
69 false,
70 )
71 });
72 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
73 match &*METHOD {
74 ::core::result::Result::Ok(mi) => *mi,
75 ::core::result::Result::Err(e) => {
76 panic!(
77 "method lookup failed: {}
78::{}
79: {}
80",
81 <ClosureContext as ::unity::ClassIdentity>::NAME,
82 "set_Symbols",
83 e
84 )
85 },
86 }
87 }
88 }
89 #[doc(hidden)]
90 #[allow(non_snake_case)]
91 pub mod __lookup_ctor {
92 use super::*;
93 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
94 let param_types: &[& 'static::unity::il2cpp::Il2CppType]= &[< ::unity::Array<crate::moon_sharp::interpreter::symbolref::SymbolRef>as::unity::IlType> ::il_type(), <crate::system::collections::generic::ienumerable_1::IEnumerable_1<crate::moon_sharp::interpreter::dynvalue::DynValue>as::unity::IlType> ::il_type()];
95 ::unity::lookup::method_info_on_class_with_signature(<ClosureContext as ::unity::ClassIdentity>::class(), ".ctor", 2, param_types, false)
96 });
97 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
98 match &*METHOD {
99 ::core::result::Result::Ok(mi) => *mi,
100 ::core::result::Result::Err(e) => {
101 panic!(
102 "method lookup failed: {}
103::{}
104: {}
105",
106 <ClosureContext as ::unity::ClassIdentity>::NAME,
107 ".ctor",
108 e
109 )
110 },
111 }
112 }
113 }
114 #[doc(hidden)]
115 #[allow(non_snake_case)]
116 pub mod __lookup_ctor_2 {
117 use super::*;
118 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
119 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
120 ::unity::lookup::method_info_on_class_with_signature(<ClosureContext as ::unity::ClassIdentity>::class(), ".ctor", 0, param_types, false)
121 });
122 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123 match &*METHOD {
124 ::core::result::Result::Ok(mi) => *mi,
125 ::core::result::Result::Err(e) => {
126 panic!(
127 "method lookup failed: {}
128::{}
129: {}
130",
131 <ClosureContext as ::unity::ClassIdentity>::NAME,
132 ".ctor",
133 e
134 )
135 },
136 }
137 }
138 }
139}
140
141#[cfg(feature = "moon_sharp-interpreter-execution-closurecontext")]
142pub trait IClosureContextMethods: IClosureContext {
143 #[doc = "`get_Symbols()` overload"]
144 fn get_symbols(self) -> ::unity::Array<::unity::Il2CppString> {
145 unsafe {
146 let __receiver = <ClosureContext as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147 ::unity::il2cpp_call!(__ClosureContext_unity_raw::__lookup_get_symbols::get_method_info().method_ptr, ::unity::Array< ::unity::Il2CppString> ;
148(ClosureContext)__receiver)
149 }
150 }
151 #[doc = "`set_Symbols(::unity::Array<::unity::Il2CppString>)` overload"]
152 fn set_symbols(self, value: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>) -> () {
153 unsafe {
154 let __receiver = <ClosureContext as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155 ::unity::il2cpp_call!(__ClosureContext_unity_raw::__lookup_set_symbols::get_method_info().method_ptr,();
156(ClosureContext)__receiver,(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(value))
157 }
158 }
159 #[doc = "`.ctor(::unity::Array<crate::moon_sharp::interpreter::symbolref::SymbolRef>, crate::system::collections::generic::ienumerable_1::IEnumerable_1<crate::moon_sharp::interpreter::dynvalue::DynValue>)` overload"]
160 fn ctor(
161 self,
162 symbols: impl ::core::convert::Into<::unity::Array<crate::moon_sharp::interpreter::symbolref::SymbolRef>>,
163 values: impl ::core::convert::Into<
164 crate::system::collections::generic::ienumerable_1::IEnumerable_1<crate::moon_sharp::interpreter::dynvalue::DynValue>,
165 >,
166 ) -> () {
167 unsafe {
168 let __receiver = <ClosureContext as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
169 ::unity::il2cpp_call!(__ClosureContext_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
170(ClosureContext)__receiver,(::unity::Array<crate::moon_sharp::interpreter::symbolref::SymbolRef>)::core::convert::Into::into(symbols),(crate::system::collections::generic::ienumerable_1::IEnumerable_1<crate::moon_sharp::interpreter::dynvalue::DynValue>)::core::convert::Into::into(values))
171 }
172 }
173 #[doc = "`.ctor()` overload"]
174 fn ctor_2(self) -> () {
175 unsafe {
176 let __receiver = <ClosureContext as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
177 ::unity::il2cpp_call!(__ClosureContext_unity_raw::__lookup_ctor_2::get_method_info().method_ptr,();
178(ClosureContext)__receiver)
179 }
180 }
181}
182
183#[cfg(feature = "moon_sharp-interpreter-execution-closurecontext")]
184impl<__T: IClosureContext> IClosureContextMethods for __T {}
185
186#[cfg(feature = "moon_sharp-interpreter-execution-closurecontext")]
187impl ClosureContext {
188 pub fn get_symbols_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
190 }
191
192 pub fn set_symbols_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
194 }
195
196 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
198 }
199
200 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
202 }
203}
204
205#[cfg(feature = "moon_sharp-interpreter-execution-closurecontext")]
206impl ClosureContext {
207 #[doc = "`.ctor(::unity::Array<crate::moon_sharp::interpreter::symbolref::SymbolRef>, crate::system::collections::generic::ienumerable_1::IEnumerable_1<crate::moon_sharp::interpreter::dynvalue::DynValue>)` — overload selector"]
208 pub fn new(
209 symbols: ::unity::Array<crate::moon_sharp::interpreter::symbolref::SymbolRef>,
210 values: crate::system::collections::generic::ienumerable_1::IEnumerable_1<crate::moon_sharp::interpreter::dynvalue::DynValue>,
211 ) -> Self {
212 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
213 panic!(
214 "{}
215::{}
216 failed to instantiate",
217 ::core::stringify!(ClosureContext),
218 ::core::stringify!(new),
219 )
220 });
221 <Self as IClosureContextMethods>::ctor(this, symbols, values);
222 this
223 }
224
225 #[doc = "`.ctor()` — no args"]
226 pub fn new_2() -> Self {
227 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
228 panic!(
229 "{}
230::{}
231 failed to instantiate",
232 ::core::stringify!(ClosureContext),
233 ::core::stringify!(new_2),
234 )
235 });
236 <Self as IClosureContextMethods>::ctor_2(this);
237 this
238 }
239}
240
241#[cfg(feature = "moon_sharp-interpreter-execution-closurecontext")]
242#[doc(hidden)]
243pub mod prelude {
244 pub use super::{ClosureContext, IClosureContext, IClosureContextMethods};
245 #[cfg(feature = "system-collections-generic-list_1")]
246 pub use crate::system::collections::generic::list_1::IList_1Methods;
247 #[cfg(feature = "system-object")]
248 pub use crate::system::object::IObjectMethods;
249 pub use crate::system::{collections::generic::list_1::IList_1, object::IObject};
250}