Skip to main content

engage/generated/moon_sharp/interpreter/tree/
ivariable.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-tree-ivariable-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/tree/ivariable/IVariable.md"))]
10    #[::unity::class(namespace = "MoonSharp.Interpreter.Tree", name = "IVariable")]
11    pub struct IVariable {}
12}
13
14#[cfg(feature = "moon_sharp-interpreter-tree-ivariable-types")]
15pub use __types::*;
16
17#[cfg(feature = "moon_sharp-interpreter-tree-ivariable")]
18pub trait IIVariableMethods: IIVariable {
19    #[doc = "`CompileAssignment(crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode, i32, i32)` overload"]
20    fn compile_assignment(
21        self,
22        bc: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode>,
23        stackofs: impl ::core::convert::Into<i32>,
24        tupleidx: impl ::core::convert::Into<i32>,
25    ) -> () {
26        unsafe {
27            let __receiver = <IVariable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
28            {
29                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
30                let __vi = *__vt.get(0usize).unwrap_or_else(|| {
31                    panic!(
32                        "unity: virtual slot {}
33 out of range (vtable len {}
34) on the runtime class behind {}
35 (method `{}
36`)",
37                        0usize,
38                        __vt.len(),
39                        <IVariable as ::unity::ClassIdentity>::NAME,
40                        "CompileAssignment",
41                    )
42                });
43                let __inner: extern "C" fn(
44                    IVariable,
45                    crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode,
46                    i32,
47                    i32,
48                    ::unity::OptionalMethod,
49                ) -> () = ::core::mem::transmute(__vi.method_ptr);
50                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
51                __inner(
52                    __receiver,
53                    ::core::convert::Into::into(bc),
54                    ::core::convert::Into::into(stackofs),
55                    ::core::convert::Into::into(tupleidx),
56                    __mi,
57                )
58            }
59        }
60    }
61}
62
63#[cfg(feature = "moon_sharp-interpreter-tree-ivariable")]
64impl<__T: IIVariable> IIVariableMethods for __T {}
65
66#[cfg(feature = "moon_sharp-interpreter-tree-ivariable")]
67impl IVariable {
68    pub fn compile_assignment_method_info() -> &'static ::unity::il2cpp::MethodInfo {
69        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
70    }
71}
72
73#[cfg(feature = "moon_sharp-interpreter-tree-ivariable")]
74impl IVariable {
75    #[doc = "Direct (non-virtual) call to `IVariable`'s own `CompileAssignment`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
76    pub unsafe fn compile_assignment(
77        this: impl ::core::convert::Into<::unity::IlInstance>,
78        bc: crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode,
79        stackofs: i32,
80        tupleidx: i32,
81    ) -> () {
82        let __mi = Self::compile_assignment_method_info();
83        let __inner: extern "C" fn(
84            ::unity::IlInstance,
85            crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode,
86            i32,
87            i32,
88            ::unity::OptionalMethod,
89        ) -> () = ::core::mem::transmute(__mi.method_ptr);
90        __inner(this.into(), bc, stackofs, tupleidx, ::core::option::Option::None)
91    }
92}
93
94#[cfg(feature = "moon_sharp-interpreter-tree-ivariable")]
95#[doc(hidden)]
96pub mod prelude {
97    pub use super::{IIVariable, IIVariableMethods, IVariable};
98}