[][src]Module hassium_core::ecs::world

Entities, resources, components, and general world management.

Structs

CreateIter

An iterator for entity creation. Please note that you have to consume it because iterators are lazy.

CreateIterAtomic

An iterator for entity creation. Please note that you have to consume it because iterators are lazy.

EntitiesRes

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.

EntityResBuilder

An entity builder from EntitiesRes. Allows building an entity with its components if you have mutable access to the component storages.

Generation

Index generation. When a new entity is placed at an old index, it bumps the Generation by 1. This allows to avoid using components from the entities that were deleted.

LazyBuilder

Like EntityBuilder, but inserts the component lazily, meaning on maintain. If you need those components to exist immediately, you have to insert them into the storages yourself.

Type Definitions

Index

An index is basically the id of an Entity.