Skip to main content

engage/generated/app/
procdescjump.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-procdescjump-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::procdesc::{IProcDesc, ProcDesc},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/procdescjump/ProcDescJump.md"))]
14    #[::unity::class(namespace = "App", name = "ProcDescJump")]
15    #[parent(crate::app::procdesc::ProcDesc)]
16    pub struct ProcDescJump {
17        #[offset(20)]
18        #[rename(name = "m_Label")]
19        pub m_label: i32,
20    }
21}
22
23#[cfg(feature = "app-procdescjump-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-procdescjump")]
27pub trait IProcDescJumpMethods: IProcDescJump {
28    #[doc = "`.ctor(i32)` overload"]
29    fn ctor(self, label: impl ::core::convert::Into<i32>) -> () {
30        unsafe {
31            let __receiver = <ProcDescJump as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32            ::unity::il2cpp_call!((::unity::module_base()+0x281ae00usize)as*mut u8,();
33(ProcDescJump)__receiver,(i32)::core::convert::Into::into(label))
34        }
35    }
36    #[doc = "`Execute(crate::app::procinst::ProcInst)` overload"]
37    fn execute(self, inst: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> crate::app::procdesc::ProcDesc_Result {
38        unsafe {
39            let __receiver = <ProcDescJump as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40            {
41                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
42                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
43                    panic!(
44                        "unity: virtual slot {}
45 out of range (vtable len {}
46) on the runtime class behind {}
47 (method `{}
48`)",
49                        4usize,
50                        __vt.len(),
51                        <ProcDescJump as ::unity::ClassIdentity>::NAME,
52                        "Execute",
53                    )
54                });
55                let __inner: extern "C" fn(
56                    ProcDescJump,
57                    crate::app::procinst::ProcInst,
58                    ::unity::OptionalMethod,
59                ) -> crate::app::procdesc::ProcDesc_Result = ::core::mem::transmute(__vi.method_ptr);
60                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
61                __inner(__receiver, ::core::convert::Into::into(inst), __mi)
62            }
63        }
64    }
65    #[doc = "`get_Label()` overload"]
66    fn get_label(self) -> i32 {
67        unsafe {
68            let __receiver = <ProcDescJump as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
69            {
70                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
71                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
72                    panic!(
73                        "unity: virtual slot {}
74 out of range (vtable len {}
75) on the runtime class behind {}
76 (method `{}
77`)",
78                        5usize,
79                        __vt.len(),
80                        <ProcDescJump as ::unity::ClassIdentity>::NAME,
81                        "get_Label",
82                    )
83                });
84                let __inner: extern "C" fn(ProcDescJump, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
85                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
86                __inner(__receiver, __mi)
87            }
88        }
89    }
90}
91
92#[cfg(feature = "app-procdescjump")]
93impl<__T: IProcDescJump> IProcDescJumpMethods for __T {}
94
95#[cfg(feature = "app-procdescjump")]
96impl ProcDescJump {
97    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
98        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
99    }
100
101    pub fn execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
103    }
104
105    pub fn get_label_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
107    }
108}
109
110#[cfg(feature = "app-procdescjump")]
111impl ProcDescJump {
112    #[doc = "Direct (non-virtual) call to `ProcDescJump`'s own `Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
113    pub unsafe fn execute(
114        this: impl ::core::convert::Into<::unity::IlInstance>,
115        inst: crate::app::procinst::ProcInst,
116    ) -> crate::app::procdesc::ProcDesc_Result {
117        let __mi = Self::execute_method_info();
118        let __inner: extern "C" fn(
119            ::unity::IlInstance,
120            crate::app::procinst::ProcInst,
121            ::unity::OptionalMethod,
122        ) -> crate::app::procdesc::ProcDesc_Result = ::core::mem::transmute(__mi.method_ptr);
123        __inner(this.into(), inst, ::core::option::Option::None)
124    }
125
126    #[doc = "Direct (non-virtual) call to `ProcDescJump`'s own `get_Label`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
127    pub unsafe fn get_label(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
128        let __mi = Self::get_label_method_info();
129        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
130        __inner(this.into(), ::core::option::Option::None)
131    }
132}
133
134#[cfg(feature = "app-procdescjump")]
135impl ProcDescJump {
136    #[doc = "`.ctor(i32)` — overload selector"]
137    pub fn new(label: i32) -> Self {
138        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
139            panic!(
140                "{}
141::{}
142 failed to instantiate",
143                ::core::stringify!(ProcDescJump),
144                ::core::stringify!(new),
145            )
146        });
147        <Self as IProcDescJumpMethods>::ctor(this, label);
148        this
149    }
150}
151
152#[cfg(feature = "app-procdescjump")]
153#[doc(hidden)]
154pub mod prelude {
155    pub use super::{IProcDescJump, IProcDescJumpMethods, ProcDescJump};
156    #[cfg(feature = "app-procdesc")]
157    pub use crate::app::procdesc::IProcDescMethods;
158    #[cfg(feature = "system-object")]
159    pub use crate::system::object::IObjectMethods;
160    pub use crate::{app::procdesc::IProcDesc, system::object::IObject};
161}