pub struct World<E, Ctx> where
    E: EntityStore
{ /* private fields */ }
Expand description

The World struct represents the main interface of the library. It used as storage of entities, components and systems.

Implementations

Creates a new world from the given entity store.

Creates a new entity and returns a returns an TypeEntityBuilder.

Deletes the given entity.

Registers the init system.

Registers the cleanup system.

Creates a new entity system and returns a returns an SystemStoreBuilder.

Removes the given entity.

Borrows mutable the entity component manager.

Print infos about the given entity.

Run all systems of the world.

Run all systems of the world and calls run_with_context of the systems with the given context.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.