Crate bevy_previous

Source

Structs§

Previous
A component that represents the previous value of another component T. To enable previous-value-tracking for a component use PreviousPlugin. The parameter S must be the same as the one specified in PreviousPlugin, or be ommited, like with PreviousPlugin.
PreviousPlugin
A Plugin to activate the Previous component for a given component T. The parameter S defines the schedule where Previous<T> components are set back to the value of T. This should be after all of your game logic, so it is set to Last by default. For FixedLast, the type alias FixedPreviousPlugin is provided.

Traits§

DefaultSchedule
A trait to provide the default value for a schedule label.

Type Aliases§

FixedPrevious
A type alias for Previous<T, FixedLast> to be used with FixedPreviousPlugin<T>.
FixedPreviousPlugin
A type alias for PreviousPlugin<T, FixedLast> to be used with FixedPrevious<T>.

Derive Macros§

DefaultSchedule
Derive macro for generating a DefaultSchedule implementation.