@fogrexon/glyph-arena-ecs

Minimal entity-component storage. See also package README.

Exports

Generated from the package's source when the docs are built — do not edit this table by hand.

NameKind
Entitytype
Worldtype
createWorldfunction

createWorld()

const world = createWorld();

const entity = world.spawn();
world.set(entity, "stats", { hp: 10 });
world.get(entity, "stats");
world.has(entity, "stats");
world.remove(entity, "stats");
world.despawn(entity);
world.dispose();

Methods

Entity

number — opaque entity id.

Notes