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