[][src]Module orbtk::ecs

Structs

ComponentBox

This struct is used to store a component with its type id. Used for dynamic component adding.

ComponentBuilder

The TypeComponentBuilder is used to build a set of type key based components.

ComponentStore

The TypeComponentStore stores the components of all entities. It could be used to borrow the components of the entities.

EntityBuilder

The entity builder is used to create an entity with components.

EntityStore

VecEntityStore is the default vector based implementation of an entity store.

SharedComponentBox

This struct is used to store a shared component with its type id. Used for dynamic component adding.

StringComponentBuilder

The StringComponentBuilder is used to build a set of string key based components.

World

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

Enums

NotFound

Not found error.

Traits

Component

This trait is used to internal handle all components types. This trait is implicitly implemented for all other types.

System

This trait is used to interact with the components of entities. It could read and write to the components.

Type Definitions

Priority

The run order of a system. The systems will be executed by priority from small to great.