Package-level declarations
Types
Identifies an entity in a World by a slot index and a generation that changes when the slot is reused, so a stale handle never aliases a new entity. How the two are packed is not part of the API.
Receiver of the block passed to Commands.spawn. Queues components and a parent for the entity being spawned; they attach when the Commands are applied.
Marks an entity whose sprite is drawn between its last two fixed steps instead of at its current Transform, so motion integrated in Phase.FIXED_UPDATE looks smooth at any frame rate.
Holds entities and their components. Entities are cheap handles; components are plain objects stored per ComponentType in dense arrays, so iterating one component type touches contiguous memory and a two-type query costs one array lookup per entity.
Position, rotation and scale of an entity in world space, after its Transform is combined with the world transforms of its ancestors. Rotation is in radians; a positive rotation turns clockwise on screen, because y points down.
Functions
Computes the WorldTransform of every entity that has a parent and a Transform.