Struct specs::RunArg [] [src]

pub struct RunArg {
    // some fields omitted
}

System closure run-time argument.

Methods

impl RunArg
[src]

fn fetch<'a, U, F>(&'a self, f: F) -> U where F: FnOnce(&'a World) -> U

Borrows the world, allowing the system to lock some components and get the entity iterator. Must be called only once.

fn create(&self) -> Entity

Creates a new entity dynamically.

fn delete(&self, entity: Entity)

Deletes an entity dynamically.