Registry / other / legion

legion

JSON →
library0.4.0rscratesunverified

High performance entity component system (ECS) library

# Cargo.toml [dependencies] legion = "0.4.0"
INSTALL
IMPORT
SIG · LEGION
L
legion
otherrustv0.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

World
use legion::World;

Create a world, push entities, and query components

use legion::*; struct Position(f32, f32); fn main() { let mut world = World::default(); world.push((Position(0.0, 0.0),)); let query = <&Position>::query(); for pos in query.iter(&world) { println!("Position: ({}, {})", pos.0, pos.1); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
legion — cargo add legion · libregistry