Skip to main content

engage/generated/app/
imapdeploy_interface.rs

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