engage/generated/moon_sharp/interpreter/execution/vm/
executionstate.rs1#[cfg(feature = "moon_sharp-interpreter-execution-vm-executionstate-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/vm/executionstate/ExecutionState.md"))]
11 #[::unity::class(namespace = "MoonSharp.Interpreter.Execution.VM", name = "ExecutionState")]
12 #[parent(crate::system::object::Object)]
13 pub struct ExecutionState {
14 #[offset(16)]
15 #[rename(name = "ValueStack")]
16 pub value_stack: crate::moon_sharp::interpreter::data_structs::faststack_1::FastStack_1<crate::moon_sharp::interpreter::dynvalue::DynValue>,
17 #[offset(24)]
18 #[rename(name = "ExecutionStack")]
19 pub execution_stack: crate::moon_sharp::interpreter::data_structs::faststack_1::FastStack_1<
20 crate::moon_sharp::interpreter::execution::vm::callstackitem::CallStackItem,
21 >,
22 #[offset(32)]
23 #[rename(name = "InstructionPtr")]
24 pub instruction_ptr: i32,
25 #[offset(36)]
26 #[rename(name = "State")]
27 pub state: crate::moon_sharp::interpreter::coroutinestate::CoroutineState,
28 }
29}
30
31#[cfg(feature = "moon_sharp-interpreter-execution-vm-executionstate-types")]
32pub use __types::*;
33
34#[cfg(feature = "moon_sharp-interpreter-execution-vm-executionstate")]
35#[doc(hidden)]
36#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
37mod __ExecutionState_unity_raw {
38 use super::*;
39 #[doc(hidden)]
40 #[allow(non_snake_case)]
41 pub mod __lookup_ctor {
42 use super::*;
43 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
44 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
45 ::unity::lookup::method_info_on_class_with_signature(<ExecutionState as ::unity::ClassIdentity>::class(), ".ctor", 0, param_types, false)
46 });
47 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
48 match &*METHOD {
49 ::core::result::Result::Ok(mi) => *mi,
50 ::core::result::Result::Err(e) => {
51 panic!(
52 "method lookup failed: {}
53::{}
54: {}
55",
56 <ExecutionState as ::unity::ClassIdentity>::NAME,
57 ".ctor",
58 e
59 )
60 },
61 }
62 }
63 }
64}
65
66#[cfg(feature = "moon_sharp-interpreter-execution-vm-executionstate")]
67pub trait IExecutionStateMethods: IExecutionState {
68 #[doc = "`.ctor()` overload"]
69 fn ctor(self) -> () {
70 unsafe {
71 let __receiver = <ExecutionState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72 ::unity::il2cpp_call!(__ExecutionState_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
73(ExecutionState)__receiver)
74 }
75 }
76}
77
78#[cfg(feature = "moon_sharp-interpreter-execution-vm-executionstate")]
79impl<__T: IExecutionState> IExecutionStateMethods for __T {}
80
81#[cfg(feature = "moon_sharp-interpreter-execution-vm-executionstate")]
82impl ExecutionState {
83 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
84 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
85 }
86}
87
88#[cfg(feature = "moon_sharp-interpreter-execution-vm-executionstate")]
89impl ExecutionState {
90 #[doc = "`.ctor()` — no args"]
91 pub fn new() -> Self {
92 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
93 panic!(
94 "{}
95::{}
96 failed to instantiate",
97 ::core::stringify!(ExecutionState),
98 ::core::stringify!(new),
99 )
100 });
101 <Self as IExecutionStateMethods>::ctor(this);
102 this
103 }
104}
105
106#[cfg(feature = "moon_sharp-interpreter-execution-vm-executionstate")]
107#[doc(hidden)]
108pub mod prelude {
109 pub use super::{ExecutionState, IExecutionState, IExecutionStateMethods};
110 pub use crate::system::object::IObject;
111 #[cfg(feature = "system-object")]
112 pub use crate::system::object::IObjectMethods;
113}