Struct amethyst::ecs::storage::MaskedStorage[]

pub struct MaskedStorage<T> where
    T: Component
{ /* fields omitted */ }

The UnprotectedStorage together with the BitSet that knows about which elements are stored, and which are not.

Methods

impl<T> MaskedStorage<T> where
    T: Component

Creates a new MaskedStorage. This is called when you register a new component type within the world.

Clear the contents of this storage.

Remove an element by a given index.

Drop an element by a given index.

Trait Implementations

impl<T> Default for MaskedStorage<T> where
    T: Component,
    <T as Component>::Storage: Default

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

impl<T> Drop for MaskedStorage<T> where
    T: Component

Executes the destructor for this type. Read more

impl<T> AnyStorage for MaskedStorage<T> where
    T: Component

Drop components of given entities.

Auto Trait Implementations

impl<T> Send for MaskedStorage<T> where
    <T as Component>::Storage: Send

impl<T> Sync for MaskedStorage<T> where
    <T as Component>::Storage: Sync