silver-inspector
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

silver-inspector

An inspector for silver-ecs worlds.

Usage

import * as S from "silver-ecs"
import {mount, makeDebugAliases} from "silver-inspector"

const world = S.makeWorld()
const element = document.getElementById("inspector")
// Name your components.
const aliases = makeDebugAliases().set(Vehicle, "Vehicle")
// Add queries to the inspector.
const queries = {
  vehicles: S.query(world, Vehicle),
}
// Add the inspector to the DOM.
mount(world, element, aliases, queries)

Package Sidebar

Install

npm i silver-inspector

Weekly Downloads

5

Version

0.0.2

License

MIT

Unpacked Size

538 kB

Total Files

22

Last publish

Collaborators

  • ericmcdaniel