Trait WorldCheckpointExt

Source
pub trait WorldCheckpointExt {
    // Required methods
    fn checkpoint<P: Pipeline>(&mut self, pipeline: P);
    fn rollback<P: Pipeline>(
        &mut self,
        pipeline: P,
        checkpoints: isize,
    ) -> Result<(), Error>;
    fn rollback_with<P: Pipeline>(
        &mut self,
        pipeline: P,
        checkpoints: isize,
        registry: &TypeRegistry,
    ) -> Result<(), Error>;
}
Expand description

Extension trait that adds rollback checkpoint-related methods to Bevy’s World.

Required Methods§

Source

fn checkpoint<P: Pipeline>(&mut self, pipeline: P)

Creates a checkpoint for rollback and stores it in Checkpoints.

Source

fn rollback<P: Pipeline>( &mut self, pipeline: P, checkpoints: isize, ) -> Result<(), Error>

Rolls back / forward the World state.

§Errors
Source

fn rollback_with<P: Pipeline>( &mut self, pipeline: P, checkpoints: isize, registry: &TypeRegistry, ) -> Result<(), Error>

Rolls back / forward the World state using the given TypeRegistry.

§Errors

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl WorldCheckpointExt for World

Source§

fn checkpoint<P: Pipeline>(&mut self, pipeline: P)

Source§

fn rollback<P: Pipeline>( &mut self, pipeline: P, checkpoints: isize, ) -> Result<(), Error>

Source§

fn rollback_with<P: Pipeline>( &mut self, pipeline: P, checkpoints: isize, registry: &TypeRegistry, ) -> Result<(), Error>

Implementors§