Skip to main content

engage/generated/unity_engine/
time.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-time-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/time/Time.md"))]
11    #[::unity::class(namespace = "UnityEngine", name = "Time")]
12    #[parent(crate::system::object::Object)]
13    pub struct Time {}
14}
15
16#[cfg(feature = "unity_engine-time-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-time")]
20impl Time {
21    #[doc = "`get_time()` overload"]
22    pub fn get_time() -> f32 {
23        unsafe {
24            ::unity::il2cpp_call!((::unity::module_base()+0x378e760usize)as*mut u8,f32;
25            )
26        }
27    }
28
29    #[doc = "`get_timeAsDouble()` overload"]
30    pub fn get_time_as_double() -> f64 {
31        unsafe {
32            ::unity::il2cpp_call!((::unity::module_base()+0x378e7a0usize)as*mut u8,f64;
33            )
34        }
35    }
36
37    #[doc = "`get_timeSinceLevelLoad()` overload"]
38    pub fn get_time_since_level_load() -> f32 {
39        unsafe {
40            ::unity::il2cpp_call!((::unity::module_base()+0x378e7e0usize)as*mut u8,f32;
41            )
42        }
43    }
44
45    #[doc = "`get_deltaTime()` overload"]
46    pub fn get_delta_time() -> f32 {
47        unsafe {
48            ::unity::il2cpp_call!((::unity::module_base()+0x378e820usize)as*mut u8,f32;
49            )
50        }
51    }
52
53    #[doc = "`get_fixedTime()` overload"]
54    pub fn get_fixed_time() -> f32 {
55        unsafe {
56            ::unity::il2cpp_call!((::unity::module_base()+0x378e860usize)as*mut u8,f32;
57            )
58        }
59    }
60
61    #[doc = "`get_unscaledTime()` overload"]
62    pub fn get_unscaled_time() -> f32 {
63        unsafe {
64            ::unity::il2cpp_call!((::unity::module_base()+0x378e8a0usize)as*mut u8,f32;
65            )
66        }
67    }
68
69    #[doc = "`get_unscaledDeltaTime()` overload"]
70    pub fn get_unscaled_delta_time() -> f32 {
71        unsafe {
72            ::unity::il2cpp_call!((::unity::module_base()+0x378e8e0usize)as*mut u8,f32;
73            )
74        }
75    }
76
77    #[doc = "`get_fixedDeltaTime()` overload"]
78    pub fn get_fixed_delta_time() -> f32 {
79        unsafe {
80            ::unity::il2cpp_call!((::unity::module_base()+0x378e920usize)as*mut u8,f32;
81            )
82        }
83    }
84
85    #[doc = "`set_fixedDeltaTime(f32)` overload"]
86    pub fn set_fixed_delta_time(value: impl ::core::convert::Into<f32>) -> () {
87        unsafe {
88            ::unity::il2cpp_call!((::unity::module_base()+0x378e960usize)as*mut u8,();
89(f32)::core::convert::Into::into(value))
90        }
91    }
92
93    #[doc = "`get_maximumDeltaTime()` overload"]
94    pub fn get_maximum_delta_time() -> f32 {
95        unsafe {
96            ::unity::il2cpp_call!((::unity::module_base()+0x378e9b0usize)as*mut u8,f32;
97            )
98        }
99    }
100
101    #[doc = "`set_maximumDeltaTime(f32)` overload"]
102    pub fn set_maximum_delta_time(value: impl ::core::convert::Into<f32>) -> () {
103        unsafe {
104            ::unity::il2cpp_call!((::unity::module_base()+0x378e9f0usize)as*mut u8,();
105(f32)::core::convert::Into::into(value))
106        }
107    }
108
109    #[doc = "`get_smoothDeltaTime()` overload"]
110    pub fn get_smooth_delta_time() -> f32 {
111        unsafe {
112            ::unity::il2cpp_call!((::unity::module_base()+0x378ea40usize)as*mut u8,f32;
113            )
114        }
115    }
116
117    #[doc = "`set_maximumParticleDeltaTime(f32)` overload"]
118    pub fn set_maximum_particle_delta_time(value: impl ::core::convert::Into<f32>) -> () {
119        unsafe {
120            ::unity::il2cpp_call!((::unity::module_base()+0x378ea80usize)as*mut u8,();
121(f32)::core::convert::Into::into(value))
122        }
123    }
124
125    #[doc = "`get_timeScale()` overload"]
126    pub fn get_time_scale() -> f32 {
127        unsafe {
128            ::unity::il2cpp_call!((::unity::module_base()+0x378ead0usize)as*mut u8,f32;
129            )
130        }
131    }
132
133    #[doc = "`set_timeScale(f32)` overload"]
134    pub fn set_time_scale(value: impl ::core::convert::Into<f32>) -> () {
135        unsafe {
136            ::unity::il2cpp_call!((::unity::module_base()+0x378eb10usize)as*mut u8,();
137(f32)::core::convert::Into::into(value))
138        }
139    }
140
141    #[doc = "`get_frameCount()` overload"]
142    pub fn get_frame_count() -> i32 {
143        unsafe {
144            ::unity::il2cpp_call!((::unity::module_base()+0x378eb60usize)as*mut u8,i32;
145            )
146        }
147    }
148
149    #[doc = "`get_realtimeSinceStartup()` overload"]
150    pub fn get_realtime_since_startup() -> f32 {
151        unsafe {
152            ::unity::il2cpp_call!((::unity::module_base()+0x378eba0usize)as*mut u8,f32;
153            )
154        }
155    }
156
157    #[doc = "`get_realtimeSinceStartupAsDouble()` overload"]
158    pub fn get_realtime_since_startup_as_double() -> f64 {
159        unsafe {
160            ::unity::il2cpp_call!((::unity::module_base()+0x378ebe0usize)as*mut u8,f64;
161            )
162        }
163    }
164}
165
166#[cfg(feature = "unity_engine-time")]
167impl Time {
168    pub fn get_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
170    }
171
172    pub fn get_time_as_double_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
174    }
175
176    pub fn get_time_since_level_load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
178    }
179
180    pub fn get_delta_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
182    }
183
184    pub fn get_fixed_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
186    }
187
188    pub fn get_unscaled_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
190    }
191
192    pub fn get_unscaled_delta_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
194    }
195
196    pub fn get_fixed_delta_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
198    }
199
200    pub fn set_fixed_delta_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
202    }
203
204    pub fn get_maximum_delta_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
206    }
207
208    pub fn set_maximum_delta_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
210    }
211
212    pub fn get_smooth_delta_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
213        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
214    }
215
216    pub fn set_maximum_particle_delta_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
217        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
218    }
219
220    pub fn get_time_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
221        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
222    }
223
224    pub fn set_time_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
225        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
226    }
227
228    pub fn get_frame_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
229        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
230    }
231
232    pub fn get_realtime_since_startup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
233        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
234    }
235
236    pub fn get_realtime_since_startup_as_double_method_info() -> &'static ::unity::il2cpp::MethodInfo {
237        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
238    }
239}
240
241#[cfg(feature = "unity_engine-time")]
242#[doc(hidden)]
243pub mod prelude {
244    pub use super::{ITime, Time};
245    pub use crate::system::object::IObject;
246    #[cfg(feature = "system-object")]
247    pub use crate::system::object::IObjectMethods;
248}