Registry / other / ambient-ecs

ambient-ecs

JSON →
library0.2.1rscratesunverified

Ambient ECS entity component system for game development, host-only.

# Cargo.toml [dependencies] ambient_ecs = "0.2.1"
INSTALL
IMPORT
SIG · AMBIENT-ECS
A
ambient-ecs
otherrustv0.2.1
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 ambient_ecs::World;

Creates a world, adds an entity with components, and retrieves them.

use ambient_ecs::World; fn main() { let mut world = World::new(); let entity = world.add_entity((1, "hello")); let (x, s) = world.get::<(i32, &str)>(entity).unwrap(); println!("Entity: {} {}", x, s); }
Debug
Known issues
gotchaHost-only; does not support WASM or other targets.
fix
Use only for native desktop/server applications.
affects: >=0.2.0
Upgrade
Version history
0.2.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
43 hits · last 30 days
node
38
Meta
2
OpenAI (training)
1
Resources
ambient-ecs — cargo add ambient-ecs · libregistry