engage/generated/app/
procdesc.rs1#[cfg(feature = "app-procdesc-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 r#enum::{Enum, IEnum},
11 valuetype::{IValueType, ValueType},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/procdesc/ProcDesc.md"))]
15 #[::unity::class(namespace = "App", name = "ProcDesc")]
16 #[parent(crate::system::object::Object)]
17 pub struct ProcDesc {
18 #[offset(16)]
19 #[rename(name = "m_Type")]
20 pub m_type: crate::app::procdesc::ProcDesc_Type,
21 }
22
23 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/procdesc/ProcDesc_Type.md"))]
24 #[repr(C)]
25 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
26 pub struct ProcDesc_Type {
27 pub value: i32,
28 }
29 impl ::unity::ClassIdentity for ProcDesc_Type {
30 const NAME: &'static str = "ProcDesc.Type";
31 const NAMESPACE: &'static str = "App";
32
33 fn class() -> ::unity::Class {
34 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
35 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
36 }
37 }
38 impl ::unity::IlType for ProcDesc_Type {
39 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
40 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
41 }
42 }
43 impl ProcDesc_Type {
44 pub fn end() -> Self {
45 Self { value: 0 }
46 }
47
48 pub fn halt() -> Self {
49 Self { value: 1 }
50 }
51
52 pub fn jump() -> Self {
53 Self { value: 2 }
54 }
55
56 pub fn label() -> Self {
57 Self { value: 3 }
58 }
59
60 pub fn push() -> Self {
61 Self { value: 4 }
62 }
63
64 pub fn pop() -> Self {
65 Self { value: 5 }
66 }
67
68 pub fn persistent() -> Self {
69 Self { value: 6 }
70 }
71
72 pub fn wait_time() -> Self {
73 Self { value: 7 }
74 }
75
76 pub fn wait_frame() -> Self {
77 Self { value: 8 }
78 }
79
80 pub fn r#yield() -> Self {
81 Self { value: 9 }
82 }
83
84 pub fn call() -> Self {
85 Self { value: 10 }
86 }
87
88 pub fn tick() -> Self {
89 Self { value: 11 }
90 }
91
92 pub fn args() -> Self {
93 Self { value: 12 }
94 }
95
96 pub fn wait_func() -> Self {
97 Self { value: 13 }
98 }
99
100 pub fn jump_func() -> Self {
101 Self { value: 14 }
102 }
103
104 pub fn user() -> Self {
105 Self { value: 15 }
106 }
107
108 pub fn max() -> Self {
109 Self { value: 16 }
110 }
111 }
112
113 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/procdesc/ProcDesc_Result.md"))]
114 #[repr(C)]
115 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
116 pub struct ProcDesc_Result {
117 pub value: i32,
118 }
119 impl ::unity::ClassIdentity for ProcDesc_Result {
120 const NAME: &'static str = "ProcDesc.Result";
121 const NAMESPACE: &'static str = "App";
122
123 fn class() -> ::unity::Class {
124 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
125 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
126 }
127 }
128 impl ::unity::IlType for ProcDesc_Result {
129 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
130 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
131 }
132 }
133 impl ProcDesc_Result {
134 pub fn end() -> Self {
135 Self { value: 0 }
136 }
137
138 pub fn keep() -> Self {
139 Self { value: 1 }
140 }
141
142 pub fn next() -> Self {
143 Self { value: 2 }
144 }
145
146 pub fn next_imm() -> Self {
147 Self { value: 3 }
148 }
149
150 pub fn called_next() -> Self {
151 Self { value: 4 }
152 }
153
154 pub fn called_next_imm() -> Self {
155 Self { value: 5 }
156 }
157
158 pub fn jump() -> Self {
159 Self { value: 6 }
160 }
161
162 pub fn push() -> Self {
163 Self { value: 7 }
164 }
165
166 pub fn pop() -> Self {
167 Self { value: 8 }
168 }
169 }
170}
171
172#[cfg(feature = "app-procdesc-types")]
173pub use __types::*;
174
175#[cfg(feature = "app-procdesc")]
176pub trait IProcDescMethods: IProcDesc {
177 #[doc = "`.ctor(crate::app::procdesc::ProcDesc_Type)` overload"]
178 fn ctor(self, r#type: impl ::core::convert::Into<crate::app::procdesc::ProcDesc_Type>) -> () {
179 unsafe {
180 let __receiver = <ProcDesc as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
181 ::unity::il2cpp_call!((::unity::module_base()+0x281cd20usize)as*mut u8,();
182(ProcDesc)__receiver,(crate::app::procdesc::ProcDesc_Type)::core::convert::Into::into(r#type))
183 }
184 }
185 #[doc = "`Execute(crate::app::procinst::ProcInst)` overload"]
186 fn execute(self, inst: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> crate::app::procdesc::ProcDesc_Result {
187 unsafe {
188 let __receiver = <ProcDesc as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
189 {
190 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
191 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
192 panic!(
193 "unity: virtual slot {}
194 out of range (vtable len {}
195) on the runtime class behind {}
196 (method `{}
197`)",
198 4usize,
199 __vt.len(),
200 <ProcDesc as ::unity::ClassIdentity>::NAME,
201 "Execute",
202 )
203 });
204 let __inner: extern "C" fn(
205 ProcDesc,
206 crate::app::procinst::ProcInst,
207 ::unity::OptionalMethod,
208 ) -> crate::app::procdesc::ProcDesc_Result = ::core::mem::transmute(__vi.method_ptr);
209 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
210 __inner(__receiver, ::core::convert::Into::into(inst), __mi)
211 }
212 }
213 }
214 #[doc = "`get_DescType()` overload"]
215 fn get_desc_type(self) -> crate::app::procdesc::ProcDesc_Type {
216 unsafe {
217 let __receiver = <ProcDesc as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
218 ::unity::il2cpp_call!((::unity::module_base()+0x281cd60usize)as*mut u8,crate::app::procdesc::ProcDesc_Type;
219(ProcDesc)__receiver)
220 }
221 }
222 #[doc = "`get_Label()` overload"]
223 fn get_label(self) -> i32 {
224 unsafe {
225 let __receiver = <ProcDesc as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
226 {
227 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
228 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
229 panic!(
230 "unity: virtual slot {}
231 out of range (vtable len {}
232) on the runtime class behind {}
233 (method `{}
234`)",
235 5usize,
236 __vt.len(),
237 <ProcDesc as ::unity::ClassIdentity>::NAME,
238 "get_Label",
239 )
240 });
241 let __inner: extern "C" fn(ProcDesc, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
242 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
243 __inner(__receiver, __mi)
244 }
245 }
246 }
247 #[doc = "`get_Persistent()` overload"]
248 fn get_persistent(self) -> crate::app::procvoidmethod::ProcVoidMethod {
249 unsafe {
250 let __receiver = <ProcDesc as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
251 {
252 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
253 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
254 panic!(
255 "unity: virtual slot {}
256 out of range (vtable len {}
257) on the runtime class behind {}
258 (method `{}
259`)",
260 6usize,
261 __vt.len(),
262 <ProcDesc as ::unity::ClassIdentity>::NAME,
263 "get_Persistent",
264 )
265 });
266 let __inner: extern "C" fn(ProcDesc, ::unity::OptionalMethod) -> crate::app::procvoidmethod::ProcVoidMethod =
267 ::core::mem::transmute(__vi.method_ptr);
268 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
269 __inner(__receiver, __mi)
270 }
271 }
272 }
273}
274
275#[cfg(feature = "app-procdesc")]
276impl<__T: IProcDesc> IProcDescMethods for __T {}
277
278#[cfg(feature = "app-procdesc")]
279impl ProcDesc {
280 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
282 }
283
284 pub fn execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
286 }
287
288 pub fn get_desc_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
289 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
290 }
291
292 pub fn get_label_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
294 }
295
296 pub fn get_persistent_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
298 }
299}
300
301#[cfg(feature = "app-procdesc")]
302impl ProcDesc {
303 #[doc = "Direct (non-virtual) call to `ProcDesc`'s own `Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
304 pub unsafe fn execute(
305 this: impl ::core::convert::Into<::unity::IlInstance>,
306 inst: crate::app::procinst::ProcInst,
307 ) -> crate::app::procdesc::ProcDesc_Result {
308 let __mi = Self::execute_method_info();
309 let __inner: extern "C" fn(
310 ::unity::IlInstance,
311 crate::app::procinst::ProcInst,
312 ::unity::OptionalMethod,
313 ) -> crate::app::procdesc::ProcDesc_Result = ::core::mem::transmute(__mi.method_ptr);
314 __inner(this.into(), inst, ::core::option::Option::None)
315 }
316
317 #[doc = "Direct (non-virtual) call to `ProcDesc`'s own `get_Label`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
318 pub unsafe fn get_label(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
319 let __mi = Self::get_label_method_info();
320 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
321 __inner(this.into(), ::core::option::Option::None)
322 }
323
324 #[doc = "Direct (non-virtual) call to `ProcDesc`'s own `get_Persistent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
325 pub unsafe fn get_persistent(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::procvoidmethod::ProcVoidMethod {
326 let __mi = Self::get_persistent_method_info();
327 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::procvoidmethod::ProcVoidMethod =
328 ::core::mem::transmute(__mi.method_ptr);
329 __inner(this.into(), ::core::option::Option::None)
330 }
331}
332
333#[cfg(feature = "app-procdesc")]
334impl ProcDesc {
335 #[doc = "`.ctor(crate::app::procdesc::ProcDesc_Type)` — overload selector"]
336 pub fn new(r#type: crate::app::procdesc::ProcDesc_Type) -> Self {
337 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
338 panic!(
339 "{}
340::{}
341 failed to instantiate",
342 ::core::stringify!(ProcDesc),
343 ::core::stringify!(new),
344 )
345 });
346 <Self as IProcDescMethods>::ctor(this, r#type);
347 this
348 }
349}
350
351#[cfg(feature = "app-procdesc")]
352#[doc(hidden)]
353pub mod prelude {
354 pub use super::{IProcDesc, IProcDescMethods, ProcDesc, ProcDesc_Result, ProcDesc_Type};
355 #[cfg(feature = "system-object")]
356 pub use crate::system::object::IObjectMethods;
357 #[cfg(feature = "system-enum")]
358 pub use crate::system::r#enum::IEnumMethods;
359 #[cfg(feature = "system-valuetype")]
360 pub use crate::system::valuetype::IValueTypeMethods;
361 pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
362}