kubi/src/delta_time.rs
2023-01-29 01:21:28 +01:00

13 lines
241 B
Rust

use std::time::Duration;
use shipyard::{Unique, AllStoragesView};
#[derive(Unique, Default)]
pub(crate) struct DeltaTime(pub Duration);
pub fn init_delta_time(
storages: AllStoragesView
) {
storages.add_unique(DeltaTime::default())
}