kubi/src/delta_time.rs

13 lines
241 B
Rust
Raw Normal View History

2023-01-28 18:21:28 -06:00
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())
}