Skip to main content

engage/generated/app/
functioncallproc.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-functioncallproc-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::procinst::{IProcInst, ProcInst},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/functioncallproc/FunctionCallProc.md"))]
14    #[::unity::class(namespace = "App", name = "FunctionCallProc")]
15    #[parent(crate::app::procinst::ProcInst)]
16    pub struct FunctionCallProc {
17        #[offset(112)]
18        #[rename(name = "m_Callback")]
19        pub m_callback: crate::app::procvoidmethod::ProcVoidMethod,
20    }
21}
22
23#[cfg(feature = "app-functioncallproc-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-functioncallproc")]
27impl FunctionCallProc {
28    #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::procvoidmethod::ProcVoidMethod)` overload"]
29    pub fn create_bind(
30        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
31        callback: impl ::core::convert::Into<crate::app::procvoidmethod::ProcVoidMethod>,
32    ) -> crate::app::procinst::ProcInst {
33        unsafe {
34            ::unity::il2cpp_call!((::unity::module_base()+0x2276800usize)as*mut u8,crate::app::procinst::ProcInst;
35(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::procvoidmethod::ProcVoidMethod)::core::convert::Into::into(callback))
36        }
37    }
38}
39
40#[cfg(feature = "app-functioncallproc")]
41pub trait IFunctionCallProcMethods: IFunctionCallProc {
42    #[doc = "`CreateDesc()` overload"]
43    fn create_desc(self) -> ::unity::Array<crate::app::procdesc::ProcDesc> {
44        unsafe {
45            let __receiver = <FunctionCallProc as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46            ::unity::il2cpp_call!((::unity::module_base()+0x22768e0usize)as*mut u8, ::unity::Array<crate::app::procdesc::ProcDesc> ;
47(FunctionCallProc)__receiver)
48        }
49    }
50    #[doc = "`.ctor(crate::app::procvoidmethod::ProcVoidMethod)` overload"]
51    fn ctor(self, callback: impl ::core::convert::Into<crate::app::procvoidmethod::ProcVoidMethod>) -> () {
52        unsafe {
53            let __receiver = <FunctionCallProc as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54            ::unity::il2cpp_call!((::unity::module_base()+0x22768a0usize)as*mut u8,();
55(FunctionCallProc)__receiver,(crate::app::procvoidmethod::ProcVoidMethod)::core::convert::Into::into(callback))
56        }
57    }
58}
59
60#[cfg(feature = "app-functioncallproc")]
61impl<__T: IFunctionCallProc> IFunctionCallProcMethods for __T {}
62
63#[cfg(feature = "app-functioncallproc")]
64impl FunctionCallProc {
65    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
66        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
67    }
68
69    pub fn create_desc_method_info() -> &'static ::unity::il2cpp::MethodInfo {
70        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
71    }
72
73    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
74        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
75    }
76}
77
78#[cfg(feature = "app-functioncallproc")]
79impl FunctionCallProc {
80    #[doc = "`.ctor(crate::app::procvoidmethod::ProcVoidMethod)` — overload selector"]
81    pub fn new(callback: crate::app::procvoidmethod::ProcVoidMethod) -> Self {
82        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
83            panic!(
84                "{}
85::{}
86 failed to instantiate",
87                ::core::stringify!(FunctionCallProc),
88                ::core::stringify!(new),
89            )
90        });
91        <Self as IFunctionCallProcMethods>::ctor(this, callback);
92        this
93    }
94}
95
96#[cfg(feature = "app-functioncallproc")]
97#[doc(hidden)]
98pub mod prelude {
99    pub use super::{FunctionCallProc, IFunctionCallProc, IFunctionCallProcMethods};
100    #[cfg(feature = "app-procinst")]
101    pub use crate::app::procinst::IProcInstMethods;
102    #[cfg(feature = "system-object")]
103    pub use crate::system::object::IObjectMethods;
104    pub use crate::{app::procinst::IProcInst, system::object::IObject};
105}