engage/generated/moon_sharp/interpreter/execution/
runtimescopeblock.rs1#[cfg(feature = "moon_sharp-interpreter-execution-runtimescopeblock-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/execution/runtimescopeblock/RuntimeScopeBlock.md"))]
11 #[::unity::class(namespace = "MoonSharp.Interpreter.Execution", name = "RuntimeScopeBlock")]
12 #[parent(crate::system::object::Object)]
13 pub struct RuntimeScopeBlock {}
14}
15
16#[cfg(feature = "moon_sharp-interpreter-execution-runtimescopeblock-types")]
17pub use __types::*;
18
19#[cfg(feature = "moon_sharp-interpreter-execution-runtimescopeblock")]
20#[doc(hidden)]
21#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
22mod __RuntimeScopeBlock_unity_raw {
23 use super::*;
24 #[doc(hidden)]
25 #[allow(non_snake_case)]
26 pub mod __lookup_get_from {
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 ::unity::lookup::method_info_on_class_with_signature(
31 <RuntimeScopeBlock as ::unity::ClassIdentity>::class(),
32 "get_From",
33 0,
34 param_types,
35 false,
36 )
37 });
38 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
39 match &*METHOD {
40 ::core::result::Result::Ok(mi) => *mi,
41 ::core::result::Result::Err(e) => {
42 panic!(
43 "method lookup failed: {}
44::{}
45: {}
46",
47 <RuntimeScopeBlock as ::unity::ClassIdentity>::NAME,
48 "get_From",
49 e
50 )
51 },
52 }
53 }
54 }
55 #[doc(hidden)]
56 #[allow(non_snake_case)]
57 pub mod __lookup_set_from {
58 use super::*;
59 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
60 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<i32 as ::unity::IlType>::il_type()];
61 ::unity::lookup::method_info_on_class_with_signature(
62 <RuntimeScopeBlock as ::unity::ClassIdentity>::class(),
63 "set_From",
64 1,
65 param_types,
66 false,
67 )
68 });
69 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
70 match &*METHOD {
71 ::core::result::Result::Ok(mi) => *mi,
72 ::core::result::Result::Err(e) => {
73 panic!(
74 "method lookup failed: {}
75::{}
76: {}
77",
78 <RuntimeScopeBlock as ::unity::ClassIdentity>::NAME,
79 "set_From",
80 e
81 )
82 },
83 }
84 }
85 }
86 #[doc(hidden)]
87 #[allow(non_snake_case)]
88 pub mod __lookup_get_to {
89 use super::*;
90 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
91 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
92 ::unity::lookup::method_info_on_class_with_signature(
93 <RuntimeScopeBlock as ::unity::ClassIdentity>::class(),
94 "get_To",
95 0,
96 param_types,
97 false,
98 )
99 });
100 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
101 match &*METHOD {
102 ::core::result::Result::Ok(mi) => *mi,
103 ::core::result::Result::Err(e) => {
104 panic!(
105 "method lookup failed: {}
106::{}
107: {}
108",
109 <RuntimeScopeBlock as ::unity::ClassIdentity>::NAME,
110 "get_To",
111 e
112 )
113 },
114 }
115 }
116 }
117 #[doc(hidden)]
118 #[allow(non_snake_case)]
119 pub mod __lookup_set_to {
120 use super::*;
121 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
122 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<i32 as ::unity::IlType>::il_type()];
123 ::unity::lookup::method_info_on_class_with_signature(
124 <RuntimeScopeBlock as ::unity::ClassIdentity>::class(),
125 "set_To",
126 1,
127 param_types,
128 false,
129 )
130 });
131 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132 match &*METHOD {
133 ::core::result::Result::Ok(mi) => *mi,
134 ::core::result::Result::Err(e) => {
135 panic!(
136 "method lookup failed: {}
137::{}
138: {}
139",
140 <RuntimeScopeBlock as ::unity::ClassIdentity>::NAME,
141 "set_To",
142 e
143 )
144 },
145 }
146 }
147 }
148 #[doc(hidden)]
149 #[allow(non_snake_case)]
150 pub mod __lookup_get_to_inclusive {
151 use super::*;
152 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
153 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
154 ::unity::lookup::method_info_on_class_with_signature(
155 <RuntimeScopeBlock as ::unity::ClassIdentity>::class(),
156 "get_ToInclusive",
157 0,
158 param_types,
159 false,
160 )
161 });
162 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163 match &*METHOD {
164 ::core::result::Result::Ok(mi) => *mi,
165 ::core::result::Result::Err(e) => {
166 panic!(
167 "method lookup failed: {}
168::{}
169: {}
170",
171 <RuntimeScopeBlock as ::unity::ClassIdentity>::NAME,
172 "get_ToInclusive",
173 e
174 )
175 },
176 }
177 }
178 }
179 #[doc(hidden)]
180 #[allow(non_snake_case)]
181 pub mod __lookup_set_to_inclusive {
182 use super::*;
183 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
184 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<i32 as ::unity::IlType>::il_type()];
185 ::unity::lookup::method_info_on_class_with_signature(
186 <RuntimeScopeBlock as ::unity::ClassIdentity>::class(),
187 "set_ToInclusive",
188 1,
189 param_types,
190 false,
191 )
192 });
193 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194 match &*METHOD {
195 ::core::result::Result::Ok(mi) => *mi,
196 ::core::result::Result::Err(e) => {
197 panic!(
198 "method lookup failed: {}
199::{}
200: {}
201",
202 <RuntimeScopeBlock as ::unity::ClassIdentity>::NAME,
203 "set_ToInclusive",
204 e
205 )
206 },
207 }
208 }
209 }
210 #[doc(hidden)]
211 #[allow(non_snake_case)]
212 pub mod __lookup_ctor {
213 use super::*;
214 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
215 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
216 ::unity::lookup::method_info_on_class_with_signature(
217 <RuntimeScopeBlock as ::unity::ClassIdentity>::class(),
218 ".ctor",
219 0,
220 param_types,
221 false,
222 )
223 });
224 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
225 match &*METHOD {
226 ::core::result::Result::Ok(mi) => *mi,
227 ::core::result::Result::Err(e) => {
228 panic!(
229 "method lookup failed: {}
230::{}
231: {}
232",
233 <RuntimeScopeBlock as ::unity::ClassIdentity>::NAME,
234 ".ctor",
235 e
236 )
237 },
238 }
239 }
240 }
241}
242
243#[cfg(feature = "moon_sharp-interpreter-execution-runtimescopeblock")]
244pub trait IRuntimeScopeBlockMethods: IRuntimeScopeBlock {
245 #[doc = "`get_From()` overload"]
246 fn get_from(self) -> i32 {
247 unsafe {
248 let __receiver = <RuntimeScopeBlock as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
249 ::unity::il2cpp_call!(__RuntimeScopeBlock_unity_raw::__lookup_get_from::get_method_info().method_ptr,i32;
250(RuntimeScopeBlock)__receiver)
251 }
252 }
253 #[doc = "`set_From(i32)` overload"]
254 fn set_from(self, value: impl ::core::convert::Into<i32>) -> () {
255 unsafe {
256 let __receiver = <RuntimeScopeBlock as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
257 ::unity::il2cpp_call!(__RuntimeScopeBlock_unity_raw::__lookup_set_from::get_method_info().method_ptr,();
258(RuntimeScopeBlock)__receiver,(i32)::core::convert::Into::into(value))
259 }
260 }
261 #[doc = "`get_To()` overload"]
262 fn get_to(self) -> i32 {
263 unsafe {
264 let __receiver = <RuntimeScopeBlock as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
265 ::unity::il2cpp_call!(__RuntimeScopeBlock_unity_raw::__lookup_get_to::get_method_info().method_ptr,i32;
266(RuntimeScopeBlock)__receiver)
267 }
268 }
269 #[doc = "`set_To(i32)` overload"]
270 fn set_to(self, value: impl ::core::convert::Into<i32>) -> () {
271 unsafe {
272 let __receiver = <RuntimeScopeBlock as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
273 ::unity::il2cpp_call!(__RuntimeScopeBlock_unity_raw::__lookup_set_to::get_method_info().method_ptr,();
274(RuntimeScopeBlock)__receiver,(i32)::core::convert::Into::into(value))
275 }
276 }
277 #[doc = "`get_ToInclusive()` overload"]
278 fn get_to_inclusive(self) -> i32 {
279 unsafe {
280 let __receiver = <RuntimeScopeBlock as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
281 ::unity::il2cpp_call!(__RuntimeScopeBlock_unity_raw::__lookup_get_to_inclusive::get_method_info().method_ptr,i32;
282(RuntimeScopeBlock)__receiver)
283 }
284 }
285 #[doc = "`set_ToInclusive(i32)` overload"]
286 fn set_to_inclusive(self, value: impl ::core::convert::Into<i32>) -> () {
287 unsafe {
288 let __receiver = <RuntimeScopeBlock as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
289 ::unity::il2cpp_call!(__RuntimeScopeBlock_unity_raw::__lookup_set_to_inclusive::get_method_info().method_ptr,();
290(RuntimeScopeBlock)__receiver,(i32)::core::convert::Into::into(value))
291 }
292 }
293 #[doc = "`ToString()` overload"]
294 fn to_string(self) -> ::unity::Il2CppString {
295 unsafe {
296 let __receiver = <RuntimeScopeBlock as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
297 {
298 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
299 let __vi = *__vt.get(3usize).unwrap_or_else(|| {
300 panic!(
301 "unity: virtual slot {}
302 out of range (vtable len {}
303) on the runtime class behind {}
304 (method `{}
305`)",
306 3usize,
307 __vt.len(),
308 <RuntimeScopeBlock as ::unity::ClassIdentity>::NAME,
309 "ToString",
310 )
311 });
312 let __inner: extern "C" fn(RuntimeScopeBlock, ::unity::OptionalMethod) -> ::unity::Il2CppString =
313 ::core::mem::transmute(__vi.method_ptr);
314 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
315 __inner(__receiver, __mi)
316 }
317 }
318 }
319 #[doc = "`.ctor()` overload"]
320 fn ctor(self) -> () {
321 unsafe {
322 let __receiver = <RuntimeScopeBlock as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
323 ::unity::il2cpp_call!(__RuntimeScopeBlock_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
324(RuntimeScopeBlock)__receiver)
325 }
326 }
327}
328
329#[cfg(feature = "moon_sharp-interpreter-execution-runtimescopeblock")]
330impl<__T: IRuntimeScopeBlock> IRuntimeScopeBlockMethods for __T {}
331
332#[cfg(feature = "moon_sharp-interpreter-execution-runtimescopeblock")]
333impl RuntimeScopeBlock {
334 pub fn get_from_method_info() -> &'static ::unity::il2cpp::MethodInfo {
335 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
336 }
337
338 pub fn set_from_method_info() -> &'static ::unity::il2cpp::MethodInfo {
339 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
340 }
341
342 pub fn get_to_method_info() -> &'static ::unity::il2cpp::MethodInfo {
343 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
344 }
345
346 pub fn set_to_method_info() -> &'static ::unity::il2cpp::MethodInfo {
347 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
348 }
349
350 pub fn get_to_inclusive_method_info() -> &'static ::unity::il2cpp::MethodInfo {
351 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
352 }
353
354 pub fn set_to_inclusive_method_info() -> &'static ::unity::il2cpp::MethodInfo {
355 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
356 }
357
358 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
359 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
360 }
361
362 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
363 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
364 }
365}
366
367#[cfg(feature = "moon_sharp-interpreter-execution-runtimescopeblock")]
368impl RuntimeScopeBlock {
369 #[doc = "Direct (non-virtual) call to `RuntimeScopeBlock`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
370 pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
371 let __mi = Self::to_string_method_info();
372 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
373 __inner(this.into(), ::core::option::Option::None)
374 }
375}
376
377#[cfg(feature = "moon_sharp-interpreter-execution-runtimescopeblock")]
378impl RuntimeScopeBlock {
379 #[doc = "`.ctor()` — no args"]
380 pub fn new() -> Self {
381 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
382 panic!(
383 "{}
384::{}
385 failed to instantiate",
386 ::core::stringify!(RuntimeScopeBlock),
387 ::core::stringify!(new),
388 )
389 });
390 <Self as IRuntimeScopeBlockMethods>::ctor(this);
391 this
392 }
393}
394
395#[cfg(feature = "moon_sharp-interpreter-execution-runtimescopeblock")]
396#[doc(hidden)]
397pub mod prelude {
398 pub use super::{IRuntimeScopeBlock, IRuntimeScopeBlockMethods, RuntimeScopeBlock};
399 pub use crate::system::object::IObject;
400 #[cfg(feature = "system-object")]
401 pub use crate::system::object::IObjectMethods;
402}