ark_api_ffi/ffi/
applet_v2.rs

1define_api_id!(0xbb0f_0dfe_ff53_2a57, "applet-v2");
2
3#[ark_api_macros::ark_bindgen(imports = "ark-applet-v2")]
4mod applet {
5    extern "C" {
6        /// The real time that has passed since the module was started, in seconds.
7        ///
8        /// Ignores things like pausing, computer falling asleep, etc.
9        /// Also know as [_wall time_](https://en.wikipedia.org/wiki/Elapsed_real_time).
10        #[deprecated_infallible]
11        pub fn real_time_since_start() -> f64;
12
13        /// The game time that has passed since the module was started, in seconds.
14        ///
15        /// Can be paused, sped up, etc. delta_time() is the delta of this.
16        #[deprecated_infallible]
17        pub fn game_time() -> f64;
18    }
19}
20
21pub use applet::*;