xecs#

A fast ECS library.

Functions

bool_

Provide additional data about a component field.

float32

Provide additional data about a component field.

float_

Provide additional data about a component field.

int32

Provide additional data about a component field.

int_

Provide additional data about a component field.

py_field

Classes

ArrayViewIndices

Indices into the component pool which form the array view.

Bool

An array of boolean values.

Commands

Make changes to the World.

Component

A base class for components.

ComponentPool

A preallocated pool of components.

Duration

Represents a span of time.

EntityId

A component that stores the entity id.

EventReader

Gives access to events of type T.

EventWriter

Sends events of type T.

FixedTimeStepSystemSpec

Specification for a fixed time step system.

FixedTimeStepSystems

A resource for holding fixed time step systems.

Float

alias of Float32

Float32

An array of float32 values.

Int

alias of Int32

Int32

An array of int32 values.

Keyboard

Represents the current state of the keyboard.

KeyboardButton

Represents as keyboard button.

Mouse

Represents the current state of the mouse.

MouseButton

Represents a mouse button.

PendingStartupSystems

A resource holding startup systems to be added to the world.

PendingSystems

A resource holding systems to be added to the world.

PyField

An array of Python component values.

Query

A system parameter providing selective access to component data.

RealTimeApp

An app which runs in real time.

RealTimeAppPlugin

A base class for plugins for RealTimeApp.

Resource

A base class for resources.

SimulationApp

An app which runs as fast as possible.

StartupSystems

A resource holding startup systems to be run.

Struct

A base class for reusable data structures held by components.

SystemSpec

Specification for a system.

Systems

A resource hodling systems to be run.

Transform2

Describes the position and orientation of an entity in 2D space.

Vec2

A set of 2D vector values.

World

Stores and manages all entities, components, and resources.

Modules

xecs.xecs

Internal Rust implementations.