engage/generated/app/
timer.rs1#[cfg(feature = "app-timer-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 valuetype::{IValueType, ValueType},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/timer/Timer.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct Timer {}
17 impl ::unity::ClassIdentity for Timer {
18 const NAME: &'static str = "Timer";
19 const NAMESPACE: &'static str = "App";
20
21 fn class() -> ::unity::Class {
22 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
23 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
24 }
25 }
26 impl ::unity::IlType for Timer {
27 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
28 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
29 }
30 }
31}
32
33#[cfg(feature = "app-timer-types")]
34pub use __types::*;
35
36#[cfg(feature = "app-timer")]
37impl Timer {
38 #[doc = "`.ctor(bool, ::unity::Il2CppString, ::unity::Array<crate::system::object::Object>)` overload"]
39 pub fn ctor(
40 &mut self,
41 is_show: impl ::core::convert::Into<bool>,
42 format: impl ::core::convert::Into<::unity::Il2CppString>,
43 args: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
44 ) -> () {
45 unsafe {
46 ::unity::il2cpp_call!((::unity::module_base()+0x21ebf00usize)as*mut u8,();
47(*mut Timer)self as*mut Timer,(bool)::core::convert::Into::into(is_show),(::unity::Il2CppString)::core::convert::Into::into(format),(::unity::Array<crate::system::object::Object>)::core::convert::Into::into(args))
48 }
49 }
50
51 #[doc = "`.ctor(::unity::Il2CppString, ::unity::Array<crate::system::object::Object>)` overload"]
52 pub fn ctor_2(
53 &mut self,
54 format: impl ::core::convert::Into<::unity::Il2CppString>,
55 args: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
56 ) -> () {
57 unsafe {
58 ::unity::il2cpp_call!((::unity::module_base()+0x21ebf10usize)as*mut u8,();
59(*mut Timer)self as*mut Timer,(::unity::Il2CppString)::core::convert::Into::into(format),(::unity::Array<crate::system::object::Object>)::core::convert::Into::into(args))
60 }
61 }
62
63 #[doc = "`Dispose()` overload"]
64 pub fn dispose(&mut self) -> () {
65 unsafe {
66 ::unity::il2cpp_call!((::unity::module_base()+0x21ebf20usize)as*mut u8,();
67(*mut Timer)self as*mut Timer)
68 }
69 }
70
71 #[doc = "`Start(bool, ::unity::Il2CppString, ::unity::Array<crate::system::object::Object>)` overload"]
72 pub fn start(
73 &mut self,
74 is_show: impl ::core::convert::Into<bool>,
75 format: impl ::core::convert::Into<::unity::Il2CppString>,
76 args: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
77 ) -> () {
78 unsafe {
79 ::unity::il2cpp_call!((::unity::module_base()+0x21ebf30usize)as*mut u8,();
80(*mut Timer)self as*mut Timer,(bool)::core::convert::Into::into(is_show),(::unity::Il2CppString)::core::convert::Into::into(format),(::unity::Array<crate::system::object::Object>)::core::convert::Into::into(args))
81 }
82 }
83
84 #[doc = "`Start(::unity::Il2CppString, ::unity::Array<crate::system::object::Object>)` overload"]
85 pub fn start_2(
86 &mut self,
87 format: impl ::core::convert::Into<::unity::Il2CppString>,
88 args: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
89 ) -> () {
90 unsafe {
91 ::unity::il2cpp_call!((::unity::module_base()+0x21ebf40usize)as*mut u8,();
92(*mut Timer)self as*mut Timer,(::unity::Il2CppString)::core::convert::Into::into(format),(::unity::Array<crate::system::object::Object>)::core::convert::Into::into(args))
93 }
94 }
95
96 #[doc = "`Stop()` overload"]
97 pub fn stop(&mut self) -> () {
98 unsafe {
99 ::unity::il2cpp_call!((::unity::module_base()+0x21ebf50usize)as*mut u8,();
100(*mut Timer)self as*mut Timer)
101 }
102 }
103
104 #[doc = "`get_DeltaTime()` overload"]
105 pub fn get_delta_time(&mut self) -> f32 {
106 unsafe {
107 ::unity::il2cpp_call!((::unity::module_base()+0x21ebf60usize)as*mut u8,f32;
108(*mut Timer)self as*mut Timer)
109 }
110 }
111
112 #[doc = "`IsValid()` overload"]
113 pub fn is_valid(&mut self) -> bool {
114 unsafe {
115 ::unity::il2cpp_call!((::unity::module_base()+0x21ebf70usize)as*mut u8,bool;
116(*mut Timer)self as*mut Timer)
117 }
118 }
119}
120
121#[cfg(feature = "app-timer")]
122impl Timer {
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 ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
129 }
130
131 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
133 }
134
135 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
137 }
138
139 pub fn start_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
141 }
142
143 pub fn stop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
145 }
146
147 pub fn get_delta_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
149 }
150
151 pub fn is_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
153 }
154}
155
156#[cfg(feature = "app-timer")]
157#[doc(hidden)]
158pub mod prelude {
159 pub use super::Timer;
160 #[cfg(feature = "system-object")]
161 pub use crate::system::object::IObjectMethods;
162 #[cfg(feature = "system-valuetype")]
163 pub use crate::system::valuetype::IValueTypeMethods;
164 pub use crate::system::{object::IObject, valuetype::IValueType};
165}