mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-26 05:38:20 -06:00
13 lines
241 B
Rust
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())
|
||
|
}
|