Skip to main content

engage/generated/moon_sharp/interpreter/tree/expressions/
adjustmentexpression.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-tree-expressions-adjustmentexpression-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        moon_sharp::interpreter::tree::{
10            expression::{Expression, IExpression},
11            nodebase::{INodeBase, NodeBase},
12        },
13        system::object::{IObject, Object},
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/tree/expressions/adjustmentexpression/AdjustmentExpression.md"))]
17    #[::unity::class(namespace = "MoonSharp.Interpreter.Tree.Expressions", name = "AdjustmentExpression")]
18    #[parent(crate::moon_sharp::interpreter::tree::expression::Expression)]
19    pub struct AdjustmentExpression {
20        #[offset(32)]
21        #[rename(name = "expression")]
22        pub expression: crate::moon_sharp::interpreter::tree::expression::Expression,
23    }
24}
25
26#[cfg(feature = "moon_sharp-interpreter-tree-expressions-adjustmentexpression-types")]
27pub use __types::*;
28
29#[cfg(feature = "moon_sharp-interpreter-tree-expressions-adjustmentexpression")]
30#[doc(hidden)]
31#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
32mod __AdjustmentExpression_unity_raw {
33    use super::*;
34    #[doc(hidden)]
35    #[allow(non_snake_case)]
36    pub mod __lookup_ctor {
37        use super::*;
38        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
39            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
40                <crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext as ::unity::IlType>::il_type(),
41                <crate::moon_sharp::interpreter::tree::expression::Expression as ::unity::IlType>::il_type(),
42            ];
43            ::unity::lookup::method_info_on_class_with_signature(
44                <AdjustmentExpression as ::unity::ClassIdentity>::class(),
45                ".ctor",
46                2,
47                param_types,
48                false,
49            )
50        });
51        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
52            match &*METHOD {
53                ::core::result::Result::Ok(mi) => *mi,
54                ::core::result::Result::Err(e) => {
55                    panic!(
56                        "method lookup failed: {}
57::{}
58: {}
59",
60                        <AdjustmentExpression as ::unity::ClassIdentity>::NAME,
61                        ".ctor",
62                        e
63                    )
64                },
65            }
66        }
67    }
68}
69
70#[cfg(feature = "moon_sharp-interpreter-tree-expressions-adjustmentexpression")]
71pub trait IAdjustmentExpressionMethods: IAdjustmentExpression {
72    #[doc = "`.ctor(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext, crate::moon_sharp::interpreter::tree::expression::Expression)` overload"]
73    fn ctor(
74        self,
75        lcontext: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext>,
76        exp: impl ::core::convert::Into<crate::moon_sharp::interpreter::tree::expression::Expression>,
77    ) -> () {
78        unsafe {
79            let __receiver = <AdjustmentExpression as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80            ::unity::il2cpp_call!(__AdjustmentExpression_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
81(AdjustmentExpression)__receiver,(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)::core::convert::Into::into(lcontext),(crate::moon_sharp::interpreter::tree::expression::Expression)::core::convert::Into::into(exp))
82        }
83    }
84    #[doc = "`Compile(crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode)` overload"]
85    fn compile(self, bc: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode>) -> () {
86        unsafe {
87            let __receiver = <AdjustmentExpression as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88            {
89                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
90                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
91                    panic!(
92                        "unity: virtual slot {}
93 out of range (vtable len {}
94) on the runtime class behind {}
95 (method `{}
96`)",
97                        4usize,
98                        __vt.len(),
99                        <AdjustmentExpression as ::unity::ClassIdentity>::NAME,
100                        "Compile",
101                    )
102                });
103                let __inner: extern "C" fn(
104                    AdjustmentExpression,
105                    crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode,
106                    ::unity::OptionalMethod,
107                ) -> () = ::core::mem::transmute(__vi.method_ptr);
108                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
109                __inner(__receiver, ::core::convert::Into::into(bc), __mi)
110            }
111        }
112    }
113    #[doc = "`Eval(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)` overload"]
114    fn eval(
115        self,
116        context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
117    ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
118        unsafe {
119            let __receiver = <AdjustmentExpression as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120            {
121                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
122                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
123                    panic!(
124                        "unity: virtual slot {}
125 out of range (vtable len {}
126) on the runtime class behind {}
127 (method `{}
128`)",
129                        6usize,
130                        __vt.len(),
131                        <AdjustmentExpression as ::unity::ClassIdentity>::NAME,
132                        "Eval",
133                    )
134                });
135                let __inner: extern "C" fn(
136                    AdjustmentExpression,
137                    crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext,
138                    ::unity::OptionalMethod,
139                ) -> crate::moon_sharp::interpreter::dynvalue::DynValue = ::core::mem::transmute(__vi.method_ptr);
140                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
141                __inner(__receiver, ::core::convert::Into::into(context), __mi)
142            }
143        }
144    }
145}
146
147#[cfg(feature = "moon_sharp-interpreter-tree-expressions-adjustmentexpression")]
148impl<__T: IAdjustmentExpression> IAdjustmentExpressionMethods for __T {}
149
150#[cfg(feature = "moon_sharp-interpreter-tree-expressions-adjustmentexpression")]
151impl AdjustmentExpression {
152    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
154    }
155
156    pub fn compile_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
158    }
159
160    pub fn eval_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
162    }
163}
164
165#[cfg(feature = "moon_sharp-interpreter-tree-expressions-adjustmentexpression")]
166impl AdjustmentExpression {
167    #[doc = "Direct (non-virtual) call to `AdjustmentExpression`'s own `Compile`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
168    pub unsafe fn compile(
169        this: impl ::core::convert::Into<::unity::IlInstance>,
170        bc: crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode,
171    ) -> () {
172        let __mi = Self::compile_method_info();
173        let __inner: extern "C" fn(
174            ::unity::IlInstance,
175            crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode,
176            ::unity::OptionalMethod,
177        ) -> () = ::core::mem::transmute(__mi.method_ptr);
178        __inner(this.into(), bc, ::core::option::Option::None)
179    }
180
181    #[doc = "Direct (non-virtual) call to `AdjustmentExpression`'s own `Eval`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
182    pub unsafe fn eval(
183        this: impl ::core::convert::Into<::unity::IlInstance>,
184        context: crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext,
185    ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
186        let __mi = Self::eval_method_info();
187        let __inner: extern "C" fn(
188            ::unity::IlInstance,
189            crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext,
190            ::unity::OptionalMethod,
191        ) -> crate::moon_sharp::interpreter::dynvalue::DynValue = ::core::mem::transmute(__mi.method_ptr);
192        __inner(this.into(), context, ::core::option::Option::None)
193    }
194}
195
196#[cfg(feature = "moon_sharp-interpreter-tree-expressions-adjustmentexpression")]
197impl AdjustmentExpression {
198    #[doc = "`.ctor(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext, crate::moon_sharp::interpreter::tree::expression::Expression)` — overload selector"]
199    pub fn new(
200        lcontext: crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext,
201        exp: crate::moon_sharp::interpreter::tree::expression::Expression,
202    ) -> Self {
203        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
204            panic!(
205                "{}
206::{}
207 failed to instantiate",
208                ::core::stringify!(AdjustmentExpression),
209                ::core::stringify!(new),
210            )
211        });
212        <Self as IAdjustmentExpressionMethods>::ctor(this, lcontext, exp);
213        this
214    }
215}
216
217#[cfg(feature = "moon_sharp-interpreter-tree-expressions-adjustmentexpression")]
218#[doc(hidden)]
219pub mod prelude {
220    pub use super::{AdjustmentExpression, IAdjustmentExpression, IAdjustmentExpressionMethods};
221    #[cfg(feature = "moon_sharp-interpreter-tree-expression")]
222    pub use crate::moon_sharp::interpreter::tree::expression::IExpressionMethods;
223    #[cfg(feature = "moon_sharp-interpreter-tree-nodebase")]
224    pub use crate::moon_sharp::interpreter::tree::nodebase::INodeBaseMethods;
225    #[cfg(feature = "system-object")]
226    pub use crate::system::object::IObjectMethods;
227    pub use crate::{
228        moon_sharp::interpreter::tree::{expression::IExpression, nodebase::INodeBase},
229        system::object::IObject,
230    };
231}