Trait legion::systems::WorldWritable[][src]

pub trait WorldWritable: Send + Sync {
    fn write(self: Arc<Self>, world: &mut World, cmd: &CommandBuffer);
}

This trait can be used to implement custom world writer types that can be directly inserted into the command buffer, for more custom and complex world operations. This is analogous to the CommandBuffer::exec_mut function type, but does not perform explicit any/any archetype access.

Required methods

fn write(self: Arc<Self>, world: &mut World, cmd: &CommandBuffer)[src]

Destructs the writer and performs the write operations on the world.

Loading content...

Implementors

Loading content...