Skip to main content

engage/generated/app/
procdescjumpfunc.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-procdescjumpfunc-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/procdescjumpfunc/ProcDescJumpFunc.md"))]
14    #[::unity::class(namespace = "App", name = "ProcDescJumpFunc")]
15    #[parent(crate::app::procdesc::ProcDesc)]
16    pub struct ProcDescJumpFunc {
17        #[offset(20)]
18        #[rename(name = "m_Label")]
19        pub m_label: i32,
20    }
21}
22
23#[cfg(feature = "app-procdescjumpfunc-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-procdescjumpfunc")]
27pub trait IProcDescJumpFuncMethods: IProcDescJumpFunc {
28    #[doc = "`.ctor(i32)` overload"]
29    fn ctor(self, label: impl ::core::convert::Into<i32>) -> () {
30        unsafe {
31            let __receiver = <ProcDescJumpFunc as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32            ::unity::il2cpp_call!((::unity::module_base()+0x281d220usize)as*mut u8,();
33(ProcDescJumpFunc)__receiver,(i32)::core::convert::Into::into(label))
34        }
35    }
36    #[doc = "`IsJump(crate::app::procinst::ProcInst)` overload"]
37    fn is_jump(self, inst: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> bool {
38        unsafe {
39            let __receiver = <ProcDescJumpFunc 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(7usize).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                        7usize,
50                        __vt.len(),
51                        <ProcDescJumpFunc as ::unity::ClassIdentity>::NAME,
52                        "IsJump",
53                    )
54                });
55                let __inner: extern "C" fn(ProcDescJumpFunc, crate::app::procinst::ProcInst, ::unity::OptionalMethod) -> bool =
56                    ::core::mem::transmute(__vi.method_ptr);
57                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
58                __inner(__receiver, ::core::convert::Into::into(inst), __mi)
59            }
60        }
61    }
62    #[doc = "`Execute(crate::app::procinst::ProcInst)` overload"]
63    fn execute(self, inst: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> crate::app::procdesc::ProcDesc_Result {
64        unsafe {
65            let __receiver = <ProcDescJumpFunc as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66            {
67                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
68                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
69                    panic!(
70                        "unity: virtual slot {}
71 out of range (vtable len {}
72) on the runtime class behind {}
73 (method `{}
74`)",
75                        4usize,
76                        __vt.len(),
77                        <ProcDescJumpFunc as ::unity::ClassIdentity>::NAME,
78                        "Execute",
79                    )
80                });
81                let __inner: extern "C" fn(
82                    ProcDescJumpFunc,
83                    crate::app::procinst::ProcInst,
84                    ::unity::OptionalMethod,
85                ) -> crate::app::procdesc::ProcDesc_Result = ::core::mem::transmute(__vi.method_ptr);
86                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
87                __inner(__receiver, ::core::convert::Into::into(inst), __mi)
88            }
89        }
90    }
91    #[doc = "`get_Label()` overload"]
92    fn get_label(self) -> i32 {
93        unsafe {
94            let __receiver = <ProcDescJumpFunc as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95            {
96                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
97                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
98                    panic!(
99                        "unity: virtual slot {}
100 out of range (vtable len {}
101) on the runtime class behind {}
102 (method `{}
103`)",
104                        5usize,
105                        __vt.len(),
106                        <ProcDescJumpFunc as ::unity::ClassIdentity>::NAME,
107                        "get_Label",
108                    )
109                });
110                let __inner: extern "C" fn(ProcDescJumpFunc, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
111                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
112                __inner(__receiver, __mi)
113            }
114        }
115    }
116}
117
118#[cfg(feature = "app-procdescjumpfunc")]
119impl<__T: IProcDescJumpFunc> IProcDescJumpFuncMethods for __T {}
120
121#[cfg(feature = "app-procdescjumpfunc")]
122impl ProcDescJumpFunc {
123    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
124        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
125    }
126
127    pub fn is_jump_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
129    }
130
131    pub fn execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
133    }
134
135    pub fn get_label_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
137    }
138}
139
140#[cfg(feature = "app-procdescjumpfunc")]
141impl ProcDescJumpFunc {
142    #[doc = "Direct (non-virtual) call to `ProcDescJumpFunc`'s own `IsJump`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
143    pub unsafe fn is_jump(this: impl ::core::convert::Into<::unity::IlInstance>, inst: crate::app::procinst::ProcInst) -> bool {
144        let __mi = Self::is_jump_method_info();
145        let __inner: extern "C" fn(::unity::IlInstance, crate::app::procinst::ProcInst, ::unity::OptionalMethod) -> bool =
146            ::core::mem::transmute(__mi.method_ptr);
147        __inner(this.into(), inst, ::core::option::Option::None)
148    }
149
150    #[doc = "Direct (non-virtual) call to `ProcDescJumpFunc`'s own `Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
151    pub unsafe fn execute(
152        this: impl ::core::convert::Into<::unity::IlInstance>,
153        inst: crate::app::procinst::ProcInst,
154    ) -> crate::app::procdesc::ProcDesc_Result {
155        let __mi = Self::execute_method_info();
156        let __inner: extern "C" fn(
157            ::unity::IlInstance,
158            crate::app::procinst::ProcInst,
159            ::unity::OptionalMethod,
160        ) -> crate::app::procdesc::ProcDesc_Result = ::core::mem::transmute(__mi.method_ptr);
161        __inner(this.into(), inst, ::core::option::Option::None)
162    }
163
164    #[doc = "Direct (non-virtual) call to `ProcDescJumpFunc`'s own `get_Label`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
165    pub unsafe fn get_label(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
166        let __mi = Self::get_label_method_info();
167        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
168        __inner(this.into(), ::core::option::Option::None)
169    }
170}
171
172#[cfg(feature = "app-procdescjumpfunc")]
173impl ProcDescJumpFunc {
174    #[doc = "`.ctor(i32)` — overload selector"]
175    pub fn new(label: i32) -> Self {
176        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
177            panic!(
178                "{}
179::{}
180 failed to instantiate",
181                ::core::stringify!(ProcDescJumpFunc),
182                ::core::stringify!(new),
183            )
184        });
185        <Self as IProcDescJumpFuncMethods>::ctor(this, label);
186        this
187    }
188}
189
190#[cfg(feature = "app-procdescjumpfunc")]
191#[doc(hidden)]
192pub mod prelude {
193    pub use super::{IProcDescJumpFunc, IProcDescJumpFuncMethods, ProcDescJumpFunc};
194    #[cfg(feature = "app-procdesc")]
195    pub use crate::app::procdesc::IProcDescMethods;
196    #[cfg(feature = "system-object")]
197    pub use crate::system::object::IObjectMethods;
198    pub use crate::{app::procdesc::IProcDesc, system::object::IObject};
199}