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(FetchArg<'a>) -> 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.

fn new_entities(&self) -> DynamicEntityIter

Returns an iterator over dynamically added entities.