engage/generated/unity_engine/
waitforsecondsrealtime.rs1#[cfg(feature = "unity_engine-waitforsecondsrealtime-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::object::{IObject, Object},
10 unity_engine::customyieldinstruction::{CustomYieldInstruction, ICustomYieldInstruction},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/waitforsecondsrealtime/WaitForSecondsRealtime.md"))]
14 #[::unity::class(namespace = "UnityEngine", name = "WaitForSecondsRealtime")]
15 #[parent(crate::unity_engine::customyieldinstruction::CustomYieldInstruction)]
16 pub struct WaitForSecondsRealtime {
17 #[offset(20)]
18 #[rename(name = "m_WaitUntilTime")]
19 pub m_wait_until_time: f32,
20 }
21}
22
23#[cfg(feature = "unity_engine-waitforsecondsrealtime-types")]
24pub use __types::*;
25
26#[cfg(feature = "unity_engine-waitforsecondsrealtime")]
27pub trait IWaitForSecondsRealtimeMethods: IWaitForSecondsRealtime {
28 #[doc = "`get_waitTime()` overload"]
29 fn get_wait_time(self) -> f32 {
30 unsafe {
31 let __receiver =
32 <WaitForSecondsRealtime as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
33 ::unity::il2cpp_call!((::unity::module_base()+0x379ab90usize)as*mut u8,f32;
34(WaitForSecondsRealtime)__receiver)
35 }
36 }
37 #[doc = "`set_waitTime(f32)` overload"]
38 fn set_wait_time(self, value: impl ::core::convert::Into<f32>) -> () {
39 unsafe {
40 let __receiver =
41 <WaitForSecondsRealtime as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
42 ::unity::il2cpp_call!((::unity::module_base()+0x379aba0usize)as*mut u8,();
43(WaitForSecondsRealtime)__receiver,(f32)::core::convert::Into::into(value))
44 }
45 }
46 #[doc = "`get_keepWaiting()` overload"]
47 fn get_keep_waiting(self) -> bool {
48 unsafe {
49 let __receiver =
50 <WaitForSecondsRealtime as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 {
52 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
53 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
54 panic!(
55 "unity: virtual slot {}
56 out of range (vtable len {}
57) on the runtime class behind {}
58 (method `{}
59`)",
60 7usize,
61 __vt.len(),
62 <WaitForSecondsRealtime as ::unity::ClassIdentity>::NAME,
63 "get_keepWaiting",
64 )
65 });
66 let __inner: extern "C" fn(WaitForSecondsRealtime, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
67 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
68 __inner(__receiver, __mi)
69 }
70 }
71 }
72 #[doc = "`.ctor(f32)` overload"]
73 fn ctor(self, time: impl ::core::convert::Into<f32>) -> () {
74 unsafe {
75 let __receiver =
76 <WaitForSecondsRealtime as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
77 ::unity::il2cpp_call!((::unity::module_base()+0x379ac50usize)as*mut u8,();
78(WaitForSecondsRealtime)__receiver,(f32)::core::convert::Into::into(time))
79 }
80 }
81 #[doc = "`Reset()` overload"]
82 fn reset(self) -> () {
83 unsafe {
84 let __receiver =
85 <WaitForSecondsRealtime as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86 {
87 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
88 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
89 panic!(
90 "unity: virtual slot {}
91 out of range (vtable len {}
92) on the runtime class behind {}
93 (method `{}
94`)",
95 8usize,
96 __vt.len(),
97 <WaitForSecondsRealtime as ::unity::ClassIdentity>::NAME,
98 "Reset",
99 )
100 });
101 let __inner: extern "C" fn(WaitForSecondsRealtime, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
102 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
103 __inner(__receiver, __mi)
104 }
105 }
106 }
107}
108
109#[cfg(feature = "unity_engine-waitforsecondsrealtime")]
110impl<__T: IWaitForSecondsRealtime> IWaitForSecondsRealtimeMethods for __T {}
111
112#[cfg(feature = "unity_engine-waitforsecondsrealtime")]
113impl WaitForSecondsRealtime {
114 pub fn get_wait_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
115 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
116 }
117
118 pub fn set_wait_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
119 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
120 }
121
122 pub fn get_keep_waiting_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
124 }
125
126 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
128 }
129
130 pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
132 }
133}
134
135#[cfg(feature = "unity_engine-waitforsecondsrealtime")]
136impl WaitForSecondsRealtime {
137 #[doc = "Direct (non-virtual) call to `WaitForSecondsRealtime`'s own `get_keepWaiting`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
138 pub unsafe fn get_keep_waiting(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
139 let __mi = Self::get_keep_waiting_method_info();
140 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
141 __inner(this.into(), ::core::option::Option::None)
142 }
143
144 #[doc = "Direct (non-virtual) call to `WaitForSecondsRealtime`'s own `Reset`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
145 pub unsafe fn reset(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
146 let __mi = Self::reset_method_info();
147 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
148 __inner(this.into(), ::core::option::Option::None)
149 }
150}
151
152#[cfg(feature = "unity_engine-waitforsecondsrealtime")]
153impl WaitForSecondsRealtime {
154 #[doc = "`.ctor(f32)` — overload selector"]
155 pub fn new(time: f32) -> Self {
156 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
157 panic!(
158 "{}
159::{}
160 failed to instantiate",
161 ::core::stringify!(WaitForSecondsRealtime),
162 ::core::stringify!(new),
163 )
164 });
165 <Self as IWaitForSecondsRealtimeMethods>::ctor(this, time);
166 this
167 }
168}
169
170#[cfg(feature = "unity_engine-waitforsecondsrealtime")]
171#[doc(hidden)]
172pub mod prelude {
173 pub use super::{IWaitForSecondsRealtime, IWaitForSecondsRealtimeMethods, WaitForSecondsRealtime};
174 #[cfg(feature = "system-object")]
175 pub use crate::system::object::IObjectMethods;
176 #[cfg(feature = "unity_engine-customyieldinstruction")]
177 pub use crate::unity_engine::customyieldinstruction::ICustomYieldInstructionMethods;
178 pub use crate::{system::object::IObject, unity_engine::customyieldinstruction::ICustomYieldInstruction};
179}