Crate time

Source
Expand description

§Bevy Time

License Crates.io Downloads Docs Discord

The built-in timekeeping plugin for the Bevy game engine.

Modules§

common_conditions
Common run conditions
prelude
The time prelude.

Structs§

Fixed
The fixed timestep game clock following virtual time.
Real
Real time clock representing elapsed wall clock time.
Stopwatch
A Stopwatch is a struct that tracks elapsed time when started.
Time
A generic clock resource that tracks how much it has advanced since its previous update and since its creation.
TimePlugin
Adds time functionality to Apps.
TimeReceiver
Channel resource used to receive time from the render world.
TimeSender
Channel resource used to send time from the render world.
TimeSystem
Updates the elapsed time. Any system that interacts with Time component should run after this.
Timer
Tracks elapsed time. Enters the finished state once duration is reached.
Virtual
The virtual game clock representing game time.

Enums§

TimeUpdateStrategy
Configuration resource used to determine how the time system should run.
TimerMode
Specifies Timer behavior.
TrySendError
An error returned from the try_send method.

Functions§

create_time_channels
Creates channels used for sending time between the render world and the main world.
time_system
The system used to update the Time used by app logic. If there is a render world the time is sent from there to this system through channels. Otherwise the time is updated in this system.
update_virtual_time
Advances Time<Virtual> and Time based on the elapsed Time<Real>.