engage/generated/app/
proceventwait.rs1#[cfg(feature = "app-proceventwait-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/proceventwait/ProcEventWait.md"))]
14 #[::unity::class(namespace = "App", name = "ProcEventWait")]
15 #[parent(crate::app::procinst::ProcInst)]
16 pub struct ProcEventWait {
17 #[offset(112)]
18 #[rename(name = "m_Tick")]
19 pub m_tick: f32,
20 #[offset(116)]
21 #[rename(name = "m_Time")]
22 pub m_time: f32,
23 }
24}
25
26#[cfg(feature = "app-proceventwait-types")]
27pub use __types::*;
28
29#[cfg(feature = "app-proceventwait")]
30impl ProcEventWait {
31 #[doc = "`CreateBind(crate::app::procinst::ProcInst, f32)` overload"]
32 pub fn create_bind(super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>, time: impl ::core::convert::Into<f32>) -> () {
33 unsafe {
34 ::unity::il2cpp_call!((::unity::module_base()+0x281dfd0usize)as*mut u8,();
35(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(f32)::core::convert::Into::into(time))
36 }
37 }
38}
39
40#[cfg(feature = "app-proceventwait")]
41pub trait IProcEventWaitMethods: IProcEventWait {
42 #[doc = "`.ctor(f32)` overload"]
43 fn ctor(self, time: impl ::core::convert::Into<f32>) -> () {
44 unsafe {
45 let __receiver = <ProcEventWait as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46 ::unity::il2cpp_call!((::unity::module_base()+0x281dd20usize)as*mut u8,();
47(ProcEventWait)__receiver,(f32)::core::convert::Into::into(time))
48 }
49 }
50 #[doc = "`OnTick()` overload"]
51 fn on_tick(self) -> () {
52 unsafe {
53 let __receiver = <ProcEventWait as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54 {
55 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
56 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
57 panic!(
58 "unity: virtual slot {}
59 out of range (vtable len {}
60) on the runtime class behind {}
61 (method `{}
62`)",
63 6usize,
64 __vt.len(),
65 <ProcEventWait as ::unity::ClassIdentity>::NAME,
66 "OnTick",
67 )
68 });
69 let __inner: extern "C" fn(ProcEventWait, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
70 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
71 __inner(__receiver, __mi)
72 }
73 }
74 }
75}
76
77#[cfg(feature = "app-proceventwait")]
78impl<__T: IProcEventWait> IProcEventWaitMethods for __T {}
79
80#[cfg(feature = "app-proceventwait")]
81impl ProcEventWait {
82 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
83 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
84 }
85
86 pub fn on_tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
87 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
88 }
89
90 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
91 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
92 }
93}
94
95#[cfg(feature = "app-proceventwait")]
96impl ProcEventWait {
97 #[doc = "Direct (non-virtual) call to `ProcEventWait`'s own `OnTick`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
98 pub unsafe fn on_tick(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
99 let __mi = Self::on_tick_method_info();
100 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
101 __inner(this.into(), ::core::option::Option::None)
102 }
103}
104
105#[cfg(feature = "app-proceventwait")]
106impl ProcEventWait {
107 #[doc = "`.ctor(f32)` — overload selector"]
108 pub fn new(time: f32) -> Self {
109 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
110 panic!(
111 "{}
112::{}
113 failed to instantiate",
114 ::core::stringify!(ProcEventWait),
115 ::core::stringify!(new),
116 )
117 });
118 <Self as IProcEventWaitMethods>::ctor(this, time);
119 this
120 }
121}
122
123#[cfg(feature = "app-proceventwait")]
124#[doc(hidden)]
125pub mod prelude {
126 pub use super::{IProcEventWait, IProcEventWaitMethods, ProcEventWait};
127 #[cfg(feature = "app-procinst")]
128 pub use crate::app::procinst::IProcInstMethods;
129 #[cfg(feature = "system-object")]
130 pub use crate::system::object::IObjectMethods;
131 pub use crate::{app::procinst::IProcInst, system::object::IObject};
132}