engage/generated/unity_engine/
waitforendofframe.rs1#[cfg(feature = "unity_engine-waitforendofframe-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::yieldinstruction::{IYieldInstruction, YieldInstruction},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/waitforendofframe/WaitForEndOfFrame.md"))]
14 #[::unity::class(namespace = "UnityEngine", name = "WaitForEndOfFrame")]
15 #[parent(crate::unity_engine::yieldinstruction::YieldInstruction)]
16 pub struct WaitForEndOfFrame {}
17}
18
19#[cfg(feature = "unity_engine-waitforendofframe-types")]
20pub use __types::*;
21
22#[cfg(feature = "unity_engine-waitforendofframe")]
23pub trait IWaitForEndOfFrameMethods: IWaitForEndOfFrame {
24 #[doc = "`.ctor()` overload"]
25 fn ctor(self) -> () {
26 unsafe {
27 let __receiver = <WaitForEndOfFrame as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
28 ::unity::il2cpp_call!((::unity::module_base()+0x379ab20usize)as*mut u8,();
29(WaitForEndOfFrame)__receiver)
30 }
31 }
32}
33
34#[cfg(feature = "unity_engine-waitforendofframe")]
35impl<__T: IWaitForEndOfFrame> IWaitForEndOfFrameMethods for __T {}
36
37#[cfg(feature = "unity_engine-waitforendofframe")]
38impl WaitForEndOfFrame {
39 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
40 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
41 }
42}
43
44#[cfg(feature = "unity_engine-waitforendofframe")]
45impl WaitForEndOfFrame {
46 #[doc = "`.ctor()` — no args"]
47 pub fn new() -> Self {
48 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
49 panic!(
50 "{}
51::{}
52 failed to instantiate",
53 ::core::stringify!(WaitForEndOfFrame),
54 ::core::stringify!(new),
55 )
56 });
57 <Self as IWaitForEndOfFrameMethods>::ctor(this);
58 this
59 }
60}
61
62#[cfg(feature = "unity_engine-waitforendofframe")]
63#[doc(hidden)]
64pub mod prelude {
65 pub use super::{IWaitForEndOfFrame, IWaitForEndOfFrameMethods, WaitForEndOfFrame};
66 #[cfg(feature = "system-object")]
67 pub use crate::system::object::IObjectMethods;
68 #[cfg(feature = "unity_engine-yieldinstruction")]
69 pub use crate::unity_engine::yieldinstruction::IYieldInstructionMethods;
70 pub use crate::{system::object::IObject, unity_engine::yieldinstruction::IYieldInstruction};
71}