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 lock some components and get the entity iterator. Has to be called only once. Fires a pulse at the end.

fn create(&self) -> Entity

Create a new entity dynamically.

fn delete(&self, entity: Entity)

Delete an entity dynamically.

fn new_entities(&self) -> DynamicEntityIter

Iterate dynamically added entities.