[][src]Module acute::prelude

Re-exports

pub use super::DefaultAddons;

Modules

winit

Winit is a cross-platform window creation and event loop management library.

Structs

App
AppBuilder
BitSet
CommandBuffer

A command buffer used to queue mutable changes to the world from a system. This buffer is automatically flushed and refreshed at the beginning of every frame by Schedule. If Schedule is not used, then the user needs to manually flush it by performing CommandBuffer::write.

Entity

A handle to an entity.

Executor

Executes a sequence of systems, potentially in parallel, and then commits their command buffers.

Query

Queries for entities within a World.

Read

Reads a single entity data component type from a chunk.

Resources

Resources container. This container stores its underlying resources in a FxHashMap keyed on ResourceTypeId. This means that the ID's used in this storage will not persist between recompiles.

Schedule

A schedule of systems for execution.

SubWorld

Provides access to a subset of the entities of a World.

System

The concrete type which contains the system closure provided by the user. This struct should not be instantiated directly, and instead should be created using SystemBuilder.

SystemBuilder

The core builder of System types, which are systems within Legion. Systems are implemented as singular closures for a given system - providing queries which should be cached for that system, as well as resource access and other metadata.

Tagged

Reads a single shared data component type in a chunk.

Timer

The Timer struct calculates delta time and if fixed updates should be done to calculate the times, the crate's stopwatch is used

TryRead

Reads a single entity data component type from a chunk, if it's present.

TryWrite

Writes a single entity data component type from a chunk, if it's present.

Universe

The Universe is a factory for creating Worlds.

WindowDescriptor
WinitWindow
World

Contains queryable collections of data associated with Entitys.

Write

Writes to a single entity data component type from a chunk.

Enums

Event

Events emitted by a world to subscribers. See World.subscribe(Sender, EntityFilter).

Traits

EntityStore

A queryable collection of entities.

IntoQuery

Converts a View into a Query.

ResourceSet

Trait which is implemented for tuples of resources and singular resources. This abstracts fetching resources to allow for ergonomic fetching.

Runnable

Trait describing a schedulable type. This is implemented by System

Schedulable

Empty trait which defines a System as schedulable by the dispatcher - this requires that the type is both Send and Sync.

State

Functions

any
changed

Creates a filter which includes chunks for which entity data components of type T have changed since the filter was last executed.

component

Creates an entity data filter which includes chunks that contain entity data components of type T.

passthrough
tag

Creates a shared data filter which includes chunks that contain shared data components of type T.

tag_value

Creates a shared data filter which includes chunks that contain specific shared data values.

update_timer