Skip to main content

engage/generated/moon_sharp/interpreter/interop/
ipropertytableassigner_interface.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-interop-ipropertytableassigner_interface-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/interop/ipropertytableassigner_interface/IPropertyTableAssigner_Interface.md"))]
10    #[::unity::class(namespace = "MoonSharp.Interpreter.Interop", name = "IPropertyTableAssigner")]
11    pub struct IPropertyTableAssigner_Interface {}
12}
13
14#[cfg(feature = "moon_sharp-interpreter-interop-ipropertytableassigner_interface-types")]
15pub use __types::*;
16
17#[cfg(feature = "moon_sharp-interpreter-interop-ipropertytableassigner_interface")]
18pub trait IIPropertyTableAssigner_InterfaceMethods: IIPropertyTableAssigner_Interface {
19    #[doc = "`AssignObjectUnchecked(crate::system::object::Object, crate::moon_sharp::interpreter::table::Table)` overload"]
20    fn assign_object_unchecked(
21        self,
22        o: impl ::core::convert::Into<crate::system::object::Object>,
23        data: impl ::core::convert::Into<crate::moon_sharp::interpreter::table::Table>,
24    ) -> () {
25        unsafe {
26            let __receiver =
27                <IPropertyTableAssigner_Interface 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                        <IPropertyTableAssigner_Interface as ::unity::ClassIdentity>::NAME,
40                        "AssignObjectUnchecked",
41                    )
42                });
43                let __inner: extern "C" fn(
44                    IPropertyTableAssigner_Interface,
45                    crate::system::object::Object,
46                    crate::moon_sharp::interpreter::table::Table,
47                    ::unity::OptionalMethod,
48                ) -> () = ::core::mem::transmute(__vi.method_ptr);
49                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
50                __inner(__receiver, ::core::convert::Into::into(o), ::core::convert::Into::into(data), __mi)
51            }
52        }
53    }
54}
55
56#[cfg(feature = "moon_sharp-interpreter-interop-ipropertytableassigner_interface")]
57impl<__T: IIPropertyTableAssigner_Interface> IIPropertyTableAssigner_InterfaceMethods for __T {}
58
59#[cfg(feature = "moon_sharp-interpreter-interop-ipropertytableassigner_interface")]
60impl IPropertyTableAssigner_Interface {
61    pub fn assign_object_unchecked_method_info() -> &'static ::unity::il2cpp::MethodInfo {
62        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
63    }
64}
65
66#[cfg(feature = "moon_sharp-interpreter-interop-ipropertytableassigner_interface")]
67impl IPropertyTableAssigner_Interface {
68    #[doc = "Direct (non-virtual) call to `IPropertyTableAssigner_Interface`'s own `AssignObjectUnchecked`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
69    pub unsafe fn assign_object_unchecked(
70        this: impl ::core::convert::Into<::unity::IlInstance>,
71        o: crate::system::object::Object,
72        data: crate::moon_sharp::interpreter::table::Table,
73    ) -> () {
74        let __mi = Self::assign_object_unchecked_method_info();
75        let __inner: extern "C" fn(
76            ::unity::IlInstance,
77            crate::system::object::Object,
78            crate::moon_sharp::interpreter::table::Table,
79            ::unity::OptionalMethod,
80        ) -> () = ::core::mem::transmute(__mi.method_ptr);
81        __inner(this.into(), o, data, ::core::option::Option::None)
82    }
83}
84
85#[cfg(feature = "moon_sharp-interpreter-interop-ipropertytableassigner_interface")]
86#[doc(hidden)]
87pub mod prelude {
88    pub use super::{IIPropertyTableAssigner_Interface, IIPropertyTableAssigner_InterfaceMethods, IPropertyTableAssigner_Interface};
89}