Skip to main content

Crate nya_ecs

Crate nya_ecs 

Source
Expand description

Small simple ECS

An Entity Component System is a pattern in which entities are composed of simple data components and “systems” that manipulate said components.

A system can be a function called every frame that manipulates a specific entity, a query of entities with a certain set of components or whatever.

Re-exports§

pub use component::Component;
pub use component::ComponentKey;
pub use query::Exclude;
pub use query::Filter;
pub use query::Query;
pub use query::Queryable;
pub use system::QuerySystem;
pub use system::System;
pub use system::SystemManager;

Modules§

component
Components
query
Queries on World
system
Query functions, “Systems”

Macros§

component
Implement Component for type
component_id
Get the ComponentKey of a component type, can accept either a type or an expression

Structs§

World
The World contains all entities and components, it is queryable using Queryable

Type Aliases§

Entity
Entity ID