Struct specs::EntitiesRes [] [src]

pub struct EntitiesRes { /* fields omitted */ }

The entities of this ECS. This is a resource, stored in the World. If you just want to access it in your system, you can also use the Entities type def.

Please note that you should never fetch this mutably in a system, because it would block all the other systems.

You need to call World::maintain after creating / deleting entities with this struct.

Methods

impl EntitiesRes
[src]

Creates a new entity atomically. This will be persistent as soon as you call World::maintain.

Returns an iterator which creates new entities atomically. They will be persistent as soon as you call World::maintain.

Deletes an entity atomically. The associated components will be deleted as soon as you call World::maintain.

Returns true if the specified entity is alive.

Trait Implementations

impl Debug for EntitiesRes
[src]

Formats the value using the given formatter.

impl Default for EntitiesRes
[src]

Returns the "default value" for a type. Read more

impl<'a> Join for &'a EntitiesRes
[src]

Type of joined components.

Type of joined storages.

Type of joined bit mask.

Open this join by returning the mask and the storages.

Get a joined component value by a given index.

Create a joined iterator over the contents.

impl<'a> ParJoin for &'a EntitiesRes
[src]

Create a joined parallel iterator over the contents.