Struct amethyst_ecs::World [] [src]

pub struct World { /* fields omitted */ }

A collection of entities and their respective components.

Methods

impl World
[src]

Creates a new empty world.

Creates a new entity in the world and returns a handle to it.

Destroys a given entity and removes its components.

Attaches a component to an entity and returns the component's index.

Returns ith component of selected type

Returns ith mutable component of selected type

Trait Implementations

impl Debug for World
[src]

Formats the value using the given formatter.